:root {
  --primary: #6c63ff;     /* soft purple (trust + premium) */
  --secondary: #4ecdc4;   /* mint green (fresh, child-safe) */
  --accent: #ff9f1c;      /* warm orange (CTA) */
  --soft-pink: #ffe6ea;
  --soft-blue: #f3f6ff;
  --dark: #2b2b2b;
  --orange: #ff6b35;
  --blue: #4dabf7;
  --pink: #ff6b9d;
  --green: #51cf66;
  /* Playful colors */
  --playful-pink: #ff6b9d;
  --sunny-yellow: #ffd93d;
  --sky-blue: #6bcf7f;
  --purple-fun: #c56cf0;
  --orange-joy: #ff9f43;
  --mint-green: #00d2d3;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #ff9a9e, #fecfef, #a1c4fd);
  color: #333;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

header {
  background: white;
  padding: 16px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

/* Mobile header optimizations */
@media (max-width: 768px) {
  header {
    padding: 12px 20px;
    flex-wrap: nowrap;
    min-height: 90px;
  }
  
  .logo {
    font-size: 1.8rem;
    flex-shrink: 1;
    max-width: 220px;
  }
  
  .logo span {
    font-size: 1.6rem;
  }
  
  .logo-img {
    width: 85px;
    height: 85px;
  }
  
  .mobile-menu-toggle {
    flex-shrink: 0;
    margin-left: auto;
    display: block;
  }
  
  .desktop-nav {
    display: none;
  }
  
  .mobile-nav {
    display: block;
  }
}

@media (max-width: 480px) {
  header {
    padding: 10px 15px;
    min-height: 85px;
  }
  
  .logo {
    font-size: 1.7rem;
    max-width: 180px;
  }
  
  .logo span {
    font-size: 1.5rem;
  }
  
  .logo-img {
    width: 75px;
    height: 75px;
  }
}

@media (max-width: 360px) {
  header {
    padding: 8px 12px;
    min-height: 80px;
  }
  
  .logo {
    font-size: 1.6rem;
    max-width: 160px;
  }
  
  .logo span {
    font-size: 1.4rem;
  }
  
  .logo-img {
    width: 65px;
    height: 65px;
  }
}

.desktop-nav {
  display: flex;
  align-items: center;
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--primary);
  background: linear-gradient(135deg, #f8f9ff, #fff);
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 8px 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.2);
  min-height: 44px;
  min-width: 44px;
}

/* Show mobile menu toggle on tablets and mobile */
@media (max-width: 991px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .desktop-nav {
    display: none;
  }
  
  .mobile-nav {
    display: block;
  }
}

.mobile-menu-toggle:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(108, 99, 255, 0.3);
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: linear-gradient(135deg, #ffffff, #f8f9ff);
  box-shadow: -8px 0 30px rgba(0,0,0,0.15);
  z-index: 200;
  padding: 100px 30px 30px;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

/* Adjust mobile nav for smaller screens */
@media (max-width: 480px) {
  .mobile-nav {
    width: 280px;
  }
}

@media (max-width: 360px) {
  .mobile-nav {
    width: 260px;
    padding: 80px 20px 20px;
  }
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  z-index: -1;
}

.mobile-nav::after {
  content: '✨ Menu';
  position: absolute;
  top: 20px;
  left: 30px;
  color: white;
  font-family: 'Fredoka';
  font-size: 1.3rem;
  font-weight: 600;
}

.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 30px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
  font-size: 1.2rem;
}

.mobile-nav-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1) rotate(90deg);
}

.mobile-nav-close:active {
  transform: scale(0.95) rotate(90deg);
}

.mobile-nav a {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  margin: 8px 0;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  border-radius: 15px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid transparent;
}

.mobile-nav a:hover {
  color: var(--primary);
  background: linear-gradient(135deg, #f8f9ff, #fff);
  border-color: var(--primary);
  transform: translateX(-5px);
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.2);
}

.mobile-nav a i {
  margin-right: 12px;
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.mobile-nav .nav-btn {
  background: linear-gradient(135deg, var(--orange), var(--accent));
  color: white;
  padding: 15px 25px;
  border-radius: 25px;
  text-align: center;
  margin-top: 25px;
  border-bottom: none;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
  transition: all 0.3s ease;
}

.mobile-nav .nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
  background: linear-gradient(135deg, var(--accent), var(--orange));
}

.logo {
  font-family: 'Fredoka';
  font-size: 2rem;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.logo-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 12px;
  background: white;
  padding: 4px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid rgba(108, 99, 255, 0.1);
}

.logo-img:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  border-color: rgba(108, 99, 255, 0.3);
}

.footer-logo-img {
  width: 35px;
  height: 35px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255,255,255,0.15);
  padding: 3px;
  vertical-align: middle;
  margin-right: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.footer-logo-img:hover {
  transform: scale(1.12);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  background: rgba(255,255,255,0.25);
}

.download-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.download-logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 15px;
  background: white;
  padding: 5px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border: 2px solid rgba(108, 99, 255, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-logo-img:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  border-color: rgba(108, 99, 255, 0.3);
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--primary);
}

nav a i {
  margin-right: 5px;
}

.nav-btn {
  background: var(--orange);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.nav-btn {
  background: linear-gradient(45deg, var(--playful-pink), var(--orange-joy));
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-btn.sparkle::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(45deg);
  animation: sparkle 3s ease-in-out infinite;
}

.hero-slider {
  position: relative;
  height: 80vh;
  min-height: 400px;
  max-height: 600px;
  overflow: hidden;
}

/* Tablet hero optimizations */
@media (max-width: 991px) {
  .hero-slider {
    height: 70vh;
    min-height: 350px;
    max-height: 500px;
  }
}

/* Mobile hero optimizations */
@media (max-width: 767px) {
  .hero-slider {
    height: 60vh;
    min-height: 300px;
    max-height: 450px;
  }
}

@media (max-width: 480px) {
  .hero-slider {
    height: 50vh;
    min-height: 280px;
    max-height: 400px;
  }
}

@media (max-width: 360px) {
  .hero-slider {
    height: 45vh;
    min-height: 250px;
    max-height: 350px;
  }
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Debug: Make first slide visible */
.slide:first-child {
  opacity: 1 !important;
  z-index: 1 !important;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.slide.active {
  opacity: 1;
  z-index: 1;
  /* Removed transition for performance */
}

.hero-content {
  position: relative;
  max-width: 900px;
  text-align: center;
  color: white;
  padding: 20px;
}

.hero-content h1 {
  font-family: 'Fredoka';
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 15px;
}

/* Tablet hero heading */
@media (max-width: 991px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
}

/* Mobile hero heading */
@media (max-width: 767px) {
  .hero-content h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.6rem;
    line-height: 1.3;
  }
}

@media (max-width: 360px) {
  .hero-content h1 {
    font-size: 1.4rem;
    line-height: 1.3;
  }
}

.hero-content span {
  color: #ffd43b;
}

.hero-content p {
  font-size: 1.1rem;
  opacity: 0.95;
}

/* Tablet hero paragraph */
@media (max-width: 991px) {
  .hero-content p {
    font-size: 1rem;
  }
}

/* Mobile hero paragraph */
@media (max-width: 767px) {
  .hero-content p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .hero-content p {
    font-size: 0.9rem;
  }
}

@media (max-width: 360px) {
  .hero-content p {
    font-size: 0.85rem;
  }
}

/* Hero Slider Background Images */
.slide:nth-child(1) {
  background-image: url("https://images.pexels.com/photos/8466786/pexels-photo-8466786.jpeg");
}

.slide:nth-child(2) {
  background-image: url("https://images.pexels.com/photos/8363052/pexels-photo-8363052.jpeg");
}

.slide:nth-child(3) {
  background-image: url("https://images.pexels.com/photos/8363041/pexels-photo-8363041.jpeg");
}

.slide:nth-child(4) {
  background-image: url("https://images.pexels.com/photos/8363119/pexels-photo-8363119.jpeg");
}


.section {
  padding: 40px 20px;
  text-align: center;
}

.section h2 {
  font-family: 'Fredoka';
  font-size: 2.2rem;
  margin-bottom: 20px;
}

/* Mobile section optimizations */
@media (max-width: 768px) {
  .section {
    padding: 50px 15px;
  }
  
  .section h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }
  
  .center-text {
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 40px 10px;
  }
  
  .section h2 {
    font-size: 1.6rem;
    margin-bottom: 12px;
  }
  
  .center-text {
    font-size: 0.95rem;
    margin-bottom: 20px;
    padding: 0 5px;
  }
}

@media (max-width: 360px) {
  .section {
    padding: 30px 8px;
  }
  
  .section h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
  }
  
  .center-text {
    font-size: 0.9rem;
    margin-bottom: 15px;
    padding: 0;
  }
}

