/* ============================================================
   COF Interactive Health Education Simulator — Stylesheet
   ============================================================ */

/* ── Color tokens ─────────────────────────────────────────── */
:root {
  --he-tb:       #ea580c;
  --he-tb-light: #fff7ed;
  --he-tb-bg:    #fef3e2;
  --he-hiv:      #7c3aed;
  --he-hiv-light:#f5f3ff;
  --he-malaria:  #0284c7;
  --he-malaria-light:#f0f9ff;
  --he-correct:  #16a34a;
  --he-wrong:    #dc2626;
  --he-bg:       #f8fafc;
}

/* ============================================================
   HUB PAGE
   ============================================================ */

.he-hub-hero {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%);
  padding: 140px 0 72px;
  position: relative;
  overflow: hidden;
  text-align: center;
  color: var(--white);
}

.he-hub-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.he-hub-hero-inner {
  position: relative;
  z-index: 2;
}

.he-hub-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.he-hub-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.he-hub-subtitle {
  font-size: 1.125rem;
  opacity: .85;
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.he-hub-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.he-hub-stat {
  text-align: center;
}

.he-hub-stat-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
}

.he-hub-stat-label {
  font-size: .8125rem;
  opacity: .7;
  margin-top: 4px;
}

/* Disease cards */
.he-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 80px 0;
}

.he-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--gray-200);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative;
  overflow: hidden;
}

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

.he-card.he-card-tb:hover { border-color: var(--he-tb); }
.he-card.he-card-hiv:hover { border-color: var(--he-hiv); }
.he-card.he-card-malaria:hover { border-color: var(--he-malaria); }

.he-card-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.he-card-tb .he-card-icon { background: var(--he-tb-light); }
.he-card-hiv .he-card-icon { background: var(--he-hiv-light); }
.he-card-malaria .he-card-icon { background: var(--he-malaria-light); }

.he-card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.he-card-desc {
  font-size: .9375rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 28px;
}

.he-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: .9375rem;
  text-decoration: none;
  transition: background .2s, transform .2s;
  border: none;
  cursor: pointer;
}

.he-card-tb .he-card-btn {
  background: var(--he-tb);
  color: var(--white);
}
.he-card-tb .he-card-btn:hover { background: #c2410c; transform: scale(1.04); }

.he-card-btn.he-coming-soon {
  background: var(--gray-200);
  color: var(--gray-600);
  cursor: default;
  pointer-events: none;
}

.he-card-coming {
  position: absolute;
  top: 20px;
  right: -30px;
  background: var(--gray-400);
  color: var(--white);
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 6px 40px;
  transform: rotate(45deg);
}

/* ============================================================
   MODULE PAGE — Progress Bar
   ============================================================ */

.he-progress-wrap {
  position: sticky;
  top: 70px;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 16px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.he-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 700px;
  margin: 0 auto;
}

.he-progress-step {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.he-progress-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8125rem;
  font-weight: 700;
  border: 2px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-400);
  transition: all .3s ease;
  flex-shrink: 0;
}

.he-progress-step.active .he-progress-circle {
  border-color: var(--he-tb);
  background: var(--he-tb);
  color: var(--white);
  box-shadow: 0 0 0 4px rgba(234,88,12,.15);
}

.he-progress-step.completed .he-progress-circle {
  border-color: var(--he-correct);
  background: var(--he-correct);
  color: var(--white);
}

.he-progress-line {
  width: 40px;
  height: 3px;
  background: var(--gray-200);
  flex-shrink: 0;
  transition: background .3s ease;
}

.he-progress-line.done {
  background: var(--he-correct);
}

/* ============================================================
   MODULE PAGE — Sections
   ============================================================ */

