/* ===== Variables ===== */
:root {
  --red: #c50808;
  --red-dark: #c1121f;
  --blue: #1d4ed8;
  --blue-dark: #1e3a8a;
  --green: #22c55e;
  --orange: #f97316;
  --purple: #8b5cf6;
  --yellow: #eab308;
  --pink: #ec4899;
  --teal: #14b8a6;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-600: #64748b;
  --gray-800: #1e293b;
  --footer-bg: #0f2744;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font: 'Poppins', sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--gray-800);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 40px;
  letter-spacing: 0.5px;
  animation: fadeInUp 0.8s ease forwards;
}

.section-title.center {
  text-align: center;
}

.text-red { color: var(--red); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: var(--white);
  color: var(--blue);
  border-color: var(--blue);
}

.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
}

/* ===== Top Bar ===== */
.top-bar {
  background: var(--red);
  color: var(--white);
  font-size: 0.85rem;
  padding: 8px 0;
}

.top-bar-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 16px;
}

.top-bar-left {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.top-bar-left a {
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-left a:hover {
  opacity: 0.9;
}

.top-bar-marquee {
  overflow: hidden;
  text-align: center;
}

.marquee-track {
  display: flex;
  gap: 60px;
  animation: marquee 15s linear infinite;
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: 1px;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.33%); }
}

.top-bar-social {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.top-bar-social a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.75rem;
  transition: background 0.3s;
}

.top-bar-social a:hover {
  background: rgba(255,255,255,0.35);
}

/* ===== Header ===== */
.header {
  background: var(--white);
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 120px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.logo-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blue-dark);
  line-height: 1.2;
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--red);
  font-weight: 600;
}

.nav {
  display: flex;
  gap: 16px;
}

.nav a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-700);
  transition: all 0.3s ease;
  text-transform: none;
  letter-spacing: 0.2px;
  font-family: var(--font);
  padding: 8px 12px;
  border-radius: 6px;
  position: relative;
}

.nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav a:hover {
  color: var(--red);
  
}

.nav a:hover::before {
  width: 80%;
}

.btn-visit {
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-visit:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(197, 8, 8, 0.3);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-800);
  cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: linear-gradient(180deg, #dbeafe 0%, #eff6ff 50%, #f0f9ff 100%);
  
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cloud {
  position: absolute;
  background: var(--white);
  border-radius: 50px;
  opacity: 0.8;
}

.cloud::before,
.cloud::after {
  content: '';
  position: absolute;
  background: var(--white);
  border-radius: 50%;
}

.cloud-1 {
  width: 100px;
  height: 30px;
  top: 15%;
  left: 10%;
}

.cloud-1::before { width: 40px; height: 40px; top: -20px; left: 15px; }
.cloud-1::after { width: 50px; height: 50px; top: -25px; left: 40px; }

.cloud-2 {
  width: 80px;
  height: 25px;
  top: 25%;
  right: 15%;
}

.cloud-2::before { width: 35px; height: 35px; top: -18px; left: 10px; }
.cloud-2::after { width: 40px; height: 40px; top: -20px; left: 30px; }

.cloud-3 {
  width: 60px;
  height: 20px;
  bottom: 30%;
  left: 5%;
}

.rainbow {
  position: absolute;
  top: 5%;
  right: 20%;
  width: 200px;
  height: 100px;
  border: 8px solid transparent;
  border-top-color: #ef4444;
  border-radius: 100px 100px 0 0;
  opacity: 0.4;
}

.rainbow::before {
  content: '';
  position: absolute;
  inset: 8px 8px 0;
  border: 6px solid transparent;
  border-top-color: #f97316;
  border-radius: 100px 100px 0 0;
}

.balloon {
  position: absolute;
  top: 10%;
  right: 8%;
  font-size: 2.5rem;
  animation: float 4s ease-in-out infinite;
}

.doodle {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0.6;
}

.doodle-star { bottom: 20%; right: 25%; animation: twinkle 2s infinite; }
.doodle-plane { top: 40%; left: 3%; animation: float 5s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-tagline {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.tag-blue { color: var(--blue); }
.tag-green { color: var(--green); }
.tag-orange { color: var(--orange); }

.hero-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-logo .logo-icon {
  font-size: 2.5rem;
}

.hero-logo .logo-brand {
  font-size: 1.3rem;
}

.hero-logo .logo-sub {
  font-size: 0.8rem;
}

.admission-banner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  padding: 10px 20px;
  border-radius: 50px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.admission-badge {
  color: var(--white);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.admission-year {
  background: var(--white);
  color: var(--red);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 4px 12px;
  border-radius: 20px;
}

.hero-content h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--blue-dark);
  line-height: 1.2;
  margin-bottom: 24px;
}

.age-circles {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.age-circle {
  width: 85px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.age-icon {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s;
}

.age-circle:hover .age-icon {
  transform: scale(1.1);
}

.age-red .age-icon { background: linear-gradient(135deg, var(--red), var(--red-dark)); }
.age-green .age-icon { background: linear-gradient(135deg, var(--green), #16a34a); }
.age-blue .age-icon { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); }
.age-orange .age-icon { background: linear-gradient(135deg, var(--orange), #ea580c); }

.age-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gray-800);
}

.age-range {
  font-size: 0.65rem;
  color: var(--gray-600);
  font-weight: 600;
}

.feature-icons {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  min-width: 80px;
}

.feature-icon-small {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--white);
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  animation: pulse 2s infinite;
}

.feature-item:hover .feature-icon-small {
  transform: scale(1.2) rotate(10deg);
  animation: none;
}

.feature-item span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.2;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-slider {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.slider-track {
  display: flex;
  overflow: hidden;
 
  box-shadow: var(--shadow-lg);
}

.slide {
  min-width: 100%;
  transition: transform 0.5s ease;
}

.slide img {
  width: 100%;
  
  display: block;
}

.hero-slider .slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: rgba(255, 255, 255, 0.9);
  color: var(--gray-800);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s;
  z-index: 10;
}

.hero-slider .slider-btn:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.1);
}

.hero-slider .slider-btn.prev {
  left: 10px;
}

.hero-slider .slider-btn.next {
  right: 10px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-200);
  cursor: pointer;
  transition: all 0.3s;
}

.slider-dot.active {
  background: var(--red);
  transform: scale(1.2);
}

.hero-contact-strip {
  background: var(--footer-bg);
  padding: 16px 0;
  margin-top: 40px;
}

.hero-contact-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 0.9rem;
}

