/* ============================================================
   LearnWithNMT — styles.css
   Brand: Navy #1B2A6B | Blue #4A7FD4 | White #FFFFFF
   Fonts: Playfair Display (headings) + Inter (body)
   EDIT: Update colours here if branding changes
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --navy:        #1B2A6B;
  --navy-dark:   #121d4e;
  --navy-light:  #243580;
  --gold:        #4A7FD4;  /* replaced gold with mid-blue */
  --gold-light:  #7AAEE8;  /* replaced gold-light with light blue */
  --gold-dark:   #2B5FAA;  /* replaced gold-dark with deep blue */
  --white:       #FFFFFF;
  --off-white:   #F8F7F4;
  --grey-100:    #F2F2F2;
  --grey-300:    #D1D5DB;
  --grey-500:    #6B7280;
  --grey-700:    #374151;
  --text-dark:   #1a1a2e;
  --shadow-sm:   0 2px 8px rgba(27,42,107,0.08);
  --shadow-md:   0 8px 32px rgba(27,42,107,0.14);
  --shadow-lg:   0 20px 60px rgba(27,42,107,0.18);
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --transition:  0.35s cubic-bezier(0.4,0,0.2,1);
  --font-heading:'Playfair Display', Georgia, serif;
  --font-body:   'Inter', sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

body.no-scroll {
  overflow: hidden;
  height: 100%;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--navy);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

p  { font-size: 1rem; color: var(--grey-700); }

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

/* ---------- Layout Utilities ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad {
  padding: 96px 0;
}

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

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-header h2 { margin-bottom: 16px; }
.section-header p  { font-size: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  min-height: 44px;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27,42,107,0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27,42,107,0.2);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.65);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74,127,212,0.35);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.85rem;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(27,42,107,0.08);
  transition: box-shadow var(--transition), padding var(--transition);
  padding: 0;
}

#site-header.scrolled {
  box-shadow: 0 4px 24px rgba(27,42,107,0.12);
}

#site-header .container {
  max-width: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 80px;
  transition: height var(--transition);
}

#site-header.scrolled .header-inner {
  height: 66px;
}

/* ============================================================
   LOGO — Large, no box, blends cleanly into white header
   EDIT: adjust height to suit your actual logo file
   ============================================================ */
.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 4px 0;
}

.logo {
  height: 78px;          /* EDIT: increase/decrease to match your logo */
  width: 100%;
  object-fit: contain;
  object-position: left center;
  display: block;
  transition: height var(--transition);
}

#site-header.scrolled .logo {
  height: 54px;
}

/* Nav links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--grey-700);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--navy);
  background: rgba(27,42,107,0.06);
}

.nav-menu a.nav-register-btn {
  background: var(--navy);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.nav-menu a.nav-register-btn:hover {
  background: var(--navy-dark);
  color: var(--white) !important;
}

/* Header right actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* ---- Language switcher ---- */
#google_translate_element { display: none; }

.lang-switcher {
  position: relative;
  flex-shrink: 0;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--grey-700);
  background: transparent;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.lang-btn:hover,
.lang-btn.open {
  border-color: var(--navy);
  color: var(--navy);
}
.lang-arrow {
  font-size: 0.65rem;
  transition: transform var(--transition);
}
.lang-btn.open .lang-arrow { transform: rotate(180deg); }

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 210px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1100;
  padding: 4px 0 6px;
}
.lang-dropdown::-webkit-scrollbar { width: 4px; }
.lang-dropdown::-webkit-scrollbar-track { background: transparent; }
.lang-dropdown::-webkit-scrollbar-thumb {
  background: var(--grey-300);
  border-radius: 4px;
}
.lang-dropdown.open { display: block; }

.lang-region {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--grey-500);
  padding: 10px 14px 3px;
  border-top: 1px solid var(--grey-100);
}
.lang-region:first-child { border-top: none; padding-top: 6px; }

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--grey-700);
  background: none;
  border: none;
  padding: 7px 14px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.lang-option:hover { background: var(--grey-100); color: var(--navy); }