.he-module-hero {
  background: linear-gradient(135deg, #7c2d12 0%, var(--he-tb) 100%);
  padding: 140px 0 56px;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.he-module-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='3' fill='%23fff'/%3E%3C/svg%3E");
}

.he-module-hero-inner {
  position: relative;
  z-index: 2;
}

.he-module-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.he-module-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.he-module-subtitle {
  font-size: 1rem;
  opacity: .8;
  max-width: 560px;
  margin: 0 auto;
}

/* Individual sections — visibility + animation */
.he-section {
  display: none;
  padding: 60px 0 40px;
}

.he-section.active {
  display: block;
}

.he-section.he-animate-in {
  animation: heFadeSlideIn .6s ease both;
}

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

/* --- Added Premium Animations --- */
.he-animate-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.he-section.active .he-animate-item {
  opacity: 1;
  transform: translateY(0);
}

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

.he-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.he-section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--he-tb);
  color: var(--white);
  font-weight: 700;
  font-size: .875rem;
  margin-bottom: 16px;
}

.he-section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.he-section-subtitle {
  font-size: 1rem;
  color: var(--gray-600);
}

/* ── Responsive layout helpers (used in HTML instead of inline styles) ── */
.he-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.he-two-col-narrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ── Fact / Info cards ─────────────────────────────────────── */
.he-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.he-fact {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border-left: 4px solid var(--he-tb);
  box-shadow: var(--shadow-sm);
}

.he-fact-title {
  font-weight: 700;
  font-size: .9375rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.he-fact-text {
  font-size: .875rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ── SVG containers ────────────────────────────────────────── */
.he-svg-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px auto;
  max-width: 600px;
}

.he-svg-wrap svg {
  width: 100%;
  height: auto;
  max-height: 420px;
}

/* ── Hotspots — use SVG <animate> for pulsing, CSS for hover ── */
.he-hotspot {
  cursor: pointer;
}

.he-hotspot:hover {
  filter: brightness(1.2);
}

/* Tooltip — renders below SVG, hidden by default */
.he-tooltip {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 0 24px;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--he-tb);
  max-width: 100%;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: opacity .35s ease, max-height .4s ease, padding .35s ease, margin .35s ease;
}

.he-tooltip.visible {
  opacity: 1;
  max-height: 250px;
  padding: 20px 24px;
  margin-top: 12px;
}

.he-tooltip-title {
  font-weight: 700;
  font-size: .9375rem;
  color: var(--he-tb);
  margin-bottom: 8px;
}

.he-tooltip-text {
  font-size: .8125rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.he-tooltip-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--gray-400);
  padding: 4px;
  line-height: 1;
}

.he-tooltip-close:hover { color: var(--dark); }

/* ── Transmission animation ────────────────────────────────── */
.he-transmission-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.he-trans-step {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--gray-200);
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity .6s ease, transform .6s ease, border-color .3s;
}

.he-trans-step.revealed {
  opacity: 1;
  transform: translateX(0);
}

.he-trans-step.revealed:hover {
  border-color: var(--he-tb);
}

.he-trans-step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--he-tb);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 1rem;
}

.he-trans-step-content h4 {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.he-trans-step-content p {
  font-size: .875rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.he-reveal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--he-tb);
  color: var(--white);
  border: none;
  border-radius: 100px;
  font-weight: 600;
  font-size: .9375rem;
  cursor: pointer;
  transition: background .2s, transform .2s;
  margin-top: 16px;
}

.he-reveal-btn:hover { background: #c2410c; transform: scale(1.04); }
.he-reveal-btn:disabled { background: var(--gray-400); cursor: default; transform: none; }

/* ── Stages comparison ─────────────────────────────────────── */
.he-stages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 32px 0;
}

.he-stage-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--gray-200);
  transition: transform .3s;
}

.he-stage-card:hover { transform: translateY(-4px); }

.he-stage-card.latent { border-top-color: var(--gold); }
.he-stage-card.active-tb { border-top-color: var(--he-wrong); }

.he-stage-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 16px;
}

.he-stage-card.latent .he-stage-badge {
  background: #fef3c7;
  color: #92400e;
}

.he-stage-card.active-tb .he-stage-badge {
  background: #fee2e2;
  color: #991b1b;
}

.he-stage-card h3 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
}

.he-stage-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.he-stage-list li {
  padding: 8px 0;
  font-size: .9rem;
  color: var(--gray-600);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
  border-bottom: 1px solid var(--gray-100);
}

.he-stage-list li:last-child { border-bottom: none; }

.he-stage-icon {
  flex-shrink: 0;
  font-size: 1rem;
  margin-top: 2px;
}

