@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Pinyon+Script&display=swap');

:root {
  --navy:       #0f1f3d;
  --navy-mid:   #1e2d4f;
  --navy-light: #2a3f6f;
  --gold:       #c49a28;
  --gold-light: #fdf8ec;
  --gold-mid:   #f5e8b0;
  --red:        #b91c1c;
  --red-light:  #fef2f2;
  --green:      #15803d;
  --green-light:#f0fdf4;
  --slate:      #64748b;
  --slate-light:#f8fafc;
  --white:      #ffffff;
  --cream:      #fafaf7;
  --text:       #1e293b;
  --text-mid:   #475569;
  --text-muted: #94a3b8;
  --border:     #e2e8f0;
  --radius:     6px;
  --radius-lg:  12px;
  --radius-xl:  18px;
  --font:       'Nunito', system-ui, sans-serif;
  --serif:      Georgia, 'Times New Roman', serif;
  --shadow:     0 2px 12px rgba(15,31,61,.10);
  --shadow-md:  0 4px 24px rgba(15,31,61,.14);
  --sidebar-w:  272px;
}

*, *::before, *::after { box-sizing:border-box; margin:0; padding:0; }
html { font-size:16px; scroll-behavior:smooth; }
body { font-family:var(--font); color:var(--text); background:var(--cream); line-height:1.65; }
a { color:var(--navy); }
img { max-width:100%; }
button { cursor:pointer; font-family:var(--font); }

/* ── Layout ── */
.course-layout { display:flex; min-height:100vh; }
.sidebar {
  width:var(--sidebar-w); background:var(--navy);
  position:fixed; top:0; left:0; bottom:0;
  overflow-y:auto; z-index:200;
  transition:transform .28s ease;
}
.sidebar-brand { padding:22px 20px 16px; border-bottom:1px solid rgba(255,255,255,.1); }
.sidebar-brand-name { font-family:var(--serif); font-size:13px; color:var(--gold); letter-spacing:.04em; margin-bottom:3px; }
.sidebar-brand-sub  { font-size:11px; color:rgba(255,255,255,.4); }
.sidebar-brand-series { font-size:10px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; color:rgba(196,154,40,.7); margin-top:5px; }

.sidebar-modules { padding:8px 0 24px; }
.sidebar-item {
  display:flex; align-items:flex-start; gap:10px;
  padding:9px 16px; text-decoration:none;
  color:rgba(255,255,255,.55); font-size:12px; font-weight:600;
  border-left:3px solid transparent; transition:all .2s;
  line-height:1.4;
}
.sidebar-item:hover { background:rgba(255,255,255,.06); color:white; }
.sidebar-item.active { background:rgba(196,154,40,.12); color:var(--gold); border-left-color:var(--gold); }
.sidebar-item.done   { color:rgba(21,128,61,.9); }
.si-num {
  width:22px; height:22px; border-radius:50%; flex-shrink:0;
  background:rgba(255,255,255,.1);
  display:flex; align-items:center; justify-content:center;
  font-size:10px; font-weight:800; margin-top:1px;
}
.sidebar-item.active .si-num { background:var(--gold); color:var(--navy); }
.sidebar-item.done   .si-num { background:var(--green); color:white; }

.main-wrap { margin-left:var(--sidebar-w); flex:1; display:flex; flex-direction:column; min-height:100vh; }
.top-bar {
  position:sticky; top:0; z-index:100;
  background:var(--white); border-bottom:1px solid var(--border);
  height:58px; display:flex; align-items:center; gap:14px;
  padding:0 24px; box-shadow:var(--shadow);
}
.menu-btn { display:none; background:none; border:none; font-size:20px; color:var(--navy); padding:6px; border-radius:4px; }
.top-bar-title { font-weight:700; font-size:13px; color:var(--navy); flex:1; font-family:var(--serif); }
.progress-bar-wrap { width:110px; }
.progress-bar-bg   { background:var(--border); border-radius:99px; height:5px; }
.progress-bar-fill { background:var(--gold); border-radius:99px; height:5px; transition:width .4s ease; }
.progress-label    { font-size:10px; font-weight:700; color:var(--text-muted); margin-top:3px; text-align:right; }

