@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700&family=Nunito:wght@400;600;700&display=swap");

:root {
  --primary-color: #f15c3f;
  --secondary-color: #ffb400;
  --text-color: #555555;
  --heading-color: #1b1b1b;
  --bg-light: #fdf8f4;
  --white: #ffffff;
  --container-width: 1200px;
}

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

body {
  font-family: "Nunito", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--white);
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

h1, h2, h3, h4, .badge-number, .subheading {
  font-family: "Baloo 2", cursive;
  color: var(--heading-color);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}

.section-padding {
  padding: 80px 0;
}

.subheading {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 30px;
  line-height: 1.2;
}

.section-title span {
  color: var(--primary-color);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background: #d84a2f;
}

.btn-secondary {
  background: var(--secondary-color);
  color: var(--white);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #fdfbe4 0%, #fffef0 100%);
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  display: flex;
  align-items: center;
  padding: 80px 0 120px;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  position: relative; /* Only active slide takes space */
}

/* Individual animations for text and image */
.slide .hero-text-side {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease-out;
}

.slide .hero-image-side {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease-out;
}

.slide.active .hero-text-side {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.3s;
  animation: slideInText 0.8s ease-out forwards;
}

.slide.active .hero-image-side {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.1s;
  animation: fadeInBoy 1s ease-out forwards;
}

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