.contact-strip-item i {
  color: var(--red);
  font-size: 1.1rem;
}

/* ===== Stats ===== */
.stats {
  background: var(--white);
  padding: 50px 0;
  margin-top: -30px;
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--white);
  flex-shrink: 0;
}

.stat-red .stat-icon { background: var(--red); }
.stat-green .stat-icon { background: var(--green); }
.stat-blue .stat-icon { background: var(--blue); }
.stat-purple .stat-icon { background: var(--purple); }

.stat-info strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-800);
  line-height: 1.2;
}

.stat-info span {
  font-size: 0.85rem;
  color: var(--gray-600);
}

/* ===== Why Choose ===== */
.why-choose {
  background: var(--gray-50);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  padding: 28px 20px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
  color: var(--white);
}

.icon-red { background: var(--red); }
.icon-pink { background: var(--pink); }
.icon-green { background: var(--green); }
.icon-blue { background: var(--blue); }
.icon-orange { background: var(--orange); }
.icon-yellow { background: var(--yellow); }
.icon-teal { background: var(--teal); }
.icon-purple { background: var(--purple); }

.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-800);
}

/* ===== Programs ===== */
.programs {
  background: var(--white);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.program-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  position: relative;
  min-height: 400px;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.program-card:nth-child(1) { animation-delay: 0.1s; }
.program-card:nth-child(2) { animation-delay: 0.2s; }
.program-card:nth-child(3) { animation-delay: 0.3s; }
.program-card:nth-child(4) { animation-delay: 0.4s; }

.program-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.program-card:hover .program-icon {
  transform: rotate(360deg) scale(1.1);
}

.program-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -30px auto 16px;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.program-image {
  width: 100%;
  height: 180px;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  position: relative;
}

.program-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}

.program-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.6s ease;
}

.program-card:hover .program-image img {
  transform: scale(1.15);
  filter: brightness(1.1) saturate(1.2);
}

.program-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
  z-index: 2;
}

.program-card:hover .program-image::after {
  left: 100%;
}

.program-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -30px auto 16px;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 1.5rem;
}

.program-orange .program-icon { color: var(--orange); }
.program-green .program-icon { color: var(--green); }
.program-blue .program-icon { color: var(--blue); }
.program-purple .program-icon { color: var(--purple); }

.program-content {
  padding: 0 16px 20px;
  text-align: center;
}

