/* ================================================
   AfriversalAI — Course POC · Shared Styles
   ================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-dark:   #1B4332;
  --green-mid:    #2D6A4F;
  --green-light:  #D8F3DC;
  --green-pale:   #F0F7F4;
  --gold:         #E9C46A;
  --gold-dark:    #C9A227;
  --gold-light:   #FDF6E3;
  --text:         #1A1A2E;
  --muted:        #6B7280;
  --border:       #E5E7EB;
  --white:        #FFFFFF;
  --bg:           #F9FAFB;
  --radius:       8px;
  --radius-lg:    14px;
  --shadow:       0 2px 12px rgba(0,0,0,0.07);
  --shadow-md:    0 6px 28px rgba(0,0,0,0.11);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

/* ---- Layout ---- */
.container       { max-width: 1440px; margin: 0 auto; padding: 0 52px; }
.container--sm   { max-width: 920px;  margin: 0 auto; padding: 0 52px; }
.container--course { max-width: 1200px; margin: 0 auto; padding: 0 52px; }

section          { padding: 52px 0; }
section.bg-pale  { background: var(--green-pale); }
section.bg-dark  { background: var(--green-dark); color: var(--white); }
section.bg-white { background: var(--white); }

/* ---- Nav ---- */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.nav__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}
.nav__logo {
  font-weight: 800;
  font-size: 1.05em;
  color: var(--green-dark);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.nav__logo span { color: var(--gold-dark); }
.nav__logo-img  { height: 48px; width: auto; display: block; }
.nav__links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}
.nav__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88em;
  font-weight: 500;
  transition: color 0.15s;
}
.nav__links a:hover, .nav__links a.active { color: var(--green-dark); }

/* Hamburger button (hidden on desktop) */
.nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--green-dark);
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.nav__hamburger__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--green-dark);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav__hamburger.is-active .nav__hamburger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.is-active .nav__hamburger__bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.is-active .nav__hamburger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Nav dropdown ---- */
.nav__dropdown { position: relative; }
.nav__dropdown > a { display: inline-flex; align-items: center; gap: 3px; }
.nav__dropdown > a::after { content: '▾'; font-size: 0.7em; opacity: 0.55; line-height: 1; margin-top: 1px; }
.nav__dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 196px;
  z-index: 200;
  box-shadow: var(--shadow-md);
  padding: 6px 0;
  list-style: none;
}
.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown:focus-within .nav__dropdown-menu,
.nav__dropdown.is-open .nav__dropdown-menu { display: block; }
.nav__dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.nav__dropdown-menu li { list-style: none; }
.nav__dropdown-menu a {
  display: block !important;
  padding: 10px 18px !important;
  font-size: 0.87em !important;
  color: var(--text) !important;
  white-space: nowrap;
  font-weight: 500 !important;
  text-decoration: none;
}
.nav__dropdown-menu a:hover,
.nav__dropdown-menu a.active { background: var(--green-pale) !important; color: var(--green-dark) !important; }

/* ---- Language switcher ---- */
.lang-switcher { display: flex; gap: 3px; align-items: center; margin-right: 8px; }
.lang-switcher button {
  background: none;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 0.68em;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  color: var(--muted);
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  line-height: 1;
}
.lang-switcher button:hover { border-color: var(--green-mid); color: var(--green-dark); }
.lang-switcher button.is-active {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: white;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 0.9em;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s;
  font-family: inherit;
  line-height: 1.4;
}
.btn--primary  { background: var(--green-dark); color: var(--white); }
.btn--primary:hover { background: var(--green-mid); }
.btn--outline  { border-color: var(--green-dark); color: var(--green-dark); background: transparent; }
.btn--outline:hover { background: var(--green-pale); }
.btn--gold     { background: var(--gold); color: var(--green-dark); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-dark); color: var(--white); }
/* Nav specificity fix: .nav__links a overrides color — re-assert gold button text */
.nav__links a.btn--gold       { color: var(--green-dark); }
.nav__links a.btn--gold:hover { color: var(--white); }
.btn--white    { background: var(--white); color: var(--green-dark); }
.btn--white:hover { background: var(--green-light); }
.btn--lg       { padding: 14px 32px; font-size: 1em; }
.btn--sm       { padding: 7px 16px; font-size: 0.82em; }

