* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	min-height: 100vh;
	color: #333;
	padding-top: 0;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

.header {
	text-align: center;
	margin-bottom: 30px;
	color: white;
}

.header h1 {
	font-size: 2.5rem;
	margin-bottom: 10px;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
	font-size: 1.1rem;
	opacity: 0.9;
}

.breadcrumb {
	background: rgba(255,255,255,0.1);
	padding: 15px 20px;
	border-radius: 15px;
	margin-bottom: 30px;
	backdrop-filter: blur(10px);
}

.breadcrumb a {
	color: white;
	text-decoration: none;
	opacity: 0.8;
	transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
	opacity: 1;
}

.breadcrumb .current {
	color: #FFD700;
	font-weight: 600;
}

.stats-bar {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.stat-card {
	background: rgba(255,255,255,0.15);
	padding: 20px;
	border-radius: 15px;
	text-align: center;
	color: white;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255,255,255,0.2);
	transition: transform 0.3s ease;
}

.stat-card:hover {
	transform: translateY(-5px);
}

.stat-card i {
	font-size: 2rem;
	margin-bottom: 10px;
	opacity: 0.8;
}

.stat-number {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 5px;
}

.stat-label {
	font-size: 0.9rem;
	opacity: 0.9;
}

.categories-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.category-card {
	background: white;
	border-radius: 20px;
	padding: 25px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.1);
	transition: all 0.3s ease;
	cursor: pointer;
	position: relative;
	overflow: hidden;
}

.category-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.category-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--category-color, #4169E1);
}

.category-header {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
}

.category-icon {
	width: 50px;
	height: 50px;
	border-radius: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 15px;
	color: white;
	font-size: 1.5rem;
	background: var(--category-color, #4169E1);
}

.category-title {
	font-size: 1.3rem;
	font-weight: 700;
	color: #333;
	margin-bottom: 5px;
}

.category-description {
	color: #666;
	font-size: 0.9rem;
	line-height: 1.4;
	margin-bottom: 15px;
}

.category-meta {
	display: flex;
	justify-content: center;
	align-items: center;
}

.question-count {
	display: flex;
	align-items: center;
	color: #555;
	font-weight: 600;
}

.question-count i {
	margin-right: 5px;
	color: var(--category-color, #4169E1);
}

.back-btn {
	position: fixed;
	top: 20px;
	left: 20px;
	background: rgba(255,255,255,0.2);
	color: white;
	border: none;
	padding: 12px 20px;
	border-radius: 25px;
	cursor: pointer;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255,255,255,0.3);
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 8px;
}

.back-btn:hover {
	background: rgba(255,255,255,0.3);
	transform: translateX(-5px);
}

@media (min-width: 1024px) {
	.back-btn {
		display: none;
	}
}

@media (max-width: 1023px) {
	.back-btn {
		display: none;
	}
}

@media (max-width: 768px) {
	.container {
		padding: 15px;
	}

	.header h1 {
		font-size: 2rem;
	}

	.categories-grid {
		grid-template-columns: 1fr;
	}

	.stats-bar {
		grid-template-columns: repeat(2, 1fr);
	}

	.back-btn {
		position: static;
		margin-bottom: 20px;
		width: fit-content;
	}
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Merged styles from category_pages.php */

/* Override container styles for category pages */
.container {
	max-width: 1200px;
	margin: 50px auto;
	padding: 0 20px;
}

/* Override body padding for category pages */
body {
	padding: 20px 0;
}

/* Category pages specific breadcrumb styling */
.breadcrumb {
	background: rgba(255, 255, 255, 0.1);
	padding: 15px 20px;
	border-radius: 25px;
	margin-bottom: 30px;
	backdrop-filter: blur(10px);
}

.breadcrumb .current {
	color: white;
	font-weight: 500;
}

/* Pages grid layout */
.pages-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 25px;
	margin-bottom: 40px;
}

/* Page card styling */
.page-card {
	background: white;
	border-radius: 20px;
	padding: 30px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.1);
	transition: all 0.3s ease;
	cursor: pointer;
	position: relative;
	overflow: hidden;
}

.page-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.page-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: linear-gradient(90deg, #667eea, #764ba2);
}

.page-header {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
}

.page-icon {
	width: 60px;
	height: 60px;
	background: linear-gradient(135deg, #667eea, #764ba2);
	border-radius: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 20px;
}

.page-icon i {
	font-size: 1.5rem;
	color: white;
}

.page-title {
	font-size: 1.4rem;
	font-weight: 600;
	color: #2c3e50;
	margin-bottom: 5px;
}

.page-slug {
	font-size: 0.9rem;
	color: #7f8c8d;
	font-family: 'Courier New', monospace;
	background: #f8f9fa;
	padding: 2px 8px;
	border-radius: 4px;
}

.page-description {
	color: #5a6c7d;
	line-height: 1.6;
	margin-bottom: 20px;
	font-size: 0.95rem;
}

.page-stats {
	display: flex;
	justify-content: space-between;
	padding-top: 20px;
	border-top: 1px solid #ecf0f1;
}

.stat-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	color: #7f8c8d;
}

.stat-item .stat-number {
	font-weight: 600;
	color: #2c3e50;
}

.no-pages {
	text-align: center;
	color: white;
	padding: 60px 20px;
}

.no-pages i {
	font-size: 4rem;
	margin-bottom: 20px;
	opacity: 0.7;
}

.admin-link {
	text-align: center;
	margin-top: 40px;
}

.btn {
	display: inline-block;
	padding: 15px 30px;
	background: rgba(255, 255, 255, 0.2);
	color: white;
	text-decoration: none;
	border-radius: 25px;
	font-weight: 500;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn:hover {
	background: rgba(255, 255, 255, 0.3);
	transform: translateY(-2px);
}

/* Mobile responsiveness for pages */
@media (max-width: 768px) {
	.pages-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	
	.page-card {
		padding: 20px;
	}
	
	.page-header {
		flex-direction: column;
		text-align: center;
	}
	
	.page-icon {
		margin: 0 0 15px 0;
	}
}

/* Page card animation */
.page-card {
	animation: fadeInUp 0.6s ease-out both;
}