/* ── Supreme Court of Ohio AI Academy Design System ────────────────── */

/* Default & Institutional Judicial Signature Theme */
:root,
html,
body,
[data-theme="chase"],
[data-theme="light"],
[data-theme="dark"],
[data-theme="sapphire"] {
  --primary: #0060d6;            /* Judicial Royal Blue */
  --primary-dark: #004ea8;       /* Deep Active Blue */
  --primary-deep: #0b2341;       /* Judicial Dark Navy Headline */
  --primary-light: rgba(0, 96, 214, 0.09);
  --accent: #117aca;             /* Precision Accent Blue */
  --accent-light: rgba(17, 122, 202, 0.12);
  
  --bg: #f4f6fa;                 /* Clean Light Canvas */
  --bg-radial-1: rgba(0, 96, 214, 0.08);
  --bg-radial-2: rgba(17, 122, 202, 0.05);
  --bg-radial-3: rgba(11, 35, 65, 0.04);

  --surface: #ffffff;            /* Pure White Card */
  --surface2: #f8fafc;           /* Light Surface Accent */
  --surface3: #e2e8f0;           /* Clean Border & Divider */
  --border: #dbe2e8;             /* Clean Card Border */
  --border-dark: #cbd5e1;
  
  --text: #131f2e;               /* Deep Navy-Slate High Contrast */
  --text-muted: #475569;         /* Slate Secondary */
  --text-light: #64748b;
  
  --correct: #10843f;            /* Verification Green */
  --correct-bg: #eaf7ee;
  --correct-border: #b7e4c7;
  --incorrect: #d92d20;
  --incorrect-bg: #fef3f2;
  --incorrect-border: #fecdca;
  
  --shadow-sm: 0 1px 3px rgba(11, 35, 65, 0.06), 0 1px 2px rgba(11, 35, 65, 0.04);
  --shadow: 0 4px 14px rgba(11, 35, 65, 0.08);
  --shadow-md: 0 10px 24px -4px rgba(11, 35, 65, 0.1);
  --shadow-lg: 0 20px 36px -6px rgba(11, 35, 65, 0.14);
  
  --header-bg: #0b2341;          /* Authentic Judicial Navy Header */
  --header-border: rgba(255, 255, 255, 0.12);
  --hero-bg: linear-gradient(135deg, #081d34 0%, #002d62 45%, #005eb8 100%); /* Signature Hero Gradient */
  --hero-title-color: #ffffff;
  --hero-sub-color: #d0e2f4;
  --hero-badge-bg: rgba(255, 255, 255, 0.15);
  --hero-badge-border: rgba(255, 255, 255, 0.3);
  --hero-badge-color: #ffffff;
  --card-top-bg: linear-gradient(135deg, #0b2341, #0060d6);
  --footer-bg: #081d34;          /* Deep Institutional Navy */
  --theme-indicator-icon: '🏛️';
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--bg-radial-1), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, var(--bg-radial-2), transparent),
    radial-gradient(ellipse 60% 40% at 0% 100%, var(--bg-radial-3), transparent);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
.site-header {
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--header-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1.5rem;
  box-sizing: border-box;
}

/* (a) Left Section: Logo & Brand */
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #ffffff;
  flex-shrink: 0;
}
.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #0284c7 0%, #0052cc 50%, #072752 100%);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.15s ease;
}
.site-logo:hover .logo-icon {
  transform: scale(1.04);
}
.logo-text {
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: -0.015em;
  color: #ffffff;
  display: block;
  line-height: 1.2;
}
.logo-sub {
  font-size: 0.68rem;
  color: #93c5fd;
  font-weight: 600;
  letter-spacing: 0.015em;
  display: block;
  line-height: 1.15;
  margin-top: 1px;
}

/* (b) Middle Section: Navigation Bar Centered with Uniform Gaps */
.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  flex: 1;
  margin: 0 1rem;
  flex-wrap: nowrap;
}

.nav-link,
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 0.85rem;
  border-radius: 8px;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  color: #d0e2f4;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  box-sizing: border-box;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
  vertical-align: middle;
}

