/* ============================================================
   SUNSHINE TUTORING ACADEMY
   Global Stylesheet
   The Algorithm, LLC — Web Development
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Nunito:wght@300;400;500;600;700;800&display=swap');

/* ============================================================
   1. CSS VARIABLES
   ============================================================ */
:root {
  /* Brand Colors */
  --teal:        #2B7FA3;
  --teal-dark:   #1A5276;
  --teal-light:  #D6EAF8;
  --navy:        #12263A;
  --gold:        #F5A623;
  --gold-light:  #FFC84A;
  --gold-pale:   #FFF4DC;
  --cream:       #FFFDF7;
  --white:       #FFFFFF;
  --gray-light:  #F4F7FA;
  --gray-mid:    #E2EBF0;
  --green:       #27AE60;
  --green-light: #D5F5E3;

  /* Text */
  --text-dark:   #12263A;
  --text-mid:    #3D5A73;
  --text-light:  #7A96AA;

  /* Shadows */
  --shadow-xs: 0 1px 4px rgba(18,38,58,0.08);
  --shadow-sm: 0 2px 12px rgba(18,38,58,0.10);
  --shadow-md: 0 8px 32px rgba(18,38,58,0.13);
  --shadow-lg: 0 20px 60px rgba(18,38,58,0.16);
  --shadow-gold: 0 8px 28px rgba(245,166,35,0.35);

  /* Spacing Scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Border Radius */
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  24px;
  --radius-xl:  40px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Nunito', system-ui, sans-serif;

  /* Layout */
  --container:   1100px;
  --container-sm: 760px;

  /* Aliases (used by new pages) */
  --border:   #E2EBF0;   /* same as --gray-mid */
  --bg-light: #F4F7FA;   /* same as --gray-light */
}

/* ============================================================
   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(--cream);
  color: var(--text-dark);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol { list-style: none; }

input, select, textarea, button {
  font-family: inherit;
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--text-dark);
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.2rem; font-family: var(--font-body); font-weight: 700; }
h5 { font-size: 1rem; font-family: var(--font-body); font-weight: 700; }

p {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.75;
}

strong { font-weight: 700; }

/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.container-sm {
  max-width: var(--container-sm);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.section {
  padding: var(--space-9) 0;
}

.section-sm {
  padding: var(--space-7) 0;
}

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

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }

.hidden { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ============================================================
   5. SECTION LABELS & HEADINGS
   ============================================================ */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--teal-light);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.section-tag.gold {
  background: var(--gold-pale);
  color: #9B6A00;
}

.section-tag.green {
  background: var(--green-light);
  color: #1A7A42;
}

.section-header {
  margin-bottom: var(--space-7);
}

.section-header .section-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 580px;
  margin-top: var(--space-3);
  line-height: 1.75;
}

.section-header.centered {
  text-align: center;
}
.section-header.centered .section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   6. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 30px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.97rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-secondary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-secondary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline-teal {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-outline-teal:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}

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

.btn-lg {
  padding: 17px 38px;
  font-size: 1.05rem;
}

/* ============================================================
   7. TOPBAR
   ============================================================ */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.80);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
  z-index: 300;
  overflow: visible;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-item svg {
  color: var(--gold);
  flex-shrink: 0;
}

.topbar-item a {
  color: var(--gold);
  font-weight: 700;
  transition: var(--transition);
}
.topbar-item a:hover { color: var(--gold-light); }

.topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

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

.topbar-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  font-weight: 700;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.10);
}
.topbar-social a:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

/* ============================================================
   8. HEADER / NAV
   ============================================================ */
header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  gap: var(--space-4);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  position: relative;
  z-index: 10;
}

.nav-logo img {
  height: 90px;
  width: auto;
  transform-origin: center center;
  filter: drop-shadow(0 4px 16px rgba(18,38,58,0.22));
  position: relative;
  cursor: pointer;
  animation: logoEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-fill-mode: both;
}

/* Swell + wobble triggered by JS class */
.nav-logo img.cap-swell {
  animation: capSwell 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Confetti canvas */
#confetti-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
}

@keyframes logoEntrance {
  0%   { opacity: 0; transform: scale(0.82) translateY(-6px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes capSwell {
  0%   { transform: scale(1)    rotate(0deg); }
  25%  { transform: scale(1.22) rotate(-5deg); }
  50%  { transform: scale(1.26) rotate(4deg); }
  72%  { transform: scale(1.18) rotate(-2deg); }
  100% { transform: scale(1)    rotate(0deg); }
}

/* Hide old text element if still present */
.nav-logo-text { display: none; }

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text-mid);
  transition: var(--transition);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--teal);
}
.nav-links > li > a.active::after {
  content: '';
  position: absolute;
  bottom: -18px;
  left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-3) 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, top 0.2s ease;
  border: 1px solid var(--gray-mid);
  z-index: 300;
  margin-top: -8px; /* overlap the gap */
}

.nav-links > li.dropdown-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  top: calc(100% + 8px);
}

.nav-dropdown a {
  display: block;
  padding: 9px var(--space-5);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-mid);
  transition: var(--transition);
}
.nav-dropdown a:hover {
  color: var(--teal);
  background: var(--teal-light);
}

