/* Modern CSS - Playful Education Design (CSS Only Update) */
:root {
	/* New Vibrant & Professional Palette */
	--primary-color: #4A90E2;    /* Friendly Blue */
	--secondary-color: #6BCB77;  /* Fresh Mint */
	--accent-color: #FFD93D;     /* Marker Yellow */
	--extra-color: #FF6B6B;      /* Soft Coral */
	--bg-color: #f5faff;         /* Warmer Soft Blue */
	--text-color: #2c3e50;       /* Professional Deep Slate */
	--white: #ffffff;
	
	/* Typography */
	--font-heading: 'Poppins', sans-serif;
	--font-body: 'Open Sans', sans-serif;
	--font-accent: 'Patrick Hand', cursive;
	
	/* Spacing & Borders */
	--radius-lg: 20px;
	--radius-md: 16px;
	--radius-sm: 8px;
	--shadow-soft: 0 10px 30px rgba(74, 144, 226, 0.08);
	--shadow-hover: 0 15px 35px rgba(74, 144, 226, 0.15);
}

/* Reset & Normalize */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: var(--font-body);
	background-color: var(--bg-color);
	/* Smooth gradient background */
	background-image: linear-gradient(135deg, #eef7ff 0%, #f2fff5 100%);
	background-attachment: fixed;
	color: var(--text-color);
	line-height: 1.7;
}

a {
	color: var(--primary-color);
	text-decoration: none;
	transition: all 0.3s ease;
}

a:hover {
	color: var(--secondary-color);
}

p a,
main ul a,
main ol a {
	color: var(--primary-color);
	text-decoration: none;
	font-weight: 600;
	border-bottom: 2px solid rgba(74, 144, 226, 0.2);
}

p a:hover {
	border-bottom-color: var(--secondary-color);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 1.5rem auto;
	border-radius: var(--radius-sm);
}

header img, .header-social img, .header-brand img {
	margin: 0;
}

/* Typography */
h1, h2, h3, h4 {
	font-family: var(--font-heading);
	color: var(--primary-color);
	margin-bottom: 1rem;
}

h1 {
	font-size: 2.5rem;
	font-weight: 700;
	background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	display: inline-block;
}

h2 {
	font-size: 1.8rem;
	margin-top: 2.5rem;
	padding-bottom: 0.5rem;
	display: inline-block;
	position: relative;
	z-index: 1;
}

/* Marker Underline Effect */
h2::after {
	content: '';
	position: absolute;
	bottom: 8px;
	left: -5px;
	width: 110%;
	height: 12px;
	background: var(--accent-color);
	opacity: 0.4;
	border-radius: 10px;
	z-index: -1;
}

h3 {
	font-size: 1.5rem;
	color: var(--primary-color);
}

h4 {
	font-size: 1.2rem;
	color: var(--secondary-color);
	margin-top: 1.5rem;
}

/* Header - Layout Kept Original */
header {
	background-color: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(10px);
	padding: 1.5rem 2rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	border-bottom: 1px solid #eee;
	z-index: 9999; /* Extremely high to stay on top */
}

.header-social {
	position: absolute;
	top: 1rem;
	right: 1.5rem;
	display: flex;
	gap: 1rem;
}

.header-social img {
	width: 28px;
	height: 28px;
	transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header-social a:hover img {
	transform: scale(1.2) rotate(10deg);
}

.header-brand {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
	text-align: left;
}

.header-brand img {
	border-radius: 50%;
	width: 90px;
	height: 90px;
	object-fit: cover;
	border: 4px solid var(--white);
	box-shadow: var(--shadow-soft);
}

.site-title h1 {
	font-size: 1.8rem;
	margin-bottom: 0;
	background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	font-weight: 700;
}

.site-title h2 {
	font-family: var(--font-accent);
	font-size: 1.3rem;
	color: var(--text-color);
	margin: 0;
	padding: 0;
}
.site-title h2::after { display: none; }

/* Navigation */
nav {
	margin-top: 1rem;
}

.main-menu {
	list-style: none;
	display: flex;
	gap: 2rem;
	flex-wrap: wrap;
	justify-content: center;
}

.main-menu > li {
	position: relative;
}

.main-menu > li > a {
	font-weight: 600;
	color: var(--text-color);
	padding: 0.5rem 0;
	position: relative;
	transition: color 0.3s ease;
}

.main-menu > li > a::after {
	content: '';
	position: absolute;
	width: 0;
	height: 3px;
	bottom: -4px;
	left: 0;
	background-color: var(--secondary-color);
	border-radius: 10px;
	transition: width 0.3s ease;
}

.main-menu > li > a:hover {
	color: var(--primary-color);
}

.main-menu > li > a:hover::after {
	width: 100%;
}

/* Dropdown */
.dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	background-color: var(--white);
	list-style: none;
	padding: 0.5rem;
	margin: 0;
	box-shadow: var(--shadow-hover);
	min-width: 240px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	z-index: 10000;
	border-radius: var(--radius-sm);
}

.main-menu > li:hover .dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(5px);
}

.dropdown li a {
	display: block;
	padding: 0.7rem 1rem;
	color: var(--text-color);
	border-radius: var(--radius-sm);
	border: none;
	font-weight: 500;
}

.dropdown li a:hover {
	background-color: #f0f7ff;
	color: var(--primary-color);
	padding-left: 1.2rem;
}

