/* =====================================================
   DUHAA ACADEMY — PREMIUM DARK THEME
   Design: Dark Navy + Orange (Reference UI Match)
   Mobile-First Responsive Design
   ===================================================== */

/* ─── 1. CSS VARIABLES ─────────────────────────────── */
:root {
  /* Core Colors */
  --navy:         #0D1B2A;
  --navy-mid:     #0F2040;
  --navy-card:    #13264A;
  --orange:       #E8731A;
  --orange-dark:  #CF5F0F;
  --orange-light: #FF8C35;
  --teal:         #10B981;
  --teal-dark:    #059669;
  --white:        #FFFFFF;
  --off-white:    #F8FAFC;
  --light-bg:     #F9FAFB;
  --alt-bg:       #F3F4F6;

  /* Text */
  --text-dark:    #111827;
  --text-body:    #374151;
  --text-muted:   #6B7280;
  --text-white:   #FFFFFF;
  --text-pale:    rgba(255,255,255,0.7);

  /* Borders & Shadows */
  --border:       #E5E7EB;
  --border-dark:  rgba(255,255,255,0.1);
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:    0 6px 24px rgba(0,0,0,0.1);
  --shadow-lg:    0 12px 40px rgba(0,0,0,0.14);
  --shadow-hero:  0 20px 60px rgba(0,0,0,0.25);

  /* Accents */
  --star:         #F59E0B;
  --gold-spark:   #E8A030;

  /* Layout */
  --radius-sm:    8px;
  --radius:       12px;
  --radius-lg:    18px;
  --radius-xl:    24px;
  --radius-full:  9999px;
  --nav-h:        74px;
  --transition:   all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.18s ease;

  /* Fonts */
  --font-head:    'Poppins', sans-serif;
  --font-body:    'Inter', sans-serif;
}

/* ─── 2. RESET & BASE ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); background: var(--white); color: var(--text-body); line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ─── 3. UTILITY ─────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-white { background: var(--white); }
.section-alt   { background: var(--light-bg); }
.text-orange   { color: var(--orange); }
.text-teal     { color: var(--teal); }

/* Section Tag Pill */
.sec-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.sec-tag.orange { color: var(--orange); }

/* Section Heading */
.sec-h2 {
  font-family: var(--font-head);
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 8px;
}

/* Underline accent */
.sec-underline {
  width: 48px; height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--teal));
  border-radius: var(--radius-full);
  margin: 10px auto 0;
}

/* Section sub text */
.sec-sub { font-size: 1rem; color: var(--text-muted); margin-top: 14px; }

/* Section headers */
.sec-head { margin-bottom: 48px; }
.sec-head.center { text-align: center; }
.sec-head.space-between { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }

/* ─── 4. BUTTONS ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:hover::after { opacity: 1; }

/* Orange primary */
.btn-orange {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  box-shadow: 0 4px 18px rgba(232,115,26,0.4);
}
.btn-orange:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,115,26,0.5);
}

/* White outline (for dark bg) */
.btn-white-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-white-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  transform: translateY(-2px);
}

/* Teal outline (for light bg) */
.btn-teal-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-teal-outline:hover {
  background: var(--teal);
  color: #fff;
  transform: translateY(-2px);
}

/* Dark outline (for light bg) */
.btn-outline-dark {
  background: transparent;
  color: var(--text-dark);
  border-color: var(--border);
}
.btn-outline-dark:hover {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  transform: translateY(-2px);
}

