:root {
  --primary: #0A2540;
  --primary-hover: #071b30;
  --primary-deep: #051424;
  --navy: #0A2540;
  --navy-dark: #002147;
  --navy-light: #1E3A5F;
  --orange: #E6A000;
  --orange-hover: #cc8e00;
  --orange-soft: #fef8ee;
  --accent: #0EA5E9;
  --accent-hover: #0284c7;
  --accent-soft: #e0f2fe;
  --accent-deep: #0369a1;

  --forest: #0A2540;
  --deep: #0A2540;
  --green: #0EA5E9;
  --soft: #f8fafc;
  --baby: #e0f2fe;
  --white: #ffffff;
  --bg: #f8fafc;
  --sage: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
}

h1,
.h1 {
  font-size: 1.75rem !important;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

h2,
.h2 {
  font-size: 1.35rem !important;
  font-weight: 750;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

h3,
.h3 {
  font-size: 1.1rem !important;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

h4,
.h4 {
  font-size: 0.95rem !important;
  font-weight: 700;
  line-height: 1.4;
}

code,
pre,
kbd,
samp,
.code-font,
.mono-font,
.academic-badge,
.auth-badge,
.flagship-tag,
.cohort-tag,
.badge-status,
.block-number,
.highlight-label,
.metric-label,
.month-pill,
.step-num,
.tuition-pill,
.status-tag-pending,
.lessons-table th {
  font-family: var(--font-mono) !important;
}

body:has(.learning-shell) {
  background: var(--bg);
}

@media (min-width: 1024px) {
  body:has(.learning-shell) {
    background: var(--bg);
  }
}

a {
  color: var(--navy);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  width: min(1280px, 100%);
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--deep);
  font-weight: 800;
  font-size: 1.2rem;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 1.12rem;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.brand-logo {
  height: 2.2rem;
  width: auto;
  max-width: 150px;
  display: block;
  object-fit: contain;
}

.brand-mark {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: 0.7rem;
  background: var(--navy);
  color: #ffffff;
  font-size: 0.78rem;
  letter-spacing: 0;
  flex-shrink: 0;
}


.primary-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 0.5rem;
  color: var(--muted);
  flex-shrink: 0;
}

.primary-nav a,
.primary-nav button {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 650;
  white-space: nowrap;
  flex-shrink: 0;
}

.primary-nav a:hover,
.primary-nav button:hover {
  background: var(--sage);
  text-decoration: none;
}

.site-header form,
.primary-nav form {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.7rem 1.25rem;
  border: 0;
  border-radius: 0.75rem;
  background: var(--orange);
  color: #0f172a;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(230, 160, 0, 0.2);
}

button:hover,
.button:hover {
  background: var(--orange-hover);
  text-decoration: none;
}

.primary-nav button {
  min-height: auto;
  color: var(--forest);
  background: transparent;
  box-shadow: none;
  font-weight: 600;
}

.hero,
.course-detail-hero,
.section,
.two-column,
.auth-shell {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.landing-hero {
  position: relative;
  min-height: min(860px, calc(100vh - 74px));
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-items: end;
  padding: clamp(6rem, 12vh, 8rem) clamp(1rem, 5vw, 4rem) 1.25rem;
  color: white;
}

.landing-hero img {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: rgba(10, 37, 64, 0.88);
}

.landing-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 34%;
  background: var(--bg);
}

.landing-hero-content {
  width: min(850px, 100%);
  padding-bottom: clamp(2rem, 7vh, 5rem);
}

.landing-kicker {
  display: inline-flex;
  margin: 0 0 1rem;
  padding: 0.42rem 0.75rem;
  border: 1px solid rgba(221, 244, 231, 0.38);
  border-radius: 999px;
  background: rgba(221, 244, 231, 0.12);
  color: var(--baby);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(16px);
}

.landing-hero h1 {
  max-width: 930px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 7.7rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.landing-hero-content>p {
  max-width: 700px;
  margin: 1.4rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button-light {
  background: var(--white);
  color: var(--deep);
}

.button-light:hover {
  background: var(--baby);
  color: var(--deep);
}

.button-ghost {
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.09);
  color: var(--white);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, 100%);
  overflow: hidden;
  border: 1px solid rgba(221, 244, 231, 0.22);
  border-radius: 1.25rem;
  background: rgba(221, 244, 231, 0.16);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(20px);
}

.hero-stat-strip span {
  display: grid;
  gap: 0.18rem;
  min-height: 5.5rem;
  align-content: center;
  padding: 1rem;
  background: rgba(6, 25, 20, 0.38);
  color: rgba(255, 255, 255, 0.76);
}

.hero-stat-strip strong {
  display: block;
  color: var(--white);
  font-size: 1rem;
}

.landing-section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.intro-band h2,
.audience-section h2,
.wave-panel h2,
.featured-courses h2 {
  margin: 0;
  color: var(--deep);
  font-size: clamp(2rem, 4.8vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.intro-band>p,
.split-heading>p {
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.5fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 24px 60px rgba(16, 44, 37, 0.08);
}

.audience-grid article {
  min-height: 320px;
  padding: 1.35rem;
  border-right: 1px solid var(--border);
  background: var(--white);
}

.audience-grid article:last-child {
  border-right: 0;
}

.audience-number {
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 900;
}

.audience-grid h3,
.method-steps h3 {
  margin: 2.8rem 0 0.75rem;
  color: var(--deep);
  font-size: 1.35rem;
}

.audience-grid p,
.method-steps p {
  margin: 0;
  color: var(--muted);
}

.wave-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2rem;
  align-items: start;
  padding-inline: clamp(1rem, 4vw, 3rem);
  border-radius: 1.6rem;
  background: var(--navy);
  color: white;
  box-shadow: 0 20px 40px rgba(10, 37, 64, 0.2);
}

.wave-panel h2,
.wave-panel .eyebrow {
  color: white;
}

.method-steps {
  display: grid;
  gap: 0.85rem;
}

.method-steps article {
  padding: 1.1rem;
  border: 1px solid rgba(221, 244, 231, 0.2);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
}

.method-steps h3 {
  margin-top: 0;
  color: white;
}

.method-steps p {
  color: rgba(255, 255, 255, 0.76);
}

.course-card.elevated {
  transform: translateY(0);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.course-card.elevated:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(16, 44, 37, 0.12);
}

.hero {
  padding: clamp(3rem, 9vw, 6rem) 0 2rem;
}

.hero h1,
.course-detail-hero h1,
.section-heading h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero p,
.course-detail-hero>p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.1rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.section {
  padding: 2rem 0 4rem;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
}

.course-grid.compact {
  margin-bottom: 2.4rem;
}

.course-card,
.auth-card,
.side-panel,
.panel,
.resource-card,
.discussion-post {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 14px 34px rgba(16, 44, 37, 0.07);
}

.cover-placeholder {
  display: grid;
  min-height: 140px;
  place-items: center;
  border-radius: 1rem 1rem 0 0;
  background: var(--navy);
  color: var(--baby);
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
}

.card-body {
  padding: 1.2rem;
}

.card-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  line-height: 1.25;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.93rem;
}

.course-detail-hero {
  padding: 3rem 0 1rem;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  padding: 1rem 0 4rem;
}

.module-block,
.resource-card,
.discussion-post {
  margin: 1rem 0;
  padding: 1rem;
}

.side-panel {
  align-self: start;
  padding: 1.2rem;
}

.auth-shell {
  display: grid;
  min-height: 70vh;
  place-items: center;
}

.auth-card {
  width: min(100%, 420px);
  padding: 1.5rem;
}

.stack {
  display: grid;
  gap: 0.9rem;
}

.stack input,
.stack textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  font: inherit;
}

.progress {
  height: 0.6rem;
  overflow: hidden;
  background: var(--soft);
  border-radius: 999px;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--green);
}

