/* ============================================================
   Effective Learning Strategies — Stylesheet
   Design system: CSS custom properties + BEM-lite naming
   Mobile-first responsive (768px, 1024px, 1200px breakpoints)
   ============================================================ */

/* ─── 1. CSS Reset / Base ───────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--color-text-body);
  background-color: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

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

/* ─── 2. CSS Custom Properties ──────────────────────────── */
:root {
  /* Colors */
  --color-primary:        #4E7C59;
  --color-primary-light:  #EAF2EC;
  --color-primary-dark:   #3A5E43;
  --color-white:          #FFFFFF;
  --color-bg-light:       #F8FAF8;
  --color-text-dark:      #1C2B20;
  --color-text-body:      #4A5568;
  --color-border:         #D4E6D8;
  --color-star:           #F59E0B;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Font sizes */
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.25rem;
  --fs-xl:   1.5rem;
  --fs-2xl:  1.875rem;
  --fs-3xl:  2.25rem;
  --fs-4xl:  3rem;
  --fs-5xl:  3.5rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Borders */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(28,43,32,0.08), 0 1px 2px rgba(28,43,32,0.04);
  --shadow-md:   0 4px 12px rgba(28,43,32,0.10), 0 2px 4px rgba(28,43,32,0.06);
  --shadow-lg:   0 8px 24px rgba(28,43,32,0.12), 0 4px 8px rgba(28,43,32,0.06);
  --shadow-card: 0 2px 8px rgba(78,124,89,0.10);
  --shadow-btn:  0 4px 16px rgba(78,124,89,0.35);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Layout */
  --container-max: 1200px;
  --container-pad: var(--space-6);
  --header-height: 72px;
}

/* ─── 3. Skip Link (accessibility) ─────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  z-index: 9999;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: var(--space-4);
}

/* ─── 4. Typography Base ────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.2;
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }

p { line-height: 1.7; }

/* ─── 5. Layout Utilities ───────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

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

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

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--color-text-dark);
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  color: var(--color-text-body);
  max-width: 560px;
  margin: 0 auto;
}

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

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

/* ─── 6. Button Component ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-base);
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  white-space: nowrap;
  padding: 0.6rem 1.5rem;
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.btn:active {
  transform: translateY(0) !important;
}

/* Primary button */
.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.btn--primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-btn);
}

/* Outline button */
.btn--outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-1px);
}

/* White button (for dark backgrounds) */
.btn--white {
  background-color: var(--color-white);
  color: var(--color-primary-dark);
  border-color: var(--color-white);
}
.btn--white:hover {
  background-color: var(--color-primary-light);
  border-color: var(--color-primary-light);
  transform: translateY(-1px);
}

/* Sizes */
.btn--sm {
  font-size: var(--fs-sm);
  padding: 0.45rem 1.1rem;
}

.btn--lg {
  font-size: var(--fs-md);
  padding: 0.85rem 2rem;
}

/* ─── 7. Card Base ──────────────────────────────────────── */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: var(--space-8);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

/* ─── 8. Icon Circle ────────────────────────────────────── */
.icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  flex-shrink: 0;
  margin-bottom: var(--space-5);
}

.icon-circle svg {
  width: 26px;
  height: 26px;
}

/* ─── 9. Header ─────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  transition: box-shadow var(--transition-base);
}

.header--scrolled {
  box-shadow: var(--shadow-md);
}

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

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo-img {
  display: block;
  height: 60px;
  width: auto;
  max-height: 60px;
  max-width: 200px;
  object-fit: contain;
}

.header-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  color: var(--color-primary);
  flex-shrink: 0;
}

.header-logo-icon svg {
  width: 20px;
  height: 20px;
}

.header-logo-text {
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: 800;
  color: var(--color-text-dark);
  line-height: 1.2;
}

/* Navigation */
.nav {
  flex: 1;
}

.nav-list {
  display: none; /* hidden mobile; shown desktop */
  align-items: center;
  gap: var(--space-2);
  justify-content: center;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text-body);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover,
.nav-link--active {
  color: var(--color-primary);
  background-color: var(--color-primary-light);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
}

.hamburger:hover {
  background-color: var(--color-primary-light);
}

.hamburger:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.hamburger-bar {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--color-text-dark);
  border-radius: var(--radius-full);
  transition: transform var(--transition-base), opacity var(--transition-base);
  transform-origin: center;
}

/* Hamburger → X animation */
.hamburger--active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger--active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger--active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.nav--open .nav-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-4) var(--space-6) var(--space-6);
  box-shadow: var(--shadow-md);
  z-index: 99;
  animation: slideDown var(--transition-base) ease forwards;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav--open .nav-link {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--fs-base);
}