/* ---- Typography ---- */
.eyebrow {
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-dark);
  margin-bottom: 12px;
  display: block;
}
.eyebrow--light { color: var(--gold); }

h1 { font-size: 2.8em; font-weight: 800; line-height: 1.15; letter-spacing: -0.8px; }
h2 { font-size: 2em;   font-weight: 700; line-height: 1.25; letter-spacing: -0.4px; margin-bottom: 12px; }
h3 { font-size: 1.2em; font-weight: 700; margin-bottom: 8px; }
h4 { font-size: 1em;   font-weight: 600; margin-bottom: 6px; }

.lead {
  font-size: 1.1em;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 740px;
}
.lead--light { color: rgba(255,255,255,0.75); }

/* ---- Hero ---- */
.hero {
  background: var(--green-dark);
  color: var(--white);
  padding: 68px 28px;
  text-align: center;
}
.hero h1 { max-width: 760px; margin: 0 auto 20px; }
.hero .lead { max-width: 560px; margin: 0 auto 40px; }
.hero__ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero__proof { margin-top: 16px; font-size: 0.82em; color: rgba(255,255,255,0.65); letter-spacing: 0.2px; }
.hero__proof em { color: rgba(255,255,255,0.9); font-style: normal; font-weight: 600; }
.hero--condensed { padding-bottom: 48px; }
.ai-disclosure { padding: 16px 0; border-top: 1px solid var(--border); background: var(--white); }
.ai-disclosure p { font-size: 0.8em; color: var(--muted); margin: 0; }
.footer__sub { margin-top: 8px; display: block; }

/* ---- Module hero (narrower) ---- */
.module-hero {
  background: var(--green-dark);
  color: var(--white);
  padding: 48px 52px;
}
.module-hero__inner {
  max-width: 1440px;
  margin: 0 auto;
}
.breadcrumb {
  font-size: 0.82em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 12px;
}
.breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }
.module-hero h1 { font-size: 2em; margin-bottom: 8px; }
.module-hero .lead { margin-bottom: 0; }

/* ---- Progress tracker ---- */
.progress-track {
  display: flex;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 5px;
  margin: 36px 0 48px;
  gap: 4px;
}
.progress-step {
  flex: 1;
  text-align: center;
  padding: 9px 12px;
  font-size: 0.78em;
  color: var(--muted);
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.25s;
  cursor: default;
}
.progress-step.is-active {
  background: var(--green-dark);
  color: var(--white);
  font-weight: 700;
}
.progress-step.is-done { color: var(--green-mid); font-weight: 600; }

/* ---- Phase blocks ---- */
.phase { margin-bottom: 24px; }

.phase__header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--green-pale);
  border: 1px solid var(--border);
  border-bottom: none;
}
.phase.is-locked .phase__header { background: var(--bg); opacity: 0.5; }

.phase__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-dark);
  color: var(--white);
  font-weight: 800;
  font-size: 0.85em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.phase.is-locked .phase__num { background: var(--border); color: var(--muted); }
.phase.is-done   .phase__num { background: var(--green-mid); }

.phase__label { font-weight: 700; font-size: 1em; }
.phase__sublabel { font-size: 0.8em; color: var(--muted); margin-left: auto; }

.phase__body {
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 28px;
  background: var(--white);
  display: block;
}
.phase.is-locked .phase__body { display: none; }

.phase__task {
  background: var(--gold-light);
  border-left: 4px solid var(--gold);
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-weight: 600;
  font-size: 0.95em;
  margin-bottom: 20px;
}

