/* ==========================================================================
   LEARN SECTION STYLES
   Covers: Learn Archive, Course Taxonomy Archive, Single Lesson
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. LEARN ARCHIVE
   -------------------------------------------------------------------------- */

/* -- Learn Hub Hero ------------------------------------------------------- */

.learn-hero {
  padding-top: 68px;
  background: var(--dark-bg);
  position: relative;
  overflow: hidden;
}

.learn-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(235, 0, 125, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(235, 0, 125, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}

.learn-hero::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(235, 0, 125, 0.08) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.learn-hero .hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
  align-items: center;
}

.learn-hero .hero-left {
  padding: 80px 64px 80px 80px;
}

.learn-hero .hero-eyebrow {
  color: var(--accent-light);
}

.learn-hero .hero-eyebrow::before {
  background: var(--accent-light);
}

.learn-hero .hero-right {
  padding: 80px 80px 80px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  border-radius: 14px;
  overflow: hidden;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 24px 22px;
}

/* -- Courses Section ------------------------------------------------------ */

.courses-section {
  padding: 80px 80px 100px;
  background: var(--cream);
}

.courses-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--warm-gray);
}

.course-count {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-light);
  white-space: nowrap;
  padding-bottom: 4px;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

/* Course card */
.course-card {
  background: var(--cream);
  border: 1px solid var(--warm-gray);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}

.course-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(235, 0, 125, 0.08);
}

.card-band {
  height: 4px;
  background: var(--accent);
}

.card-band.band-muted {
  background: var(--warm-gray);
}

.card-body {
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-pale);
  border: 1px solid rgba(235, 0, 125, 0.15);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
  align-self: flex-start;
}

.card-badge.badge-muted {
  color: var(--text-light);
  background: var(--cream-mid);
  border-color: var(--warm-gray);
}

.card-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.card-badge.badge-muted::before {
  background: var(--stone);
}

.card-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.course-card:hover .card-title {
  color: var(--accent);
}

.card-desc {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-mid);
  font-weight: 300;
  flex: 1;
  margin-bottom: 28px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--warm-gray);
  margin-top: auto;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-light);
  font-weight: 300;
}

.meta-item svg {
  width: 12px;
  height: 12px;
  stroke: var(--stone);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.card-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  transition: gap 0.2s;
}

.course-card:hover .card-link {
  gap: 8px;
}

/* Coming soon */
.course-card.coming-soon {
  background: var(--cream-mid);
  border-style: dashed;
  pointer-events: none;
  opacity: 0.7;
}

.course-card.coming-soon .card-title {
  color: var(--text-light);
}

/* -- Pitch Section -------------------------------------------------------- */

.learn-pitch {
  background: var(--cream-mid);
  border-top: 1px solid var(--warm-gray);
  padding: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.pitch-title {
  font-family: var(--serif);
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.pitch-title em {
  font-style: italic;
  color: var(--accent);
}

.pitch-body {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text-mid);
  font-weight: 300;
}

.pitch-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pitch-point {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--cream);
  border: 1px solid var(--warm-gray);
  border-radius: 10px;
  padding: 18px 20px;
}

.pitch-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-pale);
  border: 1px solid rgba(235, 0, 125, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pitch-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pitch-point-text {
  font-size: 14px;
  color: var(--text-mid);
  font-weight: 300;
  line-height: 1.55;
}

.pitch-point-text strong {
  font-weight: 500;
  color: var(--text-dark);
}

/* -- Learn CTA Bar -------------------------------------------------------- */

.learn-cta-bar {
  background: var(--accent);
  padding: 56px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.learn-cta-bar .cta-headline {
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 8px;
}

.learn-cta-bar .cta-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
}

/* -- Empty state ---------------------------------------------------------- */

.learn-empty {
  text-align: center;
  padding: 80px;
  color: var(--text-light);
}

/* --------------------------------------------------------------------------
   2. COURSE TAXONOMY ARCHIVE
   -------------------------------------------------------------------------- */

/* -- Hero ----------------------------------------------------------------- */

.course-hero {
  background: var(--dark-bg);
  padding-top: 68px;
  position: relative;
  overflow: hidden;
}

.course-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(235, 0, 125, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(235, 0, 125, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  z-index: 1;
  pointer-events: none;
}

.course-hero::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(235, 0, 125, 0.11) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  z-index: 2;
}

.hero-left {
  padding: 80px 64px 80px 80px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-right {
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.course-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-light);
  background: rgba(235, 0, 125, 0.1);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
  width: fit-content;
}

.course-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent-light);
  border-radius: 50%;
}