/* WhatsApp */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  background: #25D366;
  color: #fff;
  border: 2px solid transparent;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: var(--transition);
  margin-top: 16px;
  width: 100%;
  justify-content: center;
}
.btn-whatsapp:hover { background: #1DA851; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,0.5); }

/* ─── 5. NAVBAR ───────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.4); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 20px;
}

/* Logo */
.nav-brand { display: flex; align-items: center; flex-shrink: 0; gap: 10px; }
.nav-logo  { height: 48px; width: auto; object-fit: contain; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-brand-name {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}
.nav-brand-tagline {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  letter-spacing: 0.3px;
}
.nav-logo-fallback { align-items: center; gap: 8px; }
.nav-logo-text {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}
.nav-logo-text span { color: var(--orange); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-link {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  padding: 8px 12px;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
  white-space: nowrap;
  position: relative;
}
.nav-link:hover { color: #fff; }
.nav-link.active { color: #fff; }
.nav-link.active::after,
.nav-link:hover::after {
  content: '';
  position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 2px;
  background: var(--orange);
  border-radius: 1px;
}

/* Nav right actions */
.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-cta { padding: 10px 22px; font-size: 0.82rem; }

/* Hamburger matching Reference Images 1 & 2 */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.hamburger span {
  width: 22px; height: 2.5px;
  background: var(--orange);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger span:nth-child(2) {
  background: #ffffff;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

/* Mobile menu overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 998;
}
.mobile-overlay.active { display: block; }

/* ─── 6. HERO SECTION ──────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: var(--nav-h);
  background: linear-gradient(140deg, #0D1B2A 0%, #0A1628 40%, #0F2040 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Dot pattern */
.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Sparkle stars — 4-pointed diamond shape */
.sparkle {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}
.sparkle::before {
  content: '';
  display: block;
  background: var(--gold-spark);
  clip-path: polygon(50% 0%, 53% 46%, 100% 50%, 53% 54%, 50% 100%, 47% 54%, 0% 50%, 47% 46%);
}

/* Sparkle sizes & positions */
.sp1  { top: 15%; left: 5%;  } .sp1::before  { width: 18px; height: 18px; }
.sp2  { top: 40%; left: 3%;  } .sp2::before  { width: 12px; height: 12px; opacity: .7; }
.sp3  { top: 70%; left: 8%;  } .sp3::before  { width: 20px; height: 20px; }
.sp4  { top: 20%; left: 20%; } .sp4::before  { width: 10px; height: 10px; opacity: .6; }
.sp5  { top: 10%; right: 8%; } .sp5::before  { width: 22px; height: 22px; }
.sp6  { top: 55%; right: 4%; } .sp6::before  { width: 14px; height: 14px; opacity: .7; }
.sp7  { top: 80%; right: 10%;} .sp7::before  { width: 18px; height: 18px; }
.sp8  { top: 30%; right: 20%;} .sp8::before  { width: 10px; height: 10px; opacity: .5; }

/* Sparkle pulse animation */
.sparkle::before { animation: sparkle-pulse 3s ease-in-out infinite; }
.sp2::before { animation-delay: 0.5s; }
.sp3::before { animation-delay: 1s; }
.sp4::before { animation-delay: 1.5s; }
.sp5::before { animation-delay: 0.8s; }
.sp6::before { animation-delay: 1.3s; }
.sp7::before { animation-delay: 0.3s; }
.sp8::before { animation-delay: 1.8s; }

@keyframes sparkle-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}

/* Hero Grid — 3 columns */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 240px;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 48px 24px;
  position: relative;
  z-index: 2;
  min-height: calc(100vh - var(--nav-h));
}

/* LEFT */
.hero-left {
  padding-right: 16px;
  position: relative;
  z-index: 3;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--orange);
  color: var(--orange);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 22px;
  letter-spacing: 0.5px;
  background: rgba(232, 115, 26, 0.08);
}
.hero-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.4); }
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 18px;
}
.hero-title .text-orange { color: var(--orange); }
.hero-title-br-mobile { display: none; }

/* ─── Hero Rotating Word 3D Animation ─── */
.rotating-words-container {
  display: inline-grid;
  grid-template-areas: "word-stack";
  position: relative;
  perspective: 800px;
  vertical-align: bottom;
  text-align: left;
}

.rotating-word {
  grid-area: word-stack;
  display: inline-block;
  white-space: nowrap;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  opacity: 0;
  visibility: hidden;
  transform: rotateX(-90deg) translateZ(0);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease, visibility 0.6s step-end;
  pointer-events: none;
  color: var(--orange);
  will-change: transform, opacity;
}

.rotating-word.active {
  opacity: 1;
  visibility: visible;
  transform: rotateX(0deg) translateZ(0);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
  pointer-events: auto;
}

.rotating-word.exit {
  opacity: 0;
  visibility: visible;
  transform: rotateX(90deg) translateZ(0);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

@media (prefers-reduced-motion: reduce) {
  .rotating-word {
    transition: none !important;
    transform: none !important;
  }
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Hero action buttons */
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
/* Mobile-only actions: hidden on desktop */
.hero-actions-mobile { display: none !important; }
.hero-play-mobile { display: none !important; }

/* Play button */
.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-play:hover { opacity: 0.85; }
.play-circle {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  color: var(--white);
  flex-shrink: 0;
  transition: var(--transition);
}
.btn-play:hover .play-circle { background: var(--orange); border-color: var(--orange); }
.play-label {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
}

/* CENTER — Hero Image (Background overlay positioning for desktop) */
.hero-center {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
  position: relative;
  z-index: 1;
  margin-left: -180px; /* Extends left width to reach 'future.' subtitle word */
  margin-right: -40px;
  padding-top: 5px;   /* Increases top height to reach 'Learn Quran' heading top */
}
.hero-boy-img {
  width: 100%;
  max-width: 680px;  /* Scaled up size so image extends to 'Learn Quran' top and 'future.' left */
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
  position: relative;
  bottom: 0;
}

/* RIGHT — Stats */
.hero-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 24px;
  border-left: 1px solid rgba(255,255,255,0.12);
}
.hstat { padding: 16px 0; display: flex; align-items: center; gap: 12px; }
/* Icon hidden on desktop by default */
.hstat-icon {
  display: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(232,115,26,0.2);
  color: var(--orange);
  font-size: 0.9rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}
.hstat-content { display: flex; flex-direction: column; }
.hstat-val {
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.hstat-num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.hstat-plus {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--orange);
}
.hstat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  margin-top: 4px;
  display: block;
  line-height: 1.4;
}
.hstat-sep {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

/* ─── 7. ABOUT + WHY CHOOSE US ─────────────────────── */
.about-section { padding: 42px 0; }

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

.about-text-col .sec-tag { display: block; }
.about-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 16px 0 24px;
}

.about-img-circle-wrap {
  width: 200px; height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--teal);
  box-shadow: 0 0 0 10px rgba(16,185,129,0.1);
  margin: 0 auto;
}
.about-circle-img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Why Choose Us grid */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 16px;
}
.why-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.why-icon-box {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.why-icon-box.teal   { background: rgba(16,185,129,0.12); color: var(--teal); }
.why-icon-box.orange { background: rgba(232,115,26,0.12); color: var(--orange); }
.why-text strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 3px;
}
.why-text p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }
.why-badge-offer {
  display: inline-block;
  font-size: 0.65rem;
  background: var(--orange);
  color: var(--white);
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 6px;
  font-weight: 700;
  letter-spacing: 0.5px;
  vertical-align: middle;
}