.program-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--gray-800);
}

.program-content p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--gray-600);
  margin-bottom: 12px;
}

.program-age {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 16px;
  padding: 4px 12px;
  background: var(--gray-100);
  border-radius: 12px;
}

.program-link {
  display: block;
  text-align: center;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.program-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.program-link:hover::before {
  width: 300px;
  height: 300px;
}

.program-orange .program-link {
  background: var(--orange);
  color: var(--white);
}

.program-orange .program-link:hover {
  background: #ea580c;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

.program-green .program-link {
  background: var(--green);
  color: var(--white);
}

.program-green .program-link:hover {
  background: #16a34a;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4);
}

.program-blue .program-link {
  background: var(--blue);
  color: var(--white);
}

.program-blue .program-link:hover {
  background: var(--blue-dark);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.4);
}

.program-purple .program-link {
  background: var(--purple);
  color: var(--white);
}

.program-purple .program-link:hover {
  background: #7c3aed;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

/* ===== Activities ===== */
.activities {
  background: var(--gray-50);
}

.activities-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 32px;
}

.activity-item {
  text-align: center;
  width: 100px;
}

.activity-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 1.4rem;
  color: var(--white);
  transition: transform 0.3s;
}

.activity-item:hover .activity-icon {
  transform: scale(1.1);
}

.activity-item span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-800);
  display: block;
}

.bg-red { background: var(--red); }
.bg-orange { background: var(--orange); }
.bg-yellow { background: var(--yellow); }
.bg-green { background: var(--green); }
.bg-teal { background: var(--teal); }
.bg-blue { background: var(--blue); }
.bg-indigo { background: #6366f1; }
.bg-purple { background: var(--purple); }
.bg-pink { background: var(--pink); }
.bg-coral { background: #f43f5e; }

/* ===== Facilities ===== */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.facility-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.3s;
}

.facility-card:hover {
  transform: scale(1.03);
}

.facility-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.facility-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--white);
  padding: 30px 16px 14px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ===== Gallery ===== */
.gallery {
  background: var(--gray-50);
}

.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.filter-btn {
  padding: 8px 20px;
  border: 2px solid var(--gray-200);
  background: var(--white);
  border-radius: 50px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--gray-800);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gallery-item.hidden {
  display: none;
}

.gallery-more {
  text-align: center;
  margin-top: 32px;
}

/* ===== Testimonials ===== */
.testimonials {
  background: var(--white);
}

.testimonial-slider {
  display: flex;
  align-items: center;
  gap: 20px;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  background: var(--white);
  color: var(--blue);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.3s;
  font-size: 0.9rem;
}

.slider-btn:hover {
  background: var(--blue);
  color: var(--white);
}

.testimonial-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  flex: 1;
  overflow: hidden;
}

.testimonial-card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
}

.stars {
  color: #fbbf24;
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.testimonial-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 20px;
  font-style: italic;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author strong {
  display: block;
  font-size: 0.95rem;
  color: var(--gray-800);
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--gray-600);
}

/* ===== Admission ===== */
.admission {
  background: linear-gradient(135deg, #fef3f2 0%, #f0fdf4 50%, #eff6ff 100%);
  position: relative;
  overflow: hidden;
}

.admission::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.admission::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.admission-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.admission-step {
  background: var(--white);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.admission-step:nth-child(1) { animation-delay: 0.1s; }
.admission-step:nth-child(2) { animation-delay: 0.2s; }
.admission-step:nth-child(3) { animation-delay: 0.3s; }
.admission-step:nth-child(4) { animation-delay: 0.4s; }
.admission-step:nth-child(5) { animation-delay: 0.5s; }

.admission-step:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.admission-step-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--white);
  margin: 0 auto 16px;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
}

.admission-step:hover .admission-step-icon {
  transform: rotate(360deg) scale(1.1);
}

.admission-step-number {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-400);
  opacity: 0.5;
}

.admission-step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.admission-step p {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--gray-600);
  margin-bottom: 0;
}