/* ─── 10. Footer ─────────────────────────────────────────── */
.footer {
  background-color: var(--color-text-dark);
  color: rgba(255,255,255,0.75);
  padding-top: var(--space-16);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
}

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

.footer-logo .header-logo-icon {
  background: rgba(255,255,255,0.1);
  color: var(--color-primary-light);
}

.footer-logo .header-logo-text {
  color: var(--color-white);
}

.footer-tagline {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  max-width: 260px;
}

.footer-nav-title {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-5);
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-nav-link {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.65);
  transition: color var(--transition-fast);
}

.footer-nav-link:hover {
  color: var(--color-primary-light);
}

.footer-contact-item {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-contact-item svg {
  width: 14px;
  height: 14px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-5) 0;
}

.footer-copy {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.4);
  text-align: center;
}

/* ─── 11. Scroll-Fade Animation ─────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grid children */
.fade-in:nth-child(2) { transition-delay: 0.08s; }
.fade-in:nth-child(3) { transition-delay: 0.16s; }
.fade-in:nth-child(4) { transition-delay: 0.24s; }
.fade-in:nth-child(5) { transition-delay: 0.32s; }
.fade-in:nth-child(6) { transition-delay: 0.40s; }

/* ─── 12. HOME PAGE SECTIONS ────────────────────────────── */

/* Hero */
.hero {
  background-color: var(--color-bg-light);
  background-image: radial-gradient(ellipse at 70% 0%, rgba(234,242,236,0.8) 0%, transparent 65%);
  padding: var(--space-16) 0 var(--space-20);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-bottom: var(--space-5);
}

.hero-badge::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: var(--color-text-dark);
  line-height: 1.15;
  margin-bottom: var(--space-5);
}

.hero-headline span {
  color: var(--color-primary);
}

.hero-subheadline {
  font-size: var(--fs-md);
  color: var(--color-text-body);
  max-width: 480px;
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text-dark);
}

.trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* Hero illustration */
.hero-visual {
  display: none; /* hidden on mobile */
}

.hero-illustration {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
}

.hero-illustration-bg {
  position: absolute;
  inset: 0;
  background: var(--color-primary-light);
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

/* Hero illustration floating elements */
.hero-float {
  position: absolute;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  z-index: 2;
}

.hero-float--stat {
  bottom: var(--space-8);
  left: -var(--space-8);
  bottom: 10%;
  left: -5%;
}

.hero-float--badge {
  top: var(--space-6);
  right: -var(--space-6);
  top: 8%;
  right: -3%;
}

.hero-float-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.hero-float-icon svg {
  width: 18px;
  height: 18px;
}

.hero-float-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: 800;
  color: var(--color-text-dark);
  line-height: 1.1;
}

.hero-float-text span {
  font-size: var(--fs-xs);
  color: var(--color-text-body);
}

/* Hero photo */
.hero-illus-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: inherit;
  display: block;
}

/* ── Hero animated logo ── */
.hero-illustration-bg--logo {
  background: #fafaf5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-anim {
  position: relative;
  width: 100%;
  height: 100%;
  padding: var(--space-4);
}

.logo-anim__svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* Book — pages fan open from the spine (scaleX from the spine center) */
.logo-anim__book {
  transform-box: view-box;
  transform-origin: 750px 1100px;
  transform: scaleX(0.02);
  transition: transform 1.1s cubic-bezier(.22,.9,.32,1) .1s;
}
.logo-anim.is-visible .logo-anim__book { transform: scaleX(1); }

/* Tree — grows up out of the book after it opens */
.logo-anim__tree {
  transform-box: view-box;
  transform-origin: 750px 1010px;
  transform: scaleY(0) scaleX(0.4);
  opacity: 0;
  transition:
    transform 1.4s cubic-bezier(.18,1.05,.4,1) .95s,
    opacity .4s linear .95s;
}
.logo-anim.is-visible .logo-anim__tree {
  transform: scaleY(1) scaleX(1);
  opacity: 1;
}