/* Real flag images (emoji flags don't render on Windows desktop) */
.lang-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
  vertical-align: middle;
}
#lang-current-flag { display: inline-flex; align-items: center; }
#lang-current-flag .lang-flag { width: 20px; height: 15px; }
.lang-option.active {
  color: var(--navy);
  font-weight: 600;
  background: rgba(27,42,107,0.06);
}

/* ---- Hide Google Translate toolbar ---- */
.goog-te-banner-frame,
.skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-te-menu-frame { display: none !important; }

body { top: 0 !important; }

.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

/* ---- Portal icon button ---- */
.portal-wrapper {
  position: relative;
}

.portal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  width: auto;
  padding: 0 14px 0 10px;
  border-radius: 100px;
  background: var(--white);
  border: 2px solid rgba(27,42,107,0.18);
  cursor: pointer;
  transition: var(--transition);
  color: var(--navy);
  white-space: nowrap;
}

.portal-btn:hover {
  border-color: var(--navy);
  background: rgba(27,42,107,0.05);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27,42,107,0.15);
}

.portal-btn i {
  font-size: 1.35rem;
  color: var(--navy);
  display: block;
  line-height: 1;
  flex-shrink: 0;
}

.portal-btn-label {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
}

/* Portal dropdown menu */
.portal-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--white);
  border: 1px solid rgba(27,42,107,0.1);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(27,42,107,0.16);
  min-width: 180px;
  z-index: 1001;
  overflow: hidden;
  /* Subtle entrance animation */
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.portal-dropdown.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.portal-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  transition: background var(--transition), color var(--transition);
  border-bottom: 1px solid rgba(27,42,107,0.06);
}

.portal-dropdown a:last-child {
  border-bottom: none;
}

.portal-dropdown a:hover {
  background: rgba(27,42,107,0.06);
  color: var(--navy-dark);
}

.portal-dropdown a i {
  font-size: 0.9rem;
  color: var(--gold);
  width: 16px;
  text-align: center;
}

/* Small arrow pointing up to the icon */
.portal-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 10px;
  width: 10px;
  height: 10px;
  background: var(--white);
  border-left: 1px solid rgba(27,42,107,0.1);
  border-top: 1px solid rgba(27,42,107,0.1);
  transform: rotate(45deg);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
  pointer-events: none;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   MOBILE NAV — Full-screen overlay, slides in from right
   White background, navy/blue theme text
   ============================================================ */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* Hidden: slid off-screen right */
  visibility: hidden;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), visibility 0s 0.35s;
}

.mobile-nav.open {
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), visibility 0s 0s;
}

/* Top bar inside overlay: logo + close button */
.mobile-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(27,42,107,0.1);
  flex-shrink: 0;
}

.mobile-nav-logo {
  height: 44px;
  max-height: 44px;
  width: auto;
  object-fit: contain;
}

.mobile-nav-close {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(27,42,107,0.07);
  border: 1px solid rgba(27,42,107,0.15);
  border-radius: 50%;
  color: var(--navy);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background var(--transition);
}
.mobile-nav-close:hover { background: rgba(27,42,107,0.13); }

/* Main nav links */
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  flex-shrink: 0;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  padding: 0 24px;
  min-height: 56px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid rgba(27,42,107,0.07);
  text-decoration: none;
  transition: background var(--transition);
}
.mobile-nav-links a:last-child { border-bottom: none; }
.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  background: rgba(27,42,107,0.05);
  color: var(--gold);
}

/* Portal + Language sections */
.mobile-nav-section {
  border-top: 1px solid rgba(27,42,107,0.1);
  padding: 12px 0 4px;
  flex-shrink: 0;
}

.mobile-nav-section-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-500);
  padding: 0 24px 6px;
}

.mobile-portal-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  min-height: 56px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px solid rgba(27,42,107,0.07);
  text-decoration: none;
  transition: background var(--transition);
}
.mobile-portal-link:last-child { border-bottom: none; }
.mobile-portal-link:hover { background: rgba(27,42,107,0.05); }
.mobile-portal-link i {
  font-size: 1rem;
  color: var(--gold);
  width: 20px;
  text-align: center;
}

