/* =====================================================
   BRAVE INTANGIBLES — Service Design Foundations Course
   ===================================================== */

/* --- Course Hero ----------------------------------- */
.course-hero {
  background: var(--bg-dark);
  padding: 148px 0 60px;
  text-align: center;
  position: relative;
}
.course-hero h1 {
  color: #fff;
  font-size: clamp(30px, 4.8vw, 58px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-bottom: 14px;
}
.course-hero-desc {
  color: var(--cyan);
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 400;
  margin-bottom: 32px;
  line-height: 1.6;
}
.course-stat-chips {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.course-stat-chip {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.78);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
}

/* --- Progress Bar ---------------------------------- */
.course-progress-wrap {
  position: sticky;
  top: 72px; /* sits just under the floating nav */
  z-index: 900;
  background: rgba(13,27,75,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 10px 0;
}
.course-progress-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 44px);
  display: flex;
  align-items: center;
  gap: 20px;
}
.course-progress-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
  flex-shrink: 0;
}
.course-progress-track {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.10);
  border-radius: 2px;
  overflow: hidden;
}
.course-progress-fill {
  height: 100%;
  background: var(--gradient-brand);
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
  width: 0%;
}

/* --- Course Shell ---------------------------------- */
.course-shell {
  display: flex;
  align-items: flex-start;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 44px);
}

/* --- Sidebar --------------------------------------- */
.course-sidebar {
  width: 232px;
  flex-shrink: 0;
  position: sticky;
  top: 120px; /* nav + progress bar */
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 32px 0;
  border-right: 1px solid var(--border-light);
}
.course-sidebar::-webkit-scrollbar { width: 3px; }
.course-sidebar::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 2px; }
.sidebar-section-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 20px;
  margin-bottom: 6px;
  display: block;
}
.course-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 20px;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.course-tab:hover:not(.locked) {
  color: var(--text-dark);
  background: rgba(13,27,75,0.04);
}
.course-tab.active {
  color: var(--magenta);
  border-left-color: var(--magenta);
  font-weight: 700;
  background: rgba(200,37,122,0.05);
}
.course-tab.completed {
  color: var(--text-dark);
}
.course-tab.locked {
  opacity: 0.38;
  cursor: not-allowed;
}
.tab-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(13,27,75,0.18);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: transparent;
  transition: all 0.25s;
  line-height: 1;
}
.course-tab.completed .tab-check {
  background: var(--magenta);
  border-color: var(--magenta);
  color: #fff;
}
.tab-name { flex: 1; line-height: 1.3; }
.tab-lock { font-size: 11px; margin-left: auto; opacity: 0.6; }
.course-tab-divider {
  height: 1px;
  background: var(--border-light);
  margin: 10px 20px;
}

/* --- Main Content Area ----------------------------- */
.course-main {
  flex: 1;
  padding: 48px 0 64px 48px;
  min-width: 0;
}

/* --- Module Panels --------------------------------- */
.module-panel { display: none; }
.module-panel.active { display: block; }

.module-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 16px;
  display: block;
}
.module-heading {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.14;
  letter-spacing: -0.022em;
  margin-bottom: 32px;
  max-width: 700px;
}
.module-img {
  width: 100%;
  max-width: 600px;
  border-radius: var(--radius-md);
  display: block;
  margin: 24px 0;
  border: 1px solid var(--border-light);
}
.module-body {
  max-width: 680px;
}
.module-body p {
  font-weight: 300;
  font-size: 17px;
  line-height: 1.84;
  color: var(--text-dark);
  margin-bottom: 22px;
}
.module-body p:last-child { margin-bottom: 0; }
.module-subheading {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 36px 0 10px;
  letter-spacing: -0.01em;
}
.module-list {
  margin: 0 0 22px 0;
  padding: 0;
  list-style: none;
}
.module-list li {
  font-weight: 300;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-dark);
  padding: 5px 0 5px 22px;
  position: relative;
}
.module-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--magenta);
  flex-shrink: 0;
}
.module-lane {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  background: rgba(13,27,75,0.03);
  border-left: 3px solid var(--border-light);
  max-width: 680px;
}
.module-lane strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.02em;
  display: block;
  margin-bottom: 4px;
}
.module-lane p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.72;
  color: var(--text-muted);
  margin: 0;
}
.module-lane--customer { border-left-color: var(--cyan); }
.module-lane--front { border-left-color: var(--magenta); }
.module-lane--visibility { border-left-color: var(--orange); background: rgba(245,166,35,0.05); }
.module-lane--back { border-left-color: var(--purple); }
.module-lane--support { border-left-color: #4a7a6a; }

/* --- Action Block ---------------------------------- */
.module-action {
  background: rgba(123,47,190,0.055);
  border-left: 3px solid var(--magenta);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 22px 26px;
  margin: 40px 0 32px;
  max-width: 680px;
}
.module-action-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 8px;
  display: block;
}
.module-action p {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.72;
  color: var(--text-dark);
  margin: 0;
}