/* Curved title fades in last */
.logo-anim__text {
  opacity: 0;
  transition: opacity .9s ease 2.1s;
}
.logo-anim.is-visible .logo-anim__text { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .logo-anim__book,
  .logo-anim__tree,
  .logo-anim__text {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

/* Illustration center graphic */
.hero-illus-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.hero-illus-center svg {
  width: 55%;
  height: 55%;
  opacity: 0.35;
}

/* Why Choose Us */
.why {
  background: var(--color-white);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.why-card {
  text-align: left;
}

.why-card .card-title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: var(--space-3);
}

.why-card .card-text {
  font-size: var(--fs-base);
  color: var(--color-text-body);
  line-height: 1.7;
}

/* How It Works */
.how {
  background: var(--color-bg-light);
}

.how-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 800;
  color: var(--color-white);
  background: var(--color-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.step-title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: var(--space-2);
}

.step-text {
  font-size: var(--fs-base);
  color: var(--color-text-body);
}

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

/* Founder Section */
.founder {
  background: var(--color-white);
  position: relative;
  overflow: hidden;
}

.founder::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 400px;
  height: 400px;
  background: var(--color-primary-light);
  border-radius: var(--radius-full);
  opacity: 0.5;
  pointer-events: none;
}

.founder-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: start;
  position: relative;
  z-index: 1;
}

.founder-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.founder-photo-placeholder {
  width: 220px;
  height: 220px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary-light) 0%, rgba(78,124,89,0.15) 100%);
  border: 4px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  position: relative;
  overflow: hidden;
}

/* Real founder photo — wrapper is the circular frame; inner img is zoomed
   slightly and anchored at the bottom so the face lands at the optical center. */
.founder-photo-real {
  display: block;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 4px solid var(--color-primary);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  flex-shrink: 0;
}

.founder-photo-real img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .founder-photo-real { width: 260px; height: 260px; }
}

@media (min-width: 1024px) {
  .founder-photo-real { width: 300px; height: 300px; }
}

.founder-photo-placeholder svg {
  width: 80px;
  height: 80px;
  opacity: 0.6;
}

.founder-credential-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
}

.founder-credential-badge svg {
  width: 14px;
  height: 14px;
}

.founder-title {
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-5);
}

.founder-bio {
  font-size: var(--fs-md);
  color: var(--color-text-body);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.founder-credentials {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.founder-credential-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--fs-base);
  color: var(--color-text-dark);
  font-weight: 500;
}

.founder-credential-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Benefits */
.benefits {
  background: var(--color-bg-light);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.benefit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  flex-shrink: 0;
}

.benefit-icon svg {
  width: 24px;
  height: 24px;
}

.benefit-title {
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: var(--space-2);
}

.benefit-text {
  font-size: var(--fs-sm);
  color: var(--color-text-body);
  line-height: 1.6;
}

/* Testimonials */
.testimonials {
  background: var(--color-white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.testimonial-card {
  padding: var(--space-8);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: var(--space-4);
  left: var(--space-6);
  font-size: 5rem;
  font-family: Georgia, serif;
  color: var(--color-primary-light);
  line-height: 1;
  pointer-events: none;
}

.testimonial-stars {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-5);
}

.testimonial-stars svg {
  width: 18px;
  height: 18px;
  color: var(--color-star);
}

.testimonial-quote {
  font-size: var(--fs-base);
  font-style: italic;
  color: var(--color-text-body);
  line-height: 1.75;
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
}

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

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-white);
  flex-shrink: 0;
}

.testimonial-name {
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--color-text-dark);
  font-style: normal;
  display: block;
}

.testimonial-detail {
  font-size: var(--fs-xs);
  color: var(--color-text-body);
}

/* Final CTA section */
.cta-final {
  background-color: var(--color-primary-dark);
  position: relative;
  overflow: hidden;
}

.cta-final::before,
.cta-final::after {
  content: '';
  position: absolute;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  opacity: 0.2;
  pointer-events: none;
}

.cta-final::before {
  width: 400px;
  height: 400px;
  top: -150px;
  right: -100px;
}

.cta-final::after {
  width: 300px;
  height: 300px;
  bottom: -120px;
  left: -80px;
}

.cta-final > .container {
  position: relative;
  z-index: 1;
}

.cta-final-headline {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.cta-final-subtext {
  font-size: var(--fs-md);
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  margin: 0 auto var(--space-8);
}

.cta-final-reassurance {
  margin-top: var(--space-4);
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.55);
}

/* ─── 13. TUTORS PAGE SECTIONS ──────────────────────────── */

/* Page Hero (tutors) */
.page-hero {
  background-color: var(--color-primary-light);
  padding: var(--space-16) 0;
  text-align: center;
}

.page-hero-headline {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: var(--color-text-dark);
  margin-bottom: var(--space-5);
  line-height: 1.15;
}

.page-hero-subtext {
  font-size: var(--fs-md);
  color: var(--color-text-body);
  max-width: 560px;
  margin: 0 auto var(--space-8);
}

/* Tutor cards */
.tutors-section {
  background: var(--color-white);
}