.content-area { flex:1; padding:28px 32px 64px; max-width:840px; }

/* ── Module Hero ── */
.module-hero {
  background:linear-gradient(135deg,var(--navy) 0%,var(--navy-mid) 60%,var(--navy-light) 100%);
  border-radius:var(--radius-xl); padding:32px 36px 24px;
  margin-bottom:22px; color:white; position:relative; overflow:hidden;
}
.module-hero::before {
  content:''; position:absolute; top:-60px; right:-60px;
  width:240px; height:240px; border-radius:50%;
  background:rgba(196,154,40,.07);
}
.hero-eyebrow { font-size:10px; font-weight:800; letter-spacing:.18em; text-transform:uppercase; color:var(--gold); margin-bottom:8px; }
.hero-title   { font-family:var(--serif); font-size:clamp(20px,3vw,30px); font-weight:400; line-height:1.25; margin-bottom:8px; }
.hero-sub     { font-size:14px; color:rgba(255,255,255,.68); max-width:500px; line-height:1.65; margin-bottom:20px; font-style:italic; }
.hero-badges  { display:flex; gap:8px; flex-wrap:wrap; }
.hero-badge   { background:rgba(255,255,255,.09); border:1px solid rgba(255,255,255,.16); border-radius:4px; padding:4px 12px; font-size:11px; font-weight:700; color:rgba(255,255,255,.8); }

/* Tab nav */
.tab-nav { display:flex; gap:4px; flex-wrap:wrap; margin-top:18px; }
.tab-btn {
  padding:7px 16px; background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.18); border-radius:5px;
  font-size:11px; font-weight:700; color:rgba(255,255,255,.65);
  cursor:pointer; transition:all .2s; font-family:var(--font);
}
.tab-btn:hover { background:rgba(255,255,255,.15); color:white; }
.tab-btn.active { background:var(--gold); border-color:var(--gold); color:var(--navy); }
.tab-panel { display:none; }
.tab-panel.active { display:block; }

/* ── Content card ── */
.content-card {
  background:var(--white); border-radius:var(--radius-lg);
  padding:24px 28px; margin-bottom:18px;
  box-shadow:var(--shadow); border:1px solid var(--border);
}
.content-card h2 { font-family:var(--serif); font-size:20px; font-weight:400; color:var(--navy); margin-bottom:10px; }
.content-card h3 { font-size:15px; font-weight:800; color:var(--navy); margin:18px 0 8px; }
.content-card p  { font-size:14px; color:var(--text-mid); line-height:1.8; margin-bottom:10px; }
.section-label   { font-size:10px; font-weight:800; letter-spacing:.16em; text-transform:uppercase; color:var(--gold); margin-bottom:5px; }

