/* ============================================
   Rising Pillars Childcare - Modern Stylesheet
   ============================================ */

/* CSS Custom Properties */
:root {
  /* Brand Colors - from logo */
  --clr-red: #ff4d4d;
  --clr-green: #7ed321;
  --clr-orange: #f5a623;
  --clr-blue: #4a90d9;
  --clr-cyan: #00bcd4;

  /* Gradient variants */
  --gradient-primary: linear-gradient(135deg, #ff6b6b 0%, #f5a623 50%, #7ed321 100%);
  --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-warm: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
  --gradient-cool: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  --gradient-sunset: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  --gradient-ocean: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

  /* Neutral colors */
  --clr-white: #ffffff;
  --clr-off-white: #f8f9fa;
  --clr-light-gray: #e9ecef;
  --clr-gray: #6c757d;
  --clr-dark: #2d3436;
  --clr-black: #1a1a2e;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-blur: blur(16px);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
  --shadow-glow-red: 0 0 40px rgba(255, 77, 77, 0.4);
  --shadow-glow-green: 0 0 40px rgba(126, 211, 33, 0.4);
  --shadow-glow-orange: 0 0 40px rgba(245, 166, 35, 0.4);
  --shadow-glow-blue: 0 0 40px rgba(74, 144, 217, 0.4);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--clr-dark);
  background: var(--clr-off-white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-2xl) 0;
  position: relative;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   Animations
   ============================================ */

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(3deg);
  }
}