.badge {
  display: inline-flex;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: var(--baby);
  color: var(--deep);
  font-weight: 700;
}

.muted-card {
  opacity: 0.78;
}

/* Learning shell layout is styled with Tailwind in templates */

.lesson-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 1.4rem;
}

.lesson-meta-card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--white);
  box-shadow: 0 14px 30px rgba(16, 44, 37, 0.06);
  color: var(--muted);
  font-size: 0.88rem;
}

.lesson-meta-card strong {
  color: var(--deep);
  line-height: 1.25;
}

.lesson h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.08;
}

.tabs {
  display: flex;
  gap: 0.35rem;
  margin: 1.5rem 0;
  padding: 0.4rem;
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 14px 30px rgba(16, 44, 37, 0.06);
}

.tab-button {
  min-height: 2.4rem;
  padding: 0.5rem 1rem;
  border-radius: 0.65rem;
  background: transparent;
  color: #475569;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  box-shadow: none;
  border: 0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab-button:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.tab-button.active {
  background: var(--orange) !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(230, 160, 0, 0.25);
}

.tab-button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.tab-panel[hidden] {
  display: none;
}

.tab-panel {
  animation: panel-in 160ms ease-out;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.markdown-body {
  padding: 0.5rem 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.7;
  color: #334155;
}

.markdown-body h1 {
  font-size: 1.45rem !important;
  font-weight: 800;
  color: var(--navy);
  margin: 1.75rem 0 0.85rem;
  letter-spacing: -0.015em;
}

.markdown-body h2 {
  font-size: 1.25rem !important;
  font-weight: 750;
  color: var(--navy);
  margin: 1.5rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.markdown-body h3 {
  font-size: 1.05rem !important;
  font-weight: 700;
  color: var(--navy);
  margin: 1.25rem 0 0.5rem;
}

.markdown-body h4 {
  font-size: 0.92rem !important;
  font-weight: 700;
  color: #1e293b;
  margin: 1rem 0 0.4rem;
}

.markdown-body p {
  margin: 0.85rem 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.lesson-actions {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.video-frame {
  display: grid;
  min-height: 280px;
  place-items: center;
  border-radius: 0.9rem;
  background: var(--deep);
  color: white;
}

.video-frame a {
  color: var(--baby);
}

.site-footer {
  background: var(--deep);
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem clamp(1rem, 4vw, 3rem);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  width: min(1180px, 100%);
  margin: 0 auto;
  gap: 3rem;
}

.footer-inner p {
  max-width: 520px;
}

.footer-brand {
  color: white;
  font-size: 1.35rem;
  font-weight: 850;
}

.site-footer a {
  color: white;
}

.site-footer nav {
  display: grid;
  gap: 0.65rem;
  align-content: start;
  min-width: 180px;
}

.site-footer nav strong {
  color: white;
  margin-bottom: 0.35rem;
}

.footer-contact {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
}

.footer-contact span {
  max-width: 420px;
}

@media (max-width: 800px) {
  .landing-hero {
    min-height: 780px;
    padding-top: 5rem;
  }

  .landing-hero h1 {
    font-size: clamp(2.8rem, 17vw, 4.8rem);
  }

  .hero-stat-strip,
  .intro-band,
  .split-heading,
  .wave-panel {
    grid-template-columns: 1fr;
  }

  .hero-stat-strip {
    border-radius: 1rem;
  }

  .audience-grid {
    grid-template-columns: 1fr;
  }

  .audience-grid article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .audience-grid article:last-child {
    border-bottom: 0;
  }

  .audience-grid h3 {
    margin-top: 1.6rem;
  }

  .site-header {
    padding-inline: 1rem;
  }

  .nav-inner {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.75rem;
  }

  .primary-nav {
    width: auto;
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
    border-radius: 999px;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  /* Mobile layout handled by Tailwind */
  .lesson-header {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .lesson-meta-card {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PREMIUM PLATFORM ENHANCEMENTS: AUTH, REGISTRATION, SYLLABUS & CATALOG
   ========================================================================== */

/* Navigation CTA additions */
.primary-nav .nav-cta-link {
  background: var(--forest);
  color: #ffffff !important;
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
}

.primary-nav .nav-cta-link:hover {
  background: var(--deep);
  color: #ffffff !important;
}

/* Auth Shell & Cards */
.auth-shell {
  padding: clamp(2.5rem, 6vw, 4.5rem) 1rem;
  display: flex;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: 0 14px 40px rgba(16, 44, 37, 0.07);
}

.auth-card.registration-card {
  max-width: 820px;
}

.auth-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--forest);
  background: var(--soft);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.auth-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--deep);
  line-height: 1.2;
  margin: 0 0 0.6rem 0;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
  margin-bottom: 2rem;
}

.auth-alert {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.auth-alert i {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.auth-alert ul {
  margin: 0.35rem 0 0 1.2rem;
  padding: 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--deep);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--text);
  background: #ffffff;
  transition: all 0.18s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 4px rgba(22, 61, 50, 0.1);
}

.field-hint {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

@media (max-width: 640px) {
  .grid-2-col {
    grid-template-columns: 1fr;
  }
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.form-section-title .step-num {
  width: 32px;
  height: 32px;
  background: var(--forest);
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

.form-section-title h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--deep);
  font-weight: 750;
}

.form-section-title p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.tuition-notice-card {
  background: var(--sage);
  border: 1px solid var(--border);
  border-left: 4px solid var(--forest);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  margin: 0.5rem 0;
}

.tuition-notice-card .tuition-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}

.tuition-notice-card .tuition-header strong {
  color: var(--deep);
  font-size: 0.98rem;
}

.tuition-pill {
  font-size: 0.74rem;
  background: var(--baby);
  color: var(--forest);
  font-weight: 750;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.tuition-notice-card p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.auth-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  background: var(--forest);
  color: #ffffff !important;
  font-weight: 750;
  font-size: 1rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 10px 24px rgba(22, 61, 50, 0.18);
  text-decoration: none !important;
}

.auth-btn-primary:hover {
  background: var(--deep);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(22, 61, 50, 0.25);
}

.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  background: #ffffff;
  color: var(--forest) !important;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 12px;
  border: 1.5px solid var(--forest);
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none !important;
}

.button-secondary:hover {
  background: var(--soft);
}

.auth-footer-prompt {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--muted);
}

.auth-footer-prompt a {
  color: var(--forest);
  font-weight: 750;
}

/* ==========================================================================
   COURSES CATALOG (STUDENT EXCLUSIVE)
   ========================================================================== */
.catalog-hero {
  background: var(--navy);
  color: #ffffff;
  padding: clamp(3.5rem, 7vw, 5.5rem) 1.5rem;
}

.catalog-hero-inner {
  max-width: 960px;
  margin: 0 auto;
}

.catalog-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0.5rem 0 1rem 0;
  color: #ffffff;
}

.catalog-hero p {
  font-size: 1.1rem;
  color: var(--baby);
  max-width: 720px;
  line-height: 1.6;
}

.catalog-hero .auth-badge {
  background: rgba(221, 244, 231, 0.2);
  color: var(--baby);
}

.catalog-grid-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 2.5rem 1rem;
}

.flagship-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 44px rgba(16, 44, 37, 0.08);
  transition: all 0.2s ease;
}

.flagship-card:hover {
  border-color: var(--forest);
  box-shadow: 0 20px 50px rgba(16, 44, 37, 0.12);
}

.flagship-card-header {
  background: var(--sage);
  border-bottom: 1px solid var(--border);
  padding: 2rem 2.5rem;
}

.flagship-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.flagship-tag {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--forest);
  background: var(--baby);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.flagship-status-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: #065f46;
  background: #d1fae5;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.flagship-card-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.flagship-card-title a {
  color: var(--deep);
  text-decoration: none;
}