.dropdown li {
	position: relative;
}

.has-submenu>a {
	position: relative;
	padding-right: 2rem;
}

.has-submenu>a::after {
	content: '>';
	position: absolute;
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
	font-weight: bold;
}

.sub-dropdown {
	position: absolute;
	top: 0;
	left: 100%;
	background-color: var(--white);
	list-style: none;
	padding: 0.5rem;
	margin: 0;
	box-shadow: var(--shadow-hover);
	min-width: 200px;
	opacity: 0;
	visibility: hidden;
	transform: translateX(10px);
	transition: all 0.3s ease;
	z-index: 10001;
	border-radius: var(--radius-sm);
}

.dropdown li:hover>.sub-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
}

/* Breadcrumbs */
.breadcrumbs {
	padding: 1.5rem 2rem;
	font-size: 0.9rem;
	color: #7f8c8d;
	max-width: 1000px;
	margin: 0 auto;
}

.breadcrumbs a {
	color: var(--primary-color);
	font-weight: 600;
}

/* Main Container */
.container {
	max-width: 1000px;
	margin: 0 auto 4rem;
	padding: 3rem;
	background-color: var(--white);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-soft);
	border: 1px solid rgba(0,0,0,0.03);
}

/* Gallery */
.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Keep 1fr for responsiveness */
	gap: 2rem;
	margin-top: 2rem;
	justify-content: center; /* Centers the items if they don't fill the row */
	text-align: center;
}

.gallery img {
	margin: 0 auto; /* Centers images within their grid cells */
	border-radius: var(--radius-md);
	height: 250px;
	object-fit: cover;
	transition: all 0.4s ease;
	box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.gallery img:hover {
	transform: scale(1.03) translateY(-5px);
	box-shadow: var(--shadow-hover);
}

.gallerydetrois {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	margin-top: 2rem;
	text-align: center;
}

.gallerydetrois img {
	width: 100%;
	height: 250px;
	object-fit: cover;
	border-radius: var(--radius-md);
	transition: all 0.4s ease;
	box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.gallerydetrois img:hover {
	transform: scale(1.03) translateY(-5px);
	box-shadow: var(--shadow-hover);
}

/* Categories Grid */
.categories-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 2rem;
	margin: 4rem 0;
}

.category-card {
	background-color: #f9fbfe;
	border-radius: var(--radius-md);
	padding: 2.5rem 1.5rem;
	text-align: center;
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	border: 1px solid rgba(74, 144, 226, 0.05);
}

.category-card:hover {
	transform: translateY(-10px);
	box-shadow: var(--shadow-hover);
	background-color: var(--white);
	border-color: var(--primary-color);
}

.category-card img {
	height: 64px;
	width: auto;
	margin: 0 auto 1.5rem;
	transition: transform 0.3s ease;
}

.category-card:hover img {
	transform: scale(1.15) rotate(-5deg);
}

.category-card span {
	font-weight: 700;
	color: var(--text-color);
	font-size: 1.1rem;
	display: block;
}

/* Download Buttons */
.download-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.8rem;
	background-color: var(--primary-color);
	color: var(--white) !important;
	padding: 0.9rem 1.8rem;
	border-radius: 50px;
	font-weight: 700;
	box-shadow: 0 5px 15px rgba(74, 144, 226, 0.2);
	border: none;
	margin: 0.5rem 0.5rem 0.5rem 0;
	transition: all 0.3s ease;
}

.download-btn:hover {
	background-color: var(--secondary-color);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(107, 203, 119, 0.3);
}

/* Lists */
main ul, main ol {
	margin-bottom: 2rem;
	padding-left: 0;
	list-style: none; /* Remove default bullets */
}

main li {
	margin-bottom: 1rem;
	padding-left: 2rem;
	position: relative;
	transition: all 0.3s ease;
}

main ul li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.7rem;
	width: 10px;
	height: 10px;
	background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
	border-radius: 50%;
	box-shadow: 0 2px 5px rgba(74, 144, 226, 0.3);
}

main li:hover {
	transform: translateX(8px);
	color: var(--primary-color);
}

/* Tables */
.styled-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin: 3rem 0;
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: var(--shadow-soft);
}

.styled-table thead tr {
	background-color: var(--primary-color);
	color: var(--white);
}

.styled-table th, .styled-table td {
	padding: 1.2rem;
	border-bottom: 1px solid #f0f0f0;
}

.styled-table tbody tr:hover {
	background-color: rgba(74, 144, 226, 0.03);
}

/* Footer */
footer {
	text-align: center;
	padding: 4rem 2rem;
	color: #95a5a6;
	font-size: 0.9rem;
}


/* Video Responsive */
.video-responsive {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 ratio */
	height: 0;
	overflow: hidden;
	margin: 2rem 0;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-soft);
}

.video-responsive iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* Mobile Responsive */
@media (max-width: 768px) {
	header {
		padding: 1rem;
	}
	
	.header-social {
		position: static;
		margin-bottom: 1rem;
		justify-content: center;
	}
	
	.container {
		padding: 1.5rem;
		margin: 1rem;
	}
	
	.header-brand {
		flex-direction: column;
		text-align: center;
		gap: 1rem;
	}
	
	.main-menu {
		gap: 1rem;
	}

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