@keyframes floatReverse {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(20px) rotate(-3deg);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes rotateGlow {
  0% {
    filter: hue-rotate(0deg);
  }

  100% {
    filter: hue-rotate(360deg);
  }
}

@keyframes bounce {

  0%,
  20%,
  53%,
  80%,
  100% {
    transform: translateY(0);
  }

  40%,
  43% {
    transform: translateY(-15px);
  }

  70% {
    transform: translateY(-7px);
  }

  90% {
    transform: translateY(-3px);
  }
}

@keyframes wiggle {

  0%,
  100% {
    transform: rotate(-3deg);
  }

  50% {
    transform: rotate(3deg);
  }
}

/* Animation utility classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

.delay-400 {
  transition-delay: 0.4s;
}

.delay-500 {
  transition-delay: 0.5s;
}

.delay-600 {
  transition-delay: 0.6s;
}

.delay-700 {
  transition-delay: 0.7s;
}

/* ============================================
   Header & Navigation
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.header-top {
  background: linear-gradient(90deg, var(--clr-red), var(--clr-orange), var(--clr-green), var(--clr-blue));
  padding: var(--space-sm) 0;
}

.header-top-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.contact-info {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

.contact-info a {
  color: var(--clr-white);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.contact-info a:hover {
  opacity: 0.9;
}

.social-links {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.social-links span {
  color: var(--clr-white);
  font-size: 0.875rem;
  font-weight: 500;
}

.social-links a {
  color: var(--clr-white);
  font-size: 1.25rem;
  transition: transform var(--transition-fast);
}

.social-links a:hover {
  transform: scale(1.2);
}

.header-main {
  padding: var(--space-md) 0;
}

.header-main-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 100px;
  width: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: var(--space-lg);
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--clr-dark);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  position: relative;
  transition: var(--transition-normal);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: var(--transition-normal);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.nav-link:hover {
  color: var(--clr-orange);
}

/* Dropdown Menu */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-toggle i {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-toggle i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  color: var(--clr-dark);
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dropdown-item i {
  color: var(--clr-orange);
  font-size: 1rem;
}

.dropdown-item:hover {
  background: linear-gradient(135deg, rgba(244, 174, 64, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
  color: var(--clr-orange);
  transform: translateX(5px);
}

.btn-register {
  background: var(--gradient-primary);
  color: var(--clr-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

.btn-register:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--clr-dark);
  border-radius: var(--radius-full);
  transition: var(--transition-normal);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  min-height: 100vh;
  padding-top: 160px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #87CEEB 0%, #B0E0E6 30%, #E0F7FA 60%, #FFF8E1 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.3'%3E%3Ccircle cx='50' cy='50' r='6'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* Rainbow decoration */
.hero::after {
  content: '';
  position: absolute;
  top: 10%;
  right: -100px;
  width: 400px;
  height: 200px;
  background:
    linear-gradient(180deg, transparent 0%, transparent 14.28%),
    linear-gradient(180deg, #ff4d4d 14.28%, #ff4d4d 28.56%),
    linear-gradient(180deg, #f5a623 28.56%, #f5a623 42.84%),
    linear-gradient(180deg, #ffeb3b 42.84%, #ffeb3b 57.12%),
    linear-gradient(180deg, #7ed321 57.12%, #7ed321 71.4%),
    linear-gradient(180deg, #4a90d9 71.4%, #4a90d9 85.68%),
    linear-gradient(180deg, #9c27b0 85.68%, #9c27b0 100%);
  border-radius: 0 0 200px 200px;
  opacity: 0.4;
  transform: rotate(-15deg);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: #1a365d;
  margin-bottom: var(--space-lg);
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

.hero-text h1 span {
  color: #0ea5e9;
  font-weight: 800;
}

.hero-text p {
  font-size: 1.25rem;
  color: #2d3748;
  margin-bottom: var(--space-xl);
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--clr-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.btn-bounce {
  animation: bounce 2s ease-in-out infinite;
  animation-delay: 3s;
}

.btn-bounce:hover {
  animation: none;
}

.btn-secondary {
  background: var(--clr-white);
  color: var(--clr-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-full);
  border: 2px solid var(--clr-dark);
  transition: var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.btn-secondary:hover {
  background: var(--clr-dark);
  color: var(--clr-white);
  transform: translateY(-3px);
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255, 255, 255, 0.9);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.8s ease;
}

.badge-icon {
  font-size: 1.25rem;
  animation: wiggle 1s ease-in-out infinite;
}

.hero-badge span:last-child {
  font-weight: 600;
  color: var(--clr-dark);
  font-size: 0.875rem;
}

/* Hero Fun Facts */
.hero-fun-facts {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

.fun-fact {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255, 255, 255, 0.85);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
}

.fun-fact:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 1);
}

.fun-fact-icon {
  font-size: 1.5rem;
}

.fun-fact-text {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--clr-dark);
}

.fun-fact::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: var(--clr-dark);
  color: white;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
}

.fun-fact:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

/* Floating Clouds */
.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 100px;
  z-index: 1;
}

.cloud::before,
.cloud::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
}

.cloud-1 {
  width: 150px;
  height: 50px;
  top: 15%;
  left: 10%;
  animation: floatCloud 15s ease-in-out infinite;
}

.cloud-1::before {
  width: 60px;
  height: 60px;
  top: -30px;
  left: 20px;
}

.cloud-1::after {
  width: 80px;
  height: 80px;
  top: -40px;
  left: 50px;
}

.cloud-2 {
  width: 120px;
  height: 40px;
  top: 25%;
  right: 15%;
  animation: floatCloud 18s ease-in-out infinite;
  animation-delay: 3s;
}

.cloud-2::before {
  width: 50px;
  height: 50px;
  top: -25px;
  left: 15px;
}

.cloud-2::after {
  width: 60px;
  height: 60px;
  top: -30px;
  left: 40px;
}

.cloud-3 {
  width: 100px;
  height: 35px;
  top: 8%;
  left: 50%;
  animation: floatCloud 20s ease-in-out infinite;
  animation-delay: 6s;
}

.cloud-3::before {
  width: 40px;
  height: 40px;
  top: -20px;
  left: 10px;
}

.cloud-3::after {
  width: 50px;
  height: 50px;
  top: -25px;
  left: 35px;
}

@keyframes floatCloud {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(30px);
  }
}

/* Sun */
.sun {
  position: absolute;
  top: 8%;
  right: 8%;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #FFE066 0%, #FFD93D 50%, #F5A623 100%);
  border-radius: 50%;
  box-shadow:
    0 0 60px rgba(255, 214, 0, 0.6),
    0 0 100px rgba(255, 214, 0, 0.4);
  z-index: 1;
  animation: sunPulse 4s ease-in-out infinite;
}

.sun::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 214, 0, 0.3) 0%, transparent 70%);
  animation: sunRays 3s ease-in-out infinite;
}

@keyframes sunPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes sunRays {

  0%,
  100% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

/* Hero Visual with Image Frame */
.hero-visual {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.hero-image-frame {
  position: relative;
  width: 85%;
  max-width: 450px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 0 0 8px rgba(255, 255, 255, 0.8);
  transition: var(--transition-normal);
}

.hero-image-frame:hover {
  transform: scale(1.02) rotate(-1deg);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.2),
    0 0 0 8px rgba(255, 255, 255, 0.9);
}

.hero-main-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Hero SVG Illustration */
.hero-illustration {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  overflow: visible;
}

.hero-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

/* SVG Element Animations */
.block-element {
  transition: transform 0.3s ease;
  cursor: pointer;
}

.block-element:hover {
  transform: scale(1.15) rotate(-5deg);
}

.block-a {
  animation: float 4s ease-in-out infinite;
}

.block-b {
  animation: floatReverse 4.5s ease-in-out infinite 0.5s;
}

.block-c {
  animation: float 5s ease-in-out infinite 1s;
}

.child-element {
  transition: transform 0.3s ease;
  cursor: pointer;
}

.child-element:hover {
  transform: scale(1.08);
}

.child-1 {
  animation: float 5s ease-in-out infinite;
}

.child-2 {
  animation: floatReverse 4.5s ease-in-out infinite 0.5s;
}

.waving-hand {
  transform-origin: center;
  animation: wave 1s ease-in-out infinite;
}

@keyframes wave {

  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(15deg);
  }

  75% {
    transform: rotate(-15deg);
  }
}

.star-element {
  transition: transform 0.3s ease;
  cursor: pointer;
}

.star-element:hover {
  transform: scale(1.3) rotate(20deg);
}

.star-1 {
  animation: twinkle 2s ease-in-out infinite;
}

.star-2 {
  animation: twinkle 2.5s ease-in-out infinite 0.5s;
}

.star-3 {
  animation: twinkle 3s ease-in-out infinite 1s;
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(0.9);
  }
}

.book-element {
  transition: transform 0.3s ease;
  cursor: pointer;
  animation: float 6s ease-in-out infinite 0.5s;
}

.book-element:hover {
  transform: scale(1.1) translateY(-5px);
}

.pencil-element {
  transition: transform 0.3s ease;
  cursor: pointer;
  animation: floatReverse 5s ease-in-out infinite 1s;
}

.pencil-element:hover {
  transform: rotate(-30deg) scale(1.1);
}

.palette-element {
  transition: transform 0.3s ease;
  cursor: pointer;
  animation: float 4.5s ease-in-out infinite 0.3s;
}

.palette-element:hover {
  transform: scale(1.15) rotate(10deg);
}

/* Main circle animation */
.main-circle {
  transition: transform 0.4s ease;
}

.hero-visual:hover .main-circle {
  transform: scale(1.02);
}

/* New children group */
.children-group {
  transition: transform 0.3s ease;
}

.child-left {
  animation: float 5s ease-in-out infinite 0.2s;
}

.child-center {
  animation: float 4.5s ease-in-out infinite;
}

.child-right {
  animation: float 5s ease-in-out infinite 0.4s;
}

/* Icon elements - hover with larger hit area to prevent glitching */
.icon-element {
  cursor: pointer;
  transform-origin: center center;
  transition: transform 0.3s ease;
}

/* Invisible hit area for stable hover */
.hit-area {
  pointer-events: all;
}

.icon-element:hover {
  transform: scale(1.15);
}

.icon-star:hover {
  transform: scale(1.25) rotate(15deg);
}

.icon-heart:hover {
  transform: scale(1.2);
}

.icon-abc:hover {
  transform: scale(1.15) rotate(-5deg);
}

.icon-books:hover {
  transform: scale(1.12);
}

.icon-ruler:hover {
  transform: scale(1.1) rotate(5deg);
}

.icon-pencil:hover {
  transform: scale(1.15) rotate(-8deg);
}

/* Interactive whole illustration hover */
.hero-visual:hover .hero-illustration {
  transform: scale(1.02);
}

.hero-illustration {
  transition: transform 0.4s ease;
}

/* Floating child figures */
.floating-child {
  position: absolute;
  width: 80px;
  height: auto;
  animation: float 4s ease-in-out infinite;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 5;
}

.floating-child.bounce-hover:hover {
  animation: bounce 0.6s ease;
}

.floating-child:nth-child(1) {
  animation-delay: 0s;
}

.floating-child:nth-child(2) {
  animation: floatReverse 5s ease-in-out infinite;
  animation-delay: 0.5s;
}

.floating-child:nth-child(3) {
  animation-delay: 1s;
}

.floating-child:nth-child(4) {
  animation: floatReverse 4.5s ease-in-out infinite;
  animation-delay: 1.5s;
}

/* Bouncing Dots */
.bouncing-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  animation: bounce 2s ease-in-out infinite;
  cursor: pointer;
  transition: var(--transition-fast);
}

.bouncing-dot:hover {
  transform: scale(1.5);
}

.dot-red {
  background: var(--clr-red);
  animation-delay: 0s;
}

.dot-green {
  background: var(--clr-green);
  animation-delay: 0.3s;
}

.dot-orange {
  background: var(--clr-orange);
  animation-delay: 0.6s;
}

.dot-blue {
  background: var(--clr-blue);
  animation-delay: 0.9s;
}

/* Grass Decoration */
.grass-decoration {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background:
    repeating-linear-gradient(90deg,
      transparent,
      transparent 20px,
      #7ed321 20px,
      #7ed321 22px),
    linear-gradient(to bottom, #7ed321 0%, #5cb31a 100%);
  z-index: 3;
  opacity: 0.6;
}

/* Decorative blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.6;
  animation: pulse 6s ease-in-out infinite;
}

.blob-1 {
  width: 300px;
  height: 300px;
  background: var(--clr-red);
  top: -100px;
  right: -100px;
}

.blob-2 {
  width: 250px;
  height: 250px;
  background: var(--clr-green);
  bottom: -50px;
  left: -50px;
  animation-delay: 2s;
}

.blob-3 {
  width: 200px;
  height: 200px;
  background: var(--clr-blue);
  top: 50%;
  right: 20%;
  animation-delay: 4s;
}

/* Wave separator */
.wave-separator {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

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

.wave-separator .shape-fill {
  fill: var(--clr-off-white);
}

/* ============================================
   Programs Section
   ============================================ */

.programs {
  background: var(--clr-off-white);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--clr-dark);
  margin-bottom: var(--space-md);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--clr-gray);
  max-width: 700px;
  margin: 0 auto;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.program-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition-normal);
}

.program-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.program-card:hover::before {
  transform: scaleX(1);
}

.program-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.program-icon svg,
.program-icon img {
  width: 48px;
  height: 48px;
}

.program-card:nth-child(1) .program-icon {
  background: rgba(255, 77, 77, 0.1);
}

.program-card:nth-child(2) .program-icon {
  background: rgba(126, 211, 33, 0.1);
}

.program-card:nth-child(3) .program-icon {
  background: rgba(74, 144, 217, 0.1);
}

.program-card:nth-child(4) .program-icon {
  background: rgba(245, 166, 35, 0.1);
}

.program-card:nth-child(5) .program-icon {
  background: rgba(0, 188, 212, 0.1);
}

.program-card:nth-child(6) .program-icon {
  background: rgba(156, 39, 176, 0.1);
}

.program-card:nth-child(7) .program-icon {
  background: rgba(76, 175, 80, 0.1);
}

.program-card:nth-child(8) .program-icon {
  background: rgba(255, 152, 0, 0.1);
}

.program-card:nth-child(1):hover .program-icon {
  box-shadow: var(--shadow-glow-red);
}

.program-card:nth-child(2):hover .program-icon {
  box-shadow: var(--shadow-glow-green);
}

.program-card:nth-child(3):hover .program-icon {
  box-shadow: var(--shadow-glow-blue);
}

.program-card:nth-child(4):hover .program-icon {
  box-shadow: var(--shadow-glow-orange);
}

.program-card:nth-child(5):hover .program-icon {
  box-shadow: 0 0 40px rgba(0, 188, 212, 0.4);
}

.program-card:nth-child(6):hover .program-icon {
  box-shadow: 0 0 40px rgba(156, 39, 176, 0.4);
}

.program-card:nth-child(7):hover .program-icon {
  box-shadow: 0 0 40px rgba(76, 175, 80, 0.4);
}

.program-card:nth-child(8):hover .program-icon {
  box-shadow: 0 0 40px rgba(255, 152, 0, 0.4);
}

.program-card h3 {
  font-size: 1.125rem;
  color: var(--clr-dark);
  font-weight: 600;
}

/* ============================================
   Curriculum Section
   ============================================ */

.curriculum {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.curriculum::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  animation: rotateGlow 20s linear infinite;
}

.curriculum-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.curriculum-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--clr-white);
  margin-bottom: var(--space-lg);
}