/* Callout boxes */
.gold-box  { background:var(--gold-light); border-left:4px solid var(--gold); border-radius:0 var(--radius-lg) var(--radius-lg) 0; padding:14px 18px; margin:12px 0; }
.gold-box p { font-size:13px; color:#5c3d00; line-height:1.7; margin:0; }
.warn-box  { background:var(--red-light); border-left:4px solid var(--red); border-radius:0 var(--radius-lg) var(--radius-lg) 0; padding:14px 18px; margin:12px 0; }
.warn-box p { font-size:13px; color:#7f1d1d; line-height:1.7; margin:0; }
.navy-box  { background:var(--navy); color:white; border-radius:var(--radius-lg); padding:20px 24px; margin:14px 0; }
.navy-box-label { font-size:10px; font-weight:800; letter-spacing:.16em; text-transform:uppercase; color:var(--gold); margin-bottom:6px; }
.navy-box h3 { font-size:16px; font-weight:700; margin-bottom:8px; }
.navy-box p  { font-size:13px; color:rgba(255,255,255,.72); line-height:1.7; margin-bottom:6px; }

/* Prompt box */
.prompt-box {
  background:var(--slate-light); border:1.5px solid var(--border);
  border-radius:var(--radius-lg); padding:16px 20px; margin:12px 0;
  font-family:'Courier New', monospace; font-size:13px;
  color:var(--text); line-height:1.7; white-space:pre-wrap;
  position:relative;
}
.prompt-box-label { font-family:var(--font); font-size:10px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; color:var(--gold); margin-bottom:8px; display:block; }
.copy-btn {
  position:absolute; top:10px; right:10px;
  background:var(--navy); color:var(--gold); border:none;
  border-radius:4px; padding:4px 10px; font-size:11px; font-weight:700;
  cursor:pointer; font-family:var(--font);
}
.copy-btn:hover { background:var(--navy-light); }

/* Stat row */
.stat-row { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:14px 0; }
.stat-card { background:var(--gold-light); border:1.5px solid var(--gold-mid); border-radius:var(--radius-lg); padding:14px; text-align:center; }
.stat-num  { font-size:26px; font-weight:900; color:var(--navy); line-height:1; margin-bottom:4px; }
.stat-label{ font-size:11px; color:var(--text-mid); font-weight:600; line-height:1.4; }

/* Check/X lists */
.check-list { list-style:none; display:flex; flex-direction:column; gap:7px; }
.check-list li { display:flex; gap:9px; align-items:flex-start; font-size:14px; color:var(--text-mid); line-height:1.6; }
.check-list li::before { content:'✓'; color:var(--green); font-weight:800; flex-shrink:0; }
.x-list { list-style:none; display:flex; flex-direction:column; gap:7px; }
.x-list li { display:flex; gap:9px; align-items:flex-start; font-size:14px; color:var(--text-mid); line-height:1.6; }
.x-list li::before { content:'✕'; color:var(--red); font-weight:800; flex-shrink:0; }

/* Activity / scenario */
.activity-card { background:var(--white); border-radius:var(--radius-lg); padding:22px 26px; margin-bottom:18px; box-shadow:var(--shadow); border:1px solid var(--border); }
.activity-label { font-size:10px; font-weight:800; letter-spacing:.16em; text-transform:uppercase; color:var(--gold); margin-bottom:3px; }
.activity-title { font-size:17px; font-weight:800; color:var(--navy); margin-bottom:6px; font-family:var(--serif); }
.activity-desc  { font-size:13px; color:var(--text-mid); margin-bottom:14px; line-height:1.65; }

.scenario-grid { display:flex; flex-direction:column; gap:9px; }
.scenario-card { border:2px solid var(--border); border-radius:var(--radius-lg); padding:14px 18px; cursor:pointer; transition:all .2s; background:var(--white); }
.scenario-card:hover { border-color:var(--gold); box-shadow:var(--shadow); }
.scenario-card.revealed-good { background:var(--green-light); border-color:var(--green); }
.scenario-card.revealed-warn { background:var(--gold-light);  border-color:var(--gold);  }
.scenario-card.revealed-bad  { background:var(--red-light);   border-color:var(--red);   }
.scenario-prompt { font-size:13px; font-weight:600; color:var(--text); }
.scenario-result { font-size:13px; line-height:1.65; display:none; margin-top:8px; padding-top:8px; border-top:1px solid var(--border); }
.scenario-card.revealed-good .scenario-result,
.scenario-card.revealed-warn .scenario-result,
.scenario-card.revealed-bad  .scenario-result { display:block; }

/* Quiz */
.quiz-wrap { background:var(--white); border-radius:var(--radius-lg); padding:22px 26px; margin-bottom:18px; box-shadow:var(--shadow); border:1px solid var(--border); }
.quiz-label    { font-size:10px; font-weight:800; letter-spacing:.16em; text-transform:uppercase; color:var(--gold); margin-bottom:3px; }
.quiz-title    { font-size:17px; font-weight:800; color:var(--navy); font-family:var(--serif); }
.quiz-subtitle { font-size:12px; color:var(--text-muted); margin-bottom:18px; margin-top:2px; }
.quiz-progress { display:flex; gap:3px; margin-bottom:16px; }
.quiz-pip      { height:3px; border-radius:99px; flex:1; background:var(--border); }
.quiz-pip.done   { background:var(--gold); }
.quiz-pip.active { background:var(--navy); }
.quiz-q-num    { font-size:10px; font-weight:700; color:var(--text-muted); letter-spacing:.06em; margin-bottom:6px; }
.quiz-q-text   { font-size:15px; font-weight:700; color:var(--navy); margin-bottom:14px; line-height:1.5; font-family:var(--serif); }
.quiz-choices  { display:flex; flex-direction:column; gap:7px; }
.quiz-choice {
  padding:11px 14px; background:var(--slate-light);
  border:2px solid var(--border); border-radius:var(--radius-lg);
  font-size:13px; font-weight:600; color:var(--text);
  text-align:left; cursor:pointer; transition:all .18s; font-family:var(--font);
}
.quiz-choice:hover:not(:disabled) { border-color:var(--gold); background:var(--gold-light); transform:translateX(3px); }
.quiz-choice.correct { background:var(--green-light); border-color:var(--green); color:#064e3b; }
.quiz-choice.wrong   { background:var(--red-light);   border-color:var(--red);   color:#7f1d1d; }
.quiz-choice:disabled { cursor:default; }
.quiz-feedback { margin-top:12px; padding:10px 14px; border-radius:var(--radius); font-size:13px; font-weight:600; display:none; line-height:1.6; }
.quiz-feedback.show { display:block; }
.quiz-feedback.correct-fb { background:var(--green-light); color:#064e3b; }
.quiz-feedback.wrong-fb   { background:var(--red-light);   color:#7f1d1d; }
.quiz-next-btn { margin-top:12px; padding:10px 24px; background:var(--navy); color:white; border:none; border-radius:99px; font-size:13px; font-weight:700; cursor:pointer; display:none; transition:all .2s; font-family:var(--font); }
.quiz-next-btn:hover { background:var(--navy-light); }
.quiz-next-btn.show { display:inline-block; }
.quiz-complete { text-align:center; padding:14px 0; }
.quiz-complete-title { font-family:var(--serif); font-size:20px; font-weight:400; color:var(--navy); margin-bottom:6px; }
.quiz-score { font-size:32px; font-weight:900; color:var(--gold); margin-bottom:6px; }
.quiz-complete-msg { font-size:14px; color:var(--text-mid); margin-bottom:16px; }
.retry-btn { padding:9px 22px; background:var(--white); border:2px solid var(--navy); border-radius:99px; font-size:12px; font-weight:700; color:var(--navy); cursor:pointer; font-family:var(--font); }

/* Buttons */
.btn { padding:11px 22px; border-radius:99px; font-size:13px; font-weight:700; border:2px solid transparent; cursor:pointer; text-decoration:none; display:inline-block; font-family:var(--font); transition:all .2s; }
.btn-gold    { background:var(--gold); color:var(--navy); border-color:var(--gold); }
.btn-gold:hover { background:#b8881a; transform:translateY(-2px); box-shadow:var(--shadow-md); }
.btn-outline { background:white; color:var(--navy); border-color:var(--border); }
.btn-outline:hover { border-color:var(--navy); }
.module-nav-bar { display:flex; gap:10px; margin-top:16px; flex-wrap:wrap; }

/* ── Landing page ── */
.landing-hero {
  background:linear-gradient(150deg,#060d1a 0%,#0f1f3d 45%,#1a2f5a 100%);
  min-height:460px; display:grid; grid-template-columns:1fr 1fr;
  align-items:center; padding:60px 8vw 0; position:relative; overflow:hidden;
}
.landing-hero::before {
  content:''; position:absolute; bottom:0; left:0; right:0; height:60px;
  background:linear-gradient(to bottom,transparent,var(--cream));
}
.hero-content { position:relative; z-index:2; padding-bottom:52px; padding-right:24px; }
.hero-tag  { font-size:10px; font-weight:800; letter-spacing:.2em; text-transform:uppercase; color:var(--gold); margin-bottom:12px; }
.hero-h1   { font-family:var(--serif); font-size:clamp(26px,3.8vw,44px); font-weight:400; color:white; line-height:1.2; margin-bottom:14px; }
.hero-p    { font-size:15px; color:rgba(255,255,255,.68); line-height:1.75; margin-bottom:26px; max-width:420px; }
.hero-pills { display:flex; gap:7px; flex-wrap:wrap; margin-bottom:26px; }
.hero-pill  { background:rgba(255,255,255,.09); border:1px solid rgba(255,255,255,.18); border-radius:4px; padding:6px 14px; font-size:11px; font-weight:700; color:rgba(255,255,255,.82); }
.hero-media { position:relative; height:460px; overflow:hidden; display:flex; align-items:flex-end; justify-content:center; }
.hero-media img { max-height:100%; width:auto; object-fit:contain; }

.landing-content { max-width:900px; margin:0 auto; padding:48px 8vw 80px; background:var(--cream); }
.module-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:20px 0; }
.module-card { background:var(--white); border:1.5px solid var(--border); border-radius:var(--radius-lg); padding:18px; transition:all .22s; text-decoration:none; display:block; }
.module-card:hover { border-color:var(--gold); box-shadow:var(--shadow-md); transform:translateY(-3px); }
.mc-num   { font-size:10px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:var(--text-muted); margin-bottom:5px; }
.mc-icon  { font-size:24px; margin-bottom:6px; }
.mc-title { font-family:var(--serif); font-size:13px; font-weight:400; color:var(--navy); line-height:1.4; }
.mc-sub   { font-size:11px; color:var(--text-muted); margin-top:3px; }

/* Cert */
.cert-page { min-height:100vh; background:var(--cream); display:flex; flex-direction:column; align-items:center; justify-content:center; padding:40px 16px; }
.cert-wrap { background:white; border:3px solid var(--navy); border-radius:var(--radius-xl); padding:48px; max-width:680px; width:100%; text-align:center; box-shadow:var(--shadow-md); position:relative; }
.cert-wrap::before { content:''; position:absolute; inset:9px; border:1px solid var(--gold); border-radius:14px; pointer-events:none; }
.cert-label { font-size:10px; font-weight:800; letter-spacing:.22em; text-transform:uppercase; color:var(--navy); margin-bottom:6px; }
.cert-title { font-family:var(--serif); font-size:28px; font-weight:400; color:var(--navy); margin-bottom:6px; }
.cert-series{ font-size:13px; color:var(--gold); font-weight:700; margin-bottom:20px; }
.cert-name-input { border:none; border-bottom:2px solid var(--navy); padding:5px 4px; font-size:24px; font-family:var(--serif); color:var(--navy); text-align:center; background:transparent; width:100%; max-width:380px; outline:none; margin-bottom:18px; }
.cert-sig-row  { display:flex; gap:40px; justify-content:center; margin-top:24px; }
.cert-sig-col  { text-align:center; }
.cert-sig-font { font-family:'Pinyon Script',cursive; font-size:42px; color:#1a3a6b; line-height:1.1; margin-bottom:3px; }
.cert-sig-name { font-size:11px; font-weight:800; color:var(--navy); border-top:1.5px solid var(--border); padding-top:5px; }
.cert-sig-title{ font-size:10px; color:var(--text-muted); text-transform:uppercase; letter-spacing:.05em; }

/* Mobile */
@media(max-width:768px){
  .sidebar{transform:translateX(-100%);box-shadow:var(--shadow-md);}
  .sidebar.open{transform:translateX(0);}
  .main-wrap{margin-left:0;}
  .menu-btn{display:flex;}
  .content-area{padding:16px 14px 48px;}
  .module-hero{padding:22px 18px 18px;}
  .module-grid{grid-template-columns:1fr 1fr;}
  .stat-row{grid-template-columns:1fr;}
  .landing-hero{grid-template-columns:1fr;padding-bottom:28px;}
  .hero-media{display:none;}
  .cert-wrap{padding:32px 18px;}
  .cert-sig-row{flex-direction:column;gap:18px;}
}
@media(max-width:480px){
  .module-grid{grid-template-columns:1fr;}
  .hero-h1{font-size:24px;}
}