.hero-left h1,
.hero-title {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 500;
  color: var(--cream);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.hero-title em {
  font-style: italic;
  color: var(--accent-light);
}

.hero-left .subtitle,
.hero-sub {
  font-size: 17px;
  color: rgba(250, 248, 244, 0.5);
  font-weight: 300;
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 36px;
}

.hero-cta,
.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn-ghost {
  background: transparent;
  color: rgba(250, 248, 244, 0.65);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.btn-ghost:hover {
  color: var(--cream);
}
.btn-ghost::after {
  content: "\2192";
}

.course-hero .btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 14px 28px;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.course-hero .btn-primary:hover {
  background: var(--accent-dark);
}

.btn-outline {
  background: transparent;
  color: rgba(250, 248, 244, 0.65);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.btn-outline:hover {
  color: var(--cream);
}

/* -- Stat Grid ------------------------------------------------------------ */

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 28px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 28px 24px;
}

.stat-number,
.stat-num {
  font-family: var(--serif);
  font-size: 34px;
  color: var(--cream);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  display: block;
}

.stat-label {
  font-size: 12.5px;
  color: rgba(250, 248, 244, 0.38);
  font-weight: 300;
  line-height: 1.4;
  display: block;
}

/* -- Audience Note -------------------------------------------------------- */

.audience-note {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 18px 22px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.audience-note p {
  font-size: 13px;
  color: rgba(250, 248, 244, 0.45);
  font-weight: 300;
  line-height: 1.6;
  margin: 0;
}

.audience-note p strong {
  color: rgba(250, 248, 244, 0.75);
  font-weight: 500;
}

/* -- What You'll Learn ---------------------------------------------------- */

.what-youll-learn {
  background: var(--accent-pale);
  padding: 80px;
  border-bottom: 1px solid var(--warm-gray);
}

.wyl-inner,
.learn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.wyl-eyebrow,
.curriculum-eyebrow,
.for-who-eyebrow {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.wyl-eyebrow,
.curriculum-eyebrow {
  color: var(--accent);
}
.for-who-eyebrow {
  color: var(--text-light);
  margin-bottom: 24px;
}

.what-youll-learn h2,
.wyl-title {
  font-family: var(--serif);
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.wyl-title em {
  font-style: italic;
  color: var(--accent);
}

.wyl-desc {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text-mid);
  font-weight: 300;
}

.wyl-desc p {
  margin-bottom: 20px;
}

.outcomes-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.outcome-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid rgba(235, 0, 125, 0.1);
  border-radius: 10px;
  padding: 16px 20px;
  transition: background 0.2s ease;
}

.outcome-item:hover {
  background: var(--cream);
}

.outcome-tick {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: var(--accent-pale);
  border: 1.5px solid rgba(235, 0, 125, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.outcome-tick svg {
  width: 9px;
  height: 9px;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.outcome-text {
  font-size: 14.5px;
  color: var(--text-mid);
  font-weight: 300;
  line-height: 1.5;
}

.audience-note-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 7px;
  background: rgba(235, 0, 125, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.audience-note-icon svg {
  width: 13px;
  height: 13px;
  stroke: var(--accent-light);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tick-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: var(--accent-pale);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* -- Is This For You ------------------------------------------------------ */

.for-who {
  background: var(--cream);
  padding: 80px;
  border-bottom: 1px solid var(--warm-gray);
}

.for-who h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 40px;
}

.for-who-grid,
.for-who-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  background: var(--warm-gray);
  border-radius: 16px;
  overflow: hidden;
}

.for-who-col,
.for-col {
  background: var(--cream);
  padding: 48px 44px;
}

.for-who-col.not-for,
.for-who-col.isnt,
.for-col.isnt {
  background: var(--cream-mid);
}

.for-who-col h3,
.for-col-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 24px;
  color: var(--text-dark);
}

.for-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.for-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.6;
}

.for-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  min-width: 6px;
  border-radius: 50%;
  background: var(--status-green);
  margin-top: 8px;
}

.for-col-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.title-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-yes {
  background: var(--status-green);
}
.dot-no {
  background: var(--stone);
}

.for-who-col.not-for .for-list li::before,
.for-who-col.isnt .for-list li::before,
.for-col.isnt .for-list li::before {
  background: var(--stone);
}

/* -- Curriculum ----------------------------------------------------------- */

.curriculum {
  background: var(--cream);
  padding: 100px 80px;
}

.curriculum-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 56px;
}

.curriculum-header h2,
.curriculum-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.curriculum-title em {
  font-style: italic;
  color: var(--accent);
}

.curriculum-intro {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text-mid);
  font-weight: 300;
}

.modules {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.module {
  border: 1px solid var(--warm-gray);
  border-radius: 12px;
  overflow: hidden;
  background: var(--cream);
}

.module-header {
  padding: 24px 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.module-header:hover {
  background: var(--cream-mid);
}

.module.open .module-header {
  background: var(--cream-mid);
  border-bottom: 1px solid var(--warm-gray);
}

.module-number,
.module-num {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--accent);
  opacity: 0.65;
  width: 28px;
}

.module-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-dark);
}