/* Admissions section specific styles */
#admissions {
  background: linear-gradient(135deg, #ffe6f0 0%, #fff9e6 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 20px;
}

#admissions::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 107, 157, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

#admissions::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 212, 59, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

/* Mobile admissions section */
@media (max-width: 991px) {
  #admissions {
    padding: 70px 15px;
  }
  
  #admissions::before {
    width: 250px;
    height: 250px;
    right: -15%;
  }
  
  #admissions::after {
    width: 180px;
    height: 180px;
    left: -8%;
  }
}

@media (max-width: 768px) {
  #admissions {
    padding: 60px 15px;
  }
  
  #admissions::before {
    width: 200px;
    height: 200px;
    right: -20%;
  }
  
  #admissions::after {
    width: 150px;
    height: 150px;
    left: -10%;
  }
}

@media (max-width: 480px) {
  #admissions {
    padding: 50px 10px;
  }
  
  #admissions::before,
  #admissions::after {
    display: none; /* Remove decorative elements on small screens */
  }
}

@media (max-width: 360px) {
  #admissions {
    padding: 40px 8px;
  }
}

.pastel {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.stats,
.program-grid,
.facility-grid,
.why-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

/* Tablet grid optimizations */
@media (max-width: 991px) {
  .stats,
  .program-grid,
  .facility-grid,
  .why-grid,
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
}

/* Mobile grid optimizations */
@media (max-width: 767px) {
  .stats,
  .program-grid,
  .facility-grid,
  .why-grid,
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
  }
}