/* Language trigger inside mobile nav */
.mobile-lang-trigger {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 0 24px;
  min-height: 56px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
}
.mobile-lang-trigger:hover { background: rgba(27,42,107,0.05); }
.mobile-lang-trigger .mobile-lang-arrow {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--grey-500);
}

/* ============================================================
   HERO SECTION — Photo fits perfectly at its natural ratio
   padding-bottom drives the height so no cropping occurs.
   EDIT: adjust padding-bottom % to match your photo ratio.
   ============================================================ */
#hero {
  margin-top: 80px;
  position: relative;
  width: 100%;
  /* Centre the content but let the hero GROW if the text is taller than the
     target height (e.g. longer translated headlines) instead of clipping it.
     clamp() keeps the short/English look (capped ~600px) on large screens. */
  display: flex;
  align-items: center;
  min-height: clamp(360px, calc(100vh - 80px - 108px), 600px);
  padding: 24px 0;
  background: var(--navy);
}

/* Teacher photo — fills hero perfectly */
.hero-teacher-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* object-fit: fill stretches to fit with zero cropping */
  object-fit: fill;
  z-index: 0;
  display: block;
}

/* Navy gradient overlay — heavy left, fades to clear right */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(27,42,107,0.96) 0%,
    rgba(27,42,107,0.88) 28%,
    rgba(27,42,107,0.52) 50%,
    rgba(27,42,107,0.12) 70%,
    transparent 85%
  );
  z-index: 1;
  pointer-events: none;
}

/* Soft bottom edge */
#hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(27,42,107,0.2), transparent);
  z-index: 1;
  pointer-events: none;
}

/* Container — sits over the image; the #hero flexbox centres it vertically */
#hero .container {
  position: relative;
  width: 100%;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 24px;
  z-index: 2;
}

/* Text block — left half only */
.hero-content {
  max-width: 500px;
  padding: 0;
}

/* Gold accent line */
.hero-accent-line {
  width: 44px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 18px;
  border-radius: 2px;
  display: block;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity 0.5s ease 0.05s, transform 0.5s ease 0.05s;
}

/* Tag */
.hero-tag {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 14px;
  display: block;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease 0.15s, transform 0.55s ease 0.15s;
}

/* Headline — white, bold */
.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.25s, transform 0.6s ease 0.25s;
}

/* Span — white (same as headline, unified look) */
.hero-headline span {
  color: var(--white);
  display: block;
}

/* Subtext */
.hero-sub {
  font-size: 0.97rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 440px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease 0.38s, transform 0.6s ease 0.38s;
}

/* Buttons */
.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease 0.50s, transform 0.6s ease 0.50s;
}

/* Animate in — JS adds .hero-loaded to #hero */
#hero.hero-loaded .hero-accent-line { opacity: 1; transform: scaleX(1); }
#hero.hero-loaded .hero-tag,
#hero.hero-loaded .hero-headline,
#hero.hero-loaded .hero-sub,
#hero.hero-loaded .hero-buttons    { opacity: 1; transform: translateY(0); }

/* ---- Hero responsive ---- */
@media (max-width: 900px) {
  .hero-content { max-width: 66%; }
}

@media (max-width: 899px) {
  #hero {
    height: auto;
    min-height: 0;
    max-height: none;
    margin-top: 64px;
  }
  .hero-teacher-img {
    object-fit: cover;
    object-position: center 20%;
  }
  #hero .container {
    position: relative;
    inset: auto;
    padding: 64px 24px 72px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  .hero-accent-line { margin: 0 auto 16px; }
  .hero-headline    { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero-sub         { max-width: 100%; font-size: 0.95rem; margin-bottom: 32px; }
  .hero-buttons {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .hero-buttons .btn { width: 100%; justify-content: center; max-width: 360px; }
  #hero::before {
    background: linear-gradient(
      to bottom,
      rgba(27,42,107,0.92) 0%,
      rgba(27,42,107,0.85) 60%,
      rgba(27,42,107,0.80) 100%
    );
  }
}

@media (max-width: 480px) {
  #hero { margin-top: 64px; }
  #hero .container { padding: 52px 20px 60px; }
  .hero-headline { font-size: clamp(1.8rem, 9vw, 2.2rem); }
  .hero-sub      { font-size: 0.9rem; }
}

