:root {
  --course-bg: #07111d;
  --course-panel: rgba(10, 24, 39, 0.78);
  --course-panel-strong: rgba(14, 33, 53, 0.92);
  --course-line: rgba(148, 163, 184, 0.22);
  --course-line-bright: rgba(34, 211, 238, 0.42);
  --course-text: #f8fafc;
  --course-soft: #cbd5e1;
  --course-muted: #94a3b8;
  --course-cyan: #22d3ee;
  --course-teal: #2dd4bf;
  --course-amber: #fbbf24;
  --course-rose: #fb7185;
  --course-green: #86efac;
  --course-blue: #60a5fa;
}

.course-global-nav,
.course-global-nav *,
.course-bridge,
.course-bridge *,
.course-site-footer,
.course-site-footer *,
.course-home,
.course-home * {
  box-sizing: border-box;
}

.course-global-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  color: var(--course-text);
  border-bottom: 1px solid rgba(34, 211, 238, 0.24);
  background:
    linear-gradient(90deg, rgba(7, 17, 29, 0.96), rgba(8, 47, 73, 0.9)),
    radial-gradient(circle at 78% 0%, rgba(251, 191, 36, 0.12), transparent 28%);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.course-nav-inner {
  width: min(1760px, calc(100vw - 48px));
  min-height: 74px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(360px, 1.7fr) minmax(220px, 0.7fr);
  align-items: center;
  gap: 18px;
  padding: 12px 0;
}

.course-brand {
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.course-brand-kicker,
.course-eyebrow {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(125, 211, 252, 0.82);
}

.course-brand-title {
  margin-top: 4px;
  font-size: 18px;
  line-height: 1.22;
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.course-nav-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.course-nav-link {
  position: relative;
  min-width: 0;
  min-height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  padding: 8px 9px;
  color: var(--course-soft);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.055);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.course-nav-link:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.58);
  background: rgba(34, 211, 238, 0.12);
  color: white;
}

.course-nav-link.is-current {
  border-color: rgba(34, 211, 238, 0.78);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(59, 130, 246, 0.14));
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.16), 0 14px 34px rgba(8, 145, 178, 0.14);
}

.course-nav-link.is-done::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--course-green);
  box-shadow: 0 0 12px rgba(134, 239, 172, 0.75);
}

.course-nav-step {
  display: block;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 850;
  color: var(--course-cyan);
}

.course-nav-name {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 820;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.course-progress-box {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.course-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--course-muted);
}

.course-progress-track {
  height: 8px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.16);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.course-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--course-teal), var(--course-cyan), var(--course-amber));
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.5);
  transition: width 0.35s ease;
}

.course-mini-actions {
  display: flex;
  gap: 8px;
}

.course-mini-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--course-soft);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  white-space: nowrap;
}

.course-mini-button:hover {
  border-color: rgba(251, 191, 36, 0.58);
  color: white;
  background: rgba(251, 191, 36, 0.1);
}

.quiz-card .icon-btn,
#quizToggle {
  min-height: 36px !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

.course-bridge {
  position: relative;
  z-index: 3;
  width: min(1760px, calc(100vw - 48px));
  margin: 16px auto 0;
  color: var(--course-text);
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 12px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(8, 47, 73, 0.7), rgba(15, 23, 42, 0.84)),
    radial-gradient(circle at 5% 0%, rgba(45, 212, 191, 0.14), transparent 34%),
    radial-gradient(circle at 95% 20%, rgba(251, 113, 133, 0.1), transparent 32%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.course-bridge-main {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.course-bridge-title {
  margin: 8px 0 0;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: 0;
}

.course-bridge-copy {
  margin: 10px 0 0;
  max-width: 820px;
  color: var(--course-soft);
  font-size: 15px;
  line-height: 1.75;
}

.course-bridge-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.course-flow-card {
  min-width: 0;
  min-height: 112px;
  border: 1px solid rgba(148, 163, 184, 0.17);
  border-radius: 10px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.055);
}

.course-flow-card.is-now {
  border-color: rgba(34, 211, 238, 0.66);
  background: rgba(34, 211, 238, 0.1);
}

.course-flow-label {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 850;
  color: var(--course-muted);
}

.course-flow-name {
  margin-top: 9px;
  color: white;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 850;
}

.course-flow-desc {
  margin-top: 7px;
  color: var(--course-muted);
  font-size: 12px;
  line-height: 1.55;
}

.course-site-footer {
  position: relative;
  z-index: 3;
  width: min(1760px, calc(100vw - 48px));
  margin: 22px auto 30px;
  color: var(--course-text);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.course-next-card {
  min-height: 112px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 16px;
  color: inherit;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(8, 47, 73, 0.58)),
    radial-gradient(circle at 10% 10%, rgba(34, 211, 238, 0.12), transparent 32%);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.course-next-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.58);
  background:
    linear-gradient(135deg, rgba(14, 116, 144, 0.4), rgba(15, 23, 42, 0.82)),
    radial-gradient(circle at 8% 12%, rgba(251, 191, 36, 0.14), transparent 36%);
}

.course-next-card.is-disabled {
  pointer-events: none;
  opacity: 0.48;
}

.course-next-label {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 850;
  color: var(--course-cyan);
}

.course-next-title {
  margin-top: 9px;
  font-size: 20px;
  line-height: 1.28;
  font-weight: 900;
}

.course-next-desc {
  margin-top: 8px;
  color: var(--course-muted);
  font-size: 13px;
  line-height: 1.65;
}