/* --- Mark Complete Button -------------------------- */
.btn-complete {
  background: var(--magenta);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-complete:hover {
  background: #a81d65;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,37,122,0.35);
}
.btn-complete.is-done {
  background: #3a6b55;
  cursor: default;
  transform: none;
  box-shadow: none;
}
.btn-complete.is-done:hover {
  background: #3a6b55;
  transform: none;
  box-shadow: none;
}

/* --- Module 07 next steps ------------------------- */
.next-steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 32px;
  max-width: 680px;
}
.next-step-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
}
.next-step-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.35;
}
.next-step-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 400;
  margin-bottom: 14px;
}
.next-step-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--magenta);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.next-step-link:hover { text-decoration: underline; }

/* --- Quiz Panel ------------------------------------ */
.quiz-locked-notice {
  text-align: center;
  padding: 80px 40px;
}
.quiz-lock-icon {
  font-size: 40px;
  margin-bottom: 20px;
  display: block;
}
.quiz-locked-notice h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.quiz-locked-notice p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}
.quiz-content { max-width: 680px; }
.quiz-heading {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.quiz-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 48px;
  font-weight: 400;
}
.quiz-question-block {
  margin-bottom: 44px;
}
.quiz-q-num {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 8px;
  display: block;
}
.quiz-q-text {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.55;
  margin-bottom: 18px;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.18s;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-dark);
  background: #fff;
  text-align: left;
  width: 100%;
}
.quiz-option:hover {
  border-color: rgba(200,37,122,0.35);
  background: rgba(200,37,122,0.04);
}
.quiz-option.selected {
  border-color: var(--magenta);
  background: rgba(200,37,122,0.06);
  font-weight: 600;
}
.quiz-option.correct {
  border-color: #2e7d52;
  background: rgba(46,125,82,0.07);
  font-weight: 600;
}
.quiz-option.incorrect {
  border-color: #c0392b;
  background: rgba(192,57,43,0.07);
}
.quiz-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(13,27,75,0.2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
  position: relative;
}
.quiz-option.selected .quiz-radio {
  border-color: var(--magenta);
  background: var(--magenta);
}
.quiz-option.selected .quiz-radio::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  display: block;
}
.quiz-submit-row {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}
.btn-quiz-submit {
  background: var(--magenta);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 15px 40px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-quiz-submit:hover {
  background: #a81d65;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,37,122,0.35);
}
.quiz-result {
  display: none;
  margin-top: 36px;
  padding: 36px 32px;
  border-radius: var(--radius-md);
  text-align: center;
}
.quiz-result.pass {
  background: rgba(46,125,82,0.07);
  border: 1px solid rgba(46,125,82,0.2);
}
.quiz-result.fail {
  background: rgba(123,47,190,0.06);
  border: 1px solid rgba(123,47,190,0.18);
}
.quiz-result-score {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  line-height: 1;
}
.pass .quiz-result-score { color: #2e7d52; }
.fail .quiz-result-score { color: var(--purple); }
.quiz-result h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.quiz-result p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 420px;
  margin: 0 auto;
}
.btn-review-modules {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--magenta);
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Montserrat', sans-serif;
  padding: 0;
}
.btn-review-modules:hover { text-decoration: underline; }

/* --- Quiz resource downloads ----------------------- */
.quiz-resources {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}
.quiz-resources-heading {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.quiz-resources-sub {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.quiz-resource-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-light);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  max-width: 420px;
}
.quiz-resource-link:hover {
  border-color: rgba(200,37,122,0.3);
  box-shadow: var(--shadow-sm);
}
.quiz-resource-icon {
  font-size: 22px;
  color: var(--magenta);
  flex-shrink: 0;
}
.quiz-resource-link strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}
.quiz-resource-link small {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* --- Mobile bar ------------------------------------ */
.course-mobile-bar {
  display: none;
  background: var(--bg-dark);
  padding: 12px 20px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 116px;
  z-index: 800;
}
.course-mobile-select {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 36px 10px 14px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.45)' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.course-mobile-select option {
  background: #0D1B4B;
  color: #fff;
}

/* --- Mobile fixed complete button ------------------ */
.mobile-complete-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 12px 20px;
  background: rgba(240,250,248,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-light);
}
.mobile-complete-bar .btn-complete {
  width: 100%;
  justify-content: center;
}

/* Hidden state for mobile bar (quiz tab) */
.mobile-complete-bar.is-hidden { display: none !important; }

/* --- Responsive ------------------------------------ */
@media (max-width: 900px) {
  .course-shell { padding: 0; }
  .course-sidebar { display: none; }
  .course-mobile-bar { display: flex; }
  .course-main { padding: 32px 20px 96px; }
  .next-steps-grid { grid-template-columns: 1fr; }
  .btn-complete { display: none; }
  .mobile-complete-bar { display: block; }
}
@media (max-width: 480px) {
  .course-hero { padding: 120px 0 44px; }
  .course-hero h1 { font-size: clamp(26px, 7vw, 36px); }
  .module-heading { font-size: clamp(22px, 5.5vw, 32px); }
  .quiz-result { padding: 24px 20px; }
}