.flagship-card-title a:hover {
  color: var(--forest);
}

.flagship-subtitle {
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
  line-height: 1.5;
}

.flagship-card-body {
  padding: 2.2rem 2.5rem;
}

.flagship-excerpt {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 2rem;
}

.flagship-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  border-radius: 14px;
  margin-bottom: 2rem;
}

.highlight-item {
  display: flex;
  flex-direction: column;
}

.highlight-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 750;
  letter-spacing: 0.05em;
}

.highlight-value {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--deep);
  margin-top: 0.2rem;
}

.courses-list-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.course-listing-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 44px rgba(16, 44, 37, 0.08);
  transition: all 0.2s ease;
}

.course-listing-card:hover {
  border-color: var(--forest);
  box-shadow: 0 20px 50px rgba(16, 44, 37, 0.12);
}

.course-listing-header {
  background: var(--sage);
  border-bottom: 1px solid var(--border);
  padding: 1.85rem 2.25rem;
}

.course-listing-body {
  padding: 2rem 2.25rem;
}

.catalog-directory-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.directory-title {
  margin: 0 0 0.35rem 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--deep);
}

.directory-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.catalog-upcoming-notice {
  margin-top: 3.5rem;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
  padding: 1.75rem 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.upcoming-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e2e8f0;
  color: var(--navy);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.upcoming-content h3 {
  margin: 0 0 0.4rem 0;
  font-size: 1.1rem;
  font-weight: 750;
  color: var(--deep);
}

.upcoming-content p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #475569;
}

.flagship-card-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   PROGRAMME DETAIL & 36-WEEK SCHEME OF WORK
   ========================================================================== */
.program-page-container {
  background: var(--bg);
}

.program-hero {
  background: var(--navy);
  color: #ffffff;
  padding: clamp(3.5rem, 7vw, 5.5rem) 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.program-hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 960px) {
  .program-hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.academic-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--baby);
  background: rgba(221, 244, 231, 0.15);
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(221, 244, 231, 0.3);
}

.program-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem 0;
  color: #ffffff;
}

.program-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.program-key-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.metric-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 750;
  letter-spacing: 0.06em;
}

.metric-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0.2rem 0;
}

.metric-sub {
  font-size: 0.78rem;
  color: var(--baby);
}

.program-hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.program-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #ffffff;
  color: var(--forest) !important;
  font-weight: 800;
  font-size: 0.98rem;
  padding: 0.9rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  text-decoration: none !important;
  transition: all 0.18s ease;
}