.module-desc {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 300;
  margin-top: 4px;
}

.module-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.module-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.lesson-count {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-light);
  white-space: nowrap;
}

.chevron,
.module-chevron {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stone);
  transition:
    transform 0.25s,
    color 0.25s;
  flex-shrink: 0;
}

.chevron svg,
.module-chevron svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.module.open .chevron,
.module.open .module-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.module-lessons,
.lesson-list {
  display: none;
  flex-direction: column;
}

.module.open .module-lessons,
.module.open .lesson-list {
  display: flex;
  flex-direction: column;
}

.lesson-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 12px 28px 12px 76px;
  text-decoration: none;
  border-bottom: 1px solid var(--warm-gray);
  transition: background 0.2s ease;
}

.lesson-item:last-child {
  border-bottom: none;
}

.lesson-item:hover {
  background: var(--accent-pale);
}

.lesson-number {
  font-size: 11px;
  color: var(--stone);
  font-variant-numeric: tabular-nums;
  width: 20px;
  flex-shrink: 0;
}

.lesson-item .lesson-title {
  font-size: 14.5px;
  color: var(--text-mid);
  font-weight: 300;
  flex: 1;
  transition: color 0.2s ease;
}

.lesson-item:hover .lesson-title {
  color: var(--accent);
}

.lesson-arrow {
  opacity: 0;
  transition: opacity 0.2s ease;
  color: var(--accent);
}

.lesson-item:hover .lesson-arrow {
  opacity: 1;
}

/* -- Instructor ----------------------------------------------------------- */

.instructor {
  background: var(--cream-mid);
  padding: 80px;
  border-top: 1px solid var(--warm-gray);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 52px;
  align-items: center;
}

.instructor-avatar,
.avatar-initial {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--accent-pale);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 36px;
  color: var(--accent);
}