/* ─── 8. COURSES ─────────────────────────────────── */
.courses-section { padding: 42px 0; }

.courses-slider-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}
.courses-track-outer {
  flex: 1;
  overflow: hidden;
}
.courses-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Course Card (Top Photo Header) */
.course-card {
  flex: 0 0 calc((100% - 80px) / 5);
  min-width: 190px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  padding: 0;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--teal); }

.course-photo-wrap {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: var(--alt-bg);
  position: relative;
}
.course-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}
.course-card:hover .course-photo { transform: scale(1.05); }

.course-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.course-name {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}
.course-desc-sm {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 14px;
}
.course-learn-more {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-fast);
}
.course-learn-more:hover { color: var(--teal-dark); gap: 8px; }

/* Slider arrows */
.slider-arrow {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.slider-arrow:hover { background: var(--orange); color: #fff; border-color: var(--orange); }

/* Small slider nav (teachers header) */
.slider-nav-sm { display: flex; gap: 8px; }
.slider-arrow-sm {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.slider-arrow-sm:hover { background: var(--orange); color: #fff; border-color: var(--orange); }

/* ─── 9. TEACHERS ────────────────────────────────── */
.teachers-section { padding: 42px 0; }

.teachers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.teacher-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.teacher-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--teal); }

.teacher-photo-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--alt-bg);
  position: relative;
}
.teacher-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}
.teacher-card:hover .teacher-photo { transform: scale(1.04); }

.teacher-photo-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, var(--light-bg), var(--alt-bg));
}

.teacher-body { padding: 18px; flex: 1; }
.teacher-name {
  font-family: var(--font-head);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.teacher-title {
  font-size: 0.78rem;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 8px;
}
.teacher-desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.55; }

/* ─── 10. HOW IT WORKS ───────────────────────────── */
.how-section { padding: 42px 0; }

.steps-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
}

.step-card {
  flex: 1;
  max-width: 220px;
  text-align: center;
  padding: 0 12px;
  transition: var(--transition);
}
.step-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), #0891B2);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 4px 16px rgba(16,185,129,0.3);
}
.step-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(232,115,26,0.1);
  color: var(--orange);
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.step-title {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.step-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.55; }