.nav-link:hover,
.nav-dropdown-trigger:hover,
.nav-dropdown.open .nav-dropdown-trigger {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.nav-link.active,
.nav-dropdown-trigger.active {
  background: #0060d6;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 96, 214, 0.35);
}

.nav-link.disabled,
span.nav-link {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  font-size: 0.85rem;
  font-weight: 600;
  height: 34px;
  padding: 0 0.85rem;
  line-height: 1;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Navigation Dropdowns */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.nav-dropdown-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  line-height: 1;
  margin-left: 0.35rem;
  opacity: 0.85;
  transition: transform 0.2s ease;
  transform-origin: center center;
  vertical-align: middle;
}

.nav-dropdown.open .nav-dropdown-caret {
  transform: rotate(180deg);
}

/* (c) Right Section: User Profile Area */
.header-auth {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 190px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.25), 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 0.4rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 1000;
}

.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text, #0f172a);
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 0.15s ease;
}

.nav-dropdown-item:hover {
  background: var(--surface2, #f1f5f9);
  color: #0060d6;
}

.nav-dropdown-item.active {
  background: var(--surface2, #f1f5f9);
  border-left: 3px solid #0052cc;
  color: #0052cc;
}

.nav-dropdown-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.nav-dropdown-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: inherit;
  line-height: 1.25;
}

/* ── Hero / Page Top (Judicial Blue Hero) ── */
.page-hero {
  background: var(--hero-bg);
  color: var(--hero-title-color);
  padding: 3.25rem 1.5rem 2.25rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(2, 132, 199, 0.22) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-inner {
  max-width: 900px;
  margin: 0 auto;
}
.module-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.page-title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #ffffff;
}
.page-subtitle {
  font-size: 1.05rem;
  color: #d0e2f4;
  margin-top: 0.5rem;
  max-width: 680px;
  line-height: 1.5;
}

/* ── Main container ── */
.page-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.25rem 1.5rem 4rem;
}

/* ── Section cards ── */
.section-card {
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: visible;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  color: var(--text);
  position: relative;
}
.section-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--border-dark);
}
.section-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
  border-top-left-radius: 13px;
  border-top-right-radius: 13px;
}
.section-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.95rem;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 96, 214, 0.2);
}
.section-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--primary-deep);
}
.section-body { padding: 1.5rem; }

/* ── Objectives ── */
.objectives-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.objectives-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.925rem;
  color: var(--text);
  line-height: 1.55;
}
.objectives-list li::before {
  content: '✓';
  color: var(--correct);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* ── Video Player ── */
.video-container {
  position: relative;
  width: 100%;
  background: #07172c;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.video-container video {
  width: 100%;
  display: block;
  max-height: 480px;
  object-fit: contain;
}
.video-duration {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ── Key Takeaways ── */
.takeaways-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.9rem;
}
.takeaway-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 3.5px solid var(--primary);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.5;
  box-shadow: var(--shadow-sm);
}
.takeaway-num {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

/* ── Quiz ── */
.quiz-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.quiz-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.quiz-progress-bar-wrap {
  background: var(--surface3);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}
.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 999px;
  transition: width 0.4s ease;
  width: 0%;
}

.question-block { display: none; }
.question-block.active { display: block; }

.question-number {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.question-text {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 1.1rem;
  line-height: 1.5;
}
.options-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.option-btn {
  width: 100%;
  text-align: left;
  padding: 0.9rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.15s ease;
  line-height: 1.45;
  font-family: inherit;
  box-shadow: var(--shadow-sm);
}
.option-btn:hover:not(:disabled) {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}
.option-btn.correct {
  border-color: var(--correct);
  background: var(--correct-bg);
  color: var(--correct);
  font-weight: 600;
}
.option-btn.incorrect {
  border-color: var(--incorrect);
  background: var(--incorrect-bg);
  color: var(--incorrect);
  font-weight: 600;
}
.option-btn:disabled { cursor: default; }

.feedback-box {
  margin-top: 1.1rem;
  padding: 0.95rem 1.15rem;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.55;
  display: none;
}
.feedback-box.correct { background: var(--correct-bg); border: 1px solid var(--correct-border); color: var(--correct); }
.feedback-box.incorrect { background: var(--incorrect-bg); border: 1px solid var(--incorrect-border); color: var(--incorrect); }
.feedback-box.show { display: block; }
.feedback-label { font-weight: 800; display: block; margin-bottom: 0.3rem; }

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.75rem;
  gap: 1rem;
}