.instructor-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.instructor-name {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.instructor-bio {
  font-size: 15.5px;
  color: var(--text-mid);
  font-weight: 300;
  line-height: 1.75;
}

/* -- CTA Close ------------------------------------------------------------ */

.cta-close {
  background: var(--accent);
  padding: 80px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.cta-headline {
  font-family: var(--serif);
  font-size: clamp(26px, 2.8vw, 38px);
  color: #fff;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 12px;
}

.cta-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
}

.btn-white {
  background: #fff;
  color: var(--accent);
  padding: 14px 28px;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.btn-white:hover {
  background: #f5f5f5;
  transform: translateY(-1px);
}

.btn-outline-light {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  padding: 13px 24px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  transition: background 0.2s;
  display: inline-block;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

.cta-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-shrink: 0;
}

.lesson-num {
  font-size: 11px;
  color: var(--stone);
  font-variant-numeric: tabular-nums;
  width: 20px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   3. SINGLE LESSON
   -------------------------------------------------------------------------- */

/* -- Lesson Nav ----------------------------------------------------------- */

.lesson-nav {
  position: sticky;
  top: 68px;
  height: 56px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  margin-top: 68px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--warm-gray);
}

.lesson-nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lesson-nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.back-to-course {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-to-course::before {
  content: "\2190";
  font-size: 14px;
}

.back-to-course:hover {
  color: var(--accent);
}

.nav-sep {
  width: 1px;
  height: 18px;
  background: var(--warm-gray);
}

.course-name {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

.nav-lesson-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--text-mid);
  padding: 6px 14px;
  border-radius: 6px;
  border: 1.5px solid var(--warm-gray);
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.nav-lesson-btn:hover {
  border-color: var(--accent);
  background: var(--accent-pale);
}

.nav-lesson-btn.next {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 500;
}

.nav-lesson-btn.next:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.nav-lesson-btn.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* -- Progress Bar --------------------------------------------------------- */

.lesson-progress-bar {
  position: sticky;
  top: calc(68px + 56px);
  height: 2px;
  background: var(--warm-gray);
  z-index: 49;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.1s linear;
}

/* -- Lesson Layout -------------------------------------------------------- */

.lesson-layout {
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  min-height: 100vh;
  align-items: start;
}

/* -- Left Sidebar --------------------------------------------------------- */

.sidebar-left {
  position: sticky;
  top: calc(68px + 56px + 2px);
  height: calc(100vh - 68px - 56px - 2px);
  overflow-y: auto;
  border-right: 1px solid var(--warm-gray);
  background: var(--cream);
  padding: 32px 0;
}

.sidebar-left::-webkit-scrollbar {
  width: 4px;
}

.sidebar-left::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-left::-webkit-scrollbar-thumb {
  background: var(--warm-gray);
  border-radius: 4px;
}

.sidebar-section {
  padding: 0 24px;
  margin-bottom: 28px;
}

.sidebar-module-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.sidebar-module-name {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.sidebar-lessons {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sidebar-lesson {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.sidebar-lesson:hover {
  background: var(--warm-gray);
}

.sidebar-lesson.active {
  background: var(--accent-pale);
}

.lesson-indicator {
  width: 6px;
  height: 6px;
  min-width: 6px;
  border-radius: 50%;
  background: var(--warm-gray);
  border: 1px solid var(--stone);
}

.sidebar-lesson.active .lesson-indicator {
  background: var(--accent);
  border-color: var(--accent);
  width: 8px;
  height: 8px;
  min-width: 8px;
}

.sidebar-lesson-title {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 300;
}

.sidebar-lesson.active .sidebar-lesson-title {
  color: var(--accent);
  font-weight: 400;
}

.sidebar-divider {
  margin: 12px 24px;
  height: 1px;
  background: var(--warm-gray);
}

.sidebar-all-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-light);
  text-decoration: none;
  padding: 8px 24px;
  transition: color 0.2s ease;
}

.sidebar-all-link::before {
  content: "\2190";
}

.sidebar-all-link:hover {
  color: var(--accent);
}

/* -- Lesson Content ------------------------------------------------------- */

.lesson-content {
  padding: 60px 72px 100px;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

/* -- Lesson Header -------------------------------------------------------- */

.lesson-header {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--warm-gray);
}

.lesson-context {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.module-pill {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-pale);
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

.lesson-num-badge {
  font-size: 12px;
  color: var(--text-light);
}

.lesson-header .lesson-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-dark);
}

/* -- Objectives Box ------------------------------------------------------- */

.lesson-objectives {
  background: var(--cream);
  border: 1px solid var(--warm-gray);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin-block: 32px;
}

.objectives-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.objectives-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.objectives-list li {
  font-size: 14px;
  color: var(--text-mid);
  font-weight: 300;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
}

.objectives-list li::before {
  content: "";
  width: 4px;
  height: 4px;
  min-width: 4px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 9px;
}

/* -- Lesson Body ---------------------------------------------------------- */

.lesson-body {
  margin-top: 40px;
}

.lesson-body h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--text-dark);
  margin: 44px 0 14px;
}

.lesson-body h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--text-dark);
  margin: 32px 0 10px;
}