/* Dashed connector between steps */
.step-line {
  flex: 0 0 auto;
  width: 60px;
  border-top: 2.5px dashed var(--border);
  margin-top: 26px;
  flex-shrink: 1;
}

/* ─── 11. PACKAGES ───────────────────────────────── */
.packages-section { padding: 42px 0; }

.packages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.pkg-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: var(--transition);
  position: relative;
}
.pkg-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.pkg-featured {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-hero);
}
.pkg-featured:hover { transform: translateY(-8px); }

.pkg-popular-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.73rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pkg-head { text-align: center; margin-bottom: 28px; }
.pkg-icon {
  width: 54px; height: 54px;
  border-radius: var(--radius-sm);
  background: rgba(232,115,26,0.1);
  color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 14px;
}
.pkg-featured .pkg-icon { background: rgba(255,255,255,0.1); color: var(--orange); }
.pkg-head h3 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 12px; }
.pkg-featured .pkg-head h3 { color: #fff; }
.pkg-price { display: flex; align-items: baseline; justify-content: center; gap: 2px; }
.pkg-curr { font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; color: var(--orange); }
.pkg-amt  { font-family: var(--font-head); font-size: 3rem; font-weight: 800; color: var(--text-dark); line-height: 1; }
.pkg-featured .pkg-amt { color: #fff; }
.pkg-per  { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.pkg-featured .pkg-per { color: rgba(255,255,255,0.6); }
.pkg-save { font-size: 0.78rem; color: var(--teal); font-weight: 600; margin-top: 6px; }
.pkg-save-alt { font-size: 0.78rem; color: var(--orange); font-weight: 600; margin-top: 6px; }

.pkg-features { flex: 1; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.pkg-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.88rem; color: var(--text-body);
}
.pkg-features li i.fa-check { color: var(--teal); }
.pkg-features li.pkg-no { opacity: 0.5; }
.pkg-features li.pkg-no i.fa-xmark { color: #EF4444; }
.pkg-featured .pkg-features li { color: rgba(255,255,255,0.85); }
.pkg-featured .pkg-features li.pkg-no { opacity: 0.4; }
.pkg-btn { width: 100%; justify-content: center; }

/* ─── 12. REVIEWS ────────────────────────────────── */
.reviews-section { padding: 42px 0; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}
.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.review-stars { font-size: 1rem; color: var(--star); margin-bottom: 14px; letter-spacing: 2px; flex-shrink: 0; }
.review-text {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
  flex: 1 1 auto;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  flex-shrink: 0;
}
.reviewer-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}
.reviewer-avatar-emoji {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.reviewer-name { font-family: var(--font-head); font-size: 0.9rem; font-weight: 700; color: var(--text-dark); }
.reviewer-country { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

/* Review pagination dots */
.review-dots {
  display: flex; gap: 8px; justify-content: center; align-items: center;
}
.review-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.review-dot.active {
  background: var(--orange);
  width: 22px;
  border-radius: var(--radius-full);
}

/* ─── 13. COUNTRIES ──────────────────────────────── */
.countries-section { padding: 42px 0; }

.countries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.country-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.country-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--orange); }
.country-flag { font-size: 2.2rem; margin-bottom: 8px; }
.country-name { font-family: var(--font-head); font-size: 0.88rem; font-weight: 600; color: var(--text-dark); }

/* ─── 14. FAQ ─────────────────────────────────────── */
.faq-section { padding: 80px 0; }

.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.open { border-color: var(--orange); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  text-align: left;
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  background: none;
  border: none;
  transition: var(--transition-fast);
}
.faq-q:hover { color: var(--orange); }
.faq-item.open .faq-q { color: var(--orange); }
.faq-chevron { font-size: 0.85rem; color: var(--text-muted); transition: transform 0.3s ease; flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--orange); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1); }
.faq-a-inner { padding: 0 22px 18px; font-size: 0.88rem; color: var(--text-muted); line-height: 1.75; }

/* ─── 15. CONTACT ─────────────────────────────────── */
.contact-section { padding: 80px 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-md);
}
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-family: var(--font-head); font-size: 0.8rem; font-weight: 600; color: var(--text-dark); }
.form-group input, .form-group select, .form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--light-bg);
  font-size: 0.9rem;
  color: var(--text-dark);
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--orange);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(232,115,26,0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit { justify-content: center; font-size: 0.95rem; padding: 15px; }

.form-success { text-align: center; padding: 48px 20px; }
.form-success i { font-size: 3.5rem; color: var(--teal); margin-bottom: 16px; }
.form-success h3 { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.form-success p { font-size: 0.9rem; color: var(--text-muted); }

/* Contact Info */
.contact-info-title { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.contact-info-sub { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 24px; line-height: 1.6; }

.contact-methods { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.cmethod {
  display: flex; align-items: center; gap: 14px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: var(--transition);
}
.cmethod:hover { border-color: var(--orange); transform: translateX(4px); }
.cmethod-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.cmethod-icon.wa    { background: rgba(37,211,102,0.1); color: #25D366; }
.cmethod-icon.email { background: rgba(232,115,26,0.1); color: var(--orange); }
.cmethod-icon.phone { background: rgba(16,185,129,0.1); color: var(--teal); }
.cmethod-icon.globe { background: rgba(59,130,246,0.1); color: #3B82F6; }
.cmethod-text strong { display: block; font-family: var(--font-head); font-size: 0.88rem; font-weight: 600; color: var(--text-dark); }
.cmethod-text span  { font-size: 0.8rem; color: var(--text-muted); }

.contact-hours {
  background: rgba(232,115,26,0.05);
  border: 1.5px solid rgba(232,115,26,0.15);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 4px;
}
.contact-hours h4 { font-family: var(--font-head); font-size: 0.85rem; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.contact-hours h4 i { color: var(--orange); }
.contact-hours p { font-size: 0.83rem; color: var(--text-body); }
.hours-note { color: var(--text-muted); font-size: 0.77rem; margin-top: 4px; }

/* ─── 16. FOOTER ──────────────────────────────────── */
.footer { background: var(--navy); color: rgba(255,255,255,0.75); }

.footer-top { padding: 64px 24px 48px; }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
}

/* Brand column */
.footer-logo-link { display: inline-block; margin-bottom: 6px; }
.footer-logo { height: 50px; width: auto; filter: brightness(0) invert(1); }
.footer-brand-name {
  font-family: var(--font-head);
  font-size: 1.3rem; font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
  display: block;
}
.footer-desc { font-size: 0.85rem; color: rgba(255,255,255,0.55); line-height: 1.7; margin-bottom: 16px; }
.footer-accent-bar { width: 40px; height: 3px; background: var(--orange); border-radius: 2px; margin-bottom: 20px; }

/* Social icons */
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; max-width: 260px; }
.fsocial {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
  line-height: 1.3;
}
.fsocial i { font-size: 1rem; flex-shrink: 0; }
.fsocial:hover { transform: translateY(-2px); }
.fsocial.fb:hover { background: #1877F2; border-color: #1877F2; color: #fff; }
.fsocial.ig:hover { background: linear-gradient(135deg, #E1306C, #833AB4); border-color: transparent; color: #fff; }
.fsocial.wa:hover { background: #25D366; border-color: #25D366; color: #fff; }
.fsocial.yt:hover { background: #FF0000; border-color: #FF0000; color: #fff; }

/* Footer columns */
.footer-col-title {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 28px; height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.55); transition: var(--transition-fast); }
.footer-links a:hover { color: var(--orange); padding-left: 4px; }

.footer-contact-list { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.83rem; color: rgba(255,255,255,0.55); }
.footer-contact-list li i { color: var(--orange); margin-top: 2px; flex-shrink: 0; }
.footer-contact-list li a { color: inherit; transition: var(--transition-fast); }
.footer-contact-list li a:hover { color: var(--orange); }

/* Footer bottom bar */
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding: 16px 24px; }
.footer-bottom-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.footer-copy { font-size: 0.82rem; color: rgba(255,255,255,0.45); }
.footer-legal { display: flex; gap: 16px; align-items: center; }
.footer-legal a { font-size: 0.82rem; color: rgba(255,255,255,0.45); transition: var(--transition-fast); }
.footer-legal a:hover { color: var(--orange); }
.footer-legal span { color: rgba(255,255,255,0.2); }

/* ─── 17. BACK TO TOP ──────────────────────────────── */
.back-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 0.95rem;
  box-shadow: 0 4px 20px rgba(232,115,26,0.45);
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.back-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-top:hover { background: var(--orange-dark); transform: translateY(-3px); }

/* ─── 18. AOS ANIMATIONS ───────────────────────────── */
[data-aos] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }
[data-aos="fade-right"] { transform: translateX(-24px); }
[data-aos="fade-left"]  { transform: translateX(24px); }
[data-aos="zoom-in"]    { transform: scale(0.92); }
[data-aos="fade-right"].aos-animate,
[data-aos="fade-left"].aos-animate  { transform: translateX(0); }
[data-aos="zoom-in"].aos-animate    { transform: scale(1); }

/* ─── 19. SCROLLBAR ────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange-dark); }
::selection { background: rgba(232,115,26,0.25); color: var(--orange); }

/* ─── LOGO FIX — Larger Size ────────────────────────── */
.nav-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.25));
  border-radius: 4px;
}
.footer-logo {
  height: 75px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.2));
  border-radius: 4px;
  margin-bottom: 4px;
}

/* ─── HERO BOY IMAGE ────────────────────────────────── */
.hero-boy-img {
  width: 100%;
  max-width: 580px;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  filter: none;
  display: block;
}

/* ─── CARD MARQUEE TRACK (NO SIDE FILTERS) ─────────── */
.card-marquee-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 12px 0 24px;
}
/* Side filters removed as requested */
.card-marquee-wrapper::before,
.card-marquee-wrapper::after {
  display: none !important;
}

.card-marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
}