.curriculum-text p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

.curriculum-visual {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}

.curriculum-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  width: 140px;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: var(--transition-normal);
}

.curriculum-card:nth-child(odd) {
  animation: float 4s ease-in-out infinite;
}

.curriculum-card:nth-child(even) {
  animation: floatReverse 4s ease-in-out infinite;
}

.curriculum-card:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.35);
}

.curriculum-card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

.curriculum-card span {
  color: var(--clr-white);
  font-weight: 600;
  font-size: 0.875rem;
}

/* ============================================
   Jolly Phonics Section
   ============================================ */

.jolly-phonics {
  background: var(--clr-off-white);
  position: relative;
}

.phonics-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.phonics-video {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-placeholder {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--clr-white);
  cursor: pointer;
  transition: var(--transition-normal);
}

.video-placeholder:hover {
  background: linear-gradient(135deg, #16213e, #0f3460);
}

.play-button {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  transition: var(--transition-normal);
}

.play-button:hover {
  transform: scale(1.1);
}

.play-button svg {
  width: 32px;
  height: 32px;
  fill: white;
  margin-left: 4px;
}

/* Video Container */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-xl);
}

/* Video Thumbnail Link */
.video-link {
  display: block;
  text-decoration: none;
}

.video-thumbnail {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.video-link:hover .video-thumbnail img {
  transform: scale(1.05);
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.video-link:hover .play-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.play-overlay .play-button {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.video-link:hover .play-overlay .play-button {
  transform: scale(1.1);
}

.play-overlay .play-button svg {
  width: 32px;
  height: 32px;
  fill: white;
  margin-left: 4px;
}

.video-caption {
  display: block;
  text-align: center;
  color: var(--clr-gray);
  font-weight: 500;
  margin-top: var(--space-md);
  font-size: 0.95rem;
}

.phonics-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--clr-dark);
  margin-bottom: var(--space-lg);
}

.phonics-text h2 span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.phonics-text p {
  font-size: 1.125rem;
  color: var(--clr-gray);
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

.btn-learn-more {
  background: transparent;
  color: var(--clr-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-full);
  border: 2px solid var(--clr-dark);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  transition: var(--transition-normal);
}

.btn-learn-more:hover {
  background: var(--clr-dark);
  color: var(--clr-white);
}

/* ============================================
   Events Section
   ============================================ */

.events {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.events::before,
.events::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.events::before {
  top: -50px;
  left: -50px;
}

.events::after {
  bottom: -50px;
  right: -50px;
}

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

.events h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--clr-dark);
  margin-bottom: var(--space-md);
}

.events p {
  font-size: 1.25rem;
  color: var(--clr-dark);
  margin-bottom: var(--space-lg);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.btn-events {
  background: var(--clr-white);
  color: var(--clr-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  transition: var(--transition-normal);
}

.btn-events:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   Gallery Section
   ============================================ */

.gallery {
  background: var(--clr-off-white);
  position: relative;
}

.gallery-intro {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.gallery-intro h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--clr-dark);
  margin-bottom: var(--space-md);
}

.gallery-intro p {
  font-size: 1.125rem;
  color: var(--clr-gray);
  max-width: 600px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 250px);
  gap: var(--space-md);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition-normal);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  color: var(--clr-white);
  transform: translateY(100%);
  transition: var(--transition-normal);
  z-index: 2;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

/* ============================================
   Events Calendar Section
   ============================================ */

.events {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  padding: 6rem 0;
  text-align: center;
  position: relative;
}

.events-content {
  position: relative;
  z-index: 2;
  padding: 2rem 0;
}

.events-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: white;
  margin-bottom: var(--space-md);
}