/* ---- Artifact viewer ---- */
.artifact {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 20px 0;
  box-shadow: var(--shadow);
}
.artifact__bar {
  background: var(--green-pale);
  border-bottom: 1px solid var(--border);
  padding: 10px 18px;
  font-size: 0.78em;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.artifact__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--green-mid);
  display: inline-block;
}
.artifact__scroll {
  max-height: 280px;
  overflow-y: auto;
  padding: 24px 28px;
  font-family: 'Georgia', serif;
  font-size: 0.9em;
  line-height: 1.9;
}
.artifact__scroll h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.78em;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-top: 20px;
  margin-bottom: 6px;
}
.artifact__scroll h4:first-child { margin-top: 0; }
.artifact__scroll sup { font-size: 0.72em; color: var(--green-mid); }

/* ---- Reflect inputs ---- */
.reflect-q { margin-bottom: 20px; }
.reflect-q label {
  display: block;
  font-weight: 600;
  font-size: 0.9em;
  margin-bottom: 6px;
}
.reflect-q textarea {
  width: 100%;
  min-height: 90px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.93em;
  color: var(--text);
  resize: vertical;
  transition: border-color 0.15s;
  background: var(--bg);
}
.reflect-q textarea:focus { outline: none; border-color: var(--green-mid); background: var(--white); }

/* ---- Concept block ---- */
.concept-block {
  background: var(--green-pale);
  border-left: 4px solid var(--green-mid);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 16px 0;
}
.concept-block h4 { color: var(--green-dark); margin-bottom: 6px; }
.concept-block p  { font-size: 0.93em; color: var(--text); }

/* ---- Apply checklist ---- */
.funda-apply {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 16px;
}
.funda-apply-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.funda-apply-step:last-child { border-bottom: none; }
.funda-apply-step__num {
  width: 32px; height: 32px;
  background: var(--green-dark);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82em;
  flex-shrink: 0;
  margin-top: 2px;
}
.funda-apply-step__name { font-weight: 700; font-size: 0.9em; margin-bottom: 4px; }
.funda-apply-step textarea {
  width: 100%;
  min-height: 64px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.88em;
  resize: vertical;
  margin-top: 6px;
  background: var(--bg);
  transition: border-color 0.15s;
}
.funda-apply-step textarea:focus { outline: none; border-color: var(--green-mid); background: var(--white); }

/* ---- Module cards ---- */
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.module-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.module-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.module-card__num {
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green-mid);
  margin-bottom: 10px;
}
.module-card__case {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 12px;
  background: var(--green-pale);
  border-radius: 20px;
  font-size: 0.78em;
  color: var(--green-dark);
  font-weight: 600;
}
.module-card--preview { border-color: var(--green-mid); border-width: 2px; }
.module-card--preview .module-card__num { color: var(--green-dark); }

/* ---- Stat blocks ---- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 48px 0;
}
.stat-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
}
.stat-block__number {
  font-size: 3em;
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1;
  letter-spacing: -1px;
  margin-bottom: 8px;
}
.stat-block__label { font-size: 0.88em; color: var(--muted); line-height: 1.4; }

/* ---- Funda Five (framework page) ---- */
.five-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin: 48px 0;
}
.five-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.five-card:hover, .five-card.is-open {
  border-color: var(--green-mid);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.five-card__num {
  width: 44px; height: 44px;
  background: var(--green-dark);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1em;
  margin: 0 auto 14px;
}
.five-card__name { font-weight: 700; font-size: 1.05em; margin-bottom: 6px; }
.five-card__q {
  font-size: 0.82em;
  color: var(--muted);
  line-height: 1.5;
  display: none;
  margin-top: 10px;
}
.five-card.is-open .five-card__q { display: block; color: var(--text); }

/* ---- Certificate ---- */
.cert-frame {
  max-width: 620px;
  margin: 48px auto;
  border: 3px solid var(--green-dark);
  border-radius: var(--radius-lg);
  padding: 52px 48px;
  background: var(--white);
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
}
.cert-frame::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--green-light);
  border-radius: 8px;
  pointer-events: none;
}
.cert-logo {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.82em;
  color: var(--green-dark);
  margin-bottom: 28px;
}
.cert-logo span { color: var(--gold-dark); }
.cert-presents { font-size: 0.82em; color: var(--muted); margin-bottom: 8px; }
.cert-title { font-size: 1.5em; font-weight: 700; color: var(--green-dark); margin-bottom: 4px; }
.cert-name {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: 2em;
  color: var(--text);
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 16px 0 20px;
}
.cert-statement { font-size: 0.88em; color: var(--muted); line-height: 1.7; max-width: 440px; margin: 0 auto 28px; }
.cert-badge {
  display: inline-block;
  padding: 6px 18px;
  background: var(--green-pale);
  color: var(--green-dark);
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: 700;
}