@keyframes fadeInBoy {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Adjust directions for swapped slide */
.slide-swapped .hero-text-side {
  transform: translateX(-50px);
}

.slide-swapped .hero-image-side {
  transform: translateX(50px);
}

.slide-swapped.active .hero-text-side {
  transform: translateX(0);
}

.slide-swapped.active .hero-image-side {
  transform: translateX(0);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

/* Swapped slide layout */
.slide-swapped .hero-grid {
  grid-template-columns: 1fr 1fr;
}

.slide-swapped .hero-text-side {
  order: 2;
}

.slide-swapped .hero-image-side {
  order: 1;
}

/* Ensure doodles follow their parents */
.hero-text-side, .hero-image-side {
  position: relative;
}

.hero-image-side {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-container {
  position: relative;
  max-width: 500px;
}

.boy-image {
  width: 100%;
  height: auto;
  z-index: 2;
  position: relative;
}

.hero-text-side {
  position: relative;
  z-index: 3;
}

.hero-title {
  font-size: 5.5rem;
  line-height: 0.95;
  color: #1b1b1b;
  margin-bottom: 30px;
  font-weight: 800;
  letter-spacing: -2px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #777;
  margin-bottom: 45px;
  max-width: 480px;
  line-height: 1.5;
}

.hero-desc {
  font-size: 1rem;
  color: #666;
  margin-bottom: 20px;
  max-width: 520px;
  line-height: 1.7;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 10px;
  max-width: 520px;
}

.hero-list li {
  position: relative;
  padding-left: 24px;
  color: #555;
  font-weight: 600;
}

.hero-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f15c3f;
  box-shadow: 0 0 0 4px rgba(241, 92, 63, 0.15);
}

.hero-highlights {
  margin-bottom: 25px;
}

.hero-kicker {
  font-weight: 800;
  color: #1b1b1b;
  margin-bottom: 10px;
  font-size: 1rem;
}

.hero-list-compact li {
  font-weight: 600;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
}

.btn-admission {
  background: #f15c3f;
  color: white;
  padding: 18px 35px;
  border-radius: 12px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 20px rgba(241, 92, 63, 0.2);
}

.btn-admission:hover {
  background: #d84a2f;
  transform: translateY(-3px);
}

.video-action {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
}

.play-icon-wrapper {
  width: 55px;
  height: 55px;
  background: #7a6cf0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.play-icon-wrapper::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px solid #7a6cf0;
  border-radius: 50%;
  animation: pulse-purple 2s infinite;
}

@keyframes pulse-purple {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.play-icon {
  color: white;
  font-size: 1rem;
}

.play-text {
  font-weight: 700;
  color: #555;
  font-size: 1.1rem;
}

/* Doodles */
.doodle {
  position: absolute;
  z-index: 1;
}

.car-doodle {
  top: 25%;
  left: -15%;
  font-size: 3rem;
  color: #3f7af1;
  transform: rotate(-15deg);
}

.crown-doodle {
  top: 15%;
  right: 15%;
  font-size: 3.5rem;
  color: #ffde59;
  transform: rotate(15deg);
  z-index: 1;
}

.palm-doodle {
  bottom: -5%;
  left: 15%;
  font-size: 4rem;
  color: #f18c3f;
  transform: rotate(-10deg);
}

.balloon-doodle {
  top: -20px;
  right: -100px;
  font-size: 6rem;
  color: #ffde59;
  filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
}

.megaphone-doodle {
  position: absolute;
  bottom: -15px;
  left: -45px;
  font-size: 3rem;
  color: #f15c3f;
  transform: rotate(-20deg);
}

/* Floating Ducks */
.duck-float-section {
  position: relative;
}

.duck-float {
  position: absolute;
  width: 90px;
  opacity: 0.28;
  pointer-events: none;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.08));
  animation: duck-drift 12s ease-in-out infinite;
  z-index: 0;
}

.df-hero-1 { top: 8%; left: 6%; --duck-rotate: -8deg; animation-delay: 0s; }
.df-hero-2 { bottom: 12%; right: 10%; width: 110px; --duck-rotate: 10deg; animation-delay: 1.5s; }

.df-about-1 { top: 18%; right: 6%; width: 80px; --duck-rotate: 6deg; animation-delay: 0.8s; }
.df-about-2 { bottom: 12%; left: 10%; width: 100px; --duck-rotate: -10deg; animation-delay: 2.1s; }

.df-programs-1 { top: 12%; left: 4%; width: 75px; --duck-rotate: -6deg; animation-delay: 0.5s; }
.df-programs-2 { bottom: 16%; right: 6%; width: 95px; --duck-rotate: 8deg; animation-delay: 1.9s; }

.df-stats-1 { top: 8%; right: 8%; width: 85px; --duck-rotate: -5deg; animation-delay: 0.3s; }
.df-stats-2 { bottom: 14%; left: 8%; width: 105px; --duck-rotate: 7deg; animation-delay: 1.6s; }

.df-testimonials-1 { top: 6%; left: 12%; width: 80px; --duck-rotate: 5deg; animation-delay: 0.9s; }
.df-testimonials-2 { bottom: 10%; right: 12%; width: 95px; --duck-rotate: -7deg; animation-delay: 2.4s; }

.df-contact-1 { top: 10%; right: 8%; width: 85px; --duck-rotate: -6deg; animation-delay: 0.6s; }
.df-contact-2 { bottom: 14%; left: 6%; width: 100px; --duck-rotate: 8deg; animation-delay: 2.2s; }

@keyframes duck-drift {
  0% { transform: translateY(0) translateX(0) rotate(var(--duck-rotate, -4deg)); }
  50% { transform: translateY(-12px) translateX(10px) rotate(calc(var(--duck-rotate, -4deg) + 6deg)); }
  100% { transform: translateY(0) translateX(0) rotate(var(--duck-rotate, -4deg)); }
}

/* Admission Badge */
.admission-badge {
  position: absolute;
  bottom: 10%;
  right: -5%;
  z-index: 10; /* Brought to front */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge-row {
  padding: 8px 25px;
  font-weight: 900;
  font-size: 1.4rem;
  color: white;
  border-radius: 8px;
  margin-bottom: -4px;
  text-transform: uppercase;
}

.badge-row.orange {
  background: #f15c3f;
  font-size: 1rem;
  transform: rotate(2deg) translateX(-10px);
}

.badge-row.purple {
  background: #7a6cf0;
  padding: 10px 35px;
  z-index: 2;
  transform: rotate(-3deg);
  font-size: 1.6rem;
}

.badge-row.dark-blue {
  background: #002271;
  padding: 10px 45px;
  font-size: 2.2rem;
  transform: rotate(2deg) translateY(-5px);
}

/* Wave */
.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 10;
}

.hero-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 100px;
}