.program-btn-primary:hover {
  background: var(--baby);
  transform: translateY(-1px);
}

.program-btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.3rem;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: #ffffff !important;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: all 0.18s ease;
}

.program-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

.program-btn-ghost {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: underline !important;
}

.admissions-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 2rem;
  color: var(--text);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.admissions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.admissions-header h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--deep);
  font-weight: 800;
}

.cohort-tag {
  font-size: 0.72rem;
  background: #ecfdf5;
  color: #047857;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.admissions-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.admissions-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.admissions-list li i {
  color: var(--forest);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.admissions-cta {
  width: 100%;
}

.w-100 {
  width: 100% !important;
  box-sizing: border-box;
}

.program-body-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

.program-layout-grid {
  display: grid;
  grid-template-columns: 2.4fr 1fr;
  gap: 3.5rem;
}

@media (max-width: 960px) {
  .program-layout-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.academic-block {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(1.8rem, 3.5vw, 2.75rem);
  margin-bottom: 2.5rem;
  position: relative;
  box-shadow: 0 6px 20px rgba(16, 44, 37, 0.04);
}

.academic-block .block-number {
  font-size: 0.85rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  color: var(--forest);
  background: var(--soft);
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.academic-block h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--deep);
  margin: 0 0 1.25rem 0;
}

.academic-block p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 1.25rem;
}

.callout-quote {
  border-left: 4px solid var(--forest);
  background: var(--sage);
  border-radius: 0 12px 12px 0;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
}

.callout-quote p {
  margin: 0;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--deep);
  line-height: 1.6;
}

.two-col-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 680px) {
  .two-col-features {
    grid-template-columns: 1fr;
  }
}

.feature-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem;
}

.feature-box h4 {
  margin: 0 0 0.6rem 0;
  color: var(--deep);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-box h4 i {
  color: var(--forest);
}

.feature-box p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.55;
}

.outcomes-checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.outcomes-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #334155;
}

.outcome-icon {
  color: var(--forest);
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 680px) {
  .activities-grid {
    grid-template-columns: 1fr;
  }
}

.activity-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.35rem;
}

.activity-pill {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--forest);
  background: var(--baby);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 0.6rem;
}

.activity-card h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.05rem;
  color: var(--deep);
}

.activity-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}

/* 36-Week Scheme of Work Accordion / Groups */
.modules-accordion {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.module-group-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
}

.module-group-header {
  background: var(--sage);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.6rem;
}

.month-pill {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--forest);
  color: #ffffff;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 0.4rem;
}

.module-group-header h3 {
  margin: 0 0 0.35rem 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--deep);
}

.module-desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.lessons-table-wrap {
  overflow-x: auto;
}

.lessons-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.lessons-table th {
  background: #f8fafc;
  padding: 0.75rem 1.25rem;
  font-weight: 750;
  color: var(--deep);
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lessons-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.lessons-table tr:last-child td {
  border-bottom: none;
}

.lesson-cell-title {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--deep);
}

.lesson-cell-title i {
  color: var(--forest);
  font-size: 1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.lesson-cell-desc {
  color: #475569;
  line-height: 1.5;
}

/* Scope Comparison */
.scope-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 760px) {
  .scope-comparison-grid {
    grid-template-columns: 1fr;
  }
}

.scope-box {
  border-radius: 14px;
  padding: 1.5rem;
}

.scope-included {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.scope-excluded {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.scope-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.scope-included .scope-header i {
  color: #16a34a;
  font-size: 1.3rem;
}

.scope-excluded .scope-header i {
  color: #64748b;
  font-size: 1.3rem;
}

.scope-box h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--deep);
}

.scope-box ul {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #334155;
}

.scope-box ul li {
  margin-bottom: 0.45rem;
}

.scope-disclaimer {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.scope-note {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* Tuition Banner */
.tuition-banner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.85rem 2rem;
  align-items: center;
}

@media (max-width: 720px) {
  .tuition-banner {
    grid-template-columns: 1fr;
  }
}

.fee-badge {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--forest);
  background: var(--baby);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.fee-amount {
  font-size: 2.2rem;
  font-weight: 850;
  color: var(--deep);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.tuition-left p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}

.tuition-right h4 {
  margin: 0 0 0.4rem 0;
  font-size: 1.1rem;
  color: var(--deep);
}

.tuition-right p {
  margin: 0 0 1.2rem 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Sticky Sidebar */
.program-sidebar {
  position: relative;
}

.sticky-sidebar-card {
  position: sticky;
  top: 100px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 10px 30px rgba(16, 44, 37, 0.06);
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-header h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--deep);
}

.badge-status {
  font-size: 0.72rem;
  font-weight: 750;
  color: #047857;
  background: #ecfdf5;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.sidebar-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.88rem;
}

.sidebar-info-row:last-of-type {
  border-bottom: none;
}

.sidebar-info-row .label {
  color: var(--muted);
}

.sidebar-info-row .value {
  font-weight: 750;
  color: var(--deep);
}

.sidebar-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.25rem 0;
}

.sidebar-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.sidebar-support-note {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.sidebar-support-note i {
  color: var(--forest);
  font-size: 1rem;
  margin-top: 0.1rem;
}

.sidebar-support-note strong {
  color: var(--deep);
  display: block;
  margin-bottom: 0.15rem;
}

.sidebar-support-note p {
  margin: 0;
}

/* ==========================================================================
   PENDING APPROVAL GATEWAY & MONO CODE STYLING
   ========================================================================== */
.pending-approval-card {
  max-width: 620px;
  text-align: center;
}

.status-icon-pending {
  width: 68px;
  height: 68px;
  background: #fef3c7;
  color: #b45309;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  margin: 0 auto 1.25rem;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.2);
}

.pending-info-box {
  background: var(--sage);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: left;
}

.info-row-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
}

.info-row-item .info-label {
  color: var(--muted);
}

.info-row-item .info-val {
  font-weight: 750;
  color: var(--deep);
}

.status-tag-pending {
  background: #fef3c7;
  color: #92400e;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pending-explanation {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  text-align: left;
  margin-bottom: 2rem;
}

