
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,300;0,400;0,600;0,700;1,400&family=IBM+Plex+Sans:wght@300;400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --ink: #0B1E3D;
  --ink-muted: #4A5568;
  --ink-faint: #8892A4;
  --bg: #F8F5F0;
  --bg-card: #FFFFFF;
  --bg-card2: #FDFAF7;
  --border: #E4DDD4;
  --accent: #E8962E;
  --accent-dark: #B87020;
  --accent-pale: #FEF3E0;
  --module-1: #1B4B8A;
  --module-2: #1A6B4A;
  --module-3: #7B2D8B;
  --module-4: #C43D23;
  --module-5: #2B6CB0;
  --success: #2F855A;
  --ff-display: 'Fraunces', Georgia, serif;
  --ff-body: 'IBM Plex Sans', system-ui, sans-serif;
  --ff-mono: 'IBM Plex Mono', monospace;
  --radius: 12px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(11,30,61,.07), 0 4px 16px rgba(11,30,61,.06);
  --shadow-md: 0 4px 24px rgba(11,30,61,.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--ff-body); background: var(--bg); color: var(--ink); line-height: 1.7; font-size: 16px; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--ff-display); font-weight: 600; line-height: 1.25; }

/* ── NAV ── */
.site-nav { background: var(--bg-card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 16px; }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-logo { width: 38px; height: 38px; background: var(--ink); color: #fff; font-family: var(--ff-display); font-size: 20px; font-weight: 700; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-brand-title { display: block; font-weight: 600; font-size: 15px; line-height: 1.2; }
.nav-brand-sub { display: block; font-size: 11px; color: var(--ink-faint); font-weight: 400; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-link { padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--ink-muted); transition: all .15s; }
.nav-link:hover { background: var(--bg); color: var(--ink); }
.nav-progress-btn { display: flex; align-items: center; gap: 6px; padding: 8px 14px; background: var(--accent-pale); border: none; border-radius: 20px; font-family: var(--ff-body); font-size: 13px; font-weight: 600; color: var(--accent-dark); cursor: pointer; transition: all .15s; }
.nav-progress-btn:hover { background: var(--accent); color: #fff; }

/* ── PROGRESS PANEL ── */
.progress-panel { position: fixed; top: 64px; right: 16px; width: 320px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); z-index: 99; padding: 20px; }
.progress-panel h3 { font-size: 15px; margin-bottom: 16px; }
.prog-item { margin-bottom: 12px; }
.prog-item-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-muted); margin-bottom: 4px; }
.prog-bar-wrap { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.prog-bar-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width .4s; }
.btn-close-panel { margin-top: 16px; width: 100%; padding: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; font-family: var(--ff-body); font-size: 13px; cursor: pointer; }