/* ============================================================
   STATS BAR
   ============================================================ */
#stats {
  background: var(--white);
  /* Compact padding so stats bar is always visible below hero */
  padding: 28px 0;
  border-bottom: 1px solid var(--grey-100);
}

.stats-grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 32px;  /* tighter so bar stays compact */
  position: relative;
  flex: 1;
  min-width: 140px;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--gold);
  opacity: 0.4;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);  /* slightly smaller = bar stays compact */
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
  white-space: nowrap;
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--grey-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   TRUST BADGES
   ============================================================ */
#trust {
  background: var(--off-white);
  padding: 88px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.trust-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(27,42,107,0.06);
  transition: var(--transition);
}

.trust-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(74,127,212,0.3);
}

.trust-icon {
  width: 56px;
  height: 56px;
  background: rgba(27,42,107,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.trust-icon i {
  font-size: 1.4rem;
  color: var(--gold);
}

.trust-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}

/* ============================================================
   LESSON CATEGORY CARDS
   ============================================================ */
#lessons {
  background: var(--white);
  padding: 96px 0;
}

.lessons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 16px;
}

.lesson-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lesson-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.lesson-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

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

.lesson-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}
.lesson-icon--blue   { background: #EFF6FF; color: #3B82F6; }
.lesson-icon--green  { background: #F0FDF4; color: #22C55E; }
.lesson-icon--teal   { background: #F0FDFA; color: #0D9488; }
.lesson-icon--orange { background: #FFF7ED; color: #F97316; }
.lesson-icon--purple { background: #F5F3FF; color: #8B5CF6; }
.lesson-icon--slate  { background: #F1F5F9; color: #475569; }
.lesson-icon--rose   { background: #FFF1F2; color: #e11d48; }

.lesson-section-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 6px;
}

.lesson-great-for ul,
.lesson-course-details ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lesson-great-for li,
.lesson-course-details li {
  font-size: 0.85rem;
  color: var(--grey-500);
  padding-left: 12px;
  position: relative;
}

.lesson-great-for li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--navy);
}

.lesson-course-details li {
  padding-left: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.lesson-course-details li i {
  color: #0D9488;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.lesson-card-group-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.lesson-group-tag {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #0D9488;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.lesson-group-title {
  font-size: 1.05rem !important;
  color: var(--navy);
  margin: 0;
  line-height: 1.3;
}

.lesson-card h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin: 0;
}

.lesson-card p {
  font-size: 0.93rem;
  color: var(--grey-500);
  line-height: 1.65;
  flex: 1;
}

.lesson-card .btn-sm { align-self: flex-start; margin-top: 8px; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
#how-it-works {
  background: var(--off-white);
  padding: 96px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 16px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 44px;
  left: calc(16.67% + 28px);
  right: calc(16.67% + 28px);
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  opacity: 0.4;
  z-index: 0;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(27,42,107,0.06);
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.85;
}

.step-icon {
  width: 52px;
  height: 52px;
  background: rgba(27,42,107,0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step-icon i { font-size: 1.3rem; color: var(--navy); }

.step-card h3 { font-size: 1.15rem; margin-bottom: 12px; color: var(--navy); }
.step-card p  { font-size: 0.93rem; color: var(--grey-500); line-height: 1.7; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
#testimonials {
  background: var(--navy);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

#testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,0.015) 0px,
    rgba(255,255,255,0.015) 1px,
    transparent 1px,
    transparent 60px
  );
  pointer-events: none;
}

#testimonials .section-header h2,
#testimonials .section-header .section-tag { color: var(--white); }
#testimonials .section-header p { color: rgba(255,255,255,0.7); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.testimonial-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
  border-color: rgba(74,127,212,0.3);
}

.quote-mark {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  color: var(--gold);
  line-height: 0.6;
  margin-bottom: 20px;
  opacity: 0.5;
  display: block;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.testimonial-stars i { font-size: 0.8rem; color: var(--gold); }

.testimonial-text {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.75;
  margin-bottom: 20px;
  font-style: italic;
  flex: 1;
}

.testimonial-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-light);
}

/* ============================================================
   FEATURED TESTIMONIAL — Grandmother Story
   ============================================================ */
.testimonial-card--featured {
  background: linear-gradient(150deg, rgba(74,127,212,0.14) 0%, rgba(255,255,255,0.04) 100%);
  border-color: rgba(122,174,232,0.45);
  box-shadow:
    0 0 40px rgba(74,127,212,0.18),
    0 8px 28px rgba(0,0,0,0.2);
}

.testimonial-card--featured:hover {
  border-color: rgba(122,174,232,0.7);
  box-shadow:
    0 0 60px rgba(74,127,212,0.28),
    0 12px 36px rgba(0,0,0,0.26);
}

.testimonial-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(74,127,212,0.18);
  border: 1px solid rgba(122,174,232,0.38);
  color: var(--gold-light);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.testimonial-featured-badge i { color: #e87c7c; font-size: 0.65rem; }

.testimonial-featured-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(74,127,212,0.14);
  border: 2px solid rgba(122,174,232,0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 14px;
  box-shadow: 0 0 16px rgba(74,127,212,0.2);
}

/* ============================================================
   FINAL CTA BANNER
   ============================================================ */
#cta-banner {
  background: var(--navy-dark);
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#cta-banner::before {
  content: '';
  position: absolute;
  bottom: -120px; left: -120px;
  width: 400px; height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(74,127,212,0.12);
  pointer-events: none;
}

#cta-banner::after {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 350px; height: 350px;
  border-radius: 50%;
  border: 1px solid rgba(74,127,212,0.1);
  pointer-events: none;
}

.cta-banner-content {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin: 0 auto;
}

.cta-banner-content .section-tag { color: var(--gold); }
.cta-banner-content h2           { color: var(--white); margin-bottom: 16px; }
.cta-banner-content p            { color: rgba(255,255,255,0.75); font-size: 1.05rem; margin-bottom: 40px; }

.cta-banner-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER — Premium redesign
   Background: #080f24 | Accent: #4A7FD4 | Typography: Playfair
   ============================================================ */
#site-footer {
  background: #080f24;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 72px 0 0;
  position: relative;
  overflow: hidden;
}

/* Subtle gradient wash at the very top */
#site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 240px;
  background: linear-gradient(to bottom, rgba(74,127,212,0.05) 0%, transparent 100%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  position: relative;
  z-index: 1;
}

/* ── Column 1 — Brand ── */
.footer-logo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 16px;
}