/* ── Body map ──────────────────────────────────────────────── */
.he-body-map-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
  max-width: 800px;
  margin: 0 auto;
}

.he-body-svg-col {
  position: relative;
  display: flex;
  justify-content: center;
}

.he-body-svg-col svg {
  width: 100%;
  max-width: 220px;
  height: auto;
}

/* Make SVG hotspot groups properly clickable */
.he-body-hotspot {
  cursor: pointer;
  pointer-events: all;
}

.he-symptom-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.he-symptom-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--gray-200);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding: 0 24px;
  transition: opacity .4s ease, max-height .5s ease, padding .4s ease, border-color .3s ease;
}

.he-symptom-card.visible {
  opacity: 1;
  max-height: 250px;
  padding: 20px 24px;
  border-left-color: var(--he-tb);
}

.he-symptom-card h4 {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.he-symptom-card p {
  font-size: .875rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* ── Treatment timeline ────────────────────────────────────── */
.he-timeline {
  position: relative;
  max-width: 700px;
  margin: 40px auto;
  padding: 0 20px;
}

.he-timeline-bar {
  position: absolute;
  top: 24px;
  left: 40px;
  right: 40px;
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
}

.he-timeline-fill {
  height: 100%;
  width: 0;
  background: var(--he-tb);
  border-radius: 2px;
  transition: width 2s ease;
}

.he-timeline-points {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.he-timeline-point {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 140px;
  text-align: center;
  opacity: .4;
  transform: scale(.9);
  transition: opacity .5s ease, transform .5s ease;
}

.he-timeline-point.reached {
  opacity: 1;
  transform: scale(1);
}

.he-timeline-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: border-color .5s, background .5s, box-shadow .5s;
}

.he-timeline-point.reached .he-timeline-dot {
  border-color: var(--he-tb);
  background: var(--he-tb-light);
  box-shadow: 0 0 0 4px rgba(234,88,12,.12);
}

.he-timeline-label {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--dark);
}

.he-timeline-sub {
  font-size: .75rem;
  color: var(--gray-600);
}

.he-dot-info {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  margin-top: 40px;
}

.he-dot-info h4 {
  font-weight: 700;
  color: var(--he-tb);
  margin-bottom: 8px;
}

.he-dot-info p {
  font-size: .875rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ── Quiz ──────────────────────────────────────────────────── */
.he-quiz {
  max-width: 640px;
  margin: 0 auto;
}

.he-quiz-question {
  display: none;
}

.he-quiz-results {
  text-align: center;
  padding: 48px 24px;
  display: none;
}

.he-quiz-progress {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--he-tb);
  margin-bottom: 12px;
}

.he-quiz-q {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 28px;
  line-height: 1.4;
}

.he-quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.he-quiz-option {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  font-size: .9375rem;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: inherit;
}

.he-quiz-option:hover {
  border-color: var(--he-tb);
  transform: translateX(4px);
}

.he-quiz-option.correct {
  border-color: var(--he-correct);
  background: #f0fdf4;
  opacity: 1 !important;
}

.he-quiz-option.wrong {
  border-color: var(--he-wrong);
  background: #fef2f2;
  opacity: 1 !important;
}

.he-quiz-option.disabled {
  cursor: default;
  opacity: .5;
}

.he-quiz-option-letter {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .8125rem;
  color: var(--gray-600);
  flex-shrink: 0;
  transition: background .2s, color .2s;
}

.he-quiz-option.correct .he-quiz-option-letter {
  background: var(--he-correct);
  color: var(--white);
}

.he-quiz-option.wrong .he-quiz-option-letter {
  background: var(--he-wrong);
  color: var(--white);
}

.he-quiz-feedback {
  margin-top: 16px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: .875rem;
  font-weight: 500;
  display: none;
}

.he-quiz-feedback.show { display: block; }
.he-quiz-feedback.correct-fb { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.he-quiz-feedback.wrong-fb { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }


/* Quiz results — display controlled by JS */

.he-quiz-score-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-weight: 700;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Star rating container */
.he-quiz-stars {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.he-quiz-star {
  font-size: 2.5rem;
  color: var(--gray-200);
  transition: color 0.4s, transform 0.4s;
}

.he-quiz-star.active {
  color: #fbbf24; /* Amber-400 */
  transform: scale(1.15);
  animation: starPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes starPop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1.15); opacity: 1; }
}

.he-certificate-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-top: 6px solid var(--he-correct);
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  animation: heFadeSlideIn .6s ease backwards;
  animation-delay: 0.2s;
}