.tutors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.tutor-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tutor-photo-wrap {
  width: 100%;
}

.tutor-photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, rgba(78,124,89,0.12) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  position: relative;
  overflow: hidden;
}

/* Real photo label */
.tutor-photo-placeholder::after {
  content: attr(data-label);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(78,124,89,0.82);
  color: white;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-align: center;
  padding: var(--space-2);
}

.tutor-photo-placeholder svg {
  width: 72px;
  height: 72px;
  opacity: 0.45;
}

.tutor-info {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tutor-name {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--color-text-dark);
  margin-bottom: var(--space-2);
}

.tutor-specialty {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.tutor-bio {
  font-size: var(--fs-base);
  color: var(--color-text-body);
  line-height: 1.7;
  margin-bottom: var(--space-5);
  flex: 1;
}

.tutor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tag {
  display: inline-block;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
}

/* Tutor support section */
.tutor-support {
  background: var(--color-bg-light);
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.support-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.support-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--color-primary-light);
  color: var(--color-primary);
  margin-bottom: var(--space-5);
}

.support-icon svg {
  width: 30px;
  height: 30px;
}

.support-title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: var(--space-3);
}

.support-text {
  font-size: var(--fs-base);
  color: var(--color-text-body);
  max-width: 280px;
  margin: 0 auto;
}

/* Tutors bottom CTA */
.cta-inline {
  background: var(--color-primary-light);
  text-align: center;
}

.cta-inline-headline {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--color-text-dark);
  margin-bottom: var(--space-4);
}

.cta-inline-subtext {
  font-size: var(--fs-md);
  color: var(--color-text-body);
  max-width: 440px;
  margin: 0 auto var(--space-8);
}

/* ─── 14a. Tutors page philosophy grid override ─────────── */
/* On the tutors page, the 3-pillar grid should max at 3 cols not 4 */
.why-grid--three {
  /* Same as why-grid but never goes to 4 cols */
}

/* ─── 13b. PROGRAMS / CLASSES ─────────────────────────────
   Homepage Programs section + Classes page editorial list.
─────────────────────────────────────────────────────────── */

.programs {
  background: var(--color-bg-light);
}

/* Editorial list — used on both the homepage section and the classes page */
.programs-list {
  max-width: 760px;
  margin: 0 auto;
}

.program-item {
  padding: var(--space-10) 0;
  border-bottom: 1px solid var(--color-border);
  scroll-margin-top: 96px;
}

.program-item:first-child { padding-top: 0; }
.program-item:last-child  { border-bottom: none; padding-bottom: 0; }

.program-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-primary-light);
}

.program-item-title {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--color-text-dark);
  margin: 0;
  letter-spacing: -0.01em;
}

.program-item-price {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  color: var(--color-text-body);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.program-item-price span {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-right: var(--space-2);
  letter-spacing: normal;
  text-transform: none;
}

.program-item-body {
  font-size: var(--fs-md);
  color: var(--color-text-body);
  margin: 0 0 var(--space-5);
  line-height: 1.7;
}

.program-item-meta {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  color: var(--color-primary-dark);
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.02em;
}

/* Programs Carousel */
.programs-carousel-wrap {
  position: relative;
}

.carousel-arrow {
  display: none;
}

.programs-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82%;
  gap: var(--space-5);
  margin-bottom: var(--space-10);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 9%;
  padding: var(--space-2) 9% var(--space-6);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.programs-grid::-webkit-scrollbar { display: none; }
.programs-grid > * {
  scroll-snap-align: start;
  min-width: 0;
  height: 100%;
}

.program-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-10) var(--space-8);
  position: relative;
  transition: opacity 0.35s ease;
}

.program-card--featured {
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(78,124,89,0.15);
}