.events-content p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

.events-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.events-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--clr-dark);
  margin-bottom: var(--space-md);
}

.events-header p {
  font-size: 1.125rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.events-calendar-container {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--space-xl);
}

/* FullCalendar Style Overrides */
#eventsCalendar {
  max-width: 100%;
}

.fc {
  font-family: var(--font-body);
}

.fc .fc-toolbar-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--clr-dark);
}

.fc .fc-button-primary {
  background: var(--gradient-primary);
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
}

.fc .fc-button-primary:hover {
  background: linear-gradient(135deg, #c53030 0%, #c05621 50%, #276749 100%);
}

.fc .fc-button-primary:disabled {
  opacity: 0.5;
}

.fc .fc-button-primary:not(:disabled).fc-button-active {
  background: linear-gradient(135deg, #9c27b0 0%, #764ba2 100%);
}

.fc .fc-daygrid-day:hover {
  background: rgba(244, 174, 64, 0.1);
}

.fc .fc-daygrid-day-number {
  font-weight: 600;
  color: var(--clr-dark);
}

.fc .fc-event {
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  font-size: 0.75rem;
  font-weight: 500;
}

.fc .fc-daygrid-event-dot {
  display: none;
}

.fc .fc-list-event:hover td {
  background: rgba(244, 174, 64, 0.1);
}

/* Events Legend */
.events-legend {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  color: #666;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-dot.holiday {
  background: #e53e3e;
}

.legend-dot.event {
  background: #9c27b0;
}

.legend-dot.activity {
  background: #7ed321;
}

/* ============================================
   Enrollment CTA Section
   ============================================ */

.enrollment-cta {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  text-align: center;
  position: relative;
  overflow: visible;
  padding-bottom: 120px;
  z-index: 1;
}

.enrollment-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
  pointer-events: none;
}

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

.enrollment-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: var(--clr-white);
  font-size: 0.875rem;
  font-weight: 600;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.enrollment-cta h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--clr-white);
  margin-bottom: var(--space-lg);
}