.dropdown-arrow {
  font-size: 0.65rem;
  transition: var(--transition);
}
.nav-links > li:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* Nav CTA */
.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.nav-phone {
  font-weight: 700;
  font-size: 0.97rem;
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.nav-phone:hover { color: var(--teal); }
.nav-phone svg { color: var(--gold); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger:hover span { background: var(--teal); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--navy);
  z-index: 999;
  flex-direction: column;
  padding: var(--space-7) var(--space-5);
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }

.mobile-nav-close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  background: rgba(255,255,255,0.10);
  border: none;
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.mobile-nav-close:hover { background: rgba(255,255,255,0.20); }

.mobile-nav-logo {
  margin-bottom: var(--space-7);
  margin-top: var(--space-4);
}
.mobile-nav-logo img { height: 52px; }

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
}
.mobile-nav-links li a {
  display: block;
  padding: var(--space-4) 0;
  font-size: 1.3rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}
.mobile-nav-links li a:hover { color: var(--gold); padding-left: var(--space-3); }

.mobile-nav-sub {
  padding-left: var(--space-4);
  list-style: none;
  margin-top: -4px;
  margin-bottom: var(--space-2);
}
.mobile-nav-sub li a {
  font-size: 1rem;
  font-family: var(--font-body);
  color: rgba(255,255,255,0.70);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-nav-footer {
  margin-top: var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* ============================================================
   9. HERO
   ============================================================ */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--teal-dark) 0%, #1E6B93 55%, var(--teal) 100%);
  overflow: hidden;
  padding: var(--space-10) 0 var(--space-9);
}

/* Decorative shapes */
.hero-circle-1 {
  position: absolute;
  top: -140px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-circle-2 {
  position: absolute;
  bottom: -120px;
  left: -80px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.hero-dots {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-8);
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(245,166,35,0.15);
  border: 1px solid rgba(245,166,35,0.30);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: var(--space-5);
}
.hero-title .highlight {
  color: var(--gold);
  display: block;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-desc {
  font-size: 1.07rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.75;
  margin-bottom: var(--space-6);
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
  align-items: flex-start;
}
.hero-actions > * {
  width: 100%;
  max-width: 460px;
  box-sizing: border-box;
  justify-content: center;
}
.hero-stepup-btn {
  justify-content: flex-start;
}

/* Hero trust stats */
.hero-stats {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.60);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Hero card (right side) */
.hero-card {
  background: rgba(255,255,255,0.09);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  animation: fadeInUp 0.7s ease 0.2s both;
}

.hero-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 4px;
}
.hero-card-sub {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--space-5);
}

.hero-subject-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.hero-subject {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  padding: 12px var(--space-4);
  border: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}
.hero-subject:hover {
  background: rgba(255,255,255,0.12);
}
.subject-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.subject-icon.math    { background: rgba(245,166,35,0.22); }
.subject-icon.reading { background: rgba(39,174,96,0.22); }
.subject-icon.writing { background: rgba(43,127,163,0.22); }
.subject-icon.test    { background: rgba(155,89,182,0.22); }

.hero-subject-info strong {
  display: block;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
}
.hero-subject-info span {
  color: rgba(255,255,255,0.50);
  font-size: 0.75rem;
}

/* Scholarship CTA in hero card */
.scholarship-btn {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--gold);
  border-radius: var(--radius-md);
  padding: 13px var(--space-4);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.88rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.scholarship-btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.scholarship-btn-icon {
  width: 34px;
  height: 34px;
  background: rgba(18,38,58,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.scholarship-btn-text strong { display: block; font-size: 0.88rem; }
.scholarship-btn-text span { font-size: 0.73rem; opacity: 0.75; font-weight: 500; }

/* ============================================================
   10. TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-mid);
  padding: var(--space-4) 0;
}

.trust-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-mid);
}
.trust-item svg, .trust-item .t-icon {
  color: var(--teal);
  font-size: 1rem;
}

.trust-divider {
  width: 1px;
  height: 22px;
  background: var(--gray-mid);
}

/* ============================================================
   11. SERVICES / SUBJECT CARDS
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-mid);
  transition: var(--transition-slow);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.service-card-accent {
  height: 5px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.service-card-accent.math    { background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.service-card-accent.reading { background: linear-gradient(90deg, var(--green), #52D68A); }
.service-card-accent.writing { background: linear-gradient(90deg, var(--teal), #4ABCE0); }

.service-card-body {
  padding: var(--space-6) var(--space-5) var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-icon {
  font-size: 2.4rem;
  margin-bottom: var(--space-4);
  line-height: 1;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: var(--space-3);
  color: var(--text-dark);
}

.service-card p {
  font-size: 0.93rem;
  margin-bottom: var(--space-4);
  flex: 1;
}

.grade-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.grade-tag {
  background: var(--gray-light);
  color: var(--text-mid);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================
   12. SPECIALIZED PROGRAMS GRID
   ============================================================ */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.program-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--gray-mid);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  transition: var(--transition);
}
.program-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--teal-light);
  transform: translateY(-2px);
}