.pending-explanation h4 {
  margin: 0 0 0.6rem 0;
  font-size: 0.98rem;
  color: var(--deep);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pending-explanation h4 i {
  color: var(--forest);
}

.pending-explanation p {
  margin: 0 0 0.85rem 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #475569;
}

.pending-next-steps {
  margin-bottom: 0 !important;
  color: #1e293b !important;
}

.pending-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   PREMIUM DASHBOARD & LEARNING WORKSPACE
   ========================================================================== */
.dashboard-shell {
  min-height: calc(100vh - 120px);
  background: #fbfdfc;
  padding-bottom: 5rem;
}

.dashboard-header {
  background: var(--navy);
  color: #ffffff;
  padding: 3.5rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(10, 37, 64, 0.08);
}

.dashboard-header-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.dashboard-welcome-col {
  max-width: 680px;
}

.academic-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--baby);
  background: rgba(221, 244, 231, 0.14);
  border: 1px solid rgba(221, 244, 231, 0.28);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.dashboard-title {
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 0.8rem 0;
  color: #ffffff;
  line-height: 1.15;
}

.dashboard-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(221, 244, 231, 0.88);
  margin: 0;
}

.dashboard-meta-stats {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.stat-pill {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 1.15rem 1.65rem;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 125px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--baby);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-desc {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.8);
}

.dashboard-body-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.dashboard-section-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.dashboard-section-title h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--deep);
  margin: 0 0 0.35rem 0;
  letter-spacing: -0.02em;
}

.dashboard-section-title p {
  color: var(--muted);
  margin: 0;
  font-size: 0.96rem;
}

/* Enrolled Courses Grid & Premium Cards */
.enrolled-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr));
  gap: 2rem;
}

.premium-learning-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(16, 44, 37, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.premium-learning-card:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 81, 67, 0.4);
  box-shadow: 0 20px 48px rgba(16, 44, 37, 0.13);
}

/* Course Cover Image Banner */
.learning-card-cover {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--deep);
}

.course-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.premium-learning-card:hover .course-cover-img {
  transform: scale(1.03);
}

.cover-overlay-gradient {
  position: absolute;
  inset: 0;
  background: rgba(10, 37, 64, 0.45);
  pointer-events: none;
}

.cover-badges-row {
  position: absolute;
  top: 1.15rem;
  left: 1.15rem;
  right: 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.cover-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--forest);
  background: rgba(221, 244, 231, 0.95);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cohort-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #065f46;
  background: #d1fae5;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.cover-title-overlay {
  position: absolute;
  bottom: 1.15rem;
  left: 1.15rem;
  right: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 2;
}

.cover-duration {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(16, 44, 37, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Card Body */
.learning-card-body {
  padding: 1.75rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.learning-course-title {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 0.65rem 0;
  letter-spacing: -0.015em;
}

.learning-course-title a {
  color: var(--deep);
  text-decoration: none;
  transition: color 0.15s ease;
}

.learning-course-title a:hover {
  color: var(--forest);
}

.learning-course-desc {
  font-size: 0.94rem;
  line-height: 1.55;
  color: #4b5563;
  margin: 0 0 1.5rem 0;
}

/* Progress Component */
.learning-progress-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  margin-top: auto;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
  font-size: 0.85rem;
}

.progress-metric-label {
  font-weight: 750;
  color: var(--deep);
}

.progress-count {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--forest);
}

.progress-bar-track {
  width: 100%;
  height: 9px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.progress-bar-fill {
  height: 100%;
  background: var(--orange);
  border-radius: 999px;
  transition: width 0.5s ease;
}

.progress-sub-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.percent-tag {
  font-weight: 800;
  color: var(--forest);
  background: #e8f5ee;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
}

.card-footer-actions {
  display: flex;
  gap: 0.75rem;
}

.continue-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 750;
  text-decoration: none;
}

.continue-btn i {
  font-size: 1.2rem;
}

/* Explore Grid */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1.5rem;
}

.explore-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(16, 44, 37, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.explore-card:hover {
  transform: translateY(-3px);
  border-color: var(--forest);
}

.explore-card-body h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0.75rem 0 0.5rem 0;
}

.explore-card-body h3 a {
  color: var(--deep);
  text-decoration: none;
}

.explore-card-body h3 a:hover {
  color: var(--forest);
}

.explore-card-body p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #4b5563;
  margin: 0 0 1.25rem 0;
}

.explore-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

.explore-link {
  font-weight: 700;
  color: var(--forest);
  text-decoration: none;
}

.explore-link:hover {
  text-decoration: underline;
}

/* Empty Dashboard State */
.empty-enrollment-card {
  background: #ffffff;
  border: 1px dashed var(--border);
  border-radius: 20px;
  padding: 3.5rem 2rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--forest);
  display: grid;
  place-items: center;
  font-size: 2rem;
  margin: 0 auto 1.25rem;
}

.empty-enrollment-card h3 {
  font-size: 1.4rem;
  margin: 0 0 0.75rem 0;
  color: var(--deep);
}

.empty-enrollment-card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 1.75rem 0;
}

/* ==========================================================================
   ENHANCED LESSON READER (VIDEO EMBED & RESOURCES)
   ========================================================================== */
.video-panel-wrapper {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(16, 44, 37, 0.05);
}

.video-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.video-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--deep);
}

.video-duration-pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--forest);
  background: var(--baby);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.video-frame-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #000000;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.video-responsive-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.external-video-link-box {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #ffffff;
  padding: 2rem;
  text-align: center;
}

.external-video-link-box i {
  font-size: 3rem;
  color: var(--baby);
}

.empty-tab-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--muted);
}

.empty-tab-state i {
  font-size: 2.5rem;
  color: var(--forest);
  margin-bottom: 0.75rem;
  display: inline-block;
  opacity: 0.8;
}

.empty-tab-state h4 {
  font-size: 1.15rem;
  color: var(--deep);
  margin: 0 0 0.5rem 0;
}

.empty-tab-state p {
  max-width: 480px;
  margin: 0 auto;
  font-size: 0.92rem;
  line-height: 1.55;
}