.he-certificate-card.poor {
  border-top-color: var(--he-wrong);
}

.he-certificate-badge {
  position: absolute;
  top: -20px;
  right: -20px;
  opacity: 0.05;
  width: 180px;
  height: 180px;
  pointer-events: none;
}

.he-quiz-score-circle.good {
  background: #f0fdf4;
  border: 4px solid var(--he-correct);
  color: var(--he-correct);
}

.he-quiz-score-circle.ok {
  background: #fef3c7;
  border: 4px solid var(--gold);
  color: #92400e;
}

.he-quiz-score-circle.poor {
  background: #fef2f2;
  border: 4px solid var(--he-wrong);
  color: var(--he-wrong);
}

.he-quiz-score-num {
  font-size: 2rem;
  line-height: 1;
}

.he-quiz-score-label {
  font-size: .75rem;
  opacity: .7;
}

.he-quiz-result-msg {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.he-quiz-result-text {
  font-size: .9375rem;
  color: var(--gray-600);
  margin-bottom: 28px;
}

.he-quiz-result-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Navigation buttons ────────────────────────────────────── */
.he-nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-200);
}

.he-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: .9375rem;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, transform .2s, border-color .2s, color .2s;
  border: 2px solid var(--gray-200);
  background: var(--white);
  color: var(--dark);
  font-family: inherit;
}

.he-nav-btn:hover {
  border-color: var(--he-tb);
  color: var(--he-tb);
  transform: scale(1.03);
}

.he-nav-btn.primary {
  background: var(--he-tb);
  color: var(--white);
  border-color: var(--he-tb);
}

.he-nav-btn.primary:hover { background: #c2410c; border-color: #c2410c; }

/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */

@media (max-width: 768px) {
  .he-cards { grid-template-columns: 1fr; gap: 20px; }
  .he-two-col { grid-template-columns: 1fr; gap: 24px; }
  .he-two-col-narrow { grid-template-columns: 1fr; gap: 20px; }
  .he-stages-grid { grid-template-columns: 1fr; }
  .he-body-map-wrap { grid-template-columns: 1fr; gap: 24px; }
  .he-body-svg-col { justify-content: center; }
  .he-body-svg-col svg { max-width: 200px; }
  .he-hub-stats { gap: 24px; }
  .he-progress-circle { width: 30px; height: 30px; font-size: .7rem; }
  .he-progress-line { width: 16px; }
  .he-timeline-points { flex-direction: column; gap: 20px; align-items: flex-start; padding-left: 20px; }
  .he-timeline-bar { display: none; }
  .he-timeline-point { flex-direction: row; max-width: 100%; gap: 16px; text-align: left; }
  .he-timeline-dot { width: 40px; height: 40px; font-size: 1.1rem; flex-shrink: 0; }
  .he-nav-buttons { gap: 12px; }
  .he-nav-btn { padding: 10px 20px; font-size: .875rem; }
  .he-trans-step { flex-direction: column; text-align: center; }
  .he-card-coming { font-size: .625rem; padding: 4px 36px; }
  .he-svg-wrap { max-width: 100%; }
  .he-svg-wrap svg { max-height: 300px; }

  .he-stage-card { padding: 24px; }
}

/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */

@media (max-width: 480px) {
  .he-hub-hero { padding: 120px 0 52px; }
  .he-module-hero { padding: 120px 0 40px; }
  .he-section { padding: 36px 0 20px; }
  .he-section-header { margin-bottom: 32px; }
  .he-quiz-q { font-size: 1.125rem; }
  .he-nav-buttons { flex-direction: column; gap: 10px; }
  .he-nav-btn { width: 100%; justify-content: center; }
  .he-progress-circle { width: 26px; height: 26px; font-size: .65rem; }
  .he-progress-line { width: 10px; }
  .he-fact { padding: 18px; }
  .he-quiz-option { padding: 14px 16px; font-size: .875rem; }
}