.program-icon {
  width: 42px;
  height: 42px;
  background: var(--teal-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  color: var(--teal);
}

.program-icon.gold-bg { background: var(--gold-pale); color: #9B6A00; }
.program-icon.green-bg { background: var(--green-light); color: #1A7A42; }

.program-card h4 {
  font-size: 0.93rem;
  color: var(--text-dark);
  margin-bottom: 3px;
}
.program-card p {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ============================================================
   13. WHY US / FEATURE SECTION
   ============================================================ */
.why-section {
  background: linear-gradient(150deg, var(--teal-dark) 0%, #1C6487 100%);
  position: relative;
  overflow: hidden;
}
.why-section::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,166,35,0.12) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.why-section .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.why-section .section-tag { background: rgba(245,166,35,0.18); color: var(--gold-light); }
.why-section h2 { color: var(--white); }
.why-section .section-sub { color: rgba(255,255,255,0.72); }

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.feature-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.feature-icon {
  width: 46px;
  height: 46px;
  background: rgba(245,166,35,0.18);
  border: 1px solid rgba(245,166,35,0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.feature-item strong {
  display: block;
  color: var(--white);
  font-size: 0.97rem;
  margin-bottom: 3px;
}
.feature-item p {
  color: rgba(255,255,255,0.60);
  font-size: 0.85rem;
  line-height: 1.55;
  margin: 0;
}

/* Stats grid (right side of why-us) */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.stat-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-5) var(--space-4);
  text-align: center;
  transition: var(--transition);
}
.stat-card:hover {
  background: rgba(255,255,255,0.13);
}
.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stat-card span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.45;
  font-weight: 600;
}
.stat-card.wide {
  grid-column: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  text-align: left;
  padding: var(--space-4) var(--space-5);
}
.stat-card.wide strong {
  font-size: 1.5rem;
  margin: 0;
  white-space: nowrap;
}
.stat-card.wide span { font-size: 0.88rem; }

/* ============================================================
   14. TESTIMONIALS
   ============================================================ */
.testimonials-section {
  background: var(--gray-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-mid);
  position: relative;
  transition: var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.25;
  line-height: 0.8;
  margin-bottom: var(--space-3);
  display: block;
}

.stars {
  display: flex;
  gap: 3px;
  margin-bottom: var(--space-4);
}
.stars span { color: var(--gold); font-size: 0.95rem; }

.testimonial-card blockquote {
  font-size: 0.97rem;
  color: var(--text-mid);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: var(--space-5);
  border: none;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.author-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 800;
  flex-shrink: 0;
}
.author-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
}
.author-note {
  font-size: 0.77rem;
  color: var(--text-light);
}

/* ============================================================
   15. TEACHERS GRID
   ============================================================ */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.teacher-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-mid);
  transition: var(--transition-slow);
  text-align: center;
}
.teacher-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.teacher-card:hover .teacher-photo {
  transform: scale(1.04);
}

.teacher-photo-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--teal-light);
}
.teacher-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

/* Placeholder when no photo */
.teacher-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--teal-light), var(--gray-mid));
  font-size: 3.5rem;
}

.teacher-info {
  padding: var(--space-4) var(--space-4) var(--space-5);
}
.teacher-info h3 {
  font-size: 1.1rem;
  margin-bottom: 3px;
  color: var(--text-dark);
}
.teacher-role {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: var(--space-2);
}
.teacher-subjects {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: var(--space-4);
}
.teacher-card .btn { font-size: 0.8rem; padding: 8px 18px; }

/* Individual teacher page */
.teacher-hero {
  background: var(--gray-light);
  padding: var(--space-9) 0 var(--space-7);
  border-bottom: 1px solid var(--gray-mid);
}
.teacher-hero-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: var(--space-8);
  align-items: start;
}
.teacher-hero-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 3/4;
  background: var(--teal-light);
}
.teacher-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.teacher-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal-light);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}
.teacher-hero-name {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--text-dark);
  margin-bottom: var(--space-2);
}
.teacher-hero-subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: var(--space-4) 0 var(--space-5);
}
.subject-pill {
  background: var(--gold-pale);
  color: #9B6A00;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-full);
}
.teacher-bio {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: var(--space-3);
}

/* ============================================================
   16. SERVICE AREAS
   ============================================================ */
.areas-section {
  background: var(--cream);
}

.county-block {
  margin-bottom: var(--space-8);
}
.county-block:last-child { margin-bottom: 0; }

.county-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--teal-light);
}
.county-header h2 {
  font-size: 1.6rem;
  color: var(--teal-dark);
}
.county-badge {
  background: var(--teal-light);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

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

.city-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--gray-mid);
  transition: var(--transition);
}
.city-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--teal-light);
  transform: translateY(-2px);
}
.city-card h3 {
  font-size: 1.2rem;
  color: var(--teal-dark);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.city-card h3 .pin { font-size: 0.9rem; }
.city-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: var(--space-1);
}
.city-stat svg { color: var(--teal); }
.city-card .btn { margin-top: var(--space-4); font-size: 0.8rem; padding: 9px 20px; }

/* ============================================================
   17. CONTACT / FORM
   ============================================================ */
.contact-section .container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-8);
  align-items: start;
}