.enrollment-cta p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto var(--space-xl);
}

.btn-enroll {
  background: var(--clr-white);
  color: #764ba2;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  padding: var(--space-lg) var(--space-2xl);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  transition: var(--transition-normal);
}

.btn-enroll:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: var(--clr-white);
  position: relative;
  overflow: visible;
  z-index: 2;
}

.footer-wave {
  position: absolute;
  top: -79px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 3;
  transform: rotate(180deg);
}

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

.footer-wave .shape-fill {
  fill: #1a1a2e;
}

.footer-content {
  padding-top: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo {
  margin-bottom: var(--space-lg);
}

.footer-logo img {
  height: 80px;
  width: auto;
}

.footer-social {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.footer-social a {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--transition-normal);
}

.footer-social a:hover {
  background: var(--gradient-primary);
  transform: translateY(-5px);
}

.footer-links {
  display: flex;
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--clr-white);
}

.footer-bottom {
  padding: var(--space-lg) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.footer-bottom a {
  color: var(--clr-orange);
  font-weight: 600;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* ============================================
   Responsive Styles
   ============================================ */

@media (max-width: 1366px) {
  /* Header adjustments */
  .logo img {
    height: 80px;
  }

  .nav {
    gap: var(--space-md);
  }

  .nav-link {
    font-size: 0.9rem;
    padding: var(--space-sm) var(--space-sm);
  }

  .btn-register {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.9rem;
  }

  /* Hero adjustments */
  .hero {
    padding-top: 180px;
  }

  .hero-text h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
  }
}

@media (max-width: 1024px) {
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 200px);
  }

  .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }

  .logo img {
    height: 80px;
  }

  .nav-link {
    font-size: 0.9rem;
    padding: var(--space-xs) var(--space-sm);
  }

  .nav {
    gap: var(--space-md);
  }
}