.footer-logo {
  height: 46px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.footer-tagline {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255,255,255,0.88);
  line-height: 1.55;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.78;
  margin-bottom: 24px;
}

.footer-brand-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin-bottom: 20px;
}

.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }

.social-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease,
              color 0.2s ease, transform 0.2s ease;
}

.social-icon:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
  transform: translateY(-2px);
}

/* ── Column headings ── */
.footer-col-heading,
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ── Nav items — lessons & group courses ── */
.footer-nav-list {
  display: flex;
  flex-direction: column;
}

.footer-nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  text-decoration: none;
  transition: gap 0.2s ease;
}
.footer-nav-item:last-child { border-bottom: none; }

.footer-nav-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  color: #4A7FD4;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer-nav-text {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.68);
  font-weight: 500;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.footer-nav-item:hover .footer-nav-icon {
  background: rgba(74,127,212,0.14);
  border-color: rgba(74,127,212,0.38);
  color: #7AAEE8;
}
.footer-nav-item:hover .footer-nav-text,
.footer-nav-item:hover .footer-course-name { color: var(--white); }

/* WhatsApp icon gets a subtle green tint */
.footer-nav-icon.whatsapp {
  color: #25D366;
  border-color: rgba(37,211,102,0.18);
}
.footer-nav-item:hover .footer-nav-icon.whatsapp {
  background: rgba(37,211,102,0.1);
  border-color: rgba(37,211,102,0.35);
  color: #2ecc71;
}

/* ── Group course specifics ── */
.footer-course-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-course-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  line-height: 1.3;
  transition: color 0.2s ease;
}