.contact-info h2 { margin-bottom: var(--space-3); }
.contact-info > p { margin-bottom: var(--space-6); }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}
.contact-detail-icon {
  width: 42px;
  height: 42px;
  background: var(--teal-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-detail-text strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}
.contact-detail-text a,
.contact-detail-text span {
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 600;
}
.contact-detail-text a:hover { color: var(--teal); }

.hours-table {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  font-size: 0.88rem;
}
.hours-day { color: var(--text-mid); }
.hours-time { font-weight: 700; color: var(--text-dark); }

/* Scholarship callout above form */
.scholarship-callout {
  background: linear-gradient(135deg, var(--gold-pale), #FFF0C0);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  transition: var(--transition);
}
.scholarship-callout:hover {
  background: var(--gold-pale);
  box-shadow: var(--shadow-gold);
}
.scholarship-callout-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}
.scholarship-callout strong {
  display: block;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 2px;
}
.scholarship-callout span {
  font-size: 0.8rem;
  color: #9B6A00;
}
.scholarship-callout a {
  margin-left: auto;
  white-space: nowrap;
}

/* Form Card */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-6);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-mid);
}

.form-card h3 {
  font-size: 1.5rem;
  margin-bottom: 4px;
  color: var(--text-dark);
}
.form-card .form-sub {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: var(--space-6);
}

.form-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: var(--space-3) 0 var(--space-3);
  border-top: 1.5px solid var(--gray-mid);
  margin-top: var(--space-2);
  margin-bottom: var(--space-2);
}
.form-section-title:first-child { border-top: none; padding-top: 0; margin-top: 0; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-group {
  margin-bottom: var(--space-4);
}
.form-group.full { grid-column: span 2; }

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.form-group label .required {
  color: #E74C3C;
  margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px var(--space-4);
  border: 1.5px solid var(--gray-mid);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--cream);
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

/* Restore native appearance for checkboxes and radios */
.form-group input[type="checkbox"] {
  -webkit-appearance: checkbox;
  appearance: checkbox;
  width: auto;
  padding: 0;
}
.form-group input[type="radio"] {
  -webkit-appearance: radio;
  appearance: radio;
  width: auto;
  padding: 0;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(43,127,163,0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-light); }

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237A96AA' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* Checkbox group */
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2) var(--space-2);
}

/* Hide native checkbox — replaced by pill toggle */
.checkbox-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Pill toggle — default unselected state */
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-mid);
  background: var(--white);
  transition: all 0.18s ease;
  user-select: none;
  -webkit-user-select: none;
}
.checkbox-item:hover {
  border-color: var(--teal);
  background: var(--teal-light);
}

/* Custom box indicator */
.checkbox-item span::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--gray-mid);
  border-radius: 4px;
  margin-right: 8px;
  vertical-align: middle;
  flex-shrink: 0;
  transition: all 0.18s ease;
  background: var(--white);
  position: relative;
  top: -1px;
}

/* CHECKED STATE — pill fills with navy, box fills with teal checkmark */
.checkbox-item input[type="checkbox"]:checked + span::before {
  background: var(--teal);
  border-color: var(--teal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 5l3.5 3.5L11 1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 8px;
}
.checkbox-item:has(input[type="checkbox"]:checked) {
  background: var(--navy);
  border-color: var(--navy);
}
.checkbox-item:has(input[type="checkbox"]:checked) span {
  color: var(--white);
  font-weight: 700;
}
.checkbox-item:has(input[type="checkbox"]:checked) span::before {
  background: var(--teal);
  border-color: var(--teal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 5l3.5 3.5L11 1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 8px;
}

/* Focus ring for keyboard accessibility */
.checkbox-item input[type="checkbox"]:focus + span::before {
  box-shadow: 0 0 0 3px rgba(43,127,163,0.25);
  outline: none;
}

.checkbox-item span {
  font-size: 0.88rem;
  color: var(--text-mid);
  font-weight: 500;
  line-height: 1.3;
  display: flex;
  align-items: center;
}


/* Fallback for Safari < 15.4 that doesn't support :has() — added via JS */
.checkbox-item.is-checked {
  background: var(--navy);
  border-color: var(--navy);
}
.checkbox-item.is-checked span {
  color: var(--white);
  font-weight: 700;
}
.checkbox-item.is-checked span::before {
  background: var(--teal);
  border-color: var(--teal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 5l3.5 3.5L11 1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 8px;
}

/* Social icon circles for light backgrounds (contact page sidebar) */
.social-icons {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.social-icons a {
  width: 38px;
  height: 38px;
  background: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 800;
  border: 2px solid var(--teal);
  transition: var(--transition);
  text-decoration: none;
}
.social-icons a:hover {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
/* Radio buttons — keep native but style consistently */
.radio-item input[type="radio"]:checked {
  accent-color: var(--teal);
}
.radio-item:has(input:checked) span {
  color: var(--teal);
  font-weight: 700;
}

/* Radio group */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.radio-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
  background: var(--gray-light);
  border: 1.5px solid var(--gray-mid);
  border-radius: var(--radius-sm);
  padding: 12px var(--space-4);
  transition: var(--transition);
}
.radio-item:hover { border-color: var(--teal-light); background: var(--teal-light); }
.radio-item input[type="radio"] {
  width: 17px;
  height: 17px;
  accent-color: var(--teal);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
  padding: 0;
  border: none;
  background: none;
}
.radio-item-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 700;
}
.radio-item-text span {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 400;
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: var(--space-2);
  line-height: 1.5;
}

.form-submit-wrap {
  margin-top: var(--space-5);
}
.form-submit-wrap .btn { width: 100%; justify-content: center; font-size: 1rem; padding: 16px; }
.form-submit-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: var(--space-3);
}

/* ============================================================
   18. CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--gold) 0%, #E8960F 100%);
  padding: var(--space-8) 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  pointer-events: none;
}
.cta-banner .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.cta-banner h2 {
  color: var(--navy);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  max-width: 560px;
}
.cta-banner p {
  color: rgba(18,38,58,0.72);
  margin-top: var(--space-2);
  font-size: 1rem;
}
.cta-banner-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: #1A3550;
  border-color: #1A3550;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   19. FOOTER
   ============================================================ */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: var(--space-9) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--space-7);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand img {
  height: 52px;
  width: auto;
  margin-bottom: var(--space-4);
}
.footer-brand p {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.58);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}
.footer-social {
  display: flex;
  gap: var(--space-2);
}
.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.70);
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.10);
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
  font-family: var(--font-body);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  list-style: none;
}
.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.60);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--gold); padding-left: 4px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.footer-contact-item svg, .footer-contact-item .fc-icon {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.85rem;
}
.footer-contact-item span, .footer-contact-item a {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
  transition: var(--transition);
}
.footer-contact-item a:hover { color: var(--gold); }