@media (max-width: 480px) {
  .stats,
  .program-grid,
  .facility-grid,
  .why-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

.stat-box,
.program-card,
.facility-grid div,
.why-grid div,
.icon-grid div {
  background: white;
  padding: 25px;
  border-radius: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transition: transform .3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Tablet card optimizations */
@media (max-width: 991px) {
  .stat-box,
  .program-card,
  .facility-grid div,
  .why-grid div,
  .icon-grid div {
    padding: 20px;
    gap: 12px;
  }
}

/* Mobile card optimizations */
@media (max-width: 767px) {
  .stat-box,
  .program-card,
  .facility-grid div,
  .why-grid div,
  .icon-grid div {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .stat-box,
  .program-card,
  .facility-grid div,
  .why-grid div,
  .icon-grid div {
    padding: 18px;
    gap: 12px;
  }
}

.facility-grid div:hover,
.why-grid div:hover,
.icon-grid div:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.facility-grid div i,
.why-grid div i,
.icon-grid div i {
  font-size: 1.5rem;
  min-width: 30px;
}

.stat-box:hover,
.program-card:hover {
  transform: translateY(-6px);
}

.program-card.playgroup { border-left: 5px solid #ff6b9d; }
.program-card.prenursery { border-left: 5px solid #4ecdc4; }
.program-card.nursery { border-left: 5px solid #ffd43b; }
.program-card.lkg { border-left: 5px solid #6c63ff; }
.program-card.ukg { border-left: 5px solid #ff9f1c; }

.gallery-grid img {
  width: 100%;
  border-radius: 20px;
}

.testimonial {
  max-width: 650px;
  margin: 20px auto;
  font-style: italic;
}

.admission-form {
  max-width: 420px;
  margin: auto;
  display: grid;
  gap: 14px;
  padding: 20px;
  background: linear-gradient(135deg, #ffffff, #f8f9ff);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border: 2px solid var(--secondary);
}

.admission-form input,
.admission-form select {
  padding: 14px 16px;
  border-radius: 14px;
  border: 2px solid #e0e0e0;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.admission-form input:focus,
.admission-form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
  transform: translateY(-1px);
}

.admission-form input::placeholder {
  color: #999;
  font-style: italic;
}

/* Mobile form optimizations */
@media (max-width: 768px) {
  .admission-form {
    max-width: 100%;
    padding: 15px;
    margin: 0 10px;
  }
  
  .admission-form input,
  .admission-form select {
    padding: 16px;
    font-size: 16px; /* Prevents zoom on iOS */
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .admission-form {
    padding: 12px;
    margin: 0 5px;
    gap: 12px;
  }
  
  .admission-form input,
  .admission-form select {
    padding: 14px;
    font-size: 16px;
    border-radius: 10px;
  }
}

@media (max-width: 360px) {
  .admission-form {
    padding: 10px;
    margin: 0;
    gap: 10px;
  }
  
  .admission-form input,
  .admission-form select {
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
  }
}

.btn-primary {
  background: linear-gradient(45deg, var(--playful-pink), var(--orange-joy), var(--sunny-yellow));
  background-size: 300% 300%;
  color: white;
  padding: 16px 24px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-position 0.3s ease;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
  background-position: 100% 50%;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary.ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::after {
  width: 300px;
  height: 300px;
}

/* Mobile button optimizations */
@media (max-width: 768px) {
  .btn-primary {
    padding: 18px 24px;
    font-size: 1rem;
    min-height: 54px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

@media (max-width: 480px) {
  .btn-primary {
    padding: 16px 20px;
    font-size: 0.95rem;
    min-height: 50px;
    border-radius: 25px;
  }
}

@media (max-width: 360px) {
  .btn-primary {
    padding: 14px 18px;
    font-size: 0.9rem;
    min-height: 48px;
    border-radius: 20px;
  }
}

footer {
  background: #222;
  color: #eee;
  padding: 40px 20px;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
  text-align: center;
}

.footer-left {
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.map-container {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 15px;
  text-align: center;
}

.map-container h3 {
  margin-bottom: 15px;
  color: #ffd43b;
  font-family: 'Fredoka';
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 30px;
  }
  
  .footer-logo-img {
    width: 30px;
    height: 30px;
  }
  
  .download-logo-img {
    width: 50px;
    height: 50px;
  }
  
  .footer-right {
    max-width: 100%;
  }
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: linear-gradient(45deg, #25d366, #128c7e);
  color: white;
  padding: 14px 20px;
  border-radius: 40px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
  background: linear-gradient(45deg, #128c7e, #25d366);
}

.whatsapp-float i {
  font-size: 1.2rem;
}

.whatsapp-float span {
  white-space: nowrap;
}

/* Sticky Enquire Button */
.sticky-enquire-btn {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 999;
  display: none;
}

.enquire-sticky {
  background: linear-gradient(45deg, var(--playful-pink), var(--orange-joy));
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  min-height: 44px;
}

.enquire-sticky:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
  background: linear-gradient(45deg, var(--orange-joy), var(--playful-pink));
}

.enquire-sticky:active {
  transform: translateY(0);
}

.enquire-sticky i {
  font-size: 1rem;
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 25px;
  flex-wrap: wrap;
}

.hero-enquire, .hero-learn {
  padding: 14px 24px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.hero-enquire .ripple,
.hero-learn .ripple,
.program-enquire .ripple,
.enquire-sticky .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.hero-enquire {
  background: linear-gradient(45deg, var(--playful-pink), var(--orange-joy), var(--sunny-yellow));
  background-size: 300% 300%;
  color: white;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.hero-enquire:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
  background-position: 100% 50%;
}

.hero-learn {
  background: linear-gradient(45deg, var(--secondary), var(--primary));
  color: white;
  box-shadow: 0 6px 20px rgba(78, 205, 196, 0.3);
}

.hero-learn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}

/* Program Enquire Banner */
.program-enquire-banner {
  background: linear-gradient(135deg, #ffe6f0, #fff9e6);
  border: 2px solid var(--secondary);
  border-radius: 20px;
  padding: 20px;
  margin: 30px auto;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.program-enquire-banner p {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 15px;
  font-family: 'Poppins', sans-serif;
}

.program-enquire {
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: white;
  padding: 14px 24px;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  box-shadow: 0 6px 20px rgba(108, 99, 255, 0.3);
}

.program-enquire:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4);
  background: linear-gradient(45deg, var(--secondary), var(--primary));
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 15px;
    right: 15px;
    padding: 12px 16px;
    font-size: 0.85rem;
  }
  
  .whatsapp-float span {
    display: none; /* Hide text on small mobile */
  }
  
  .sticky-enquire-btn {
    display: block;
    bottom: 75px;
    right: 15px;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .hero-enquire, .hero-learn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 16px 20px;
    font-size: 0.95rem;
  }
  
  .program-enquire-banner {
    margin: 20px 15px;
    padding: 15px;
  }
  
  .program-enquire {
    width: 100%;
    justify-content: center;
    padding: 16px 20px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .whatsapp-float {
    padding: 10px 14px;
    border-radius: 30px;
  }
  
  .hero-enquire, .hero-learn {
    padding: 14px 18px;
    font-size: 0.9rem;
    min-height: 48px;
  }
  
  .program-enquire {
    padding: 14px 18px;
    font-size: 0.9rem;
    min-height: 48px;
  }
}

@media (max-width: 360px) {
  .whatsapp-float {
    padding: 8px 12px;
    border-radius: 25px;
  }
  
  .whatsapp-float i {
    font-size: 1rem;
  }
  
  .hero-enquire, .hero-learn {
    padding: 12px 16px;
    font-size: 0.85rem;
    min-height: 44px;
  }
  
  .program-enquire {
    padding: 12px 16px;
    font-size: 0.85rem;
    min-height: 44px;
  }
}
.hero-slider {
  position: relative;
  height: 80vh;
  min-height: 400px;
  max-height: 600px;
  overflow: hidden;
}

/* Tablet hero optimizations */
@media (max-width: 991px) {
  .hero-slider {
    height: 70vh;
    min-height: 350px;
    max-height: 500px;
  }
}

/* Mobile hero optimizations */
@media (max-width: 767px) {
  .hero-slider {
    height: 60vh;
    min-height: 300px;
    max-height: 450px;
  }
}

@media (max-width: 480px) {
  .hero-slider {
    height: 50vh;
    min-height: 280px;
    max-height: 400px;
  }
}

@media (max-width: 360px) {
  .hero-slider {
    height: 45vh;
    min-height: 250px;
    max-height: 350px;
  }
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  z-index: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-content {
  position: relative;
  max-width: 900px;
  text-align: center;
  color: white;
  padding: 20px;
}

.hero-content h1 {
  font-family: 'Fredoka';
  font-size: 3rem;
  line-height: 1.2;
}

.hero-content span {
  color: #ffd43b;
}

.gallery-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px;
}

.gallery-slider img {
  width: 300px;
  height: 220px;
  border-radius: 20px;
  object-fit: cover;
  scroll-snap-align: center;
  /* Hover effects disabled for performance */
}
.soft-bg { 
  background: linear-gradient(180deg, #f3f6ff 0%, #ffffff 100%);
}

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 50px;
}


.teacher-card {
  background: white;
  padding: 35px 25px;
  border-radius: 25px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0,0,0,.08);
}


.teacher-card img {
  width: 160px;          /* bigger & visible */
  height: 160px;
  object-fit: cover;
  border-radius: 50%;   /* keep clean circular look */
  margin: 0 auto 18px;
  display: block;
  border: 4px solid #f3f6ff;
}

/* Enhanced Responsive Design for All Devices */

/* Extra Large Desktop (1200px+) */
@media (min-width: 1200px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .game-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
  }
  
  .animal-friends .animals {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Color Learning Game - Desktop XL */
  .coloring-game {
    grid-template-columns: repeat(3, 70px);
    gap: 25px;
  }
  
  .color-box {
    width: 70px;
    height: 70px;
  }
  
  .target-color-box {
    width: 90px;
    height: 90px;
  }
  
  .color-instruction h3 {
    font-size: 2rem;
  }
  
  .color-label {
    font-size: 0.9rem;
    bottom: -28px;
  }
}

/* Large Desktop (992px - 1199px) */
@media (max-width: 1199px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .game-container {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .animal-friends .animals {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Color Learning Game - Desktop Large */
  .coloring-game {
    grid-template-columns: repeat(3, 65px);
    gap: 20px;
  }
  
  .color-box {
    width: 65px;
    height: 65px;
  }
  
  .target-color-box {
    width: 85px;
    height: 85px;
  }
  
  .color-instruction h3 {
    font-size: 1.8rem;
  }
}

/* Medium Desktop / Tablet (768px - 991px) */
@media (max-width: 991px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .game-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  .animal-friends .animals {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Color Learning Game - Tablet */
  .coloring-game {
    grid-template-columns: repeat(3, 60px);
    gap: 18px;
  }
  
  .color-box {
    width: 60px;
    height: 60px;
  }
  
  .target-color-box {
    width: 75px;
    height: 75px;
  }
  
  .color-instruction h3 {
    font-size: 1.6rem;
  }
  
  .color-label {
    font-size: 0.8rem;
    bottom: -22px;
  }
  
  .big-icon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .teacher-grid {
    grid-template-columns: 1fr;
  }
  
  .facility-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .icon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small Tablet (576px - 767px) */
@media (max-width: 767px) {
  .desktop-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .mobile-nav {
    display: block;
  }
  
  /* Mobile menu specific adjustments */
  .mobile-menu-toggle {
    font-size: 1.6rem;
    padding: 6px 10px;
  }
  
  .mobile-nav {
    width: 280px;
  }
  
  .mobile-nav-close {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .game-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .animal-friends .animals {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Color Learning Game - Small Tablet */
  .coloring-game {
    grid-template-columns: repeat(3, 55px);
    gap: 15px;
  }
  
  .color-box {
    width: 55px;
    height: 55px;
  }
  
  .target-color {
    flex-direction: column;
    gap: 15px;
  }
  
  .target-color-box {
    width: 70px;
    height: 70px;
  }
  
  .color-instruction h3 {
    font-size: 1.4rem;
  }
  
  .color-label {
    font-size: 0.75rem;
    bottom: -20px;
  }
  
  /* Touch-friendly adjustments */
  .color-box {
    min-height: 55px;
    min-width: 55px;
  }
  
  .game-card {
    padding: 20px 15px;
  }
  
  .big-icon-grid {
    grid-template-columns: 1fr;
  }
  
  .facility-grid {
    grid-template-columns: 1fr;
  }
  
  .why-grid {
    grid-template-columns: 1fr;
  }
  
  .icon-grid {
    grid-template-columns: 1fr;
  }
  
  .tour-rooms {
    grid-template-columns: 1fr;
  }
  
  .testimonial-cards {
    grid-template-columns: 1fr;
  }
  
  .mascot-character {
    font-size: 5rem;
  }
  
  .memory-game {
    grid-template-columns: repeat(3, 50px);
  }
  
  .coloring-game {
    grid-template-columns: repeat(3, 50px);
    gap: 15px;
  }
  
  .target-color-box {
    width: 60px;
    height: 60px;
  }
  
  .color-instruction h3 {
    font-size: 1.4rem;
  }
}

/* Large Mobile (480px - 575px) */
@media (max-width: 575px) {
  .hero-content h1 {
    font-size: 1.6rem;
  }
  
  .hero-content p {
    font-size: 0.9rem;
  }
  
  .section {
    padding: 40px 15px;
  }
  
  .animal-friends .animals {
    grid-template-columns: 1fr;
  }
  
  /* Color Learning Game - Large Mobile */
  .coloring-game {
    grid-template-columns: repeat(2, 65px);
    gap: 20px;
  }
  
  .color-box {
    width: 65px;
    height: 65px;
    min-height: 65px;
    min-width: 65px;
  }
  
  .target-color {
    flex-direction: column;
    gap: 12px;
  }
  
  .target-color-box {
    width: 75px;
    height: 75px;
  }
  
  .color-instruction h3 {
    font-size: 1.3rem;
  }
  
  .color-label {
    font-size: 0.75rem;
    bottom: -22px;
    opacity: 1; /* Always show on mobile for better UX */
  }
  
  /* Touch optimizations */
  .color-box:active {
    transform: scale(0.95);
  }
  
  .game-card {
    padding: 18px 12px;
  }
  
  .color-challenge {
    padding: 15px;
  }
  
  .mascot-character {
    font-size: 4rem;
  }
  
  .memory-game {
    grid-template-columns: repeat(3, 45px);
    gap: 8px;
  }
  
  .coloring-game {
    grid-template-columns: repeat(2, 60px);
    gap: 20px;
  }
  
  .target-color {
    flex-direction: column;
    gap: 15px;
  }
  
  .target-color-box {
    width: 70px;
    height: 70px;
  }
  
  .color-instruction h3 {
    font-size: 1.3rem;
  }
  
  .color-label {
    font-size: 0.75rem;
    bottom: -20px;
  }
  
  .sound-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .welcome-stats {
    grid-template-columns: 1fr;
  }
  
  .program-grid {
    grid-template-columns: 1fr;
  }
}

/* Small Mobile (320px - 479px) */
@media (max-width: 479px) {
  .hero-content h1 {
    font-size: 1.4rem;
  }
  
  .hero-content p {
    font-size: 0.85rem;
  }
  
  .section {
    padding: 30px 10px;
  }
  
  /* Color Learning Game - Small Mobile */
  .coloring-game {
    grid-template-columns: repeat(2, 55px);
    gap: 15px;
    margin: 20px 0;
  }
  
  .color-box {
    width: 55px;
    height: 55px;
    min-height: 55px;
    min-width: 55px;
  }
  
  .target-color {
    flex-direction: column;
    gap: 10px;
  }
  
  .target-color-box {
    width: 65px;
    height: 65px;
  }
  
  .color-instruction h3 {
    font-size: 1.2rem;
  }
  
  .color-instruction p {
    font-size: 0.9rem;
  }
  
  .color-label {
    font-size: 0.7rem;
    bottom: -18px;
    opacity: 1; /* Always show labels */
    padding: 1px 6px;
  }
  
  .color-challenge {
    padding: 12px;
    margin: 15px 0;
  }
  
  .game-card {
    padding: 15px 10px;
  }
  
  .game-score {
    font-size: 1rem;
  }
  
  .game-message {
    font-size: 0.9rem;
    padding: 8px 12px;
  }
  
  /* Touch-friendly button sizes */
  .story-btn {
    padding: 10px 15px;
    font-size: 0.85rem;
  }
  
  .mascot-character {
    font-size: 3.5rem;
  }
  
  .memory-game {
    grid-template-columns: repeat(2, 40px);
    gap: 6px;
  }
  
  .coloring-game {
    grid-template-columns: repeat(2, 50px);
    gap: 15px;
  }
  
  .target-color-box {
    width: 60px;
    height: 60px;
  }
  
  .color-instruction h3 {
    font-size: 1.2rem;
  }
  
  .color-label {
    font-size: 0.7rem;
  }
  
  .sound-buttons {
    grid-template-columns: 1fr;
  }
  
  .badges {
    grid-template-columns: 1fr;
  }
  
  .game-card {
    padding: 20px 15px;
  }
  
  .animal-card {
    padding: 20px 15px;
  }
  
  .mascot-speech {
    padding: 15px;
    font-size: 0.9rem;
  }
  
  .room-card img {
    height: 150px;
  }
  
  .gallery-slider img {
    height: 200px;
  }
}

/* Ultra Small Mobile (below 320px) */
@media (max-width: 319px) {
  .hero-content h1 {
    font-size: 1.2rem;
  }
  
  .mascot-character {
    font-size: 3rem;
  }
  
  /* Color Learning Game - Ultra Small Mobile */
  .coloring-game {
    grid-template-columns: repeat(2, 45px);
    gap: 12px;
  }
  
  .color-box {
    width: 45px;
    height: 45px;
    min-height: 45px;
    min-width: 45px;
  }
  
  .target-color-box {
    width: 55px;
    height: 55px;
  }
  
  .color-instruction h3 {
    font-size: 1.1rem;
  }
  
  .color-instruction p {
    font-size: 0.8rem;
  }
  
  .color-label {
    font-size: 0.65rem;
    bottom: -16px;
    padding: 1px 4px;
  }
  
  .color-challenge {
    padding: 10px;
  }
  
  .game-card {
    padding: 12px 8px;
  }
  
  .game-score {
    font-size: 0.9rem;
  }
  
  .memory-game {
    grid-template-columns: repeat(2, 35px);
  }
  
  .memory-card {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Disable hover effects on touch devices */
  .color-box:hover {
    transform: none;
    border-color: transparent;
  }
  
  .color-box:hover .color-label {
    opacity: 1; /* Always show labels on touch */
  }
  
  .game-card:hover,
  .animal-card:hover,
  .welcome-card:hover {
    transform: none;
  }
  
  .memory-card:hover {
    transform: none;
  }
  
  .mascot-character:hover {
    transform: none;
  }
  
  /* Mobile menu touch optimizations */
  .mobile-menu-toggle:hover {
    background: linear-gradient(135deg, #f8f9ff, #fff);
    color: var(--primary);
  }
  
  .mobile-nav a:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.7);
    border-color: transparent;
  }
  
  .mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: none;
  }
  
  /* Add touch feedback */
  .color-box:active,
  .game-card:active,
  .animal-card:active,
  .welcome-card:active,
  .mobile-menu-toggle:active,
  .mobile-nav a:active,
  .mobile-nav-close:active {
    transform: scale(0.95);
  }
  
  /* Larger touch targets */
  .color-box {
    min-width: 44px;
    min-height: 44px;
  }
  
  .story-btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .mobile-menu-toggle {
    min-width: 44px;
    min-height: 44px;
  }
  
  .mobile-nav-close {
    min-width: 44px;
    min-height: 44px;
  }
}

/* High DPI / Retina Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .color-box,
  .target-color-box {
    image-rendering: -webkit-optimize-contrast;
  }
  
  .color-box {
    border-width: 2px;
  }
  
  .target-color-box {
    border-width: 2px;
  }
  
  .mascot-character {
    image-rendering: -webkit-optimize-contrast;
  }
  
  img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Landscape Mobile Optimizations */
@media (max-width: 767px) and (orientation: landscape) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .section {
    padding: 30px 15px;
  }
  
  .mascot-character {
    font-size: 4rem;
    margin-bottom: 15px;
  }
  
  .game-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .animal-friends .animals {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Color Learning Game - Landscape Mobile */
  .coloring-game {
    grid-template-columns: repeat(3, 50px);
    gap: 15px;
  }
  
  .color-box {
    width: 50px;
    height: 50px;
  }
  
  .target-color {
    flex-direction: row;
    gap: 20px;
  }
  
  .target-color-box {
    width: 60px;
    height: 60px;
  }
  
  .color-instruction h3 {
    font-size: 1.3rem;
  }
  
  .color-challenge {
    padding: 12px;
  }
}

/* Print Styles */
@media print {
  .mobile-menu-toggle,
  .mobile-nav,
  .whatsapp-float,
  .interactive-games,
  .animal-friends {
    display: none !important;
  }
  
  .section {
    page-break-inside: avoid;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
}

/* Touch-friendly button sizes for mobile */
@media (max-width: 768px) {
  .btn-primary,
  .hero-enquire,
  .hero-learn,
  .program-enquire,
  .enquire-sticky,
  .story-btn {
    min-height: 48px;
    min-width: 48px;
    padding: 14px 20px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

@media (max-width: 480px) {
  .btn-primary,
  .hero-enquire,
  .hero-learn,
  .program-enquire,
  .enquire-sticky,
  .story-btn {
    min-height: 44px;
    padding: 12px 18px;
    font-size: 14px;
  }
}

/* Enhanced Tablet Optimizations (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero-content h1 {
    font-size: 2.3rem;
  }
  
  .section {
    padding: 60px 30px;
  }
  
  .program-grid,
  .facility-grid,
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  .game-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  .gallery-slider img {
    width: 280px;
    height: 200px;
  }
  
  .admission-form {
    max-width: 90%;
    padding: 25px;
  }
}

/* Landscape Tablet Optimizations */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .hero-slider {
    height: 50vh;
    min-height: 350px;
  }
  
  .section {
    padding: 40px 30px;
  }
  
  .game-container {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .color-box,
  .memory-card,
  .mobile-menu-toggle,
  .mobile-nav-close {
    min-height: 44px;
    min-width: 44px;
  }
}
@media (max-width: 768px) {
  header {
    padding: 12px 20px;
  }
  
  .logo {
    font-size: 1.3rem;
    flex-shrink: 1;
    max-width: 200px;
  }
  
  .logo-img {
    width: 35px;
    height: 35px;
  }
  
  .footer-logo-img {
    width: 30px;
    height: 30px;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .admission-form {
    max-width: 100%;
    padding: 0 10px;
  }
  
  .section {
    padding: 50px 15px;
  }
  
  .section h2 {
    font-size: 1.8rem;
  }
  
  .program-grid,
  .facility-grid,
  .why-grid,
  .icon-grid {
    grid-template-columns: 1fr;
  }
}

/* Enhanced Image Loading and Error Handling */
img {
  max-width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
  opacity: 1 !important;
}

img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

img.error {
  display: block;
  background: #f0f0f0;
  padding: 20px;
  text-align: center;
  color: #666;
  border-radius: 8px;
}

img.error::after {
  content: "🖼️ Image Loading...";
  display: block;
  padding: 20px;
  background: #f0f0f0;
  text-align: center;
  color: #666;
  border-radius: 8px;
}

/* Program Image Specific Styles */
.program-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px 15px 0 0;
  display: block !important;
  opacity: 1 !important;
  transition: transform 0.3s ease;
}

.program-image img:hover {
  transform: scale(1.05);
}

/* Tablet program image */
@media (max-width: 991px) {
  .program-image img {
    height: 180px;
  }
}

/* Mobile program image */
@media (max-width: 767px) {
  .program-image img {
    height: 160px;
  }
}

@media (max-width: 480px) {
  .program-image img {
    height: 140px;
  }
}

/* Gallery Image Styles */
.gallery-slider img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  display: block !important;
  opacity: 1 !important;
}

.gallery-slider img:hover {
  /* Hover effect disabled for performance */
  transform: none;
}

/* Parent Testimonial Images */
.parent-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin-bottom: 15px;
  display: block !important;
  opacity: 1 !important;
}

/* Virtual Tour Images */
.room-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px 15px 0 0;
  transition: transform 0.3s ease;
  display: block !important;
  opacity: 1 !important;
}

.room-card:hover img {
  transform: scale(1.05);
}

/* Welcome Card Images */
.welcome-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block !important;
  opacity: 1 !important;
}

.welcome-card:hover img {
  transform: scale(1.05);
}

/* Force all images to be visible */
img[src*="pexels"] {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

img[src*="unsplash"] {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Optimized Animations - Disabled for Performance */
.rainbow-text {
  background: linear-gradient(45deg, #ff6b9d, #ffd93d, #6bcf7f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Animation disabled for performance */
}

@keyframes rainbowAnimation {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Enhanced Story Time Section */
.story-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 20px 0;
  position: relative;
}

.story-character-left,
.story-character-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
  padding: 10px;
  border-radius: 15px;
  background: linear-gradient(135deg, #ff9a9e, #fecfef);
  box-shadow: 0 5px 15px rgba(255, 154, 158, 0.3);
}

.story-character-left:hover,
.story-character-right:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

.character-emoji {
  font-size: 2.5rem;
  margin-bottom: 5px;
  animation: bounce 2s infinite;
}

.character-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  text-align: center;
}

.story-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.story-book {
  background: linear-gradient(135deg, #fff, #f8f9ff);
  border: 3px solid #ffd43b;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 
    0 10px 30px rgba(255, 212, 59, 0.2),
    inset 0 2px 5px rgba(255, 255, 255, 0.8);
  position: relative;
  max-width: 300px;
}

.story-book::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 10px;
  background: linear-gradient(90deg, #ff6b9d, #ffd93d);
  border-radius: 5px;
}

.story-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  text-align: center;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-style: italic;
}

.story-page-indicator {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.page-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  transition: all 0.3s ease;
  cursor: pointer;
}

.page-dot.active {
  background: linear-gradient(135deg, #ff6b9d, #ffd93d);
  transform: scale(1.3);
  box-shadow: 0 2px 8px rgba(255, 107, 157, 0.4);
}

.story-controls {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.story-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.prev-btn {
  background: linear-gradient(135deg, #6bcf7f, #4ecdc4);
  color: white;
  box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
}

.next-btn {
  background: linear-gradient(135deg, #ff6b9d, #ff9f43);
  color: white;
  box-shadow: 0 5px 15px rgba(255, 107, 157, 0.3);
}

.story-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.story-btn:active {
  transform: translateY(0);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Mobile responsive for story section */
@media (max-width: 768px) {
  .story-section {
    flex-direction: column;
    gap: 20px;
  }
  
  .story-character-left,
  .story-character-right {
    flex-direction: row;
    gap: 10px;
    padding: 15px;
  }
  
  .character-emoji {
    font-size: 2rem;
    margin-bottom: 0;
  }
  
  .story-book {
    max-width: 250px;
    padding: 15px;
  }
  
  .story-text {
    font-size: 0.9rem;
  }
}
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.5rem;
  }
  
  .hero-content p {
    font-size: 0.9rem;
  }
  
  .section {
    padding: 40px 10px;
  }
  
  .section h2 {
    font-size: 1.5rem;
  }
  
  .gallery-slider img {
    width: 200px;
    height: 150px;
  }
  
  .teacher-card img {
    width: 120px;
    height: 120px;
  }
  
  .facility-grid div,
  .why-grid div,
  .icon-grid div {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .curriculum-list li,
  .schedule p {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}


.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 20px;
  margin-top: 30px;
}

.icon-grid div {
  background: white;
  padding: 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: transform .3s ease, box-shadow 0.3s ease;
}

.icon-grid div:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.icon-grid div i {
  font-size: 1.5rem;
  min-width: 30px;
}

.curriculum-list {
  list-style: none;
  margin-top: 30px;
}

.curriculum-list li {
  background: white;
  padding: 20px;
  margin: 15px 0;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.curriculum-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.1);
}

.curriculum-list li i {
  font-size: 1.5rem;
  min-width: 30px;
}

.schedule {
  margin-top: 30px;
}

.schedule p {
  background: white;
  padding: 20px;
  margin: 15px 0;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.schedule p:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.1);
}

.schedule p i {
  font-size: 1.5rem;
  min-width: 30px;
}

.footer-links {
  margin: 20px 0;
}

.footer-links a {
  color: #eee;
  text-decoration: none;
  margin: 0 15px;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.footer-links a:hover {
  transform: translateY(-3px);
}

.footer-links a i {
  margin-right: 8px;
}

.cta-strip {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 50px 20px;
  text-align: center;
}
.about-images {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}
.about-images img {
  width: 280px;
  border-radius: 20px;
}
.big-card-section {
  padding: 80px 30px;
  background: #f6f9ff;
}

.big-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
  max-width: 1200px;
  margin: auto;
}

.big-card {
  background: white;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  transition: transform .3s ease;
}

.big-card:hover {
  transform: translateY(-8px);
}

.big-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.big-card-content {
  padding: 30px 25px;
  text-align: center;
}

.big-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.big-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.big-card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

.about-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  max-width: 900px;
  margin: 40px auto 0;
}

.about-images img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 18px;
}
.slide:nth-child(1) {
  background-image: url("https://images.pexels.com/photos/8466786/pexels-photo-8466786.jpeg");
}

.slide:nth-child(2) {
  background-image: url("https://images.pexels.com/photos/8363052/pexels-photo-8363052.jpeg");
}

.slide:nth-child(3) {
  background-image: url("https://images.pexels.com/photos/8363041/pexels-photo-8363041.jpeg");
}

.slide:nth-child(4) {
  background-image: url("https://images.pexels.com/photos/8363119/pexels-photo-8363119.jpeg");
}
.program-card {
  background: white;
  border-radius: 22px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform .15s ease;
  position: relative;
}

.program-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Program card sparkle disabled for performance */
.program-card.sparkle::before {
  display: none;
}

.program-image {
  width: 100%;
  height: 200px;              /* controls image size */
  overflow: hidden;
}

.program-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* prevents stretching */
  display: block;
}

.program-content {
  padding: 20px 18px 26px;
}

.program-content h3 {
  margin-bottom: 6px;
  font-size: 1.4rem;
}

.program-content span {
  display: block;
  font-weight: 500;
  margin-bottom: 10px;
  color: #666;
}

.program-content p {
  font-size: 0.95rem;
  line-height: 1.6;
}
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.section.alt-bg {
  background: #f8fafc;
}

.section.soft-bg {
  background: linear-gradient(180deg, #f3f6ff, #ffffff);
}
.section-divider {
  height: 80px;
  background: radial-gradient(circle at top, #6c63ff 0%, transparent 70%);
}
.educators-section {
  background: linear-gradient(180deg, #f3f6ff 0%, #ffffff 100%);
}
/* Welcome section – alag style */

.welcome-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.welcome-card {
  background: white;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  text-align: center;
  padding-bottom: 25px;
  transition: transform .15s ease;
  position: relative;
}

.welcome-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Welcome card sparkle disabled for performance */
.welcome-card.sparkle::before {
  display: none;
}

.welcome-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Force welcome images to be visible */
.welcome-card img[src*="unsplash"] {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  width: 100% !important;
  height: 160px !important;
  object-fit: cover !important;
}

.welcome-card img[src*="pexels"] {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  width: 100% !important;
  height: 160px !important;
  object-fit: cover !important;
}

.welcome-card h3 {
  margin-top: 18px;
  font-size: 1.5rem;
}

.welcome-card p {
  font-size: 0.95rem;
  padding: 0 20px;
}

/* Floating Playful Elements */
.floating-elements {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
}

.floating-element {
  position: absolute;
  font-size: 2rem;
  animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  top: 20%;
  right: 15%;
  animation-delay: 1s;
}

.floating-element:nth-child(3) {
  bottom: 30%;
  left: 20%;
  animation-delay: 2s;
}

.floating-element:nth-child(4) {
  bottom: 20%;
  right: 10%;
  animation-delay: 3s;
}

.floating-element:nth-child(5) {
  top: 50%;
  left: 50%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

/* Rainbow Text Effects */
.rainbow-text {
  background: linear-gradient(45deg, #ff6b9d, #ffd93d, #6bcf7f, #c56cf0, #ff9f43, #00d2d3);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rainbowAnimation 3s ease-in-out infinite;
}

@keyframes rainbowAnimation {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Bouncy Text Animation */
.bouncy-text {
  display: inline-block;
  animation: bounce 2s ease-in-out infinite;
}

.bouncy-text:nth-child(odd) {
  animation-delay: 0.1s;
}

.bouncy-text:nth-child(even) {
  animation-delay: 0.2s;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Wavy Section Dividers */
.wave-divider {
  height: 100px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ff6b9d' fill-opacity='0.3' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,106.7C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
  background-size: cover;
}

/* Simplified Sparkle Effects - Performance Optimized */
.sparkle {
  position: relative;
  overflow: hidden;
}

/* Sparkle animation disabled for performance */
.sparkle::before {
  display: none;
}

/* Ripple Effects */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.ripple:hover::after {
  width: 300px;
  height: 300px;
}

/* Optimized Animations - Disabled for Performance */
.rainbow-text {
  background: linear-gradient(45deg, #ff6b9d, #ffd93d, #6bcf7f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Animation disabled for performance */
}

@keyframes rainbowAnimation {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Simplified Sparkle Effects */
.sparkle {
  position: relative;
  overflow: hidden;
}

.sparkle::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: rotate(45deg);
  animation: sparkle 4s ease-in-out infinite;
}

@keyframes sparkle {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Optimized Interactive Games */
.interactive-games {
  padding: 60px 20px;
  background: linear-gradient(135deg, #f6f9ff 0%, #ffffff 50%, #ffe6ea 100%);
  text-align: center;
}

.game-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 40px auto 0;
  max-width: 1200px;
}

/* Static Program Card Styles */
.program-card-static {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.program-card-static:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.program-card-static h3 {
  font-family: 'Fredoka';
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: white;
}

.program-card-static p {
  margin: 5px 0;
  font-family: 'Poppins';
  color: rgba(255, 255, 255, 0.9);
}

.program-card-static strong {
  color: #ffd43b;
  font-weight: 600;
}

.program-card-static em {
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
}

.program-activities {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.program-activities h4 {
  font-family: 'Fredoka';
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #ffd43b;
}

.program-activities p {
  font-size: 0.9rem;
  margin: 3px 0;
  color: rgba(255, 255, 255, 0.85);
}

.game-card {
  background: white;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.game-card h3 {
  color: var(--playful-pink);
  margin-bottom: 15px;
  font-size: 1.4rem;
}

/* Optimized Mascot */
.mascot-character {
  font-size: 6rem;
  animation: mascotFloat 6s ease-in-out infinite;
  margin-bottom: 25px;
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.mascot-character:hover {
  transform: scale(1.05);
}

@keyframes mascotFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Color Learning Game Styles */
.color-challenge {
  margin: 20px 0;
  padding: 20px;
  background: linear-gradient(135deg, #f8f9ff, #fff);
  border-radius: 15px;
  border: 2px solid var(--secondary);
}

.target-color {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.target-color-box {
  width: 80px;
  height: 80px;
  border-radius: 15px;
  border: 3px solid var(--dark);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.color-instruction {
  text-align: center;
}

.color-instruction p {
  margin: 0 0 10px 0;
  font-size: 1rem;
  color: #666;
}

.color-instruction h3 {
  margin: 0;
  font-size: 1.8rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: capitalize;
}

.color-box {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid transparent;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.color-label {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  background: white;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.color-box:hover .color-label {
  opacity: 1;
}

.color-box:hover {
  transform: scale(1.05);
  border-color: var(--dark);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.color-box.correct {
  border-color: #51cf66 !important;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(81, 207, 102, 0.5);
  animation: correctPulse 0.6s ease;
}

.color-box.incorrect {
  border-color: #ff6b9d !important;
  transform: scale(0.95);
  box-shadow: 0 0 20px rgba(255, 107, 157, 0.5);
  animation: shake 0.5s ease;
}

@keyframes correctPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1.1); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0) scale(0.95); }
  25% { transform: translateX(-5px) scale(0.95); }
  75% { transform: translateX(5px) scale(0.95); }
}

.coloring-game {
  display: grid;
  grid-template-columns: repeat(3, 60px);
  gap: 20px;
  justify-content: center;
  margin: 30px 0;
  padding-bottom: 30px;
}

.memory-game {
  display: grid;
  grid-template-columns: repeat(4, 50px);
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}

.memory-card {
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, var(--sky-blue), var(--mint-green));
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.memory-card:hover {
  transform: scale(1.05);
}

.memory-card.flipped {
  background: linear-gradient(45deg, var(--playful-pink), var(--orange-joy));
  transform: rotateY(180deg);
}

.memory-card.matched {
  background: linear-gradient(45deg, var(--sunny-yellow), var(--sky-blue));
  opacity: 0.8;
  pointer-events: none;
  animation: matchPulse 0.6s ease;
}

@keyframes matchPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.game-score {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.game-message {
  margin-top: 15px;
  padding: 10px 15px;
  background: linear-gradient(135deg, #f8f9ff, #fff);
  border-radius: 15px;
  font-weight: 500;
  color: var(--dark);
  border: 2px solid var(--secondary);
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.color-box.selected {
  border-color: var(--dark) !important;
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Optimized Animal Friends */
.animal-card {
  background: white;
  border-radius: 20px;
  padding: 25px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
  cursor: pointer;
  position: relative;
}

.animal-card:hover {
  transform: translateY(-5px);
}

.animal-emoji {
  font-size: 3rem;
  margin-bottom: 15px;
  display: block;
  transition: transform 0.2s ease;
}

.animal-emoji:hover {
  transform: scale(1.1);
}

/* Trust & Credibility Section */
.trust-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  text-align: center;
}

.trust-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 40px auto 0;
}

.badge {
  background: white;
  padding: 25px 20px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border-left: 5px solid var(--playful-pink);
  font-weight: 600;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.badge:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Parent Testimonials */
.parent-testimonials {
  padding: 80px 20px;
  background: linear-gradient(135deg, #ffe6f0 0%, #fff9e6 100%);
  text-align: center;
}

/* Mobile testimonials optimizations */
@media (max-width: 991px) {
  .parent-testimonials {
    padding: 60px 15px;
  }
}

@media (max-width: 767px) {
  .parent-testimonials {
    padding: 50px 15px;
  }
}

@media (max-width: 480px) {
  .parent-testimonials {
    padding: 40px 10px;
  }
}

.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 40px auto 0;
}

/* Tablet testimonials */
@media (max-width: 991px) {
  .testimonial-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 30px auto 0;
  }
}

/* Mobile testimonials */
@media (max-width: 767px) {
  .testimonial-cards {
    grid-template-columns: 1fr;
    gap: 25px;
    margin: 25px auto 0;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .testimonial-cards {
    gap: 20px;
    margin: 20px auto 0;
  }
}

.parent-card {
  background: white;
  border-radius: 25px;
  padding: 30px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

/* Tablet parent card */
@media (max-width: 991px) {
  .parent-card {
    padding: 25px;
  }
}

/* Mobile parent card */
@media (max-width: 767px) {
  .parent-card {
    padding: 20px;
    margin: 0 10px;
  }
}

@media (max-width: 480px) {
  .parent-card {
    padding: 18px;
    margin: 0 5px;
  }
}

.parent-card:hover {
  transform: translateY(-8px);
}

.parent-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 4px solid var(--playful-pink);
}

/* Mobile parent card image */
@media (max-width: 767px) {
  .parent-card img {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
  }
}

@media (max-width: 480px) {
  .parent-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
  }
}

.parent-card p {
  font-style: italic;
  margin-bottom: 15px;
  color: var(--dark);
  line-height: 1.6;
  font-size: 1rem;
}

/* Mobile parent card text */
@media (max-width: 767px) {
  .parent-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 12px;
  }
}

@media (max-width: 480px) {
  .parent-card p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 10px;
  }
}

.parent-card strong {
  color: var(--purple-fun);
  font-size: 1.1rem;
}

/* Mobile parent card name */
@media (max-width: 767px) {
  .parent-card strong {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .parent-card strong {
    font-size: 0.95rem;
  }
}

/* Daily Schedule */
.daily-schedule {
  padding: 80px 20px;
  background: linear-gradient(135deg, #e8f5e8 0%, #f0f8ff 100%);
  text-align: center;
}

.timeline {
  max-width: 800px;
  margin: 40px auto 0;
  position: relative;
}

.time-slot {
  background: white;
  padding: 20px 25px;
  margin: 15px 0;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 500;
  transition: transform 0.3s ease;
  border-left: 4px solid var(--sky-blue);
}

.time-slot:hover {
  transform: translateX(10px);
}

.time-slot .emoji {
  font-size: 1.5rem;
  min-width: 40px;
}

/* Sound Buttons */
.sound-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 30px 0;
}

.sound-btn {
  background: linear-gradient(45deg, var(--playful-pink), var(--orange-joy));
  color: white;
  border: none;
  padding: 15px 25px;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.sound-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.sound-btn:active {
  transform: translateY(0);
}

/* Animal Friends */
.animal-friends {
  padding: 80px 20px;
  background: linear-gradient(135deg, #fff9e6 0%, #ffe6f0 100%);
  text-align: center;
}

.animals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 40px auto 0;
}

.animal-card {
  background: white;
  border-radius: 25px;
  padding: 30px 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.animal-card:hover {
  transform: translateY(-8px) scale(1.05);
}

.animal-emoji {
  font-size: 4rem;
  margin-bottom: 15px;
  display: block;
  animation: animalBounce 2s ease-in-out infinite;
}

@keyframes animalBounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.animal-card h3 {
  color: var(--purple-fun);
  margin-bottom: 10px;
  font-size: 1.3rem;
}

/* Achievement Badges */
.achievements {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f6f9ff 0%, #ffffff 100%);
  text-align: center;
}

.badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 25px;
  max-width: 800px;
  margin: 40px auto 0;
}

.badge-star {
  background: linear-gradient(45deg, var(--sunny-yellow), var(--orange-joy));
  color: white;
  padding: 20px 15px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
  transition: transform 0.3s ease;
}

.badge-star:hover {
  transform: translateY(-5px) scale(1.05);
}

/* Virtual Tour */
.virtual-tour {
  padding: 80px 20px;
  background: linear-gradient(135deg, #e8f5e8 0%, #f0f8ff 100%);
  text-align: center;
}

.tour-rooms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 40px auto 0;
}

.room-card {
  background: white;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.room-card:hover {
  transform: translateY(-8px);
}

.room-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.room-card h3 {
  padding: 20px;
  margin: 0;
  color: var(--purple-fun);
}

.room-card button {
  margin: 0 20px 20px;
  background: linear-gradient(45deg, var(--sky-blue), var(--mint-green));
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.room-card button:hover {
  transform: translateY(-2px);
}

/* Fun Facts Counter */
.fun-facts {
  padding: 80px 20px;
  background: linear-gradient(135deg, #ffe6f0 0%, #fff9e6 100%);
  text-align: center;
}

.fact-counter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 40px auto 0;
}

.fact {
  background: white;
  padding: 30px 20px;
  border-radius: 25px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.fact .number {
  font-size: 3rem;
  font-weight: bold;
  color: var(--playful-pink);
  display: block;
  margin-bottom: 10px;
}

.fact span:last-child {
  color: var(--dark);
  font-weight: 600;
}

/* Download Section */
.download-section {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 40px 0;
}

.download-btn {
  background: linear-gradient(45deg, var(--purple-fun), var(--sky-blue));
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(197, 108, 240, 0.3);
}

/* Fee Calculator */
.fee-calculator {
  background: linear-gradient(135deg, #fff, #f8f9ff);
  padding: 40px 20px;
  border-radius: 25px;
  margin: 40px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  text-align: center;
}

.fee-calculator h2 {
  margin-bottom: 30px;
  font-family: 'Fredoka';
}

.fee-table {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.fee-row {
  display: flex;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.3s ease;
}

.fee-row:last-child {
  border-bottom: none;
}

.fee-row:hover {
  background-color: #f8f9ff;
}

.fee-row:nth-child(even) {
  background-color: #fafbff;
}

.fee-row:nth-child(even):hover {
  background-color: #f0f5ff;
}

.program-name {
  flex: 1;
  font-weight: 600;
  color: #1e3a8a;
  font-family: 'Fredoka';
  font-size: 1.1rem;
  text-align: left;
}

.fee-amounts {
  flex: 2;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
}

.monthly {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  color: #1565c0;
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid #90caf9;
}

.half-yearly {
  background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
  color: #2e7d32;
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid #81c784;
}

.yearly {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  color: #e65100;
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid #ffb74d;
}

.fee-note {
  margin-top: 30px;
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 15px;
  border-left: 4px solid #1e3a8a;
  text-align: left;
}

.fee-note p {
  margin-bottom: 10px;
  line-height: 1.6;
}

.fee-note p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .fee-amounts {
    flex-direction: column;
    gap: 10px;
  }
  
  .monthly,
  .half-yearly,
  .yearly {
    width: 100%;
    text-align: center;
  }
  
  .fee-row {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .program-name {
    text-align: center;
  }
}

/* Enhanced Image Loading and Error Handling */
img {
  max-width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
  opacity: 1 !important;
}

img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

img.error {
  display: block;
  background: #f0f0f0;
  padding: 20px;
  text-align: center;
  color: #666;
  border-radius: 8px;
}

img.error::after {
  content: "🖼️ Image Loading...";
  display: block;
  padding: 20px;
  background: #f0f0f0;
  text-align: center;
  color: #666;
  border-radius: 8px;
}

/* Program Image Specific Styles */
.program-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px 15px 0 0;
  display: block !important;
  opacity: 1 !important;
  transition: transform 0.3s ease;
}

.program-image img:hover {
  transform: scale(1.05);
}

/* Tablet program image */
@media (max-width: 991px) {
  .program-image img {
    height: 180px;
  }
}

/* Mobile program image */
@media (max-width: 767px) {
  .program-image img {
    height: 160px;
  }
}

@media (max-width: 480px) {
  .program-image img {
    height: 140px;
  }
}

/* Gallery Image Styles */
.gallery-slider img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  display: block !important;
  opacity: 1 !important;
}

.gallery-slider img:hover {
  /* Hover effect disabled for performance */
  transform: none;
}

/* Parent Testimonial Images */
.parent-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin-bottom: 15px;
  display: block !important;
  opacity: 1 !important;
}

/* Virtual Tour Images */
.room-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px 15px 0 0;
  transition: transform 0.3s ease;
  display: block !important;
  opacity: 1 !important;
}

.room-card:hover img {
  transform: scale(1.05);
}

/* Welcome Card Images */
.welcome-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block !important;
  opacity: 1 !important;
}

.welcome-card:hover img {
  transform: scale(1.05);
}

/* Force all images to be visible */
img[src*="pexels"] {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

img[src*="unsplash"] {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}
img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  transition: opacity 0.8s ease, transform 0.3s ease;
  opacity: 1;
}

img:not([src]) {
  background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 50%, #f0f0f0 50%, #f0f0f0 75%, transparent 75%, transparent);
  background-size: 20px 20px;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: -20px 0; }
  100% { background-position: 20px 0; }
}

.program-image img,
.welcome-card img,
.teacher-card img,
.gallery-slider img {
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.8s ease;
  border-radius: 12px;
}

.program-image img:hover,
.welcome-card img:hover,
.teacher-card img:hover,
.gallery-slider img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Lazy loading with smooth fade-in */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Image error handling */
img.error {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 14px;
  text-align: center;
  padding: 20px;
  min-height: 200px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

img.error::before {
  content: "🖼️";
  font-size: 48px;
  display: block;
  margin-bottom: 10px;
}

/* Smooth loading for program images */
.program-image {
  overflow: hidden;
  position: relative;
}

/* Remove shimmer effect overlay */
.program-image::before {
  display: none;
}

.big-icon-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f6f9ff 0%, #ffffff 50%, #ffe6ea 100%);
  position: relative;
}

.big-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 50px auto 0;
}

.big-icon-card {
  background: white;
  padding: 40px 30px;
  border-radius: 25px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.big-icon-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.big-icon-card i {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.big-icon-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--dark);
}

.big-icon-card p {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
}