.resource-list {
  display: grid;
  gap: 1rem;
}

.resource-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(16, 44, 37, 0.04);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.resource-card:hover {
  border-color: var(--forest);
  transform: translateY(-2px);
}

.resource-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--sage);
  color: var(--forest);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.resource-info {
  flex: 1;
}

.resource-info h3 {
  margin: 0 0 0.35rem 0;
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--deep);
}

.resource-info p {
  margin: 0 0 0.85rem 0;
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.5;
}

.resource-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 750;
  color: var(--forest);
  text-decoration: none;
}

.resource-link-btn:hover {
  text-decoration: underline;
}

/* ==========================================================================
   CODE WINDOW DARK THEME WITH TRAFFIC LIGHTS (TOP RIGHT)
   ========================================================================== */
.code-window {
  background: #1e2227;
  border: 1px solid #2d333b;
  border-radius: 12px;
  margin: 1.75rem 0;
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.35);
}

.code-window-header {
  background: #181b1f;
  padding: 0.65rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #282c34;
}

.code-window-title {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #abb2bf;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.code-window-title i {
  color: #98c379;
}

/* Traffic Lights on Top Right */
.traffic-lights-top-right {
  display: flex;
  align-items: center;
  gap: 7px;
}

.traffic-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.traffic-dot:hover {
  transform: scale(1.15);
}

.dot-close {
  background-color: #ff5f56;
  border: 1px solid #e0443e;
}

.dot-minimize {
  background-color: #ffbd2e;
  border: 1px solid #dea123;
}

.dot-expand {
  background-color: #27c93f;
  border: 1px solid #1aab29;
}

.code-window pre {
  margin: 0 !important;
  padding: 1.25rem 1.4rem !important;
  background: #1e2227 !important;
  overflow-x: auto;
  font-family: var(--font-mono) !important;
  font-size: 0.92rem !important;
  line-height: 1.65 !important;
}

.code-window code {
  font-family: var(--font-mono) !important;
  background: transparent !important;
  padding: 0 !important;
  color: #abb2bf;
}

/* Inline code in text */
.markdown-body :not(pre)>code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: #eef5f1;
  color: var(--forest);
  padding: 0.2rem 0.45rem;
  border-radius: 5px;
  border: 1px solid #d8e8de;
}

/* ==========================================================================
   QUIZ & MONTHLY EXAM SYSTEM STYLES
   ========================================================================== */
.badge-passed {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: #065f46;
  background: #a7f3d0;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-left: 0.4rem;
}

.quiz-panel-wrapper {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2.25rem 2rem;
  box-shadow: 0 12px 34px rgba(16, 44, 37, 0.06);
}

.quiz-banner {
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
  margin-bottom: 2.25rem;
}

.quiz-badge-wrap {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.quiz-chip,
.exam-chip {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

.quiz-chip {
  background: var(--baby);
  color: var(--forest);
}

.exam-chip {
  background: #fef3c7;
  color: #92400e;
}

.quiz-threshold-chip {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: #1e293b;
  background: #f1f5f9;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.quiz-banner h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--deep);
  margin: 0 0 0.65rem 0;
  letter-spacing: -0.02em;
}

.quiz-instruction {
  font-size: 0.98rem;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
}

.attempt-status-box {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: 14px;
  margin-top: 1.25rem;
}

.attempt-passed {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.attempt-failed {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
}

.attempt-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  padding-right: 1.25rem;
}

.attempt-score {
  font-family: var(--font-mono);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1;
}

.attempt-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 0.35rem;
}

.attempt-message strong {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.attempt-message p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

/* Question Cards */
.questions-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.question-card {
  background: #fbfdfc;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.question-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px rgba(16, 44, 37, 0.04);
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.q-number {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--forest);
  text-transform: uppercase;
}

.q-type-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

.q-prompt {
  font-size: 1.08rem;
  font-weight: 750;
  color: var(--deep);
  line-height: 1.45;
  margin: 0 0 1.25rem 0;
}

.options-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.option-label {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1.15rem;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.option-label:hover {
  background: #f4fbf7;
  border-color: var(--forest);
}

.option-label input[type="radio"] {
  display: none;
}

.option-custom-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #94a3b8;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: border-color 0.15s ease;
}

.option-label input[type="radio"]:checked+.option-custom-radio {
  border-color: var(--forest);
  background: var(--forest);
  box-shadow: inset 0 0 0 3px #ffffff;
}

.option-label input[type="radio"]:checked~.option-text {
  font-weight: 700;
  color: var(--deep);
}

.option-text {
  font-size: 0.94rem;
  color: #334155;
  line-height: 1.4;
}

.short-answer-wrap {
  width: 100%;
}

.short-answer-input {
  width: 100%;
  padding: 0.9rem 1.15rem;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--deep);
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.short-answer-input:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(30, 81, 67, 0.12);
}

.quiz-submit-bar {
  display: flex;
  justify-content: flex-end;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.btn-submit-quiz {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.exam-btn {
  background: var(--navy) !important;
}

/* Blocker & Lesson Actions Wrapper */
.lesson-actions-wrapper {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.quiz-blocker-notice {
  background: #fffbeb;
  border: 1.5px dashed #f59e0b;
  border-radius: 14px;
  padding: 1.35rem 1.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.quiz-blocker-notice i {
  font-size: 2rem;
  color: #d97706;
}

.quiz-blocker-notice div {
  flex: 1;
}

.quiz-blocker-notice strong {
  display: block;
  font-size: 1rem;
  color: #92400e;
  margin-bottom: 0.25rem;
}

.quiz-blocker-notice p {
  margin: 0;
  font-size: 0.88rem;
  color: #78350f;
}

.quiz-blocker-notice a {
  font-weight: 750;
  color: #b45309;
  text-decoration: underline;
}

.disabled-progression-btn {
  background: #cbd5e1 !important;
  color: #64748b !important;
  cursor: not-allowed !important;
  border: none !important;
  box-shadow: none !important;
  font-weight: 700;
  padding: 0.85rem 1.4rem;
  border-radius: 8px;
}

/* Reader messages */
.reader-messages-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.reader-message-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 650;
}

.banner-success {
  background: #ecfdf5;
  border: 1px solid #10b981;
  color: #065f46;
}

.banner-error {
  background: #fef2f2;
  border: 1px solid #f87171;
  color: #991b1b;
}

/* ==========================================================================
   TOP SILVER WEEKLY QUIZ CARD COMPONENT
   ========================================================================== */
.top-quiz-card-silver {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 18px;
  padding: 1.85rem 2.2rem;
  margin: 1.75rem 0 2.25rem 0;
  box-shadow: 0 4px 16px rgba(71, 85, 105, 0.05);
  position: relative;
  overflow: hidden;
}

.top-quiz-card-silver::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--navy);
}

.silver-badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.silver-pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #334155;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.silver-pill i {
  color: #64748b;
}

.silver-score-target {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 750;
  color: #1e293b;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #e2e8f0;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.silver-score-target i {
  color: #d97706;
}

.silver-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.silver-title-row h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0;
}