/* Static card layout when <= 4 cards */
.card-marquee-track.static-layout {
  transform: none !important;
}

@media (min-width: 769px) {
  .card-marquee-track.static-layout {
    display: flex !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 24px !important;
    width: 100% !important;
  }
}

@media (max-width: 768px) {
  .card-marquee-track.static-layout {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 16px;
    box-sizing: border-box;
  }
  .card-marquee-track.static-layout > div,
  .card-marquee-track.static-layout .teacher-card,
  .card-marquee-track.static-layout .course-card,
  .card-marquee-track.static-layout .review-card,
  .card-marquee-track.static-layout .country-card {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .card-marquee-track.static-layout {
    gap: 10px !important;
    padding: 0 8px;
  }
}

/* Specific card widths in marquee */
.card-marquee-track .course-card {
  width: 240px;
  flex: 0 0 240px;
}
.card-marquee-track .teacher-card {
  width: 270px;
  flex: 0 0 270px;
}
.card-marquee-track .review-card {
  width: 340px;
  flex: 0 0 340px;
}
.card-marquee-track .country-card {
  width: 160px;
  flex: 0 0 160px;
}

/* Real Country Flag Images */
.country-flag-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
  margin-bottom: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* ─── MOBILE PACKAGE SELECTOR TABS ──────────────────── */
.pkg-mobile-tabs {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}
.pkg-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 1.5px solid var(--border);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
}
.pkg-tab-btn i { font-size: 0.9rem; color: var(--orange); }
.pkg-tab-btn:hover,
.pkg-tab-btn.active {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.pkg-tab-btn.active i { color: #fff; }

/* ─── WHATSAPP FLOATING BUTTON ──────────────────────── */
.wa-float {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 997;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: var(--transition);
  animation: wa-bounce 2.5s ease-in-out infinite;
}
.wa-float:hover {
  transform: scale(1.12) translateY(-3px);
  background: rgba(37, 211, 102, 0.95);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6);
  animation-play-state: paused;
}
.wa-float.hidden { opacity: 0; pointer-events: none; transform: scale(0.8); }

.wa-float-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  position: relative;
  z-index: 2;
}