.footer-level-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(74,127,212,0.15);
  border: 1px solid rgba(74,127,212,0.3);
  color: #4A7FD4;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  width: fit-content;
  font-family: var(--font-body);
}

/* ── Contact items ── */
.footer-contact-list {
  display: flex;
  flex-direction: column;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  text-decoration: none;
}
.footer-contact-item:last-child { border-bottom: none; }

.footer-contact-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 3px;
}

.footer-contact-value {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  word-break: break-all;
  transition: color 0.2s ease;
  line-height: 1.45;
}

.footer-contact-sub {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
  margin-top: 2px;
}

a.footer-contact-item:hover .footer-contact-value { color: var(--white); }

/* Legacy classes — kept for backwards compatibility */
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.88rem; color: rgba(255,255,255,0.58); text-decoration: none; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--white); }

/* ── Bottom bar ── */
.footer-bottom-bar {
  background: rgba(0,0,0,0.22);
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative;
  z-index: 1;
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.35); }
.footer-bottom-center { color: rgba(255,255,255,0.35) !important; }

.footer-legal { display: flex; gap: 20px; }

.footer-legal a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-legal a:hover { color: var(--white); }

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .trust-grid       { grid-template-columns: repeat(3, 1fr); }
  .lessons-grid     { grid-template-columns: repeat(2, 1fr); }
  .footer-grid      { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-grid .footer-col:first-child { grid-column: 1 / -1; }
}

/* ============================================================
   RESPONSIVE — FOOTER SINGLE COLUMN (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-grid .footer-col:first-child { grid-column: auto; }
  /* Centre the brand column on small screens */
  .footer-col-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-logo-pill   { align-self: center; }
  .footer-social      { justify-content: center; }
  .footer-brand-divider { align-self: stretch; }
}

/* ============================================================
   RESPONSIVE — MOBILE HEADER (≤ 899px)
   Nav hides, hamburger appears, header goes solid navy
   ============================================================ */
@media (max-width: 899px) {
  /* Keep white header — only structural changes on mobile */
  .header-inner,
  #site-header.scrolled .header-inner {
    height: auto;
    min-height: 64px;
    padding: 12px 16px;
  }

  /* Logo: max 45px on mobile */
  .logo,
  #site-header.scrolled .logo {
    height: 45px;
    max-height: 45px;
  }

  /* Hide desktop nav */
  .nav-menu { display: none; }

  /* Show hamburger */
  .hamburger { display: flex; }

  /* Header actions */
  .header-actions { gap: 8px; }

  /* Language button: globe icon only */
  #lang-current-label,
  .lang-arrow { display: none; }

  .lang-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.1rem;
  }

  /* Portal button: icon-only circle on mobile */
  .portal-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }
  .portal-btn-label { display: none; }

  /* Hero: offset for 64px mobile header */
  #hero { margin-top: 64px; }

  /* Page heroes: account for mobile header height */
  .page-hero { padding: 100px 0 52px; }
}

/* ============================================================
   RESPONSIVE — TABLET CONTENT (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  .container { padding: 0 20px; }

  .section-pad  { padding: 56px 0; }
  #lessons      { padding: 56px 0; }
  #how-it-works { padding: 56px 0; }
  #testimonials { padding: 56px 0; }
  #cta-banner   { padding: 56px 0; }

  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-card:nth-child(5) { grid-column: 1 / -1; max-width: 320px; margin: 0 auto; }

  .steps-grid { grid-template-columns: 1fr; gap: 24px; }
  .steps-grid::before { display: none; }

  .testimonials-grid { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }

  .stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
  .stat-item:not(:last-child)::after { display: none; }
  .stat-item { border-bottom: 1px solid var(--grey-100); padding: 20px 16px; }
  .stat-item:nth-child(even) { border-left: 1px solid var(--grey-100); }
  .stat-item:last-child { grid-column: 1 / -1; border-bottom: none; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .section-pad  { padding: 40px 0; }
  #lessons      { padding: 40px 0; }
  #how-it-works { padding: 40px 0; }
  #testimonials { padding: 40px 0; }
  #cta-banner   { padding: 40px 0; }

  /* Section headers tighter on small screens */
  .section-header { margin-bottom: 36px; }

  /* Lang dropdown: prevent going off-screen */
  .lang-dropdown { right: auto; left: 0; min-width: 190px; }

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

  .trust-grid { grid-template-columns: 1fr; }
  .trust-card:nth-child(5) { grid-column: auto; max-width: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid .footer-col:first-child { grid-column: auto; }

  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .footer-bottom-center { order: -1; }

  .cta-banner-buttons { flex-direction: column; align-items: center; }
  .cta-banner-buttons .btn { width: 100%; justify-content: center; }

  .testimonials-grid { max-width: 100%; }

  /* Buttons full-width in hero on very small screens */
  .hero-buttons .btn { width: 100%; justify-content: center; }

  /* Page hero tighter on smallest screens */
  .page-hero { padding: 84px 16px 44px; }
}