.program-card-badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Premium Educational Therapy Card ─────────────────────── */
.program-card--premium {
  background:
    radial-gradient(120% 100% at 85% 0%, rgba(212, 176, 111, 0.18), transparent 55%),
    linear-gradient(135deg, #1a2620 0%, #0d1611 60%, #1a2620 100%);
  border: 1px solid rgba(212, 176, 111, 0.32);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: #f0ece2;
}
.program-card--premium .program-card-title {
  color: #f5f1e6;
}
.program-card--premium .program-card-amount {
  background: linear-gradient(180deg, #f0d99f 0%, #c9a96e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.program-card--premium .program-card-unit {
  color: rgba(240, 236, 226, 0.7);
}
.program-card--premium .program-card-features li {
  color: rgba(240, 236, 226, 0.92);
}
.program-card--premium .program-card-features li::before {
  color: #d4b06f;
}
.program-card--premium .program-icon svg {
  stroke: #d4b06f;
}
.program-card-badge--premium {
  background: rgba(212, 176, 111, 0.10);
  color: #d4b06f;
  border: 1px solid rgba(212, 176, 111, 0.45);
}

.btn--premium {
  background: linear-gradient(180deg, #d4b06f 0%, #b8924f 100%);
  color: #1a2620;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 0;
  box-shadow: 0 8px 20px rgba(184, 146, 79, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn--premium:hover,
.btn--premium:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(212, 176, 111, 0.4);
  color: #1a2620;
  filter: brightness(1.05);
}

.program-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: none;
  margin-bottom: var(--space-5);
  flex-shrink: 0;
}

.program-icon svg {
  width: 54px;
  height: 54px;
}

.program-card-features {
  text-align: left;
}

.program-card-title {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--color-text-dark);
  margin: 0 0 var(--space-3);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.program-card-price {
  margin-bottom: var(--space-5);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-1);
}

.program-card-amount {
  font-family: var(--font-heading);
  font-size: var(--fs-4xl);
  font-weight: 800;
  background: linear-gradient(135deg, #68a878 0%, #3A5E43 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
}

.program-card-unit {
  font-size: var(--fs-md);
  color: var(--color-text-body);
  font-weight: 600;
}

.program-card-features {
  list-style: none;
  margin: 0 0 var(--space-6);
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.program-card-features li {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--color-text-dark);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.program-card-features li::before {
  content: '✓';
  color: var(--color-primary);
  font-weight: 800;
  flex-shrink: 0;
}

/* Gradient green button */
.btn--gradient {
  background: linear-gradient(135deg, #68a878 0%, #3A5E43 100%);
  color: var(--color-white);
  border-color: transparent;
}

.btn--gradient:hover {
  background: linear-gradient(135deg, #5B9469 0%, #2e4f38 100%);
  border-color: transparent;
  box-shadow: var(--shadow-btn);
  color: var(--color-white);
}

/* Section bottom CTA (homepage Programs) */
.programs-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}

.programs-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  color: var(--color-text-dark);
  font-size: var(--fs-md);
  text-decoration: none;
  font-weight: 500;
}

.programs-phone:hover { color: var(--color-primary-dark); }
.programs-phone svg { width: 18px; height: 18px; color: var(--color-primary); flex-shrink: 0; }
.programs-phone strong { font-weight: 800; color: var(--color-primary-dark); }

/* Schedule section */
.schedule {
  background: var(--color-white);
}

.schedule-table-wrap {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: var(--space-3);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.schedule-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: var(--space-1);
  font-size: var(--fs-sm);
}

.schedule-table thead th {
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  padding: var(--space-3) var(--space-2);
  border-radius: var(--radius-md);
  text-align: center;
  text-transform: uppercase;
}

.schedule-table tbody th[scope="row"] {
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: var(--space-3) var(--space-3);
  border-radius: var(--radius-md);
  text-align: center;
  white-space: nowrap;
  font-size: var(--fs-xs);
  letter-spacing: 0.03em;
}

.schedule-table tbody td {
  background: var(--color-primary-light);
  color: var(--color-text-dark);
  font-family: var(--font-body);
  padding: var(--space-3) var(--space-2);
  border-radius: var(--radius-md);
  text-align: center;
  transition: background var(--transition-base), opacity var(--transition-base), transform var(--transition-base);
  line-height: 1.3;
}

.schedule-table tbody td strong {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-primary-dark);
  display: block;
  margin-bottom: 2px;
}

/* Grade filter buttons */
.schedule-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-8);
}

.schedule-filter-label {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-text-body);
  margin-right: var(--space-2);
  font-size: var(--fs-sm);
  width: 100%;
  text-align: center;
  margin-bottom: var(--space-1);
}

.schedule-filter-btn {
  background: var(--color-white);
  color: var(--color-text-dark);
  border: 1.5px solid var(--color-border);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-sm);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.schedule-filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.schedule-filter-btn.is-active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.schedule-table.is-filtering tbody td:not(.is-highlight) {
  opacity: 0.25;
}

.schedule-table.is-filtering tbody td.is-highlight {
  background: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.04);
  box-shadow: var(--shadow-md);
}

.schedule-table.is-filtering tbody td.is-highlight strong {
  color: var(--color-white);
}

/* Per-grade quick-find cards */
.grade-cards {
  background: var(--color-bg-light);
}

.grade-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.grade-card {
  padding: var(--space-6);
  text-align: left;
}