/* Pulse ring behind the button */
.wa-float-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.4);
  animation: wa-pulse 2s ease-out infinite;
  z-index: 1;
}

@keyframes wa-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

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

/* ─── MOBILE WA/MARQUEE ADJUSTMENTS ───────────────────── */
@media (max-width: 768px) {
  .marquee-track { animation-duration: 18s; }
  .wa-float { bottom: 72px; right: 14px; width: 54px; height: 54px; }
  .wa-float-img { width: 30px; height: 30px; }
}

@media (max-width: 480px) {
  .wa-float { bottom: 68px; right: 12px; width: 50px; height: 50px; }
}

/* ─── 20. RESPONSIVE: TABLET ≤ 1024px ─────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; justify-content: space-around; border-left: none; border-top: 1px solid rgba(255,255,255,0.1); padding-left: 0; padding-top: 24px; }
  .hstat-sep { display: none; }

  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-img-col { display: none; }

  .courses-track { }
  .course-card { flex: 0 0 200px; }

  .teachers-grid { grid-template-columns: repeat(2, 1fr); }
  .packages-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .pkg-featured { order: -1; }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .countries-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .steps-row { flex-wrap: wrap; justify-content: center; gap: 20px; }
  .step-line { display: none; }
  .step-card { max-width: 180px; }
}

/* ─── 21. RESPONSIVE: MOBILE ≤ 768px ──────────────── */
@media (max-width: 768px) {
  :root { --nav-h: 54px; }

  /* Navbar mobile */
  .nav-logo { height: 36px; }
  .nav-brand-name { font-size: 0.95rem; }
  .nav-brand-tagline { font-size: 0.55rem; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: min(300px, 82vw);
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: calc(var(--nav-h) + 16px) 20px 40px;
    z-index: 999;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid rgba(255,255,255,0.08);
    overflow-y: auto;
  }
  .nav-links.open { right: 0; }
  .nav-link {
    width: 100%;
    font-size: 1rem;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    border-radius: 0;
  }
  .nav-link::after { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }

  /* ── MOBILE HERO (Exact Match to Reference Image 2) ── */
  .hero { min-height: auto; padding-bottom: 24px; }
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 16px 8px;
    align-items: center;
    text-align: left;
    padding: 16px 16px 10px;
    min-height: auto;
    position: relative;
  }

  /* Badge, Title, Subtitle span full width at top */
  .hero-left {
    grid-column: 1 / -1;
    order: 1;
    padding-right: 0;
  }
  .hero-badge { margin: 0 0 12px; font-size: 0.72rem; padding: 5px 14px; }
  .hero-title { font-size: 1.7rem; margin-bottom: 8px; text-align: left; line-height: 1.2; }
  .hero-title-br-mobile { display: inline; }
  .hero-subtitle {
    margin: 0 0 4px;
    font-size: 0.88rem;
    text-align: left;
    max-width: 100%;
    line-height: 1.45;
    color: rgba(255,255,255,0.75);
  }

  /* Hide desktop actions, show mobile ones */
  .hero-actions-desktop { display: none !important; }
  .hero-actions-mobile { display: flex !important; }
  .hero-play-mobile { display: inline-flex !important; }

  /* Stats: Statistics Section on Mobile with Dynamically Sized Full Height Background */
  .hero-stats {
    grid-column: 1 / -1;
    order: 2;
    border-left: none;
    border-top: none;
    padding: 10px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
    background-image: url('images/hero_boy_mobile.webp');
    background-repeat: no-repeat;
    background-position: right -65px center;
    background-size: auto 100%;
    min-height: 220px;
  }
  .hstat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 0;
    position: relative;
    z-index: 2;
  }
  .hstat-icon {
    display: flex !important;
    width: 38px; height: 38px;
    border-radius: 10px !important;
    background: var(--orange) !important;
    color: #ffffff !important;
    font-size: 0.95rem !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(232, 115, 26, 0.35);
  }
  .hstat-sep { display: none; }
  .hstat-num { font-size: 1.1rem; color: #ffffff; font-weight: 800; }
  .hstat-plus { font-size: 0.85rem; color: var(--orange); }
  .hstat-label { font-size: 0.65rem; margin-top: 0; color: rgba(255,255,255,0.7); }
  .hstat-val { gap: 1px; }

  /* Hide separate hero-center element on mobile since background-image is used */
  .hero-center {
    display: none !important;
  }

  /* Mobile CTAs: Spans Full Width below Stats & Boy Image */
  .hero-actions-mobile {
    grid-column: 1 / -1;
    order: 4;
    justify-content: center;
    gap: 12px;
    padding: 16px 0 8px;
    position: relative;
    z-index: 3;
    width: 100%;
    flex-wrap: nowrap;
  }
  .hero-actions-mobile .btn {
    font-size: 0.82rem;
    padding: 12px 18px;
    flex: 1;
    text-align: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: var(--radius-full);
  }

  /* Watch Intro below CTAs */
  .hero-play-mobile {
    grid-column: 1 / -1;
    order: 5;
    justify-content: center;
    width: 100%;
    padding-bottom: 8px;
    position: relative;
    z-index: 3;
  }
  .play-circle { width: 38px; height: 38px; font-size: 0.75rem; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 20px; }
  .why-grid { grid-template-columns: 1fr; }

  /* Compact Section Paddings & Gaps (Reduced vertical scrolling) */
  .about-section, .courses-section, .teachers-section,
  .how-section, .packages-section, .reviews-section,
  .countries-section, .faq-section, .contact-section { padding: 22px 0 !important; }
  .sec-head { margin-bottom: 12px !important; }
  .sec-h2 { font-size: 1.45rem; }
  .sec-tag { font-size: 0.72rem; }
  .card-marquee-wrapper { padding: 4px 0 10px; }

  /* Courses */
  .card-marquee-track .course-card { width: 190px !important; flex: 0 0 190px !important; }
  .course-photo-wrap { height: 110px; }
  .course-body { padding: 10px 12px 12px; }
  .course-name { font-size: 0.84rem; }
  .course-desc-sm { font-size: 0.72rem; margin-bottom: 8px; }

  /* Teachers */
  .card-marquee-track .teacher-card { width: 210px !important; flex: 0 0 210px !important; }
  .teacher-photo-wrap { height: 140px; }
  .teacher-body { padding: 12px; }
  .teacher-name { font-size: 0.88rem; }

  /* Start Learning 4 Steps: 2x2 Grid (1 & 2 top, 3 & 4 bottom) */
  .steps-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    flex-direction: initial !important;
  }
  .step-card {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 8px !important;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
  }
  .step-num { width: 38px; height: 38px; font-size: 1rem; margin-bottom: 6px; }
  .step-icon { width: 34px; height: 34px; font-size: 0.95rem; margin-bottom: 6px; }
  .step-title { font-size: 0.82rem; margin-bottom: 4px; }
  .step-desc { font-size: 0.72rem; line-height: 1.35; }
  .step-line { display: none !important; }

  /* Reviews */
  .card-marquee-track .review-card { width: 260px !important; flex: 0 0 260px !important; padding: 16px; }
  .review-text { font-size: 0.8rem; margin-bottom: 10px; }

  /* Compact Countries Marquee (Multiple flags visible at once) */
  .card-marquee-track .country-card {
    width: 110px !important;
    flex: 0 0 110px !important;
    padding: 10px 6px !important;
  }
  .country-card .country-name { font-size: 0.74rem; }
  .country-card svg { width: 34px !important; height: 22px !important; }

  /* Packages */
  .pkg-mobile-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
  .pkg-tab-btn { padding: 8px 12px; font-size: 0.78rem; }
  .packages-grid { max-width: 440px; margin: 0 auto; grid-template-columns: 1fr; }
  .packages-grid .pkg-card { display: none; padding: 24px 20px; }
  .packages-grid .pkg-card.mobile-active { display: flex; animation: fadeInCard 0.35s ease; }

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

  /* Contact (Hide Contact Info & Footer Contact Us column on mobile) */
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 20px; }
  .contact-info,
  .footer-col-contact { display: none !important; }

  /* Footer (Quick Links & Our Courses side-by-side) */
  .footer-inner {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 24px 16px !important;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col:nth-child(2) { grid-column: 1 / 2; }
  .footer-col:nth-child(3) { grid-column: 2 / 3; }
  .footer-top { padding: 32px 16px 24px; }
  .footer-social {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 320px !important;
  }

  .back-top { bottom: 16px; right: 16px; width: 38px; height: 38px; }
}

/* ─── 22. RESPONSIVE: SMALL ≤ 480px ───────────────── */
@media (max-width: 480px) {
  .hero-title { font-size: 1.5rem; }
  .hero-subtitle { font-size: 0.82rem; }
  .btn { padding: 10px 14px; font-size: 0.78rem; }
  .hero-boy-img { max-height: 170px; }
  .hstat-num { font-size: 1.05rem; }
  .hstat-icon { width: 28px; height: 28px; font-size: 0.7rem; }
  .hero-stats {
    background-position: right -80px center;
  }
}

@media (max-width: 420px) {
  .hero-stats {
    background-position: right -65px center;
  }
}

@media (max-width: 375px) {
  .hero-stats {
    background-position: right -75px center;
  }
}

@media (max-width: 320px) {
  .hero-stats {
    background-position: right -90px center;
  }
}