.footer-bottom {
  padding: var(--space-4) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.40);
  margin: 0;
}
.footer-bottom a {
  color: rgba(255,255,255,0.40);
  font-size: 0.8rem;
  transition: var(--transition);
}
.footer-bottom a:hover { color: var(--gold); }
.footer-bottom-links {
  display: flex;
  gap: var(--space-4);
}

.footer-credit {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.30);
}
.footer-credit a {
  color: var(--gold);
  opacity: 0.8;
  font-size: 0.75rem;
}
.footer-credit a:hover { opacity: 1; }

/* ============================================================
   20. THANK YOU PAGE
   ============================================================ */
.thankyou-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: var(--space-10) 0;
}
.thankyou-card {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-9) var(--space-7);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-mid);
}
.thankyou-icon {
  width: 80px;
  height: 80px;
  background: var(--green-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto var(--space-5);
}
.thankyou-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: var(--space-7) 0;
  text-align: left;
}
.thankyou-step {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  background: var(--gray-light);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}
.step-number {
  width: 32px;
  height: 32px;
  background: var(--teal);
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}
.thankyou-step strong { display: block; font-size: 0.93rem; color: var(--text-dark); margin-bottom: 2px; }
.thankyou-step p { font-size: 0.83rem; margin: 0; }

/* ============================================================
   21. PAGE HERO (interior pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  padding: var(--space-9) 0 var(--space-8);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -60px;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(245,166,35,0.14) 0%, transparent 65%);
  border-radius: 50%;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .section-tag { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.85); }
.page-hero h1 { color: var(--white); margin-bottom: var(--space-3); }
.page-hero p { color: rgba(255,255,255,0.75); max-width: 600px; font-size: 1.05rem; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--space-4);
}
.breadcrumb a { color: rgba(255,255,255,0.65); transition: var(--transition); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,0.35); }

/* ============================================================
   22. ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.animate-fade-up {
  animation: fadeInUp 0.6s ease both;
}
.animate-fade-up.delay-1 { animation-delay: 0.1s; }
.animate-fade-up.delay-2 { animation-delay: 0.2s; }
.animate-fade-up.delay-3 { animation-delay: 0.3s; }
.animate-fade-up.delay-4 { animation-delay: 0.4s; }

/* Scroll-triggered */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   23. RESPONSIVE — TABLET (768px)
   ============================================================ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-phone { display: none; }
  .hamburger { display: flex; }
  .nav-cta .btn { display: none; }

  .hero .container { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .hero-title { font-size: 2.2rem; }

  .services-grid { grid-template-columns: 1fr 1fr; }
  .why-section .container { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat-card.wide { grid-column: span 4; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .teachers-grid { grid-template-columns: repeat(3, 1fr); }
  .programs-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .contact-section .container { grid-template-columns: 1fr; }
  .cities-grid { grid-template-columns: 1fr 1fr; }
  .teacher-hero-inner { grid-template-columns: 240px 1fr; gap: var(--space-5); }
  .cta-banner .container { flex-direction: column; text-align: center; }
  /* Bio pages */
  .teacher-bio-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .teacher-bio-photo-wrap { margin: 0 auto; }
  .teacher-bio-meta { justify-content: center; }
  .teacher-bio-body { grid-template-columns: 1fr; }
  .bio-back-link { justify-content: center; }
  /* Service areas */
  .area-cards-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   24. RESPONSIVE — MOBILE (480px)
   ============================================================ */
@media (max-width: 540px) {
  :root { --space-9: 64px; --space-8: 48px; }

  .topbar-left .topbar-item:not(:first-child) { display: none; }
  .topbar-right { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .teachers-grid { grid-template-columns: 1fr 1fr; }
  .programs-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card.wide { grid-column: span 2; flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .form-group.full { grid-column: span 1; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .cities-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: var(--space-5); }
  .teacher-hero-inner { grid-template-columns: 1fr; }
  .teacher-hero-photo { aspect-ratio: 4/3; max-width: 300px; }
  .trust-divider { display: none; }
  .trust-bar .container { gap: var(--space-4); justify-content: flex-start; }
  .grid-2 { grid-template-columns: 1fr; }
  .cta-banner-actions { flex-direction: column; width: 100%; }
  .cta-banner-actions .btn { width: 100%; justify-content: center; }
  /* Bio pages mobile */
  .teacher-bio-photo-ring { width: 160px; height: 160px; }
  .teacher-bio-name { font-size: 2rem; }
  /* Service areas mobile */
  .area-cards-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   25. AREA LINKS (Service Area list items)
   ============================================================ */
.area-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px var(--space-4);
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: var(--transition);
  text-decoration: none;
}
.area-link:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateX(3px);
}

/* ============================================================
   26. SERVICE PAGE TABS
   ============================================================ */
.service-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-mid);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  transition: var(--transition);
  flex-shrink: 0;
}
.service-tab:hover {
  color: var(--teal);
  border-bottom-color: var(--teal-light);
}
.service-tab.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

/* ============================================================
   27. NAV CTA AREA (right side of nav)
   ============================================================ */
.nav-cta-group {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.nav-cta-phone {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  background: var(--cream, #FFF8EC);
  border: 2px solid var(--navy);
  border-radius: var(--radius-full);
  padding: 9px 20px;
  animation: phonePulse 2.2s ease-in-out infinite;
  transition: var(--transition);
  position: relative;
}
.nav-cta-phone:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245,166,35,0.5);
  animation-play-state: paused;
}
/* Phone icon wiggle on hover */
.nav-cta-phone:hover::before {
  content: '';
  animation: phoneRing 0.4s ease-in-out 2;
}
@keyframes phonePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(245,166,35,0.6),
                0 2px 10px rgba(18,38,58,0.15);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(245,166,35,0),
                0 4px 20px rgba(245,166,35,0.35);
  }
}
@keyframes phoneRing {
  0%, 100% { transform: rotate(0deg); }
  25%       { transform: rotate(-15deg); }
  75%       { transform: rotate(15deg); }
}