.hero-wave path {
  fill: #ffffff;
}

/* Responsive Hero */
@media (max-width: 1200px) {
  .hero-title { font-size: 4.5rem; }
  .balloon-doodle { right: -50px; font-size: 5rem; }
}

@media (max-width: 992px) {
  .hero { min-height: auto; padding-top: 20px; }
  .slide { position: relative; opacity: 1; visibility: visible; display: block; padding: 40px 0 100px; }
  .slide:not(.active) { display: none; }
  .hero-grid {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    text-align: center;
    gap: 40px;
  }
  .slide-swapped .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-text-side,
  .hero-image-side {
    width: 100%;
    justify-self: center;
  }
  .hero-image-side { order: 2; }
  .hero-text-side { order: 1; display: flex; flex-direction: column; align-items: center; }
  .slide-swapped .hero-image-side { order: 2; }
  .slide-swapped .hero-text-side { order: 1; }
  .hero-title { font-size: 3.5rem; letter-spacing: -1px; margin-bottom: 20px; }
  .hero-subtitle { font-size: 1.05rem; margin-bottom: 30px; }
  .hero-actions { justify-content: center; flex-wrap: wrap; gap: 20px; }
  .admission-badge { right: 0; bottom: 5%; transform: scale(0.8); }
  .doodle { display: none; } /* Hide clutter on mobile/tablet */
  .hero-image-container { max-width: 400px; }
  
  /* Reset animations for mobile to avoid layout shifts */
  .slide .hero-text-side, .slide .hero-image-side { 
    opacity: 1; 
    transform: none; 
  }
}

@media (max-width: 576px) {
  .hero-title { font-size: 2.8rem; line-height: 1; }
  .btn-admission { padding: 15px 25px; font-size: 1rem; }
  .play-icon-wrapper { width: 45px; height: 45px; }
  .play-text { font-size: 0.95rem; }
  .hero-image-container { max-width: 300px; }
  .admission-badge { transform: scale(0.7); right: -10px; }
}

/* About Section */
.about {
  background: var(--white);
  padding: 100px 0;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-side {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 455.626 / 490.535;
}

.about-blob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  transform-origin: center;
  width: 90%;
  height: 90%;
  background: #ffb400;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  z-index: 1;
  animation: aboutBlobSpin 18s linear infinite;
}

@keyframes aboutBlobSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .about-blob {
    animation: none;
  }
}

.child-image {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
}

.experience-badge {
  position: absolute;
  bottom: 20%;
  right: -20px;
  background: #002271;
  color: white;
  padding: 25px;
  border-radius: 30px 30px 50px 30px;
  text-align: center;
  z-index: 3;
  box-shadow: 0 10px 30px rgba(0, 34, 113, 0.3);
  width: 130px;
}

.exp-number {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  font-family: "Baloo 2", cursive;
}

.exp-text {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 5px;
}

/* About Text Side */
.about-text-side {
  position: relative;
}

.about-badge {
  background: #7a6cf0;
  color: white;
  padding: 8px 25px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 20px;
}

.about-title {
  font-size: 3rem;
  line-height: 1.2;
  color: #1b1b1b;
  margin-bottom: 25px;
  font-weight: 800;
  font-family: "Baloo 2", cursive;
}

.about-title .underline {
  position: relative;
  color: inherit;
}

.about-title .underline::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background: #f15c3f;
  z-index: -1;
  border-radius: 10px;
  opacity: 0.6;
}

.about-desc {
  color: #6b6b6b;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 35px;
}

.features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 30px;
  margin-bottom: 40px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-icon {
  color: #7a6cf0;
  font-size: 1.2rem;
}

.feature-name {
  font-weight: 700;
  color: #1b1b1b;
  font-size: 1rem;
}

/* About Doodles */
.sun-doodle {
  left: -60px;
  top: 40%;
  font-size: 3rem;
  color: #ffde59;
}

.bulb-doodle {
  top: -20px;
  right: 10%;
  font-size: 3rem;
  color: #1b1b1b;
  transform: rotate(15deg);
}