.grade-card-title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--color-primary-dark);
  margin: 0 0 var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-primary-light);
}

.grade-schedule {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.grade-schedule li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  font-size: var(--fs-sm);
}

.grade-day {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary-dark);
  min-width: 38px;
}

.grade-time {
  color: var(--color-text-body);
}

/* Classes page bottom CTA */
.cta-inline-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

/* ─── 14. Responsive Breakpoints ────────────────────────── */

/* ── 768px Tablet ── */
@media (min-width: 768px) {
  h1 { font-size: var(--fs-4xl); }
  h2 { font-size: var(--fs-3xl); }
  .section { padding: var(--space-20) 0; }
  .section-title { font-size: var(--fs-3xl); }

  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr 1fr;
  }
  .hero-headline { font-size: var(--fs-4xl); }
  .hero-visual { display: block; }

  /* Why grid */
  .why-grid { grid-template-columns: repeat(2, 1fr); }

  /* Programs carousel — 2-per-view on tablet */
  .programs-grid {
    grid-auto-columns: calc((100% - 12% - var(--space-5) - 40px) / 2);
    padding-inline: 6%;
    scroll-padding-inline: 6%;
  }
  .programs-cta { flex-direction: row; justify-content: center; }

  /* How steps */
  .how-steps { grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
  .step { align-items: center; text-align: center; }

  /* Founder */
  .founder-inner { grid-template-columns: 260px 1fr; }
  .founder-photo-placeholder { width: 240px; height: 240px; }

  /* Benefits */
  .benefits-grid { grid-template-columns: repeat(3, 1fr); }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }

  /* CTA final */
  .cta-final-headline { font-size: var(--fs-3xl); }

  /* Footer */
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }

  /* Tutors */
  .tutors-grid { grid-template-columns: repeat(2, 1fr); }
  .support-grid { grid-template-columns: repeat(3, 1fr); }
  .page-hero-headline { font-size: var(--fs-4xl); }

  /* Programs / Classes */
  .grade-grid { grid-template-columns: repeat(3, 1fr); }
  .programs-cta { flex-direction: row; justify-content: center; gap: var(--space-10); }
  .cta-inline-actions { flex-direction: row; justify-content: center; }
}

/* ── 1024px Desktop ── */
@media (min-width: 1024px) {
  .nav-list { display: flex; }
  .hamburger { display: none; }

  /* Why grid full 4 cols */
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  /* Tutors philosophy grid: max 3 cols */
  .why-grid--three { grid-template-columns: repeat(3, 1fr); }

  /* Founder photo larger */
  .founder-inner { grid-template-columns: 300px 1fr; }
  .founder-photo-placeholder { width: 260px; height: 260px; }

  /* Tutors full 3 cols */
  .tutors-grid { grid-template-columns: repeat(3, 1fr); }

  /* Grade grid: 5 across on desktop */
  .grade-grid { grid-template-columns: repeat(5, 1fr); }

  /* Programs carousel — 3-per-view on desktop, 50px right peek */
  .programs-grid {
    grid-auto-columns: calc((100% - 8% - 2 * var(--space-5) - 50px) / 3);
    padding-inline: 4%;
    scroll-padding-inline: 4%;
  }

  /* Arrow buttons — desktop only */
  .carousel-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    background: #fff;
    color: var(--color-primary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: background 0.2s ease, color 0.2s ease;
  }
  .carousel-arrow:hover {
    background: var(--color-primary);
    color: #fff;
  }
  .carousel-arrow svg {
    width: 20px;
    height: 20px;
    display: block;
  }
  .carousel-arrow--prev { left: -22px; }
  .carousel-arrow--next { right: -22px; }
  .carousel-arrow[hidden] { display: none; }

  /* Section padding */
  .section { padding: var(--space-24) 0; }
}

/* ── 1200px Large Desktop ── */
@media (min-width: 1200px) {
  :root { --container-pad: var(--space-8); }
  .hero-headline { font-size: var(--fs-5xl); }
  .hero { padding: var(--space-20) 0 var(--space-24); }
}

