/* =========================
GHE V2.1 DESIGN SYSTEM
========================= */

:root {
  --bg: #f6f8fb;
  --text: #1f2937;
  --primary: #0ea5e9;
  --dark: #0f172a;
  --accent: #22c55e;
  --purple: #7c3aed;
  --card: #ffffff;
}

/* =========================
BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* =========================
HEADER
========================= */
.ghe-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 40px;
  background: var(--dark);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
}

nav a {
  color: white;
  margin-left: 18px;
  text-decoration: none;
  font-size: 0.95rem;
}

nav a:hover,
nav a.active {
  color: var(--primary);
}

/* =========================
HERO
========================= */
.hero {
  position: relative;
  background: linear-gradient(120deg, #0ea5e9, #1e3a8a);
  color: white;
  text-align: center;
  padding: 100px 20px;
}

.hero-content {
  max-width: 900px;
  margin: auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.intro {
  opacity: 0.9;
  margin-bottom: 20px;
}

.cta {
  background: var(--accent);
  color: white;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-block;
}

/* =========================
LEARNING JOURNEY
========================= */
.journey {
  text-align: center;
  padding: 60px 20px;
  background: white;
}

.journey-path {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.step {
  background: #e0f2fe;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
}

.arrow {
  font-size: 1.5rem;
}

.journey-note {
  margin-top: 15px;
  font-weight: 600;
  color: var(--primary);
}

/* =========================
GLOBAL HEALTH LENS
========================= */
.lens {
  padding: 60px 20px;
  text-align: center;
}

.lens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 25px;
}

.lens-card {
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

/* =========================
LIFE COURSE V2.1-R (MUSEUM FLOW)
========================= */

.life-course {
  padding: 80px 20px;
  background: #ffffff;
}

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

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.section-intro {
  color: #4b5563;
  font-size: 1.05rem;
}

/* vertical flow */
.life-path {
  max-width: 900px;
  margin: auto;
}

/* stage cards */
.life-stage {
  display: flex;
  gap: 20px;
  background: #f8fafc;
  padding: 20px;
  border-radius: 14px;
  margin-bottom: 10px;
  transition: 0.3s;
}

.life-stage:hover {
  transform: translateY(-3px);
}

/* icon */
.life-icon {
  font-size: 2rem;
  min-width: 50px;
}

/* content */
.life-content h3 {
  margin-bottom: 6px;
  color: #0f172a;
}

.life-content .why {
  margin-bottom: 10px;
  color: #374151;
}

/* indicators */
.life-stage ul {
  margin-left: 18px;
  margin-top: 6px;
  color: #1f2937;
}

/* explorer question */
.explorer-question {
  margin-top: 12px;
  padding: 10px;
  background: #e0f2fe;
  border-left: 4px solid #0ea5e9;
  border-radius: 8px;
}

.explorer-question strong {
  display: block;
  margin-bottom: 4px;
}

/* arrows */
.life-arrow {
  text-align: center;
  font-size: 1.6rem;
  margin: 8px 0;
  color: #94a3b8;
}
/* =========================
EVIDENCE HUB
========================= */
.evidence {
  padding: 60px 20px;
  text-align: center;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.evidence-card {
  background: white;
  padding: 15px;
  border-radius: 10px;
  font-weight: 600;
}

/* =========================
EVERY NUMBER COUNTS
========================= */
.numbers {
  background: var(--dark);
  color: white;
  text-align: center;
  padding: 60px 20px;
}

/* =========================
EXPLORER CHALLENGE
========================= */
.challenge {
  padding: 60px 20px;
  max-width: 900px;
  margin: auto;
}

.challenge-box {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

/* =========================
BUILD IDEA
========================= */
.build {
  text-align: center;
  padding: 60px 20px;
  background: #ecfeff;
}

/* =========================
FOOTER
========================= */
.footer {
  text-align: center;
  padding: 25px;
  background: var(--dark);
  color: white;
}

/* =========================
RESPONSIVE
========================= */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .ghe-header {
    flex-direction: column;
    text-align: center;
  }

  nav {
    margin-top: 10px;
  }
}
/* =========================
V2.1-R POLISH LAYER (CRITICAL FIX)
Restores hierarchy + museum flow feel
========================= */

/* SECTION SPACING IMPROVEMENT */
section {
  scroll-margin-top: 80px;
}

/* HEADER IMPROVEMENT FOR VISUAL BALANCE */
.section-header {
  margin-bottom: 40px;
}

.section-header h2 {
  letter-spacing: -0.5px;
}

/* LIFE COURSE — STRONGER VERTICAL RHYTHM */
.life-path {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* LIFE STAGE — MAKE IT MORE “CARD-LIKE” AND CLEAR */
.life-stage {
  align-items: flex-start;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

/* ICON IMPROVEMENT */
.life-icon {
  font-size: 2.4rem;
  margin-top: 2px;
}

/* TITLE HIERARCHY */
.life-content h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

/* WHY TEXT — BETTER READABILITY */
.life-content .why {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #4b5563;
}

/* INDICATORS LIST — MORE AIR */
.life-stage ul {
  margin-top: 10px;
  margin-bottom: 10px;
  line-height: 1.6;
}

/* EXPLORER QUESTION — MAKE IT MORE “CALLOUT” LIKE */
.explorer-question {
  background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
  border-left: 5px solid var(--primary);
  padding: 12px 14px;
  margin-top: 14px;
}

/* MAKE ARROWS MORE SUBTLE (LESS DISTRACTING) */
.life-arrow {
  font-size: 1.4rem;
  color: #cbd5e1;
  margin: 6px 0;
}

/* GLOBAL IMPROVEMENT: TEXT CONSISTENCY */
p {
  font-size: 0.98rem;
}

/* IMPROVE SCROLL FEEL */
.life-course {
  padding-bottom: 100px;
}

/* =========================
V2.2 VISIBILITY RESTORE PATCH
Fixes invisible SDH / ECD / grouped content
========================= */

/* ENSURE ALL TEXT REMAINS VISIBLE */
section, div, p, li, h2, h3, h4 {
  color: inherit;
  opacity: 1;
}

/* PREVENT BACKGROUND COLLAPSE EFFECT */
section {
  background-clip: padding-box;
}

/* =========================
SDH & CONCEPTUAL HUB VISIBILITY FIX
========================= */

.sdh,
.ecd,
.knowledge-hub {
  background: #ffffff;
  border-radius: 14px;
  padding: 30px 20px;
  margin: 30px auto;
  max-width: 1100px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

/* SDH TITLE EMPHASIS */
.sdh h2,
.ecd h2,
.knowledge-hub h2 {
  color: #0f172a;
  font-size: 2rem;
  margin-bottom: 12px;
}

/* SDH CONTENT READABILITY */
.sdh p,
.ecd p,
.knowledge-hub p {
  color: #334155;
  line-height: 1.7;
}

/* =========================
AGE GROUP / INDICATOR GROUP FIX
========================= */

.age-group,
.indicator-group {
  background: #f8fafc;
  border-left: 5px solid #0ea5e9;
  padding: 18px 20px;
  margin: 20px 0;
  border-radius: 10px;
}

/* ENSURE INDICATORS NEVER DISAPPEAR */
.indicator-card,
.life-stage li {
  opacity: 1;
  visibility: visible;
}

/* =========================
FORCED CONTRAST SAFETY LAYER
========================= */

.life-course,
.evidence,
.lens,
.numbers,
.challenge {
  background: #ffffff;
}

/* ENSURE NO TEXT BLENDING INTO BACKGROUND */
p, li {
  font-weight: 400;
}

/* =========================
DEBUG SAFETY (TEMPORARY VISIBILITY GUARD)
========================= */

* {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