/* ============================================================
   PAGE TRANSITIONS
   ============================================================ */
@keyframes page-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

body {
  animation: page-fade-in 0.38s ease both;
}

body.page-exit {
  opacity: 0 !important;
  transform: translateY(-6px) !important;
  transition: opacity 0.28s ease, transform 0.28s ease !important;
  pointer-events: none;
}

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(27,42,107,0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s, background 0.2s ease;
  z-index: 900;
  text-decoration: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0s, background 0.2s ease;
}

.back-to-top:hover {
  background: var(--navy-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(27,42,107,0.35);
}

@media (max-width: 480px) {
  .back-to-top { bottom: 20px; right: 16px; width: 42px; height: 42px; font-size: 0.9rem; }
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */

/* Footer login button (used across pages) */
.footer-login-btn {
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.3);
}

/* ---- Page Hero (shared across inner pages) ---- */
.page-hero {
  background: var(--navy);
  padding: 140px 0 72px;
  text-align: center;
}
.page-hero-tag { color: rgba(255,255,255,0.65); }
.page-hero h1 {
  color: var(--white);
  margin-bottom: 16px;
}
.page-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ---- Meet Nalini split layout ---- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-photo img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
}
.about-content h2 { margin-bottom: 8px; }
.about-role {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 24px;
}
.about-content p { margin-bottom: 18px; }
.about-content .btn { margin-top: 8px; }

/* ---- TEFL Certification section ---- */
#tefl-cert {
  background: var(--navy);
  padding: 88px 0;
  text-align: center;
}
.tefl-inner { max-width: 680px; margin: 0 auto; }
.tefl-icon {
  font-size: 3.2rem;
  color: var(--gold);
  margin-bottom: 24px;
}
#tefl-cert h2 {
  color: var(--white);
  margin-bottom: 20px;
}
#tefl-cert p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ---- Teaching approach cards ---- */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.approach-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.approach-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.approach-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 18px;
}
.approach-card h3 { margin-bottom: 12px; }
.approach-card p  { margin: 0; }

/* ---- Global reach stats ---- */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.about-stat {
  background: var(--off-white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-md);
  padding: 36px 20px;
  text-align: center;
}
.about-stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.1;
}
.about-stat-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--grey-500);
}

/* ---- About CTA banner ---- */
#about-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 96px 0;
  text-align: center;
}
.about-cta-inner { max-width: 700px; margin: 0 auto; padding: 0 24px; }
.about-cta-tag   { color: rgba(255,255,255,0.65); }
#about-cta h2 {
  color: var(--white);
  margin-bottom: 16px;
}
#about-cta p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  margin-bottom: 40px;
}
.about-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- About page responsive ---- */
@media (max-width: 1024px) {
  .about-split   { gap: 48px; }
  .about-stats   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .page-hero        { padding: 120px 0 56px; }
  .about-split      { grid-template-columns: 1fr; gap: 36px; }
  .about-photo img  { aspect-ratio: 3 / 2; max-height: 420px; }
  .approach-grid    { grid-template-columns: 1fr; }
  #about-cta        { padding: 64px 0; }
}

@media (max-width: 480px) {
  .about-stats              { grid-template-columns: repeat(2, 1fr); }
  .about-cta-buttons .btn   { width: 100%; justify-content: center; }
}