.silver-status-tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.passed-tag {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.failed-tag {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.pending-tag {
  background: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.silver-desc {
  font-size: 0.94rem;
  line-height: 1.55;
  color: #475569;
  margin: 0 0 1.25rem 0;
}

.silver-attempt-banner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.4rem;
  border-radius: 12px;
  margin-bottom: 1.25rem;
}

.banner-success-silver {
  background: #ffffff;
  border: 1px solid #86efac;
  box-shadow: 0 4px 14px rgba(22, 101, 52, 0.08);
}

.banner-warning-silver {
  background: #ffffff;
  border: 1px solid #fcd34d;
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.08);
}

.silver-score-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
  padding-right: 1.25rem;
  border-right: 1px solid #e2e8f0;
}

.circle-val {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  color: #0f172a;
}

.circle-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  margin-top: 0.25rem;
}

.silver-attempt-text strong {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: #0f172a;
  margin-bottom: 0.2rem;
}

.silver-attempt-text p {
  margin: 0;
  font-size: 0.86rem;
  color: #475569;
}

/* Accordion Details */
.quiz-details-accordion {
  border-top: 1px solid #cbd5e1;
  padding-top: 1.1rem;
  margin-top: 0.5rem;
}

.quiz-accordion-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.94rem;
  font-weight: 750;
  color: #1e293b;
  cursor: pointer;
  padding: 0.5rem 0;
  user-select: none;
}

.quiz-accordion-summary:hover {
  color: #0f172a;
}

.toggle-indicator {
  font-size: 0.8rem;
  color: #64748b;
  font-family: var(--font-mono);
}

.silver-quiz-form {
  padding-top: 1.5rem;
}

.silver-question-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.silver-option-label {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
}

.silver-option-label:hover {
  background: #ffffff;
  border-color: #64748b;
}

.silver-input {
  border-color: #cbd5e1;
}

.silver-input:focus {
  border-color: #475569;
  box-shadow: 0 0 0 3px rgba(71, 85, 105, 0.15);
}

.silver-submit-btn {
  background: var(--navy) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.2) !important;
}

.silver-submit-btn:hover {
  background: #002147 !important;
}

/* ==========================================================================
   QUIZ LAUNCHER & MODAL WINDOW WITH LIVE TIMER
   ========================================================================== */
.silver-launcher-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid #cbd5e1;
}

.btn-launch-quiz {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.95rem 1.85rem;
  background: var(--orange);
  color: #0f172a;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(230, 160, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-launch-quiz:hover {
  transform: translateY(-2px);
  background: var(--orange-hover);
  box-shadow: 0 6px 18px rgba(230, 160, 0, 0.35);
}