.nav-cta-group .btn-primary {
  animation: ctaPulse 2.8s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes ctaPulse {
  0%, 100% { transform: scale(1);     box-shadow: 0 4px 18px rgba(245,166,35,0.40); }
  50%       { transform: scale(1.05); box-shadow: 0 6px 28px rgba(245,166,35,0.65); }
}

@media (max-width: 900px) {
  .nav-cta-group { display: none; }
}

/* ============================================================
   28. HERO CTA PROMINENT
   ============================================================ */
.btn-xl {
  padding: 20px 44px;
  font-size: 1.15rem;
  font-weight: 800;
  border-radius: var(--radius-full);
}

.hero-cta-main {
  animation: heroPulse 1.8s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(245,166,35,0.7),
              0 8px 40px rgba(245,166,35,0.6);
  letter-spacing: 0.01em;
  position: relative;
}

@keyframes heroPulse {
  0%   { 
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(245,166,35,0.8),
                0 8px 30px rgba(245,166,35,0.5);
  }
  50%  { 
    transform: scale(1.05);
    box-shadow: 0 0 0 18px rgba(245,166,35,0),
                0 12px 60px rgba(245,166,35,0.9),
                0 0 80px rgba(245,166,35,0.4);
  }
  100% { 
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(245,166,35,0.8),
                0 8px 30px rgba(245,166,35,0.5);
  }
}


/* ============================================================
   29. STEP UP GLOW
   ============================================================ */
.stepup-glow {
  color: var(--gold) !important;
  animation: stepupPulse 1.8s ease-in-out infinite;
  display: inline;
  font-weight: 800;
}
@keyframes stepupPulse {
  0%, 100% {
    text-shadow: 0 0 8px rgba(245,166,35,0.8), 0 0 24px rgba(245,166,35,0.5);
    color: #F5A623;
  }
  50% {
    text-shadow: 0 0 20px rgba(255,215,0,1), 0 0 50px rgba(245,166,35,0.9), 0 0 90px rgba(245,166,35,0.5);
    color: #FFD700;
  }
}
.stepup-card-glow {
  animation: stepupCardPulse 1.8s ease-in-out infinite !important;
}
@keyframes stepupCardPulse {
  0%, 100% { box-shadow: 0 0 15px rgba(245,166,35,0.6), 0 4px 20px rgba(245,166,35,0.3); }
  50%       { box-shadow: 0 0 35px rgba(255,215,0,1),   0 4px 60px rgba(245,166,35,0.7), 0 0 90px rgba(245,166,35,0.4); }
}

.hero-stat-wide {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-3);
}

/* ============================================================
   30. HERO STEP UP CTA BUTTON
   ============================================================ */
.hero-stepup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  background: var(--gold);
  color: var(--navy);
  border-radius: var(--radius-full);
  padding: 16px 32px;
  text-decoration: none;
  font-weight: 800;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.hero-stepup-btn:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
}
.hero-stepup-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  align-self: center;
}
.hero-stepup-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  justify-content: center;
}
.hero-stepup-text strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  display: block;
  line-height: 1.2;
}
.hero-stepup-text span {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(18,38,58,0.65);
  display: block;
  line-height: 1.3;
}

