/* Category Page Styles */

/* Content Header (matching other pages) */
.content-header {
	position: relative;
	height: 60vh;
	min-height: 500px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	overflow: hidden;
}

.content-header-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 1;
}

.content-header-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		to bottom,
		rgba(92, 92, 92, 0.6) 0%,
		rgba(92, 92, 92, 0.6) 100%
	);
	z-index: 2;
}

.content-header-content {
	position: relative;
	z-index: 3;
}

/* Header Title Shadow */
.header-title-shadow {
	text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7), 1px 1px 4px rgba(0, 0, 0, 0.5),
		0px 0px 3px rgba(0, 0, 0, 0.8);
}

/* Breadcrumb (matching other pages) */
.breadcrumb-nav {
	background-color: #f8f9fa;
	padding: 15px 0;
	border-bottom: 1px solid #dee2e6;
}

.breadcrumb {
	background-color: transparent;
	margin-bottom: 0;
	padding: 0;
}

.breadcrumb-item a {
	color: #6c757d;
	text-decoration: none;
}

.breadcrumb-item a:hover {
	color: #7fbe41;
	text-decoration: underline;
}

.breadcrumb-item.active {
	color: #495057;
}

/* Category Content Section */
.category-content-section {
	padding: 80px 0;
	background-color: #fff;
}

.category-header-info {
	margin-bottom: 50px;
	text-align: center;
}

.category-section-title {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 20px;
	color: #2c3e50;
}

.category-section-subtitle {
	font-size: 1.1rem;
	color: #6c757d;
	margin-bottom: 0;
}

.category-section-subtitle i {
	color: #7fbe41;
}

/* Pages Grid */
.pages-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 30px;
	margin-bottom: 50px;
}

/* Page Card Link Wrapper */
.page-card-link-wrapper {
	text-decoration: none;
	color: inherit;
	display: block;
	transition: all 0.3s ease;
}

.page-card-link-wrapper:hover {
	text-decoration: none;
	color: inherit;
}

/* Page Card */
.page-card {
	background: #fff;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border: 1px solid #f0f0f0;
	height: 100%;
	cursor: pointer;
}

.page-card-link-wrapper:hover .page-card {
	transform: translateY(-5px);
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
	border-color: #7fbe41;
}

.page-card-image {
	position: relative;
	height: 200px;
	overflow: hidden;
}

.page-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.page-card-link-wrapper:hover .page-card-image img {
	transform: scale(1.05);
}

.page-card-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.1) 0%,
		rgba(0, 0, 0, 0.6) 100%
	);
	display: flex;
	align-items: flex-end;
	padding: 20px;
}

.page-type-badge {
	background-color: #7fbe41;
	color: #fff;
	padding: 8px 15px;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
}

.page-type-badge i {
	font-size: 0.9rem;
}

.page-card-content {
	padding: 25px;
}

.page-card-title {
	margin-bottom: 15px;
	color: #2c3e50;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.4;
	transition: color 0.3s ease;
}

.page-card-link-wrapper:hover .page-card-title {
	color: #7fbe41;
}

.page-card-description {
	color: #6c757d;
	font-size: 0.95rem;
	line-height: 1.6;
	margin-bottom: 20px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.page-card-footer {
	margin-top: auto;
}

.page-card-link {
	color: #7fbe41;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	transition: all 0.3s ease;
}

.page-card-link-wrapper:hover .page-card-link {
	color: #6da035;
}

.page-card-link i {
	font-size: 0.9rem;
	transition: transform 0.3s ease;
}

.page-card-link-wrapper:hover .page-card-link i {
	transform: translateX(3px);
}

/* Empty State */
.empty-state {
	text-align: center;
	padding: 80px 30px;
	background-color: #f8f9fa;
	border-radius: 20px;
	margin: 40px 0;
}

.empty-state-icon {
	font-size: 4rem;
	color: #7fbe41;
	margin-bottom: 30px;
}

.empty-state-title {
	font-size: 2rem;
	font-weight: 700;
	color: #2c3e50;
	margin-bottom: 20px;
}

.empty-state-description {
	font-size: 1.1rem;
	color: #6c757d;
	margin-bottom: 30px;
	max-width: 500px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.6;
}

/* Button Styles */
.btn-primary {
	background-color: #7fbe41;
	border-color: #7fbe41;
	padding: 12px 30px;
	font-size: 1rem;
	font-weight: 600;
	border-radius: 50px;
	transition: all 0.3s ease;
}

.btn-primary:hover {
	background-color: #6da035;
	border-color: #6da035;
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(127, 190, 65, 0.3);
}

/* Responsive Design */
@media (max-width: 1400px) {
	.pages-grid {
		grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
		gap: 25px;
	}
}

@media (max-width: 1200px) {
	.pages-grid {
		grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
		gap: 25px;
	}
}

@media (max-width: 992px) {
	.category-content-section {
		padding: 60px 0;
	}

	.category-section-title {
		font-size: 2rem;
	}

	.pages-grid {
		grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
		gap: 20px;
	}
}

@media (max-width: 768px) {
	.content-header {
		height: 50vh;
		min-height: 400px;
	}

	.category-header-info {
		margin-bottom: 40px;
	}

	.category-section-title {
		font-size: 1.8rem;
	}

	.pages-grid {
		grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
		gap: 20px;
	}

	.page-card-content {
		padding: 20px;
	}

	.empty-state {
		padding: 60px 20px;
	}

	.empty-state-icon {
		font-size: 3rem;
	}

	.empty-state-title {
		font-size: 1.5rem;
	}
}

@media (max-width: 576px) {
	.category-content-section {
		padding: 40px 0;
	}

	.category-header-info {
		margin-bottom: 30px;
	}

	.category-section-title {
		font-size: 1.6rem;
	}

	.category-section-subtitle {
		font-size: 1rem;
	}

	.page-card-image {
		height: 180px;
	}

	.page-card-content {
		padding: 15px;
	}

	.page-card-title a {
		font-size: 1.1rem;
	}

	.empty-state {
		padding: 40px 15px;
	}

	.btn-primary {
		width: 100%;
		padding: 15px;
	}
}

/* Animation for grid items */
.page-card {
	animation: fadeInUp 0.6s ease forwards;
}

.page-card:nth-child(1) {
	animation-delay: 0.1s;
}
.page-card:nth-child(2) {
	animation-delay: 0.2s;
}
.page-card:nth-child(3) {
	animation-delay: 0.3s;
}
.page-card:nth-child(4) {
	animation-delay: 0.4s;
}
.page-card:nth-child(5) {
	animation-delay: 0.5s;
}
.page-card:nth-child(6) {
	animation-delay: 0.6s;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Focus styles for accessibility */
.page-card-link-wrapper:focus,
.btn:focus {
	outline: none;
	box-shadow: 0 0 0 0.2rem rgba(127, 190, 65, 0.25);
}

.page-card-link-wrapper:focus .page-card {
	border-color: #7fbe41;
	box-shadow: 0 0 0 0.2rem rgba(127, 190, 65, 0.25);
}

/* Hover effects for better interactivity */
.page-card-link-wrapper {
	display: block;
}

.page-card-content {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.page-card-description {
	flex-grow: 1;
}