/* ---- Callouts ---- */
.callout {
  border-left: 4px solid var(--green-mid);
  background: var(--green-pale);
  padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
  font-size: 0.95em;
}
.callout--gold { border-left-color: var(--gold); background: var(--gold-light); }
.callout strong { display: block; margin-bottom: 4px; }

/* ---- Feature rows ---- */
.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.feature {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
}
.feature__icon {
  width: 48px; height: 48px;
  background: var(--green-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4em;
  margin-bottom: 16px;
}
.feature h3 { margin-bottom: 8px; }
.feature p  { font-size: 0.9em; color: var(--muted); }

/* ---- Rubric table ---- */
.rubric { width: 100%; border-collapse: collapse; font-size: 0.88em; margin-top: 28px; }
.rubric th {
  background: var(--green-dark);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}
.rubric td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.rubric tr:nth-child(even) td { background: var(--green-pale); }
.rubric td:first-child { font-weight: 600; }

/* ---- Tags ---- */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78em;
  font-weight: 700;
  background: var(--green-light);
  color: var(--green-dark);
}
.tag--gold { background: var(--gold-light); color: var(--gold-dark); }

/* ---- Footer ---- */
footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.55);
  padding: 40px 28px;
  text-align: center;
  font-size: 0.85em;
}
footer strong { color: rgba(255,255,255,0.85); }
footer a { color: rgba(255,255,255,0.7); }

/* ---- Split image layouts ---- */
.split-img { display:grid; grid-template-columns:3fr 2fr; gap:60px; align-items:center; }
.split-img img { border-radius:var(--radius-lg); width:100%; height:280px; object-fit:cover; }
@media (max-width:768px) { .split-img { grid-template-columns:1fr; gap:32px; } .split-img img { height:200px; } }

/* ---- Utils ---- */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 48px 0; }

/* ---- Sector callout band ---- */
/* ---- Module 7 full-width bookend card ---- */
.module-m7 {
  background: var(--gold-dark);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}