.lesson-body p {
  font-size: 18px;
  line-height: 1.85;
  color: var(--text-mid);
  font-weight: 300;
  margin-bottom: 22px;
}

.lesson-body strong {
  font-weight: 500;
  color: var(--text-dark);
}

.lesson-body ul,
.lesson-body ol {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}

.lesson-body ul li,
.lesson-body ol li {
  font-size: 18px;
  line-height: 1.85;
  color: var(--text-mid);
  font-weight: 300;
  padding-left: 28px;
  position: relative;
  margin-bottom: 8px;
}

.lesson-body ul li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.lesson-body ol {
  counter-reset: lesson-ol;
}

.lesson-body ol li {
  counter-increment: lesson-ol;
  padding-left: 36px;
}

.lesson-body ol li::before {
  content: counter(lesson-ol);
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-pale);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lesson-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  margin: 32px 0;
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  color: var(--text-mid);
  line-height: 1.7;
}

.key-point {
  background: var(--dark-bg);
  border-radius: 12px;
  padding: 28px 32px;
  margin: 32px 0;
  position: relative;
  overflow: hidden;
}

.key-point::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(
    circle,
    rgba(235, 0, 125, 0.12) 0%,
    transparent 70%
  );
}

.key-point-label {
  font-size: 10.5px;
  text-transform: uppercase;
  color: var(--accent-light);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.key-point p {
  font-size: 17px;
  color: rgba(250, 248, 244, 0.75);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 0;
}

/* -- Lesson Footer -------------------------------------------------------- */

.lesson-footer {
  border-top: 1px solid var(--warm-gray);
  padding-top: 40px;
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.lesson-nav-card {
  border: 1.5px solid var(--warm-gray);
  border-radius: 12px;
  padding: 22px 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.lesson-nav-card:hover {
  border-color: var(--accent);
  background: var(--accent-pale);
  transform: translateY(-2px);
}

.next-card {
  text-align: right;
}

.nav-card-direction {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.06em;
}

.next-card .nav-card-direction {
  color: var(--accent);
}

.nav-card-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
  transition: color 0.2s ease;
}

.lesson-nav-card:hover .nav-card-title {
  color: var(--accent);
}

.nav-card-module {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 300;
}

.lesson-nav-card-spacer {
  display: block;
}

/* -- Right Sidebar -------------------------------------------------------- */

.sidebar-right {
  position: sticky;
  top: calc(68px + 56px + 2px);
  height: calc(100vh - 68px - 56px - 2px);
  overflow-y: auto;
  border-left: 1px solid var(--warm-gray);
  background: var(--cream);
  padding: 32px 24px;
}

.sidebar-right::-webkit-scrollbar {
  width: 4px;
}

.sidebar-right::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-right::-webkit-scrollbar-thumb {
  background: var(--warm-gray);
  border-radius: 4px;
}

.side-reading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.side-reading-num {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--text-dark);
}

.side-reading-label {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 300;
}

.side-divider {
  height: 1px;
  background: var(--warm-gray);
  margin: 24px 0;
}

.toc-side-label {
  font-size: 10.5px;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.toc-side-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc-side-item a {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 300;
  padding: 5px 0 5px 12px;
  border-left: 2px solid var(--warm-gray);
  text-decoration: none;
  display: block;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.toc-side-item a:hover {
  color: var(--text-dark);
  border-left-color: var(--stone);
}

.toc-side-item.active a {
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   4. RESPONSIVE
   -------------------------------------------------------------------------- */

/* -- 1200px --------------------------------------------------------------- */

@media (max-width: 1200px) {
  .hero-left {
    padding: 60px 48px 60px 48px;
  }

  .hero-right {
    padding: 60px 48px;
  }

  .lesson-layout {
    grid-template-columns: 220px 1fr 220px;
  }
}

/* -- 992px ---------------------------------------------------------------- */

@media (max-width: 992px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-left {
    padding: 60px 48px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .hero-right {
    padding: 48px;
  }

  .wyl-inner,
  .learn-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .for-who-grid,
  .for-who-inner {
    grid-template-columns: 1fr;
  }

  .curriculum {
    padding: 60px 48px;
  }

  .curriculum-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .instructor {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .lesson-layout {
    grid-template-columns: 1fr 220px;
  }

  .sidebar-left {
    display: none;
  }

  .lesson-nav {
    padding: 0 24px;
  }
}

/* -- 992px ---------------------------------------------------------------- */

@media (max-width: 992px) {
  .learn-hero .hero-inner {
    grid-template-columns: 1fr;
  }
  .learn-hero .hero-right {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 48px;
  }
  .learn-hero .hero-left {
    padding: 60px 48px;
  }
  .courses-section {
    padding: 60px 48px 80px;
  }
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .learn-pitch {
    padding: 60px 48px;
  }
  .learn-cta-bar {
    padding: 48px;
  }
}

/* -- 768px ---------------------------------------------------------------- */

@media (max-width: 768px) {
  /* Learn hub */
  .learn-hero .hero-inner {
    grid-template-columns: 1fr;
  }
  .learn-hero .hero-right {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 40px 24px;
  }
  .learn-hero .hero-left {
    padding: 48px 24px;
  }
  .courses-section {
    padding: 48px 24px 64px;
  }
  .courses-grid {
    grid-template-columns: 1fr;
  }
  .courses-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .learn-pitch {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 24px;
  }
  .learn-cta-bar {
    flex-direction: column;
    text-align: center;
    padding: 48px 24px;
    gap: 24px;
  }

  .what-youll-learn {
    padding: 48px 24px;
  }

  .for-who {
    padding: 48px 24px;
  }

  .curriculum {
    padding: 48px 24px;
  }

  .instructor {
    padding: 48px 24px;
  }

  .cta-close {
    padding: 48px 24px;
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .hero-left {
    padding: 48px 24px;
  }

  .hero-right {
    padding: 40px 24px;
  }

  .lesson-layout {
    grid-template-columns: 1fr;
  }

  .sidebar-right {
    display: none;
  }

  .lesson-content {
    padding: 40px 24px 60px;
  }

  .lesson-nav {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 24px;
    gap: 0;
  }

  .lesson-nav-left {
    width: 100%;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--warm-gray);
    margin-bottom: 8px;
  }

  .lesson-nav-right {
    width: 100%;
    justify-content: space-between;
  }

  .course-name {
    font-size: 12px;
  }

  .lesson-progress-bar {
    top: calc(68px + 82px);
  }

  .sidebar-left {
    top: calc(68px + 84px);
    height: calc(100vh - 68px - 84px);
  }
}

/* -- 480px ---------------------------------------------------------------- */

@media (max-width: 480px) {
  /* Learn hub */
  .courses-section {
    padding: 40px 16px 48px;
  }
  .learn-pitch {
    padding: 40px 16px;
  }
  .learn-cta-bar {
    padding: 40px 16px;
  }

  .what-youll-learn {
    padding: 40px 16px;
  }

  .for-who {
    padding: 40px 16px;
  }

  .for-who-col {
    padding: 32px 24px;
  }

  .curriculum {
    padding: 40px 16px;
  }

  .instructor {
    padding: 40px 16px;
  }

  .cta-close {
    padding: 40px 16px;
  }

  .hero-left {
    padding: 40px 16px;
  }

  .hero-right {
    padding: 32px 16px;
  }

  .lesson-content {
    padding: 32px 16px 48px;
  }

  .lesson-nav {
    padding: 8px 16px;
  }

  .nav-sep {
    display: none;
  }

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