.star-doodle-top {
  top: -80px;
  right: 10%;
  font-size: 2.5rem;
  color: #ffde59;
}

.heart-doodle {
  right: -50px;
  top: 40%;
  font-size: 3rem;
  color: #f15c3f;
  transform: rotate(-15deg);
}

.bolt-doodle {
  bottom: -40px;
  right: 20%;
  font-size: 3.5rem;
  color: #ffde59;
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }
  
  .about-image-side {
    order: 2;
  }
  
  .about-text-side {
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .about-title {
    font-size: 2.5rem;
  }
  
  .features-list {
    text-align: left;
    width: 100%;
    max-width: 400px;
  }
  
  .about-image-wrapper {
    max-width: 400px;
  }
  
  .experience-badge {
    transform: scale(0.8);
    right: -10px;
  }
  
  .doodle {
    display: none;
  }
}

/* Programs Section */
.programs {
  padding: 100px 0;
}

/* Programs Section Refined */
.programs-slider-outer {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}

.programs-slider-container {
  overflow: hidden;
  width: 100%;
}

.programs-grid {
  display: flex; /* Changed from grid to flex for slider */
  gap: 25px;
  width: 100%;
  transition: transform 0.5s ease-in-out;
}

.program-card {
  flex: 0 0 calc(25% - 19px); /* 4 cards view */
  position: relative;
  padding: 60px 30px;
  text-align: center;
  transition: all 0.3s ease;
  overflow: visible; /* Let blobs be visible */
  min-height: 550px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.program-blob-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.program-blob-svg svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.05));
}