.admission-red .admission-step-icon { background: linear-gradient(135deg, var(--red), var(--red-dark)); }
.admission-green .admission-step-icon { background: linear-gradient(135deg, var(--green), #16a34a); }
.admission-blue .admission-step-icon { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); }
.admission-purple .admission-step-icon { background: linear-gradient(135deg, var(--purple), #7c3aed); }
.admission-orange .admission-step-icon { background: linear-gradient(135deg, var(--orange), #ea580c); }

/* ===== FAQ & Contact ===== */
.faq-contact {
  background: var(--white);
}

.faq-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
}

.faq-item {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  margin-bottom: 16px;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }

.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.faq-item.active {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.faq-question {
  width: 100%;
  padding: 18px 20px;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-800);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: background 0.3s;
}

.faq-icon {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--white);
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.faq-item:hover .faq-icon {
  transform: rotate(360deg) scale(1.1);
}

.faq-text {
  flex-grow: 1;
  font-weight: 600;
}

.faq-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  color: var(--gray-600);
  transition: all 0.3s;
  flex-shrink: 0;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background: var(--gray-50);
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 20px 20px;
}

.faq-answer p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--gray-600);
  padding: 16px 0 0;
}

.faq-red .faq-icon { background: linear-gradient(135deg, var(--red), var(--red-dark)); }
.faq-green .faq-icon { background: linear-gradient(135deg, var(--green), #16a34a); }
.faq-blue .faq-icon { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); }
.faq-orange .faq-icon { background: linear-gradient(135deg, var(--orange), #ea580c); }
.faq-purple .faq-icon { background: linear-gradient(135deg, var(--purple), #7c3aed); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-map {
  grid-column: 1 / -1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-top: 24px;
}

.contact-map iframe {
  width: 100%;
  height: 300px;
  border: 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  gap: 14px;
}

.contact-item i {
  color: var(--red);
  font-size: 1.1rem;
  margin-top: 4px;
  width: 20px;
}

.contact-item strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.contact-item p {
  font-size: 0.85rem;
  color: var(--gray-600);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.9rem;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.contact-map {
  grid-column: 1 / -1;
  border-radius: var(--radius);
  overflow: hidden;
  height: 200px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== Footer ===== */
.footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.85);
  padding-top: 60px;

  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-logo .logo-brand {
  color: var(--white);
}

.footer-tagline {
  margin: 16px 0;
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.8;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background 0.3s;
}

.footer-social a:hover {
  background: var(--red);
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul a {
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer-col ul a:hover {
  opacity: 1;
  color: var(--white);
}

.footer-col p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 12px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-form input {
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  font-family: var(--font);
}

.newsletter-form .btn {
  width: 100%;
  justify-content: center;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ===== WhatsApp ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.75rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  z-index: 999;
  transition: transform 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .features-grid,
  .programs-grid,
  .facilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-track {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .top-bar-left,
  .top-bar-social {
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .btn-visit {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-logo {
    justify-content: center;
  }

  .admission-banner {
    justify-content: center;
    width: 100%;
  }

  .age-circles {
    justify-content: center;
  }

  .feature-icons {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-contact-inner {
    flex-direction: column;
    text-align: center;
  }

  .features-grid,
  .programs-grid,
  .facilities-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .admission-steps {
    flex-direction: column;
    align-items: center;
  }

  .step-connector {
    width: 2px;
    height: 30px;
    border-top: none;
    border-left: 2px dashed var(--gray-200);
    margin: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .section-title {
    font-size: 1.5rem;
  }
}


/* Container Alignment */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.section-title.center {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* Flexbox Parent Layout */
.admission-steps {
  display: flex;
  flex-wrap: wrap;             /* Allows items to wrap onto the next line on smaller screens */
  justify-content: center;     /* Centers items horizontally */
  gap: 1.5rem;                 /* Adds equal spacing between items */
}

/* Individual Card Item */
.admission-step {
  display: flex;
  flex-direction: column;      /* Stacks icon, number, title, and text vertically */
  align-items: center;         /* Centers content horizontally inside card */
  text-align: center;
  padding: 1.5rem;
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);

  /* Responsive Flex sizing:
     - flex-grow: 1 (fills available space)
     - flex-shrink: 1 (shrinks on smaller screens)
     - flex-basis: 200px (ideal starting width per card) */
  flex: 1 1 200px;
  max-width: 280px;            /* Prevents single cards from expanding too wide on desktop */
  box-sizing: border-box;
}

/* Card Elements Styling */
.admission-step-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.admission-step-number {
  font-weight: bold;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

.admission-step h3 {
  margin: 0.5rem 0;
  font-size: 1.2rem;
}

.admission-step p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
  margin: 0;
}

/* Mobile Fine-tuning (screens under 576px) */
@media (max-width: 576px) {
  .admission-step {
    flex: 1 1 100%;            /* Cards take 100% width on small screens */
    max-width: 100%;
  }
}