/* Step Up glow override inside gold hero button — navy text so it's readable */
.hero-stepup-btn .stepup-glow {
  animation: stepupBtnPulse 1.8s ease-in-out infinite;
  color: var(--navy);
  font-weight: 800;
}
@keyframes stepupBtnPulse {
  0%, 100% {
    color: var(--navy);
    text-shadow: 0 0 8px rgba(18,38,58,0.3);
  }
  50% {
    color: #0a2033;
    text-shadow: 0 0 16px rgba(18,38,58,0.6), 0 0 32px rgba(18,38,58,0.3);
  }
}

/* ============================================================
   31. FIND YOUR NEXT TEACHER BUTTON
   ============================================================ */
.find-teacher-btn {
  display: block;
  text-decoration: none;
  margin-bottom: 0;
  border-radius: var(--radius-md);
  animation: teacherBtnGlow 2s ease-in-out infinite;
}

.find-teacher-btn-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--navy);
  border-radius: var(--radius-md);
  padding: 22px 28px;
  border: 1.5px solid rgba(245,166,35,0.4);
  transition: var(--transition);
  width: 100%;
}

.find-teacher-btn:hover .find-teacher-btn-inner {
  border-color: var(--gold);
  background: #0d2236;
}

.find-teacher-icon {
  font-size: 2.4rem;
  flex-shrink: 0;
  line-height: 1;
  align-self: center;
}

.find-teacher-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
}

.find-teacher-text strong {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--gold);
  display: block;
  line-height: 1.1;
}

.find-teacher-text span {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(245,166,35,0.7);
  display: block;
  line-height: 1.3;
}

@keyframes teacherBtnGlow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(245,166,35,0.35),
                0 4px 20px rgba(245,166,35,0.2);
  }
  50% {
    box-shadow: 0 0 25px rgba(245,166,35,0.75),
                0 4px 40px rgba(245,166,35,0.45),
                0 0 60px rgba(245,166,35,0.2);
  }
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-self: start;
  padding-top: 0;
}

/* ============================================================
   32. STATS TICKER
   ============================================================ */
.stats-ticker-wrap {
  background: var(--navy);
  overflow: hidden;
  width: 100%;
  border-top: 3px solid rgba(245,166,35,0.5);
  border-bottom: 3px solid rgba(245,166,35,0.5);
  padding: 20px 0;
  position: relative;
}

.stats-ticker-wrap::before,
.stats-ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.stats-ticker-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--navy), transparent);
}
.stats-ticker-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--navy), transparent);
}

.stats-ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: tickerScroll 30s linear infinite;
}

.stats-ticker-track:hover {
  animation-play-state: paused;
}

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

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 40px;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.ticker-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: -0.01em;
}

.ticker-sep {
  font-size: 0.55rem;
  color: var(--teal-light);
  opacity: 0.5;
}

.ticker-label {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ticker-stepup .ticker-label {
  color: rgba(255,255,255,0.95);
}

.ticker-stepup .ticker-num {
  font-size: 1.8rem;
}

/* ============================================================
   33. JOIN PAGE — APPLY CALLOUT CARDS
   ============================================================ */
.apply-callout-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(245,166,35,0.08);
  border: 1.5px solid rgba(245,166,35,0.35);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-top: var(--space-3);
}
.apply-callout-icon {
  font-size: 2rem;
  flex-shrink: 0;
}
.apply-callout-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.apply-callout-text strong {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 800;
}
.apply-callout-text span {
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
}
.apply-subject {
  color: rgba(245,166,35,0.8) !important;
  font-size: 0.78rem !important;
}

.apply-cta-banner {
  background: linear-gradient(135deg, rgba(245,166,35,0.12), rgba(245,166,35,0.04));
  border: 2px solid rgba(245,166,35,0.4);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-top: var(--space-6);
}
.apply-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.apply-cta-inner strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 6px;
}
.apply-cta-inner p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin: 0;
}
.apply-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 900;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
  animation: stepupCardPulse 2s ease-in-out infinite;
}
.apply-email-btn:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
}
.apply-cta-hint {
  margin-top: var(--space-3) !important;
  font-size: 0.82rem !important;
  color: rgba(245,166,35,0.7) !important;
  text-align: center;
}

/* ============================================================
   33. TEACHER BIO PAGES
   ============================================================ */
.teacher-bio-hero-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-8);
  align-items: center;
}
.teacher-bio-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}
.teacher-bio-photo-ring {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 4px solid var(--gold);
  overflow: hidden;
  box-shadow: 0 0 0 8px rgba(245,166,35,0.15), 0 12px 40px rgba(0,0,0,0.3);
}
.teacher-bio-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.teacher-bio-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  background: rgba(255,255,255,0.1);
}
.bio-cert-badge {
  background: var(--gold);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}