/* ── Quiz Video Lock State ── */
.quiz-locked-card {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--surface2);
  border: 2px dashed var(--border-dark);
  border-radius: 14px;
  margin-bottom: 1rem;
}
.quiz-locked-icon {
  font-size: 2.75rem;
  margin-bottom: 0.75rem;
}
.quiz-locked-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-deep);
  margin-bottom: 0.4rem;
}
.quiz-locked-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto 1.35rem;
  line-height: 1.55;
}
.quiz-locked-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--primary-light);
  border: 1px solid #bae6fd;
  color: #0369a1;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
}
.quiz-unlocked-banner {
  background: var(--correct-bg);
  border: 1px solid var(--correct-border);
  color: #065f46;
  padding: 0.85rem 1.15rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
}

/* ── Buttons (Judicial Signature) ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.35rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.3;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 96, 214, 0.28);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(0, 96, 214, 0.38);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background: var(--primary-light);
  border-color: var(--primary-dark);
  color: var(--primary-dark);
}
.btn-ghost { background: none; color: #d0e2f4; border: 1px solid transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #ffffff; }
.btn-danger { background: var(--incorrect-bg); color: var(--incorrect); border: 1px solid var(--incorrect-border); }
.btn-danger:hover { background: #fee2e2; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-sm { padding: 0.45rem 0.95rem; font-size: 0.84rem; border-radius: 6px; white-space: nowrap; flex-shrink: 0; }

/* ── Quiz Result ── */
#quiz-result { display: none; }
#quiz-result.show { display: block; }
.result-card {
  text-align: center;
  padding: 2.25rem 1.5rem;
}
.result-icon {
  font-size: 3.2rem;
  margin-bottom: 0.75rem;
}
.result-score {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}
.result-score.pass { color: var(--correct); }
.result-score.fail { color: var(--incorrect); }
.result-label {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--primary-deep);
}
.result-sub {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.75rem;
}
.result-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ── Module Navigation Strip ── */
.module-nav-strip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.module-nav-strip .nav-info { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.module-nav-strip .nav-title { font-weight: 700; color: var(--primary-deep); font-size: 0.95rem; }

/* ── Home Hero ── */
.course-hero {
  background: var(--hero-bg);
  color: var(--hero-title-color);
  padding: 4.5rem 1.5rem 3.75rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}
.course-hero::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 350px;
  background: radial-gradient(ellipse, var(--primary-light) 0%, transparent 70%);
  pointer-events: none;
}
.course-hero-badge {
  display: inline-block;
  background: var(--hero-badge-bg);
  border: 1px solid var(--hero-badge-border);
  color: var(--hero-badge-color);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.course-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--hero-title-color);
}
.course-hero-title span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.course-hero-sub {
  font-size: 1.1rem;
  color: var(--hero-sub-color);
  max-width: 580px;
  margin: 0 auto 2.25rem;
  line-height: 1.6;
}
.course-hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.75rem;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num { font-size: 1.85rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }

/* ── Modules Grid ── */
.modules-grid {
  max-width: 1300px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 1024px) {
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .modules-grid { grid-template-columns: 1fr; }
}
.module-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
}
.module-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-dark);
}
.module-card-top {
  background: var(--card-top-bg);
  padding: 1.35rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 100px;
  max-height: 100px;
  flex-shrink: 0;
  box-sizing: border-box;
}
.module-num-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 96, 214, 0.35);
}
.module-card-label { font-size: 0.72rem; color: #d0e2f4; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.module-card-name { font-size: 0.98rem; font-weight: 700; color: #ffffff; margin-top: 0.15rem; line-height: 1.25; }
.module-card-body { padding: 1.25rem 1.5rem; flex: 1; display: flex; flex-direction: column; gap: 0.9rem; }
.module-card-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; flex: 1; }
.module-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}
.module-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  width: fit-content;
  box-shadow: 0 2px 4px rgba(0, 96, 214, 0.2);
}

/* ── Footer ── */
.site-footer {
  background: var(--footer-bg);
  color: var(--text-muted);
  text-align: center;
  padding: 2.25rem 1.5rem;
  font-size: 0.85rem;
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  transition: background 0.3s ease;
}
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #ffffff; text-decoration: underline; }