@media (max-width: 640px) { .module-m7 { grid-template-columns: 1fr; } }
.module-m7__eyebrow {
  font-size: 0.72em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
}
.module-m7__title { color: white; margin-bottom: 10px; font-size: 1.3em; }
.module-m7__desc { font-size: 0.88em; color: rgba(255,255,255,0.8); margin-bottom: 12px; line-height: 1.65; }
.module-m7__outcomes-label { font-size: 0.88em; font-weight: 600; color: white; margin-bottom: 6px; }
.module-m7__outcomes { font-size: 0.88em; color: rgba(255,255,255,0.8); padding-left: 18px; margin-bottom: 16px; }
.module-m7__btn { white-space: nowrap; flex-shrink: 0; }
.module-m7__tracks { display: flex; gap: 8px; flex-wrap: wrap; }
.module-m7__track-chip {
  background: rgba(0,0,0,0.18);
  color: white;
  font-size: 0.78em;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.sector-callout { background: var(--green-dark); padding: 52px 0; }
.sector-chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.sector-chip { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; padding: 8px 18px; font-size: 0.85em; color: white; font-weight: 600; }

/* ---- Sector cards ---- */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.sector-grid--detail {
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.sector-cta-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.82em;
  font-weight: 600;
  color: var(--green-dark);
  text-decoration: none;
}
.sector-cta-link:hover { text-decoration: underline; }
@media (max-width: 900px) { .sector-grid--detail { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .sector-grid--detail { grid-template-columns: 1fr; } }
.sector-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sector-card.is-open { border-color: var(--green-mid); box-shadow: var(--shadow-md); }
.sector-icon { font-size: 1.8em; margin-bottom: 12px; }
.sector-name { font-weight: 700; font-size: 0.95em; margin-bottom: 6px; color: var(--text); }
.sector-desc { font-size: 0.81em; color: var(--muted); line-height: 1.5; margin-bottom: 14px; }
.sector-toggle {
  background: none; border: none;
  color: var(--green-mid); font-size: 0.82em; font-weight: 600;
  cursor: pointer; padding: 0; font-family: inherit; transition: color 0.15s;
}
.sector-toggle:hover { color: var(--green-dark); }
.sector-path {
  display: none;
  margin-top: 18px; padding-top: 18px;
  border-top: 1px solid var(--border);
  animation: heroFade 0.3s ease;
}
.sector-card.is-open .sector-path { display: block; }
.sector-path-label {
  font-size: 0.72em; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--muted); margin-bottom: 10px;
}
.sector-mod-row {
  display: flex; align-items: flex-start;
  gap: 8px; margin-bottom: 8px;
  font-size: 0.8em; line-height: 1.45; color: var(--text);
}
.sector-mod-badge {
  background: var(--green-dark); color: white;
  font-size: 0.68em; font-weight: 700;
  padding: 2px 6px; border-radius: 4px;
  flex-shrink: 0; margin-top: 2px;
}
.sector-mod-badge--coming {
  background: var(--gold-light); color: var(--gold-dark);
  border: 1px solid var(--gold);
}
.sector-tackle {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.sector-tackle__label {
  font-size: 0.7em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  margin-bottom: 8px;
}
.sector-tackle__item {
  font-size: 0.82em;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 4px;
}
.sector-tackle__item:last-child { margin-bottom: 0; }

/* ---- Preview-end block ---- */
.preview-end-block {
  background: var(--gold-light);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
  margin-bottom: 32px;
  animation: heroFade 0.5s ease;
}
.preview-end-phases {
  display: flex; gap: 12px;
  justify-content: center; flex-wrap: wrap;
  margin: 20px 0 28px;
}
.preview-end-phase {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 18px;
  font-size: 0.85em; font-weight: 600;
}

/* ---- Two-column problem layout ---- */
.problem-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.problem-stats-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.problem-stats-stack .stat-block {
  display: flex;
  align-items: center;
  gap: 28px;
  text-align: left;
  padding: 20px 28px;
}
.problem-stats-stack .stat-block__number {
  font-size: 2.4em;
  min-width: 96px;
  text-align: right;
  flex-shrink: 0;
}
.problem-stats-stack .stat-block__label { text-align: left; }

/* ---- Hero rotating headlines ---- */
.hero-headlines { max-width: 820px; margin: 20px auto 0; min-height: 110px; }
.hero-headline  { display: none; }
.hero-headline.active { display: block; animation: heroFade 0.55s ease; }
@keyframes heroFade {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-dots { display: flex; gap: 10px; justify-content: center; margin: 20px 0 28px; }
.hero-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,0.28);
  border: none; cursor: pointer; padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.hero-dot.active { background: var(--gold); transform: scale(1.35); }
.hero-dot:hover  { background: rgba(255,255,255,0.55); }

/* ---- Advance validation error ---- */
.advance-err {
  color: #dc2626;
  font-size: 0.84em;
  margin-top: 8px;
  text-align: right;
}

/* ---- Responsive ---- */

/* ---- About page — founder cards ---- */
.founder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.founder-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px 32px;
  text-align: center;
}
.founder-photo {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 3px solid var(--green-light);
}
.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  position: absolute;
  top: 0; left: 0;
}
.founder-photo img[src*="about-thurston"] { object-position: 50% 20%; }
.founder-photo img[src*="about-thando"] { object-position: 50% 30%; }
.founder-photo__initials {
  font-size: 1.6em;
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1;
}
.founder-name { font-size: 1.05em; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.founder-role {
  font-size: 0.72em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--green-dark);
  background: var(--green-pale);
  border: 1px solid var(--green-light);
  padding: 3px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
}
.founder-credential {
  font-size: 0.8em;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.5;
}
.founder-bio {
  font-size: 0.88em;
  color: var(--muted);
  line-height: 1.75;
  text-align: left;
}
.about-origin {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 40px;
}
.about-origin__pull {
  background: var(--green-dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}
.about-origin__pull blockquote {
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.6;
  color: var(--white);
  font-style: italic;
  margin-bottom: 16px;
}
.about-origin__pull cite {
  font-size: 0.8em;
  color: var(--gold);
  font-style: normal;
  font-weight: 600;
}

/* Tablet landscape — 1024px */
@media (max-width: 1024px) {
  .container     { padding: 0 36px; }
  .container--sm { padding: 0 36px; }
  .container--course { padding: 0 36px; }
  .nav__inner    { padding: 0 36px; }
  .problem-layout { grid-template-columns: 1fr; gap: 48px; }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .sector-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tablet portrait — 900px */
@media (max-width: 900px) {
  h1 { font-size: 2.2em; }
  h2 { font-size: 1.65em; }
  section { padding: 64px 0; }
  .five-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-row { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .founder-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .about-origin { grid-template-columns: 1fr; gap: 40px; }
}

/* Tablet portrait narrow — 768px */
@media (max-width: 768px) {
  h1 { font-size: 1.95em; }
  h2 { font-size: 1.45em; }
  .container     { padding: 0 24px; }
  .container--sm { padding: 0 24px; }
  .container--course { padding: 0 24px; }
  .nav__inner    { padding: 0 24px; }
  .module-grid { grid-template-columns: 1fr; }
  .five-grid { grid-template-columns: repeat(2, 1fr); }
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
  .nav__logo-img { height: 38px; }
  .problem-stats-stack .stat-block { flex-direction: column; text-align: center; gap: 8px; }
  .problem-stats-stack .stat-block__number { text-align: center; min-width: unset; }
  .problem-stats-stack .stat-block__label  { text-align: center; }
}

/* Mobile nav — 768px (hamburger replaces full nav links) */
@media (max-width: 768px) {
  .nav__inner { padding: 0 24px; }
  .nav__hamburger { display: flex; }
  .nav__links {
    display: none;
    position: fixed;
    top: 100px;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 8px 0 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    z-index: 999;
    align-items: flex-start;
  }
  .nav__links.is-open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 12px 24px; font-size: 0.95em; color: var(--text); }
  .nav__links a:hover, .nav__links a.active { background: var(--green-pale); color: var(--green-dark); }
  /* Dropdown on mobile — hidden until toggled with .is-open */
  .nav__dropdown > a::after { display: none; }
  .nav__dropdown-menu {
    position: static !important;
    display: none !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    border-left: 3px solid var(--green-light) !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    margin-left: 24px;
    min-width: 0 !important;
  }
  .nav__dropdown.is-open .nav__dropdown-menu { display: block !important; }
  .nav__dropdown-menu a { padding: 9px 18px !important; font-size: 0.88em !important; color: var(--muted) !important; }
  .nav__dropdown-menu a:hover { background: var(--green-pale) !important; color: var(--green-dark) !important; }
  .nav__links .btn--primary {
    margin: 8px 24px 0;
    display: inline-block;
    width: auto;
    color: var(--white) !important;
    background: var(--green-dark);
  }
}

/* Mobile — 600px */
@media (max-width: 600px) {
  .hero { padding: 60px 20px; }
  h1 { font-size: 1.75em; }
  section { padding: 48px 0; }
  .five-grid { grid-template-columns: 1fr 1fr; }
  .cert-frame { padding: 36px 24px; }
}

/* Mobile small — 480px */
@media (max-width: 480px) {
  h1 { font-size: 1.55em; }
  .container { padding: 0 16px; }
  .container--sm { padding: 0 16px; }
  .container--course { padding: 0 16px; }
  .hero { padding: 48px 16px; }
  .five-grid { grid-template-columns: 1fr; }
  .sector-grid { grid-template-columns: 1fr; }
  .phase__body { padding: 20px 16px; }
  .funda-apply-step { flex-direction: column; }
  .preview-end-phases { flex-direction: column; }
}