.card-green .program-blob-svg svg path { fill: #f2f9e1; }
.card-pink .program-blob-svg svg path { fill: #fff1f3; }
.card-purple .program-blob-svg svg path { fill: #f0f2ff; }
.card-cyan .program-blob-svg svg path { fill: #e6fdfa; }

.program-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.program-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.svg-icon {
  width: 80%;
  height: 80%;
}

.program-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.program-age {
  font-size: 1rem;
  color: #777;
  margin-bottom: 20px;
}

.program-text {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 30px;
}

@media (max-width: 1200px) {
  .program-card { flex: 0 0 calc(33.333% - 17px); }
}

@media (max-width: 992px) {
  .program-card { flex: 0 0 calc(50% - 13px); }
}

@media (max-width: 576px) {
  .program-card { flex: 0 0 100%; }
}

.learn-more {
  font-weight: 700;
  color: #f15c3f;
  text-decoration: none;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.learn-more:hover {
  gap: 12px;
}

.slider-btn {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: #7a6cf0;
  color: white;
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.slider-btn:hover {
  background: #5d4ed1;
  transform: scale(1.1);
}

@media (max-width: 1200px) {
  .slider-btn {
    display: flex;
  }
}

@media (max-width: 768px) {
  .programs-slider-wrapper {
    flex-direction: column;
  }
}

/* Stats & Session Section */
.stats-session-section {
  position: relative;
  background: var(--white);
}

.stats-top-part {
  background: #7166f0;
  color: var(--white);
  padding: 100px 0 180px;
  position: relative;
  border-radius: 0 0 50px 50px / 0 0 20px 20px;
  overflow: hidden;
}

/* Wavy Top Edge for Stats Section */
.stats-top-part::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath d='M0,0 C300,80 900,80 1200,0 L1200,120 L0,120 Z' fill='%23ffffff'/%3E%3C/svg%3E");
  background-size: cover;
  transform: rotate(180deg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  text-align: center;
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

.stat-item {
  position: relative;
  padding: 20px;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 20%;
  height: 60%;
  width: 1px;
  border-right: 2px dotted rgba(255,255,255,0.3);
}

.stat-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.svg-stat {
  width: 100%;
  height: 100%;
}

.stat-icon i {
  font-size: 2rem;
  line-height: 1;
  display: inline-block;
}

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

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

/* Session Times Card */
.session-times-container {
  margin-top: -120px;
  position: relative;
  z-index: 10;
  padding-bottom: 80px;
}

.session-times-card {
  background: #ffeb3b;
  border-radius: 40px;
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr auto 1.2fr;
  align-items: center;
  gap: 60px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.session-info {
  text-align: left;
}

.session-info .badge {
  background: #7166f0;
  color: var(--white);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 20px;
}

.session-info h2 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 20px;
  line-height: 1.2;
}

.session-info p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.6;
}

.session-divider {
  width: 1px;
  height: 100%;
  border-right: 2px dotted #1a1a1a;
  opacity: 0.2;
}

.session-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.session-row {
  background: var(--white);
  padding: 15px 30px;
  border-radius: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.session-row .label {
  font-weight: 700;
  color: #1a1a1a;
  font-size: 1.1rem;
}

.session-row .time {
  font-weight: 700;
  color: #1a1a1a;
  font-size: 1.1rem;
}

@media (max-width: 992px) {
  .session-times-card {
    grid-template-columns: 1fr;
    padding: 40px;
    gap: 30px;
    text-align: center;
  }
  .session-info {
    text-align: center;
  }
  .session-divider {
    width: 100%;
    height: 1px;
    border-right: none;
    border-bottom: 2px dotted #1a1a1a;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat-item:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-item::after {
    display: none;
  }
  .session-row {
    flex-direction: column;
    gap: 5px;
    padding: 15px;
  }
}

/* Logos Grid */
.logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.logos-grid img {
  max-width: 150px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s;
}

.logos-grid img:hover {
  filter: grayscale(0);
  opacity: 1;
}

.logos-grid.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

/* Testimonials */
.section-title {
  font-size: 3rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 40px;
}

.section-title .highlight {
  position: relative;
  display: inline-block;
}

.section-title .highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg width='318' height='12' viewBox='0 0 318 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 10.5C50 1.5 100 1.5 150 5.5C200 9.5 250 10.5 316.5 1.5' stroke='%23FF7C5B' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  z-index: -1;
}

.testimonials {
  background: var(--bg-light);
}

.testimonial-slider-container {
  padding: 50px 0;
  position: relative;
  display: block;
  max-width: var(--container-width);
  margin: 0 auto;
}

.testimonial-slider-viewport {
  width: 100%;
  padding: 0 70px;
  overflow: hidden;
}

.testimonial-swiper {
  display: flex;
  gap: 25px;
  padding: 20px 0 60px !important;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
  align-items: stretch;
}

.testimonial-card {
  background: var(--white);
  padding: 40px;
  text-align: left;
  border: 3px solid #555891;
  border-radius: 40px 100px 40px 100px / 100px 40px 100px 40px;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  margin: 0;
  flex: 0 0 auto;
}

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

.testimonial-card .stars {
  color: #ff7c5b;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.testimonial-card p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #4a4a4a;
  font-weight: 500;
  margin-bottom: 30px;
  flex-grow: 1;
}

.testimonial-card .dashed-line {
  border-top: 2px dashed #ff7c5b;
  margin-top: auto;
  margin-bottom: 20px;
  opacity: 0.5;
}

.author-info h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 5px;
}

.author-info span {
  font-size: 0.9rem;
  color: #666;
}

.quote-icon {
  position: absolute;
  bottom: 20px;
  right: 30px;
  font-size: 3rem;
  color: #7166f0;
  opacity: 0.8;
}

/* Testimonial Slider Buttons */
.testimonial-btn {
  width: 50px;
  height: 50px;
  background: #7166f0;
  border-radius: 50%;
  color: var(--white);
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  z-index: 2;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.testimonial-btn:hover {
  background: #5d4ed1;
  transform: scale(1.05);
}

  @media (max-width: 768px) {
    .testimonial-slider-container {
      padding: 30px 10px;
    }
    .testimonial-card {
      padding: 30px 20px;
      border-radius: 30px 60px; /* Simplified for mobile */
    }
    .testimonial-btn {
      display: flex;
      width: 40px;
      height: 40px;
      background: rgba(113, 102, 240, 0.9);
    }
    .testimonial-slider-viewport {
      padding: 0 45px; /* Leave space for buttons */
      width: 100%;
    }
    .testimonial-swiper {
      /* Remove justify-content: center to avoid interfering with JS sliding */
    }
    .quote-icon {
      font-size: 2rem;
      bottom: 15px;
      right: 20px;
    }
  }

.testimonial-prev {
  left: 0;
}

.testimonial-next {
  right: 0;
}

/* Video Tour */
.video-container {
  position: relative;
  background: #fff;
  padding: 60px;
  border-radius: 50px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.05);
}

.video-doodle {
  position: absolute;
  font-size: 2.5rem;
  color: #ffeb3b;
  opacity: 0.6;
  z-index: 1;
}

.video-sun { top: -20px; right: -20px; color: #ffeb3b; font-size: 4rem; animation: rotate 10s linear infinite; }
.video-cloud { top: 40px; left: -30px; color: #e1f5fe; font-size: 3.5rem; }
.video-car { bottom: -20px; left: 40%; color: #bbdefb; font-size: 3rem; }

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.video-text {
  text-align: left;
}

.video-text h2 {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 25px;
}

.video-text p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 35px;
}

.video-btn-group {
  display: flex;
  align-items: center;
  gap: 30px;
}

.v-stat strong {
  display: block;
  font-size: 1.5rem;
  color: #7166f0;
}

.v-stat span {
  font-size: 0.9rem;
  color: #999;
}

.video-preview {
  position: relative;
}

.video-blob-bg {
  position: absolute;
  top: -20px;
  right: -20px;
  bottom: -20px;
  left: -20px;
  background: #7166f0;
  opacity: 0.1;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  animation: blob-anim 10s infinite alternate;
}

@keyframes blob-anim {
  0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.video-thumbnail-wrapper {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  cursor: pointer;
  z-index: 2;
}

.video-thumb {
  width: 100%;
  transition: transform 0.5s ease;
}

.video-thumbnail-wrapper:hover .video-thumb {
  transform: scale(1.05);
}

.play-button-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.play-btn-large {
  width: 80px;
  height: 80px;
  background: #fff;
  color: #7166f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  position: relative;
  z-index: 5;
  transition: transform 0.3s ease;
}

.play-button-wrapper:hover .play-btn-large {
  transform: scale(1.1);
  background: #7166f0;
  color: #fff;
}

.play-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  animation: ripple 2s infinite;
}

.play-ripple:nth-child(2) {
  animation-delay: 1s;
}

@keyframes ripple {
  0% { width: 80px; height: 80px; opacity: 1; }
  100% { width: 150px; height: 150px; opacity: 0; }
}

@media (max-width: 992px) {
  .video-container { padding: 40px; }
  .video-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .video-text { text-align: center; }
  .video-btn-group { justify-content: center; }
  .video-text h2 { font-size: 2.2rem; }
  .video-doodle { display: none; }
}

/* Contact Section */
.contact-section {
  padding: 120px 0;
  position: relative;
}

.section-wave {
  width: 100%;
  line-height: 0;
  background: transparent;
  overflow: hidden;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 2;
}

.section-wave .wave-track {
  display: flex;
  width: 200%;
  align-items: flex-end;
  animation: wave-slide 14s linear infinite;
}

.section-wave .wave-svg {
  width: 50%;
  height: 80px;
  flex: 0 0 50%;
  display: block;
}

.section-wave .wave-svg path {
  fill: #fff;
}

.testimonials + .section-wave {
  margin-top: -40px;
}

.section-wave + .contact-section {
  margin-top: -1px;
}

@keyframes wave-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.contact-form-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-form-container {
  padding: 50px;
  max-width: 750px;
  width: 100%;
  text-align: center;
  /* Remove background and shadow to use the whiteboard in the image */
  background: transparent;
  box-shadow: none;
}

.contact-form-container .subheading,
.contact-form-container h2 {
  color: #333;
}

.contact-form-container .section-title {
  position: relative;
  top: -90px;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.contact-form .form-row.single {
  grid-template-columns: 1fr;
}

.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9); /* Slight opacity for better blending */
  transition: all 0.3s ease;
}

.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: #ff7c5b;
  box-shadow: 0 0 10px rgba(255, 124, 91, 0.2);
}

.contact-form textarea {
  height: 120px;
  margin-bottom: 25px;
  resize: none;
}

.contact-form .btn-primary {
  padding: 15px 45px;
  font-size: 1.1rem;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 2000;
}

.form-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.form-modal-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px 30px;
  width: min(420px, 90vw);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.form-modal-card h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  color: #1b1b1b;
}

.form-modal-card p {
  margin: 0 0 20px;
  color: #5f6b7a;
}

@media (max-width: 992px) {
  .contact-section {
    padding: 100px 20px;
  }
}

@media (max-width: 768px) {
  .contact-form-container .section-title {
    top: 0;
  }

  .contact-form .form-row {
    grid-template-columns: 1fr;
  }
  .contact-form-container {
    padding: 20px 0;
  }
  .contact-section {
    /* Background handled via HTML image */
  }
  .section-wave .wave-svg {
    height: 50px;
  }
}

/* Floating Elements */
.whatsapp-float {
  position: fixed;
  bottom: 40px;
  left: 40px;
  background: #25d366;
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  z-index: 100;
}

.social-side-bar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  background: var(--white);
  box-shadow: -5px 0 20px rgba(0,0,0,0.1);
  z-index: 100;
}

.social-side-bar a {
  padding: 15px;
  color: var(--white);
  text-decoration: none;
}

.social-side-bar a:nth-child(1) { background: #3b5998; }
.social-side-bar a:nth-child(2) { background: #e4405f; }
.social-side-bar a:nth-child(3) { background: #bd081c; }
.social-side-bar a:nth-child(4) { background: #1da1f2; }
.social-side-bar a:nth-child(5) { background: #cd201f; }

@media (max-width: 992px) {
  .about-grid, .stats-grid, .contact-grid, .video-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Page Hero Section (Common)
   ========================================================================== */
.page-hero {
  background-color: #7166f0;
  background-image: radial-gradient(#ffffff22 1px, transparent 1px);
  background-size: 30px 30px; /* Grid effect */
  padding: 120px 0 100px;
  position: relative;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-color);
  padding: 8px 25px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 25px;
}

.breadcrumb a {
  color: var(--white);
  text-decoration: none;
}

.breadcrumb .separator {
  opacity: 0.7;
}

.page-hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--white);
  margin: 0;
  line-height: 1.1;
}

/* Page Hero Doodles */
.page-hero-doodle {
  position: absolute;
  z-index: 1;
  opacity: 0.8;
}

.ph-sun { top: 15%; left: 8%; font-size: 4rem; color: #ffeb3b; animation: rotate 15s linear infinite; }
.ph-balloon { top: 10%; right: 10%; font-size: 5rem; color: #ffeb3b; }
.ph-rainbow { bottom: 15%; left: 15%; font-size: 6rem; color: rgba(255,255,255,0.2); }
.ph-palm { bottom: 10%; right: 15%; font-size: 5rem; color: var(--primary-color); }

/* Wavy Bottom for Page Hero */
.page-hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 3;
}

.page-hero-wave svg {
  display: block;
  width: 100%;
  height: 100px;
}

.page-hero-wave .wave-layer-1 {
  fill: rgba(255, 255, 255, 0.2); /* Lighter layered wave */
}

.page-hero-wave .wave-layer-2 {
  fill: rgba(255, 255, 255, 0.4); /* Medium layered wave */
}

.page-hero-wave .wave-main {
  fill: #fdf8f4; /* Main background color wave */
}

@media (max-width: 767px) {
  .page-hero { padding: 80px 0 60px; }
  .page-hero-title { font-size: 2.8rem; }
  .page-hero-doodle { display: none; }
}

/* ==========================================================================
   Comprehensive Responsive Overrides
   ========================================================================== */

/* Large tablets / small laptops */
@media (max-width: 1200px) {
  .container { padding: 0 24px; }
  .section-title { font-size: 2.4rem; }
  .hero-title { font-size: 4.2rem; }
  .hero-subtitle { font-size: 1.05rem; }
  .about-grid { gap: 60px; }
  .program-card { min-height: 500px; padding: 50px 26px; }
  .session-times-card { padding: 50px; gap: 40px; }
  .testimonial-card { padding: 34px; }
}

/* Tablets */
@media (max-width: 1024px) {
  .hero-grid { gap: 35px; }
  .about-grid { gap: 50px; }
  .hero-actions { gap: 20px; flex-wrap: wrap; }
  .stats-top-part { padding: 80px 0 160px; }
  .session-info h2 { font-size: 2.4rem; }
}

/* Tablet & Mobile Global Adjustments */
@media (max-width: 991px) {
  .section-padding {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 2.2rem;
    margin-bottom: 25px;
  }
}

/* Small Mobile Adjustments */
@media (max-width: 575px) {
  .section-padding {
    padding: 40px 0;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .subheading {
    font-size: 0.95rem;
  }
  
  .container {
    padding: 0 15px;
  }
}

/* Hero Section Specifics */
@media (max-width: 767px) {
  .hero-title {
    font-size: 2.8rem !important;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  
  .btn-admission {
    width: 100%;
    justify-content: center;
  }
}

/* About Us Specifics */
@media (max-width: 767px) {
  .about-blob {
    animation: none;
  }
  
  .about-title {
    font-size: 2rem;
  }
  
  .experience-badge {
    position: relative;
    right: 0;
    top: 0;
    transform: none;
    margin-top: 20px;
  }
}

/* Stats & Session Specifics */
@media (max-width: 767px) {
  .stat-number {
    font-size: 2.2rem;
  }
  
  .session-times-card {
    padding: 30px 20px;
  }
  
  .session-info h2 {
    font-size: 2rem;
  }
}

/* Video Tour Specifics */
@media (max-width: 767px) {
  .video-container {
    padding: 30px 15px;
  }
  
  .video-text h2 {
    font-size: 1.8rem;
  }
  
  .video-btn-group {
    flex-direction: column;
    gap: 20px;
  }
}

/* Contact Form Specifics */
@media (max-width: 767px) {
  .contact-section {
    padding: 60px 0;
  }
  
  .contact-form-container {
    padding: 20px 10px;
  }
  
  .contact-form input, .contact-form textarea {
    padding: 12px;
  }
}

/* Small Mobile Adjustments */
@media (max-width: 600px) {
  .hero-title { font-size: 2.4rem !important; }
  .hero-subtitle { font-size: 0.98rem; }
  .hero-desc { font-size: 0.95rem; }
  .btn-admission { width: 100%; justify-content: center; }
  .btn-admission { white-space: normal; text-align: center; line-height: 1.3; }
  .hero-actions .video-action { width: 100%; justify-content: center; }
  .hero-list { text-align: left; margin: 0 auto 22px; max-width: 320px; }
  .about-title { font-size: 1.9rem; }
  .features-list { grid-template-columns: 1fr; }
  .program-title { font-size: 1.5rem; }
  .stat-number { font-size: 2rem; }
  .session-row { flex-direction: column; gap: 6px; }
}

/* Extra small phones */
@media (max-width: 480px) {
  .container { padding: 0 12px; }
  .section-title { font-size: 1.7rem; }
  .hero-title { font-size: 2.1rem !important; }
  .hero-actions { gap: 12px; }
  .play-icon-wrapper { width: 42px; height: 42px; }
  .play-text { font-size: 0.9rem; }
  .about-desc { font-size: 1rem; }
  .session-times-card { padding: 24px 16px; }
  .contact-form-container { padding: 16px 0; }
  .slide { padding: 30px 0 80px; }
  .hero-image-container { max-width: 260px; }
  .testimonial-slider-viewport { padding: 0 35px; } /* Slightly smaller for very small screens */
}

/* Floating Elements Mobile */
@media (max-width: 767px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    left: 20px;
    font-size: 1.5rem;
  }

  .social-side-bar {
    display: none;
  }
}

@media (max-width: 992px) {
  .duck-float {
    display: none;
  }
}