.bio-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-3);
  transition: color 0.2s;
}
.bio-back-link:hover { color: var(--gold); }
.teacher-bio-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--white);
  margin-bottom: var(--space-1);
  line-height: 1.1;
}
.teacher-bio-role {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.teacher-bio-subjects {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: var(--space-3);
}
.teacher-bio-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.bio-meta-item {
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
}
.bio-meta-sep {
  color: rgba(255,255,255,0.25);
  font-size: 0.5rem;
}
.teacher-bio-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-8);
  align-items: start;
}
.bio-section-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: var(--space-4);
}
.bio-section-subtitle {
  font-size: 1.1rem;
  color: var(--navy);
  font-weight: 800;
  margin: var(--space-6) 0 var(--space-3);
}
.bio-para {
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: var(--space-4);
  font-size: 1rem;
}
.specialty-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.specialty-pill {
  background: var(--teal-light);
  color: var(--teal-dark);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
}
.bio-sidebar-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.bio-sidebar-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.bio-sidebar-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: var(--space-2);
}
.bio-sidebar-card p {
  color: var(--text-mid);
  font-size: 0.88rem;
  line-height: 1.7;
}
.bio-sidebar-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-3);
  display: block;
}
.bio-sidebar-cta {
  background: linear-gradient(135deg, var(--navy), var(--teal-dark));
  border: none;
}
.bio-sidebar-cta h3 { color: var(--gold); }
.bio-sidebar-cta p  { color: rgba(255,255,255,0.7); }

/* ============================================================
   34. SERVICE AREAS PAGE
   ============================================================ */
.area-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-4);
}
.area-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.area-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.area-card-header {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.area-pin { font-size: 1.4rem; flex-shrink: 0; line-height: 1.3; }
.area-city-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.area-badge {
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--gold);
  color: var(--navy);
  padding: 2px 10px;
  border-radius: var(--radius-full);
}
.area-city-desc {
  color: var(--text-mid);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 380px) {
  .teachers-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SCHOLARSHIP LAYOUT — mobile-safe grid
   ============================================================ */
.scholarship-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
@media (max-width: 700px) {
  .scholarship-layout {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* ============================================================
   TEACHER GROUP LABELS
   ============================================================ */
.teacher-group-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--teal-light);
  border-left: 4px solid var(--teal);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  margin-top: var(--space-7);
  margin-bottom: var(--space-4);
}
/* ============================================================
   DUO TEACHER GRID — 2 cards, centered, same card style
   ============================================================ */
.teachers-grid-duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  max-width: 760px;
}
@media (max-width: 540px) {
  .teachers-grid-duo { grid-template-columns: 1fr; max-width: 100%; }
}

/* ============================================================
   SOLO TEACHER CARD — single teacher centered in the grid
   ============================================================ */
.teachers-grid-solo {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-5);
}
.teachers-grid-solo .teacher-card {
  width: 100%;
  max-width: 300px;
}
@media (max-width: 540px) {
  .teachers-grid-solo .teacher-card { max-width: 100%; }
}

/* ============================================================
   FOUNDER VIP BANNER — Rachel's prestige tile
   ============================================================ */
.founder-banner {
  display: grid;
  grid-template-columns: 340px 1fr;
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 60%, var(--teal-dark) 100%);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(18,38,58,0.28);
  margin-bottom: var(--space-7);
  border: 1px solid rgba(245,166,35,0.25);
  position: relative;
}
/* subtle gold shimmer line at top */
.founder-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-dark), var(--gold), transparent);
}

.founder-photo-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: linear-gradient(180deg, var(--teal-dark), var(--navy));
}
.founder-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.6s ease;
}
.founder-banner:hover .founder-photo { transform: scale(1.04); }
.founder-photo-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
  background: linear-gradient(135deg, var(--teal-dark), var(--navy));
}
.founder-since-badge {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.founder-content {
  padding: var(--space-7) var(--space-7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-4);
}
.founder-crown {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,166,35,0.15);
  border: 1px solid rgba(245,166,35,0.35);
  border-radius: var(--radius-full);
  padding: 5px 16px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  width: fit-content;
}
.founder-name {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--white);
  margin: 0;
  line-height: 1;
}
.founder-tagline {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  font-style: italic;
  margin: 0;
  line-height: 1.5;
}
.founder-credentials {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: var(--space-1) 0;
}
.founder-cred-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.78);
  font-weight: 500;
}
.founder-cred-icon {
  font-size: 1rem;
  width: 26px;
  text-align: center;
  flex-shrink: 0;
}
.founder-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}
.founder-actions .btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.founder-actions .btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}
.founder-actions .btn-outline-teal {
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}
.founder-actions .btn-outline-teal:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

/* Tablet */
@media (max-width: 900px) {
  .founder-banner { grid-template-columns: 260px 1fr; }
  .founder-name { font-size: 2.4rem; }
  .founder-content { padding: var(--space-6); }
}
/* Mobile — stacks vertically */
@media (max-width: 600px) {
  .founder-banner { grid-template-columns: 1fr; }
  .founder-photo-wrap { aspect-ratio: 4/3; }
  .founder-content { padding: var(--space-5); }
  .founder-name { font-size: 2rem; }
  .founder-actions { flex-direction: column; }
  .founder-actions .btn { width: 100%; text-align: center; justify-content: center; }
}

.teachers-grid-single {
  grid-template-columns: 1fr 1fr 1fr;
  max-width: 360px;
}
@media (max-width: 540px) {
  .teachers-grid-single {
    max-width: 100%;
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   HERO CONSULT BUTTON — matches Step Up button sizing
   ============================================================ */
.hero-consult-btn {
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  text-align: center;
}