/* ── Mobile: Header & Global ── */
@media (max-width: 767px) {
  /* Prevent any horizontal scrollbar site-wide */
  body { overflow-x: hidden; }

  /* Tighten container sides so header has more room */
  :root { --container-pad: var(--space-4); }

  /* Reduce gaps between header items */
  .header-inner { gap: var(--space-3); }

  /* Allow logo to shrink when screen is narrow */
  .header-logo {
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
  }

  /* Truncate long logo text rather than pushing things off-screen */
  .header-logo-text {
    font-size: var(--fs-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Nav takes no horizontal space in the row on mobile;
     the open list is absolutely positioned so it still appears correctly */
  .nav { flex: 0; min-width: 0; }

  /* Keep actions block from shrinking and compact the button */
  .header-actions {
    flex-shrink: 0;
    gap: var(--space-2);
  }

  .header-actions .btn--sm {
    font-size: var(--fs-xs);
    padding: 0.35rem 0.75rem;
  }
}

/* ── Mobile: Getting Started Is Easy ── */
@media (max-width: 767px) {
  .header-inner     { justify-content: space-between; }
  .header-logo-text { display: none; }
  .header-logo-img  { height: 52px; max-height: 52px; max-width: 160px; }

  .how .container {
    text-align: center;
  }
  .how-steps {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .step {
    width: 100%;
    max-width: 300px;
    text-align: center;
    align-items: center;
  }
  .how-cta .btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
}

/* ─── 15. IMMERSIVE DESIGN ENHANCEMENTS ─────────────────── */

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-star), var(--color-primary-dark));
  background-size: 200% 100%;
  z-index: 9999;
  animation: progressShimmer 3s linear infinite;
  pointer-events: none;
}

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

/* ── Glassmorphism Header ── */
.header {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
}

/* ── Animated Nav Link Underline ── */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-base), left var(--transition-base);
  transform: translateX(-50%);
  border-radius: var(--radius-full);
}
.nav-link:hover::after {
  width: calc(100% - 1.5rem);
}
.nav-link--active::after {
  width: calc(100% - 1.5rem);
}

/* ── Hero Richened Background ── */
.hero {
  background-color: var(--color-bg-light);
  background-image:
    radial-gradient(ellipse at 80% 20%, rgba(245,158,11,0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 15% 75%, rgba(78,124,89,0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 60% 50%, rgba(78,124,89,0.04) 0%, transparent 60%);
  position: relative;
  overflow: hidden;
}

/* Subtle notebook-line texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    transparent,
    transparent 31px,
    rgba(78,124,89,0.045) 31px,
    rgba(78,124,89,0.045) 32px
  );
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

/* ── Educational Floating Particles ── */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.edu-particle {
  position: absolute;
  opacity: 0;
  animation: floatUp var(--dur, 9s) ease-in-out var(--delay, 0s) infinite;
  user-select: none;
  line-height: 1;
  filter: saturate(0.8);
}

@keyframes floatUp {
  0%   { opacity: 0; transform: translateY(20px) rotate(0deg) scale(0.85); }
  12%  { opacity: 0.16; }
  88%  { opacity: 0.16; }
  100% { opacity: 0; transform: translateY(-90px) rotate(20deg) scale(1.05); }
}

/* ── Hero badge pulsing dot ── */
.hero-badge::before {
  animation: pulseDot 2.2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1);   opacity: 1;   }
  50%       { transform: scale(1.5); opacity: 0.6; }
}

/* ── Floating stat cards gentle bob ── */
.hero-float {
  animation: bobCard 4.5s ease-in-out infinite;
}
.hero-float--badge {
  animation-delay: -2.2s;
}

@keyframes bobCard {
  0%, 100% { transform: translateY(0px);  }
  50%       { transform: translateY(-9px); }
}

/* ── Gradient text on hero headline span ── */
.hero-headline span {
  background: linear-gradient(135deg, var(--color-primary) 0%, #2E7D32 45%, #6AAF2A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Button Shine Effect ── */
.btn--primary,
.btn--white {
  position: relative;
  overflow: hidden;
}
.btn--primary::after,
.btn--white::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 55%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.28), transparent);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn--primary:hover::after,
.btn--white:hover::after {
  left: 160%;
}

/* ── Section Eyebrow Pill ── */
.section-eyebrow {
  background: var(--color-primary-light);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid rgba(78,124,89,0.18);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  animation: pulseDot 2.2s ease-in-out infinite;
}

/* ── Why Section — Dot Grid Background ── */
.why {
  position: relative;
  overflow: hidden;
}
.why::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(78,124,89,0.07) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  pointer-events: none;
  z-index: 0;
}
.why .container {
  position: relative;
  z-index: 1;
}

/* Why Cards — gradient border on hover + unique icon colors */
.why-card {
  background:
    linear-gradient(var(--color-white), var(--color-white)) padding-box,
    linear-gradient(135deg, var(--color-border), var(--color-border)) border-box;
  border: 1.5px solid transparent;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-slow);
}
.why-card:hover {
  background:
    linear-gradient(var(--color-white), var(--color-white)) padding-box,
    linear-gradient(135deg, var(--color-primary), var(--color-star)) border-box;
  box-shadow: 0 20px 50px rgba(78,124,89,0.16);
  transform: translateY(-6px);
}