/* ── HERO ── */
.hero { background: var(--ink); color: #fff; padding: 80px 24px 72px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(232,150,46,.15) 0%, transparent 70%); pointer-events: none; }
.hero-inner { max-width: 860px; margin: 0 auto; position: relative; }
.hero-eyebrow { font-family: var(--ff-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.hero h1 { font-size: clamp(36px,5vw,64px); font-weight: 700; color: #fff; line-height: 1.1; margin-bottom: 20px; }
.hero h1 span { color: var(--accent); font-style: italic; }
.hero-desc { font-size: 18px; color: rgba(255,255,255,.72); max-width: 600px; margin-bottom: 36px; line-height: 1.65; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stat { }
.hero-stat-num { font-family: var(--ff-display); font-size: 32px; font-weight: 700; color: #fff; line-height: 1; }
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 4px; }
.hero-progress-wrap { max-width: 500px; }
.hero-progress-label { display: flex; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 8px; }
.hero-progress-track { height: 8px; background: rgba(255,255,255,.15); border-radius: 4px; overflow: hidden; }
.hero-progress-track .prog-bar-fill { background: var(--accent); }

/* ── SECTION ── */
.section { max-width: 1200px; margin: 0 auto; padding: 72px 24px; }
.section-header { margin-bottom: 48px; }
.section-header h2 { font-size: 32px; color: var(--ink); }
.section-header p { color: var(--ink-muted); margin-top: 8px; font-size: 17px; }

/* ── MODULE CARD GRID ── */
.modules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.module-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column; }
.module-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.module-card-header { padding: 24px 24px 0; display: flex; align-items: flex-start; gap: 16px; }
.module-num { font-family: var(--ff-mono); font-size: 13px; font-weight: 500; padding: 4px 10px; border-radius: 20px; flex-shrink: 0; }
.module-card-body { padding: 16px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.module-card-title { font-size: 19px; font-weight: 700; color: var(--ink); margin-bottom: 6px; line-height: 1.3; }
.module-card-sub { font-size: 13px; color: var(--ink-faint); margin-bottom: 12px; font-style: italic; }
.module-card-desc { font-size: 14px; color: var(--ink-muted); line-height: 1.6; margin-bottom: 16px; flex: 1; }
.module-card-meta { display: flex; gap: 16px; font-size: 12px; color: var(--ink-faint); margin-bottom: 16px; flex-wrap: wrap; }
.module-card-meta span { display: flex; align-items: center; gap: 4px; }
.module-card-progress { margin-bottom: 16px; }
.module-card-progress-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-faint); margin-bottom: 4px; }
.module-card-progress-track { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.module-card-btn { display: block; text-align: center; padding: 11px 20px; border-radius: 8px; font-weight: 600; font-size: 14px; transition: all .15s; background: var(--ink); color: #fff; }
.module-card-btn:hover { background: var(--accent); }

/* ── LEARNING PATH ── */
.path-list { display: flex; flex-direction: column; gap: 0; }
.path-item { display: flex; gap: 16px; align-items: flex-start; }
.path-connector { display: flex; flex-direction: column; align-items: center; width: 40px; flex-shrink: 0; }
.path-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 4px; }
.path-line { width: 2px; flex: 1; min-height: 32px; background: var(--border); }
.path-item:last-child .path-line { display: none; }
.path-content { padding-bottom: 28px; }
.path-content h4 { font-size: 15px; color: var(--ink); margin-bottom: 3px; }
.path-content p { font-size: 13px; color: var(--ink-muted); }

/* ── MODULE PAGE ── */
.mod-hero { padding: 60px 24px 48px; }
.mod-hero-inner { max-width: 900px; margin: 0 auto; }
.mod-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.mod-badge { font-family: var(--ff-mono); font-size: 11px; font-weight: 500; padding: 4px 10px; border-radius: 20px; }
.mod-hero h1 { font-size: clamp(28px,4vw,48px); color: var(--ink); margin-bottom: 12px; }
.mod-hero-sub { font-size: 18px; color: var(--ink-muted); font-style: italic; margin-bottom: 28px; }
.mod-hero-meta { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; color: var(--ink-muted); }
.mod-hero-meta span { display: flex; align-items: center; gap: 6px; }
.mod-content { max-width: 900px; margin: 0 auto; padding: 0 24px 72px; display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.mod-main {}
.mod-sidebar {}
.mod-section { margin-bottom: 40px; }
.mod-section h2 { font-size: 20px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.goals-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.goals-list li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-muted); padding: 12px; background: var(--bg); border-radius: 8px; }
.goals-list li::before { content: '→'; color: var(--accent); flex-shrink: 0; font-weight: 700; }
.lessons-list { display: flex; flex-direction: column; gap: 8px; }
.lesson-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); text-decoration: none; color: var(--ink); transition: all .15s; }
.lesson-row:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-pale); }
.lesson-row.completed { border-color: #C6E6D8; background: #F0FAF5; }
.lesson-num { font-family: var(--ff-mono); font-size: 12px; color: var(--ink-faint); flex-shrink: 0; width: 32px; }
.lesson-title { flex: 1; font-size: 15px; font-weight: 500; }
.lesson-duration { font-size: 12px; color: var(--ink-faint); flex-shrink: 0; }
.lesson-check { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.lesson-row.completed .lesson-check { background: var(--success); border-color: var(--success); color: #fff; }
.sidebar-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.sidebar-card h3 { font-size: 15px; margin-bottom: 12px; }
.criteria-text { font-size: 14px; color: var(--ink-muted); line-height: 1.6; }
.quiz-cta { display: block; text-align: center; padding: 12px; background: var(--accent); color: #fff; border-radius: 8px; font-weight: 600; font-size: 14px; margin-top: 16px; transition: background .15s; }
.quiz-cta:hover { background: var(--accent-dark); }

/* ── LESSON PAGE ── */
.lesson-hero { padding: 48px 24px 40px; border-bottom: 1px solid var(--border); }
.lesson-hero-inner { max-width: 860px; margin: 0 auto; }
.lesson-breadcrumb { font-size: 13px; color: var(--ink-faint); margin-bottom: 16px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lesson-breadcrumb a { color: var(--accent); }
.lesson-breadcrumb a:hover { text-decoration: underline; }
.lesson-hero h1 { font-size: clamp(22px,3.5vw,40px); color: var(--ink); margin-bottom: 12px; }
.lesson-hero-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-faint); }
.lesson-body { max-width: 860px; margin: 0 auto; padding: 48px 24px; }
.lesson-section { margin-bottom: 48px; }
.lesson-section h2 { font-size: 22px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.section-icon { width: 32px; height: 32px; background: var(--accent-pale); color: var(--accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; }
.why-text p { font-size: 16px; color: var(--ink-muted); line-height: 1.75; margin-bottom: 16px; }
.wyl-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.wyl-list li { display: flex; gap: 10px; padding: 12px 16px; background: var(--bg); border-radius: 8px; border-left: 3px solid var(--accent); font-size: 15px; color: var(--ink-muted); }
.wyl-list li::before { content: '✦'; color: var(--accent); flex-shrink: 0; font-size: 10px; margin-top: 5px; }
.summary-card { background: var(--bg-card2); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.summary-card p { font-size: 15px; color: var(--ink-muted); line-height: 1.75; }
.concepts-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.concept-tag { background: var(--ink); color: #fff; font-family: var(--ff-mono); font-size: 12px; padding: 5px 12px; border-radius: 20px; }
.takeaways-list { display: flex; flex-direction: column; gap: 10px; }
.takeaway-item { display: flex; gap: 12px; padding: 14px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; font-size: 15px; color: var(--ink-muted); }
.takeaway-num { font-family: var(--ff-mono); font-size: 12px; color: var(--accent); font-weight: 600; flex-shrink: 0; width: 24px; margin-top: 2px; }
.lesson-nav-bar { display: flex; justify-content: space-between; align-items: center; padding: 24px; border-top: 1px solid var(--border); margin-top: 40px; gap: 12px; flex-wrap: wrap; }
.btn-lesson-nav { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 14px; transition: all .15s; }
.btn-prev { background: var(--bg); border: 1px solid var(--border); color: var(--ink-muted); }
.btn-prev:hover { background: var(--border); }
.btn-next { background: var(--accent); color: #fff; }
.btn-next:hover { background: var(--accent-dark); }
.btn-complete { background: var(--success); color: #fff; padding: 12px 20px; border: none; border-radius: 10px; font-family: var(--ff-body); font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all .15s; }
.btn-complete:hover { opacity: .9; }
.btn-complete.done { background: #276749; }

/* ── VIDEO ── */
.video-container { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.video-wrapper { position: relative; padding-top: 56.25%; background: #0B1E3D; }
.video-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.video-actions { padding: 12px 16px; background: var(--bg-card); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn-open-drive { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: var(--ink); color: #fff; border-radius: 8px; font-size: 13px; font-weight: 500; transition: background .15s; }
.btn-open-drive:hover { background: var(--accent); }
.video-note { font-size: 12px; color: var(--ink-faint); }

/* ── QUIZ PAGE ── */
.quiz-page { max-width: 760px; margin: 0 auto; padding: 48px 24px; }
.quiz-header { margin-bottom: 40px; }
.quiz-header h1 { font-size: 32px; margin-bottom: 8px; }
.quiz-header p { color: var(--ink-muted); font-size: 16px; }
.quiz-q { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
.quiz-q-num { font-family: var(--ff-mono); font-size: 12px; color: var(--accent); margin-bottom: 10px; font-weight: 600; }
.quiz-q-text { font-size: 17px; color: var(--ink); margin-bottom: 20px; font-weight: 500; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option { display: flex; gap: 12px; padding: 14px 16px; border: 2px solid var(--border); border-radius: 10px; cursor: pointer; transition: all .15s; font-size: 15px; color: var(--ink-muted); }
.quiz-option:hover { border-color: var(--accent); background: var(--accent-pale); }
.quiz-option.selected { border-color: var(--accent); background: var(--accent-pale); color: var(--ink); }
.quiz-option.correct { border-color: var(--success); background: #F0FAF5; color: #276749; }
.quiz-option.wrong { border-color: #E53E3E; background: #FFF5F5; color: #C53030; }
.quiz-option-letter { font-family: var(--ff-mono); font-size: 12px; font-weight: 600; width: 20px; flex-shrink: 0; margin-top: 2px; }
.quiz-explanation { margin-top: 12px; padding: 12px 16px; background: var(--bg); border-radius: 8px; font-size: 14px; color: var(--ink-muted); display: none; }
.quiz-submit { margin-top: 32px; text-align: center; }
.quiz-submit-btn { padding: 14px 40px; background: var(--accent); color: #fff; border: none; border-radius: 10px; font-family: var(--ff-body); font-size: 16px; font-weight: 600; cursor: pointer; transition: background .15s; }
.quiz-submit-btn:hover { background: var(--accent-dark); }
.quiz-result { display: none; margin-top: 24px; padding: 28px; border-radius: var(--radius); text-align: center; }
.quiz-result.pass { background: #F0FAF5; border: 1px solid #C6E6D8; }
.quiz-result.fail { background: #FFF5F5; border: 1px solid #FEB2B2; }
.quiz-result-score { font-size: 48px; font-family: var(--ff-display); font-weight: 700; margin-bottom: 8px; }
.quiz-result-msg { font-size: 16px; color: var(--ink-muted); }
.quiz-result .quiz-submit-btn { margin-top: 16px; }

/* ── GLOSSARY ── */
.glossary-grid { display: grid; gap: 12px; }
.glossary-term { padding: 16px 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; }
.glossary-term dt { font-family: var(--ff-mono); font-size: 13px; font-weight: 500; color: var(--accent); margin-bottom: 4px; }
.glossary-term dd { font-size: 14px; color: var(--ink-muted); line-height: 1.6; }

/* ── COLORS PER MODULE ── */
.m1-color { color: var(--module-1); }
.m2-color { color: var(--module-2); }
.m3-color { color: var(--module-3); }
.m4-color { color: var(--module-4); }
.m5-color { color: var(--module-5); }
.m1-bg { background: #EBF2FC; color: var(--module-1); }
.m2-bg { background: #E8F5EE; color: var(--module-2); }
.m3-bg { background: #F5EDF8; color: var(--module-3); }
.m4-bg { background: #FBEEE9; color: var(--module-4); }
.m5-bg { background: #EBF2FC; color: var(--module-5); }
.m1-border { border-left: 4px solid var(--module-1) !important; }
.m2-border { border-left: 4px solid var(--module-2) !important; }
.m3-border { border-left: 4px solid var(--module-3) !important; }
.m4-border { border-left: 4px solid var(--module-4) !important; }
.m5-border { border-left: 4px solid var(--module-5) !important; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .mod-content { grid-template-columns: 1fr; }
  .modules-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .lesson-nav-bar { flex-direction: column; }
  .nav-links { display: none; }
}

/* ── FOOTER ── */
.site-footer { background: var(--ink); color: rgba(255,255,255,.5); text-align: center; padding: 32px 24px; font-size: 13px; }
.footer-sub { margin-top: 4px; font-size: 12px; color: rgba(255,255,255,.3); }