/* ── Locked States ── */
.nav-link.nav-locked {
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
}
.nav-link.nav-locked::after {
  content: '🔒';
  font-size: 0.65rem;
  margin-left: 0.25rem;
  vertical-align: middle;
}
.module-card-locked {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.4);
}
.module-card-locked .module-card-top {
  background: linear-gradient(135deg, #1e293b, #334155) !important;
}
.module-card-locked .module-num-badge {
  background: linear-gradient(135deg, #64748b, #94a3b8) !important;
  box-shadow: none !important;
}
.module-card-locked .module-card-cta {
  background: linear-gradient(135deg, #64748b, #94a3b8) !important;
  box-shadow: none !important;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .nav-link {
    padding: 0.35rem 0.5rem;
    font-size: 0.81rem;
  }
  .header-inner {
    padding: 0 0.85rem;
    gap: 0.5rem;
  }
}
@media (max-width: 640px) {
  .header-nav { display: none; }
  .quiz-nav { flex-direction: column-reverse; }
  .quiz-nav .btn { width: 100%; text-align: center; }
  .module-nav-strip { flex-direction: column; text-align: center; }
  .course-hero-stats { gap: 1.5rem; }
}

/* ── FAQ Component ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item:hover {
  border-color: #93c5fd;
}
.faq-item.open {
  border-color: #0060d6;
  box-shadow: 0 4px 16px rgba(0, 96, 214, 0.08);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.15rem 1.35rem;
  background: none;
  border: none;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.15s ease, color 0.15s ease;
  font-family: inherit;
  line-height: 1.45;
}
.faq-question:hover {
  background: var(--surface2);
  color: #0060d6;
}
.faq-item.open .faq-question {
  background: rgba(0, 96, 214, 0.04);
  color: #0052cc;
}
.faq-chevron {
  width: 22px;
  height: 22px;
  color: var(--primary);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: #0052cc;
}
.faq-answer {
  display: none;
  padding: 1.15rem 1.35rem 1.35rem;
  color: var(--text);
  line-height: 1.75;
  font-size: 0.96rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.faq-item.open .faq-answer {
  display: block;
}
.faq-answer p {
  margin: 0 0 0.75rem 0;
  color: var(--text);
}
.faq-answer p:last-child {
  margin-bottom: 0;
}
.faq-answer strong {
  color: var(--text);
  font-weight: 700;
}
.faq-answer ul {
  margin: 0.6rem 0 0.75rem 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.faq-answer ul li {
  line-height: 1.65;
  color: var(--text);
  list-style-type: disc;
}
.faq-category-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--primary);
  margin: 2.25rem 0 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.faq-category-label:first-child {
  margin-top: 0;
}
.faq-category-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.faq-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  color: #0369a1;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}
.faq-switch-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.faq-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: all 0.2s ease;
}
.faq-switch-btn:hover {
  background: var(--surface2);
  border-color: #93c5fd;
}
.faq-switch-btn.active.claude {
  background: #c2410c;
  color: #ffffff;
  border-color: #c2410c;
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.25);
}
.faq-switch-btn.active.copilot {
  background: #0078d4;
  color: #ffffff;
  border-color: #0078d4;
  box-shadow: 0 4px 12px rgba(0, 120, 212, 0.25);
}

/* User Menu Boxed Dropdown */
.user-menu-nav-list { display: flex; flex-direction: column; gap: 0.38rem; }
.user-menu-box {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; text-align: left; padding: 0.65rem 0.9rem;
  border-radius: 10px; font-size: 0.86rem; font-weight: 600;
  color: var(--text, #1e293b); text-decoration: none;
  background: var(--surface, #ffffff); border: 1px solid var(--border, #e2e8f0);
  font-family: inherit; cursor: pointer; transition: all 0.16s ease;
  box-sizing: border-box; box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.user-menu-box:hover {
  background: var(--surface2, #f1f5f9); border-color: #cbd5e1;
  color: var(--primary, #0052cc); transform: translateX(3px);
  box-shadow: 0 3px 8px rgba(0, 82, 204, 0.08);
}
.user-menu-box-label { flex: 1; }
.user-menu-box-arrow { font-size: 0.85rem; color: #94a3b8; font-weight: 700; margin-left: 0.5rem; }
.user-menu-box:hover .user-menu-box-arrow { color: var(--primary, #0052cc); transform: translateX(2px); }
.user-menu-box.admin-box { background: #eff6ff; border: 1.5px solid #bfdbfe; color: #1d4ed8; font-weight: 700; }
.user-menu-box.admin-box:hover { background: #dbeafe; border-color: #3b82f6; color: #1e40af; }
.user-menu-box-tag { font-size: 0.65rem; font-weight: 800; background: #2563eb; color: #ffffff; padding: 0.12rem 0.45rem; border-radius: 4px; text-transform: uppercase; }
.user-menu-box.danger { background: #fff8f8; border: 1px solid #fee2e2; color: #dc2626; font-weight: 600; }
.user-menu-box.danger:hover { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; transform: translateX(3px); }