.course-home {
  min-height: 100vh;
  color: var(--course-text);
  background:
    radial-gradient(circle at 18% 12%, rgba(34, 211, 238, 0.16), transparent 28%),
    radial-gradient(circle at 86% 10%, rgba(251, 191, 36, 0.13), transparent 24%),
    radial-gradient(circle at 72% 74%, rgba(251, 113, 133, 0.1), transparent 26%),
    linear-gradient(180deg, #07111d 0%, #071827 45%, #082f49 100%);
  overflow-x: hidden;
}

.course-home::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.78), transparent 86%);
}

.course-home-shell {
  position: relative;
  z-index: 1;
  width: min(1680px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 28px 0 46px;
}

.course-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  gap: 22px;
  align-items: stretch;
}

.course-home-panel,
.course-home-card,
.course-home-map,
.course-home-question,
.course-home-path-node {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.course-home-panel {
  padding: clamp(22px, 3vw, 42px);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(8, 47, 73, 0.7)),
    radial-gradient(circle at 0% 0%, rgba(34, 211, 238, 0.14), transparent 32%);
}

.course-home-title {
  max-width: 900px;
  margin: 10px 0 0;
  font-size: clamp(38px, 5vw, 76px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: 0;
}

.course-home-subtitle {
  max-width: 820px;
  margin: 20px 0 0;
  color: var(--course-soft);
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.85;
}

.course-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.course-home-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  padding: 12px 16px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 880;
  background: rgba(255, 255, 255, 0.075);
}

.course-home-button.primary {
  border-color: rgba(34, 211, 238, 0.58);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.85), rgba(37, 99, 235, 0.72));
  box-shadow: 0 14px 40px rgba(34, 211, 238, 0.18);
}

.course-home-button:hover {
  transform: translateY(-1px);
  border-color: rgba(251, 191, 36, 0.58);
}

.course-home-side {
  display: grid;
  gap: 14px;
}

.course-home-stat {
  padding: 20px;
}

.course-home-stat strong {
  display: block;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
  font-weight: 950;
}

.course-home-stat span {
  display: block;
  margin-top: 9px;
  color: var(--course-muted);
  font-size: 13px;
  line-height: 1.6;
}

.course-home-section {
  margin-top: 24px;
}

.course-home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.course-home-section h2 {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 38px);
  line-height: 1.15;
  font-weight: 930;
}

.course-home-section p {
  margin: 7px 0 0;
  color: var(--course-muted);
  font-size: 14px;
  line-height: 1.7;
}

.course-module-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.course-home-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  padding: 18px;
  color: inherit;
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.8), rgba(12, 36, 56, 0.7)),
    radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.11), transparent 32%);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.course-home-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.62);
  background:
    linear-gradient(180deg, rgba(8, 47, 73, 0.78), rgba(15, 23, 42, 0.82)),
    radial-gradient(circle at 18% 0%, rgba(251, 191, 36, 0.12), transparent 34%);
}

.course-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.course-card-step {
  color: var(--course-cyan);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
}

.course-card-duration {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--course-muted);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
}

.course-card-title {
  margin-top: 18px;
  font-size: 22px;
  line-height: 1.22;
  font-weight: 930;
}

.course-card-desc {
  margin-top: 10px;
  color: var(--course-soft);
  font-size: 14px;
  line-height: 1.7;
}

.course-card-takeaway {
  margin-top: auto;
  padding-top: 18px;
  color: var(--course-muted);
  font-size: 12px;
  line-height: 1.6;
}

.course-home-map {
  padding: 20px;
}

.course-path-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.course-home-path-node {
  min-height: 142px;
  padding: 16px;
  position: relative;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.055);
}

.course-home-path-node::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -13px;
  width: 14px;
  height: 2px;
  background: linear-gradient(90deg, var(--course-cyan), rgba(251, 191, 36, 0.78));
}

.course-home-path-node:last-child::after {
  display: none;
}

.course-path-name {
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.28;
  font-weight: 900;
}

.course-path-purpose {
  margin-top: 8px;
  color: var(--course-muted);
  font-size: 12px;
  line-height: 1.6;
}

.course-question-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.course-home-question {
  min-height: 142px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.72);
}

.course-question-index {
  color: var(--course-amber);
  font-size: 12px;
  font-weight: 900;
}

.course-question-text {
  margin-top: 12px;
  color: var(--course-soft);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 830;
}

@media (max-width: 1280px) {
  .course-nav-inner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 0 14px;
  }

  .course-nav-links {
    order: 3;
  }

  .course-progress-box {
    order: 2;
  }

  .course-home-hero,
  .course-bridge-main {
    grid-template-columns: 1fr;
  }

  .course-module-grid,
  .course-path-row,
  .course-question-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-home-path-node::after {
    display: none;
  }
}

@media (max-width: 760px) {
  .course-nav-inner,
  .course-home-shell,
  .course-bridge,
  .course-site-footer {
    width: min(100vw - 24px, 720px);
  }

  .course-nav-links {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .course-nav-link {
    flex: 0 0 138px;
  }

  .course-mini-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-mini-button {
    white-space: normal;
  }

  .course-bridge {
    margin-top: 12px;
    padding: 14px;
  }

  .course-bridge-flow,
  .course-site-footer,
  .course-module-grid,
  .course-path-row,
  .course-question-grid {
    grid-template-columns: 1fr;
  }

  .course-home-shell {
    padding-top: 18px;
  }

  .course-home-panel,
  .course-home-stat,
  .course-home-map {
    padding: 18px;
  }

  .course-home-title {
    font-size: 40px;
  }

  .course-home-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .course-home-button {
    width: 100%;
  }
}