.why-card:nth-child(1) .icon-circle { background: linear-gradient(135deg, #EAF2EC, #C8E6C9); color: #2E7D32; }
.why-card:nth-child(2) .icon-circle { background: linear-gradient(135deg, #FFF8E1, #FFE082); color: #E65100; }
.why-card:nth-child(3) .icon-circle { background: linear-gradient(135deg, #E3F2FD, #90CAF9); color: #1565C0; }
.why-card:nth-child(4) .icon-circle { background: linear-gradient(135deg, #F3E5F5, #CE93D8); color: #7B1FA2; }

.icon-circle {
  transition: transform var(--transition-base);
}
.why-card:hover .icon-circle {
  transform: scale(1.1) rotate(-5deg);
}

/* ── How It Works — Timeline Connector ── */
.how {
  position: relative;
  overflow: hidden;
}

.how-steps {
  position: relative;
}

/* The animated connecting line — desktop only */
.how-steps::after {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-star), var(--color-primary-dark));
  display: none;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius-full);
  opacity: 0.7;
  z-index: 0;
}

@media (min-width: 768px) {
  .how-steps::after {
    display: block;
  }
  .how-steps.timeline-visible::after {
    transform: scaleX(1);
  }
}

/* Step icons */
.step-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-3);
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  line-height: 1;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
}
.step:hover .step-icon {
  transform: translateY(-5px) rotate(6deg);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

/* Step number enhanced */
.step-number {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  font-size: var(--fs-sm);
  box-shadow: 0 4px 14px rgba(78,124,89,0.35);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.step:hover .step-number {
  transform: scale(1.12);
  box-shadow: 0 8px 24px rgba(78,124,89,0.45);
}

/* Step description */
.step-desc {
  font-size: var(--fs-sm);
  color: var(--color-text-body);
  max-width: 165px;
  margin: var(--space-2) auto 0;
  line-height: 1.5;
}

/* ── Benefits — Colorful Gradient Icons ── */
.benefit-item:nth-child(1) .benefit-icon { background: linear-gradient(135deg, #E8F5E9, #A5D6A7); color: #2E7D32; }
.benefit-item:nth-child(2) .benefit-icon { background: linear-gradient(135deg, #E3F2FD, #90CAF9); color: #1565C0; }
.benefit-item:nth-child(3) .benefit-icon { background: linear-gradient(135deg, #FFF8E1, #FFE082); color: #E65100; }
.benefit-item:nth-child(4) .benefit-icon { background: linear-gradient(135deg, #F3E5F5, #CE93D8); color: #7B1FA2; }
.benefit-item:nth-child(5) .benefit-icon { background: linear-gradient(135deg, #FCE4EC, #F48FB1); color: #C62828; }
.benefit-item:nth-child(6) .benefit-icon { background: linear-gradient(135deg, #E0F2F1, #80CBC4); color: #00695C; }

.benefit-icon {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.benefit-item:hover .benefit-icon {
  transform: translateY(-5px) scale(1.12);
  box-shadow: 0 10px 24px rgba(0,0,0,0.1);
}
.benefit-item {
  cursor: default;
}
.benefit-title {
  transition: color var(--transition-fast);
}
.benefit-item:hover .benefit-title {
  color: var(--color-primary);
}

/* ── Animated CTA Final Background ── */
.cta-final {
  background: linear-gradient(135deg, #162118 0%, #2E5E35 30%, #3A5E43 55%, #1C3A22 80%, #0F1A12 100%);
  background-size: 300% 300%;
  animation: gradShift 10s ease infinite;
}

@keyframes gradShift {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

.cta-final::before {
  background: rgba(78,124,89,0.22);
}
.cta-final::after {
  background: rgba(245,158,11,0.10);
}

/* ── Directional Fade Animations ── */
.fade-in-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in-left.is-visible,
.fade-in-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── 3D Tilt Cards ── */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ── Counter span ── */
.counter {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ── Founder extras ── */
.founder::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 280px;
  height: 280px;
  background: linear-gradient(135deg, var(--color-primary-light), rgba(245,158,11,0.08));
  border-radius: 50%;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

/* ── Benefits section enhanced background ── */
.benefits {
  position: relative;
  overflow: hidden;
}
.benefits::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(78,124,89,0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(245,158,11,0.05) 0%, transparent 40%);
  pointer-events: none;
}
.benefits .container {
  position: relative;
  z-index: 1;
}