.disabled-quiz-btn {
  background: #94a3b8 !important;
  color: #f1f5f9 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}

.silver-score-target.limit-reached {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

.silver-score-target.limit-reached i {
  color: #dc2626;
}

.quiz-timer-note {
  font-size: 0.84rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 440px;
  line-height: 1.45;
}

.quiz-timer-note i {
  color: #d97706;
  font-size: 1.1rem;
}

body.modal-open-lock {
  overflow: hidden;
}

/* Modal Backdrop */
.quiz-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.quiz-modal-backdrop[hidden] {
  display: none;
}

/* Modal Window */
.quiz-modal-window {
  background: #f8fafc;
  width: min(940px, 100%);
  max-height: 92vh;
  border-radius: 20px;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1.5px solid #cbd5e1;
  animation: modal-pop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-pop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Modal Header */
.quiz-modal-header {
  background: #ffffff;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid #e2e8f0;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.modal-header-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.modal-exam-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--forest);
}

.modal-header-left h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--deep);
  margin: 0;
  letter-spacing: -0.015em;
}

.modal-header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Live Countdown Timer */
.modal-live-timer {
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.timer-label {
  font-size: 0.74rem;
  font-weight: 750;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.timer-countdown {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.04em;
  min-width: 75px;
  text-align: right;
}

.timer-urgent {
  background: #fef2f2 !important;
  border-color: #f87171 !important;
}

.timer-urgent .timer-countdown {
  color: #dc2626 !important;
  animation: pulse-timer 1s infinite alternate;
}

@keyframes pulse-timer {
  from {
    opacity: 1;
  }

  to {
    opacity: 0.45;
  }
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Modal Body */
.quiz-modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.modal-warning-bar {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
  padding: 0.95rem 1.25rem;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.modal-warning-bar i {
  font-size: 1.25rem;
  color: #d97706;
  margin-top: 0.05rem;
}

.modal-submit-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1.5px solid #cbd5e1;
}

.btn-cancel-quiz {
  font-size: 0.92rem;
  font-weight: 700;
  color: #dc2626;
  border-color: #fca5a5;
}

.btn-cancel-quiz:hover {
  background: #fef2f2;
}

/* Outside Click Warning Dialog */
.quiz-warning-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.quiz-warning-modal-backdrop[hidden] {
  display: none;
}

.dashboard-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(16, 44, 37, 0.72);
  backdrop-filter: blur(10px);
}

.dashboard-modal-backdrop[hidden] {
  display: none;
}

.dashboard-modal-window {
  position: relative;
  width: min(540px, 100%);
  padding: 2rem;
  border-radius: 1.25rem;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.dashboard-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  min-height: 0;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  background: var(--soft);
  color: var(--deep);
  box-shadow: none;
}

.dashboard-modal-window h2 {
  margin: 1rem 2.4rem 0.5rem 0;
  color: var(--deep);
  font-size: 1.8rem;
  line-height: 1.1;
}

.dashboard-modal-course {
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.dashboard-modal-copy {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.dashboard-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.quiz-warning-dialog-window {
  background: #ffffff;
  width: min(520px, 100%);
  border-radius: 18px;
  padding: 2.25rem 2rem;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  border: 1.5px solid #cbd5e1;
}

.warning-dialog-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fef2f2;
  color: #dc2626;
  display: grid;
  place-items: center;
  font-size: 2rem;
  margin: 0 auto 1.25rem;
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.18);
}

.quiz-warning-dialog-window h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.75rem 0;
}

.quiz-warning-dialog-window p {
  font-size: 0.94rem;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 2rem 0;
}

.warning-dialog-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.button-danger {
  background: #dc2626;
  color: #ffffff;
  border: none;
  font-weight: 750;
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.button-danger:hover {
  background: #b91c1c;
}

/* ==========================================================================
   Multi-step Registration Form Wizard
   ========================================================================== */
.multistep-progress-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
  user-select: none;
}

.step-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.88rem;
  color: #64748b;
  transition: all 0.2s ease;
  position: relative;
}

.step-circle .check-icon {
  display: none;
}

.step-label-group {
  display: flex;
  flex-direction: column;
}

.step-caption {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.step-name {
  font-size: 0.88rem;
  font-weight: 750;
  color: var(--muted);
}

/* Active step */
.step-indicator.active .step-circle {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(10, 37, 64, 0.12);
}

.step-indicator.active .step-name {
  color: var(--navy);
}

/* Completed step */
.step-indicator.completed .step-circle {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
}

.step-indicator.completed .step-circle .step-idx {
  display: none;
}

.step-indicator.completed .step-circle .check-icon {
  display: inline-block;
  font-size: 1.05rem;
}

.step-indicator.completed .step-name {
  color: #16a34a;
}

.step-connector {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  margin: 0 0.8rem;
}

/* Form Panes */
.form-step-pane {
  display: none;
  animation: fadeInStep 0.22s ease-in-out forwards;
}

.form-step-pane.active {
  display: block;
}

@keyframes fadeInStep {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.req {
  color: #dc2626;
  font-weight: 800;
}

.field-error-msg {
  font-size: 0.8rem;
  color: #dc2626;
  font-weight: 600;
  min-height: 1rem;
  display: block;
}

.input-has-error {
  border-color: #dc2626 !important;
  background-color: #fef2f2 !important;
}

.input-has-error:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}

/* Review Summary Box */
.reg-summary-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.2rem;
  margin-top: 1.2rem;
}

.reg-summary-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed #cbd5e1;
}

.text-amber {
  color: #e6a000;
}

.reg-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  font-size: 0.88rem;
}

@media (max-width: 640px) {
  .step-label-group {
    display: none;
  }
  .multistep-progress-bar {
    justify-content: center;
  }
  .reg-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Admin Studio Layout with Fixed Sidebar & Independent Scrolling
   ========================================================================== */
.studio-layout-shell {
  display: flex;
  min-height: calc(100vh - 65px);
  background: #f8fafc;
  position: relative;
}

/* Sidebar is fixed on viewport: sticky beneath site header, height locked, scrolls internally */
.studio-sidebar {
  width: 260px;
  height: calc(100vh - 65px);
  position: sticky;
  top: 65px;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 1.5rem 1.1rem;
  overflow-y: auto;
  z-index: 30;
}

.studio-sidebar-header {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 1.25rem;
}

.studio-sidebar-title {
  font-size: 1.15rem;
  font-weight: 850;
  color: var(--navy);
  margin: 0.5rem 0 0.15rem;
  letter-spacing: -0.02em;
}

.studio-sidebar-subtitle {
  font-size: 0.76rem;
  color: var(--muted);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.studio-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.studio-nav-section-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.6rem 0.2rem;
}

.studio-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 650;
  color: #475569;
  text-decoration: none !important;
  transition: all 0.16s ease;
}

.studio-nav-item i {
  font-size: 1.05rem;
  color: #64748b;
  transition: color 0.16s ease;
}

.studio-nav-item:hover {
  background: #f1f5f9;
  color: var(--navy);
}

.studio-nav-item:hover i {
  color: var(--navy);
}

.studio-nav-item.active {
  background: #0A2540;
  color: #ffffff !important;
  font-weight: 750;
}

.studio-nav-item.active i {
  color: #E6A000;
}

.studio-sidebar-footer {
  padding-top: 1.25rem;
  border-top: 1px solid #f1f5f9;
  margin-top: 1.25rem;
}

.admin-user-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem;
  border-radius: 10px;
  background: #f8fafc;
}

.admin-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0A2540;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.admin-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-user-name {
  font-size: 0.8rem;
  color: var(--navy);
  line-height: 1.2;
}

.admin-user-role {
  font-size: 0.7rem;
  color: #16a34a;
  font-weight: 700;
}

/* Studio Main Content Panel (Scrolls freely on page) */
.studio-main-panel {
  flex: 1;
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

/* Mobile Backdrop Overlay */
.studio-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  z-index: 45;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.studio-sidebar-backdrop.active {
  display: block;
  opacity: 1;
}

/* Mobile Responsive: Sidebar hidden completely, off-canvas slide drawer on toggle */
@media (max-width: 768px) {
  .studio-layout-shell {
    flex-direction: column;
  }

  .studio-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    width: 280px;
    max-width: 85vw;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  }

  .studio-sidebar.mobile-open {
    transform: translateX(0);
  }

  .studio-main-panel {
    padding: 1.25rem;
  }
}