@media (max-width: 768px) {

  /* --- Header --- */
  .logo img {
    height: 65px;
  }

  .header-main {
    padding: var(--space-sm) 0;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--clr-white);
    flex-direction: column;
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    z-index: 999;
  }

  .nav.active {
    display: flex;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .btn-register {
    display: none;
  }

  /* Mobile dropdown support */
  .nav.active .nav-dropdown {
    width: 100%;
  }

  .nav.active .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: var(--space-md);
    border-left: 3px solid var(--clr-orange);
    margin-top: var(--space-xs);
    margin-bottom: var(--space-sm);
  }

  .nav.active .dropdown-toggle i {
    transform: rotate(180deg);
  }

  .nav.active .dropdown-item {
    padding: var(--space-sm) var(--space-md);
  }

  /* Header top */
  .header-top-content {
    justify-content: center;
  }

  .social-links {
    display: none;
  }

  .contact-info {
    gap: var(--space-md);
  }

  /* --- Hero --- */
  .hero {
    padding-top: 160px;
    min-height: 100vh;
  }

  .hero-text h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
  }

  .hero-text p {
    font-size: 1.1rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
    max-width: 540px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-fun-facts {
    display: none;
  }

  .hero-visual {
    display: none;
  }

  /* Hide decorative elements that cause overflow */
  .hero::after {
    display: none;
  }

  .cloud-2,
  .cloud-3 {
    display: none;
  }

  .cloud-1 {
    width: 100px;
    height: 35px;
    top: 12%;
    left: 5%;
  }

  .cloud-1::before {
    width: 40px;
    height: 40px;
    top: -20px;
    left: 15px;
  }

  .cloud-1::after {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 35px;
  }

  .sun {
    width: 50px;
    height: 50px;
    top: 10%;
    right: 5%;
  }

  .blob {
    display: none;
  }

  /* --- Other sections --- */
  .curriculum-content,
  .phonics-content {
    grid-template-columns: 1fr;
  }

  .curriculum-visual {
    flex-wrap: wrap;
    justify-content: center;
  }

  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .program-card {
    padding: var(--space-lg);
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .gallery-item:nth-child(1) {
    grid-column: span 1;
  }

  .gallery-item {
    height: 250px;
  }

  .footer-links {
    flex-direction: column;
    gap: var(--space-md);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  .logo img {
    height: 50px;
  }

  .hero {
    padding-top: 160px;
  }

  .hero-text h1 {
    font-size: clamp(1.5rem, 5vw, 1.8rem);
  }

  .hero-text p {
    font-size: 0.9rem;
  }

  .btn-primary,
  .btn-secondary {
    font-size: 1rem;
    padding: var(--space-sm) var(--space-lg);
  }

  .fun-fact-text {
    font-size: 0.75rem;
  }

  .contact-info {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .contact-info a {
    font-size: 0.75rem;
  }

  .header-top {
    padding: 4px 0;
  }

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

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-fun-facts {
    flex-direction: column;
    align-items: center;
  }

  .sun,
  .cloud-1 {
    display: none;
  }
}

/* Print styles */
@media print {

  .header,
  .footer,
  .floating-child,
  .blob {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding-top: var(--space-lg);
  }

  body {
    color: black;
    background: white;
  }
}