:root {
  --navy: #0B1B3D;
  --navy-2: #132552;
  --teal: #10D9C4;
  --teal-dark: #0BB8A6;
  --bg: #f7f9fb;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #1a2332;
  --text-secondary: #5a6474;
  --text-muted: #8b95a5;
  --danger: #d1367a;
  --danger-bg: #fbeaf0;
  --success: #0BB8A6;
  --success-bg: #e1f5ee;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}
a { color: var(--teal-dark); text-decoration: none; }
.site-header {
  background: var(--navy);
  padding: 16px max(24px, calc((100% - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: transform 0.25s ease;
}
.site-header.lc-hide { transform: translateY(-100%); }
.site-header .logo { color: #fff; font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.site-header nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; flex: 1 1 auto; justify-content: space-between; }
.site-header .nav-links { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; flex: 1 1 auto; }
.site-header .nav-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.site-header nav a { color: #d5dce8; font-size: 14px; font-weight: 500; }
.site-header nav a:hover { color: #fff; text-decoration: none; }
.site-header .lc-get-started-btn { background: var(--teal); color: var(--navy) !important; padding: 8px 16px; border-radius: 6px; font-weight: 600; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }
.lc-drawer-brand { display: none; }
@media (max-width: 860px) {
  .nav-toggle { display: block; margin-left: auto; }
  .site-header nav {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 82vw;
    max-width: 320px;
    background: #fff;
    flex-direction: column;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 18px 24px 20px;
    gap: 4px !important;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -10px 0 40px rgba(11,27,61,0.25);
    overflow-y: auto;
  }
  .site-header nav.nav-open {
    transform: translateX(0);
  }
  .site-header .nav-links,
  .site-header .nav-actions {
    flex: 0 0 auto !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100%;
    gap: 4px !important;
  }
  .site-header nav a {
    color: var(--navy) !important;
    font-weight: 600;
    font-size: 16px;
    display: block;
    width: 100%;
    padding: 13px 4px;
    border-bottom: 1px solid #EEF1F8;
  }
  .site-header nav .nav-actions {
    margin-top: 0;
    padding-top: 20px;
    gap: 10px !important;
  }
  .site-header nav .nav-actions a {
    border-bottom: none;
    padding: 13px 22px;
    border-radius: 8px;
    text-align: center;
    box-sizing: border-box;
  }
  .site-header nav .nav-actions a:not(.lc-get-started-btn) {
    background: var(--teal-dark, #0BB8A6);
    color: #fff !important;
    font-weight: 700;
  }
  .site-header nav .lc-get-started-btn {
    text-align: center;
  }
  .lc-drawer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 4px 10px;
    width: 100%;
  }
  .lc-drawer-brand img { height: 28px; width: auto; }
  .lc-drawer-brand span { font-weight: 800; font-size: 17px; color: var(--navy); }
  .lc-nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 14px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: #F1F5F9;
    border-radius: 50%;
    border: none;
    color: var(--navy);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
  }
}
.lc-nav-close { display: none; }
.lc-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11,27,61,0.55);
  z-index: 1000;
}
.lc-nav-backdrop.open { display: block; }

.course-container { max-width: 800px; margin: 0 auto; padding: 32px 20px 80px; }

.stepper { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; width: 100%; box-sizing: border-box; }
.stepper .seg { flex: 1; display: flex; align-items: center; gap: 4px; }
.step-dot { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.step-dot.done { background: var(--success); color: #fff; }
.step-dot.active { background: var(--teal-dark); color: #fff; }
.step-dot.pending { background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); }
.step-line { flex: 1; height: 2px; background: var(--border); }
.step-line.done { background: var(--success); }
.module-meta { font-size: 12.5px; color: var(--text-muted); margin: 0 0 24px; }

.course-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 40px; }
.course-card h1 { font-size: 30px; margin: 0 0 18px; line-height: 1.25; }
.course-card p { font-size: 17px; margin: 0 0 18px; line-height: 1.75; }

.callout { background: var(--success-bg); border-radius: 8px; padding: 14px 18px; margin: 22px 0; font-size: 14.5px; color: #085041; }

.glossary-term { border-bottom: 1px dotted var(--teal-dark); cursor: help; position: relative; }
.glossary-term .tooltip {
  visibility: hidden; opacity: 0; position: absolute; bottom: 130%; left: 0;
  background: var(--navy); color: #fff; font-size: 12.5px; padding: 8px 10px;
  border-radius: 6px; width: 220px; line-height: 1.4; transition: opacity 0.15s; z-index: 10;
}
.glossary-term:hover .tooltip, .glossary-term:focus .tooltip { visibility: visible; opacity: 1; }

.self-check { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; margin: 20px 0; }
.self-check p.q { font-size: 15px; font-weight: 600; margin: 0 0 10px; }
.self-check .options { display: flex; gap: 8px; flex-wrap: wrap; }
.self-check button { font-size: 13px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; }
.self-check button.selected { background: var(--teal); border-color: var(--teal); color: var(--navy); font-weight: 600; }

.quiz-section { border-top: 1px solid var(--border); padding-top: 20px; margin-top: 24px; }
.quiz-label { font-size: 12px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 12px; }
.quiz-q { font-size: 16px; margin: 0 0 10px; font-weight: 600; }
.quiz-options { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.quiz-option { display: flex; align-items: center; gap: 8px; font-size: 15px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.quiz-option:hover { border-color: var(--teal-dark); }
.quiz-option.correct { border-color: var(--success); background: var(--success-bg); }
.quiz-option.incorrect { border-color: var(--danger); background: var(--danger-bg); }
.quiz-feedback { border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-top: 4px; }
.quiz-feedback.correct { background: var(--success-bg); color: #085041; }
.quiz-feedback.incorrect { background: var(--danger-bg); color: #72243e; }

.nav-buttons { display: flex; justify-content: space-between; margin-top: 24px; }
.nav-buttons button { font-size: 14px; padding: 10px 18px; border-radius: 8px; cursor: pointer; }
.btn-secondary { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.btn-primary { background: var(--teal); border: none; color: var(--navy); font-weight: 700; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.scorecard { text-align: center; padding: 32px 24px; }
.badge-circle { width: 64px; height: 64px; border-radius: 50%; background: var(--success-bg); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 30px; }
.score-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.score-box { background: var(--bg); border-radius: 8px; padding: 16px; }
.score-box .num { font-size: 24px; font-weight: 700; margin: 0; }
.score-box .label { font-size: 12px; color: var(--text-secondary); margin: 0 0 4px; }
.badge-row { background: var(--success-bg); border-radius: 8px; padding: 12px 16px; display: flex; align-items: center; gap: 10px; text-align: left; margin: 20px 0; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
