/* Course page — page-specific styles only.
   Shared tokens, utilities, and buttons live in epi-shared.css */

/* ─── HERO ── */
.course-hero {
  min-height: max(480px, 70vh);
  display: flex;
  align-items: center;
  padding: max(96px, 11vh) 0 80px;
  position: relative;
  overflow: hidden;
}
.course-hero > .container { width: 100%; }
.course-hero::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(200,162,78,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.course-hero__headline {
  font-family: var(--font-display); font-size: var(--text-3xl);
  font-weight: 400; line-height: 1.15; color: var(--text-bright);
  margin-bottom: 3rem;
}
.course-hero__layout { display: grid; grid-template-columns: 1fr 42%; gap: 48px; align-items: center; }
.course-hero__sub { font-size: var(--text-lg); color: var(--text-secondary); line-height: 1.65; margin-bottom: 1.75rem; }
.course-hero__facts { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 2.25rem; }
.course-hero__facts li { display: flex; align-items: center; gap: 10px; font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.5; }
.course-hero__facts li svg { color: var(--accent-gold); flex-shrink: 0; width: 16px; height: 16px; stroke: var(--accent-gold); align-self: center; vertical-align: middle; }
.course-hero__cta-group { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.course-hero__peek {
  font-size: 0.875rem; color: var(--text-muted);
  text-decoration: none; border-bottom: 1px solid rgba(200,162,78,0.3);
  padding-bottom: 2px; transition: border-color 0.2s, color 0.2s;
}
.course-hero__peek:hover { color: var(--accent-gold); border-color: var(--accent-gold); }

/* Course cover — border frame, crops to slide content only (image is 1122×1402, slide sits at 35–70% of height) */
.course-hero__visual { display: flex; align-items: center; }
.course-cover-wrap {
  position: relative; width: 100%;
  overflow: hidden;
  display: flex;
  border-radius: var(--radius-xl);
  padding: 10px;
  overflow: hidden;
  background: rgba(200,162,78,0.04);
  border: 1px solid rgba(200,162,78,0.35);
  box-shadow: 0 0 0 4px rgba(200,162,78,0.07), 0 24px 64px rgba(0,0,0,0.55);
}
.course-cover-img {
  width: 100%;
  aspect-ratio: 1122 / 580;
  object-fit: cover;
  object-position: center 54%;
  border-radius: calc(var(--radius-xl) - 4px);
  display: block;
}
.course-cover-glow {
  position: absolute; inset: -40px;
  background: radial-gradient(ellipse at center, rgba(200,162,78,0.22) 0%, transparent 65%);
  pointer-events: none; z-index: -1; filter: blur(8px);
}

/* ── Shimmer dividers between course sections ── */
.course-why::before, .course-framework::before, .course-modules::before, .course-enroll::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: min(560px, 85%); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,162,78,0.55) 35%, rgba(255,249,224,0.78) 50%, rgba(200,162,78,0.55) 65%, transparent);
  pointer-events: none;
}
.course-why, .course-framework, .course-modules, .course-enroll { position: relative; }

/* ─── WHY ── */
.course-why { padding: 80px 0; background: var(--bg-secondary); }
.course-why__header { text-align: center; margin-bottom: 52px; }
.course-why__title { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 400; color: var(--text-bright); margin-bottom: 1rem; }
.course-why__sub { color: var(--text-secondary); max-width: 620px; margin: 0 auto; line-height: 1.65; }
.course-why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.course-why__card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: 28px; transition: border-color 0.2s; }
.course-why__card:hover { border-color: var(--border-accent); }
.course-why__icon { width: 44px; height: 44px; background: rgba(200,162,78,0.1); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--accent-gold); margin-bottom: 16px; }
.course-why__card h3 { font-size: var(--text-base); font-weight: 700; color: var(--text-bright); margin-bottom: 10px; }
.course-why__card p { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.65; }

/* ─── FRAMEWORK ── */
.course-framework { padding: 80px 0; }
.course-framework__header { text-align: center; margin-bottom: 56px; }
.course-framework__title { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 400; color: var(--text-bright); margin-bottom: 1rem; }
.course-framework__sub { color: var(--text-secondary); max-width: 560px; margin: 0 auto; line-height: 1.65; }

/* ─── CURRICULUM GRID ── */
.course-modules { padding: 88px 0; }
.course-modules__header { text-align: center; margin-bottom: 56px; }
.course-modules__title { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 400; color: var(--text-bright); margin-bottom: 0.75rem; }
.course-modules__sub { color: var(--text-secondary); max-width: 520px; margin: 0 auto; line-height: 1.65; }
.course-curriculum { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 48px; }
.course-section {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 24px 28px;
  position: relative; overflow: hidden; transition: border-color 0.2s;
}
.course-section::before {
  content: ''; position: absolute; top: 0; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,168,76,.4) 40%, rgba(255,249,224,.6) 50%, rgba(212,168,76,.4) 60%, transparent);
}
.course-section:hover { border-color: var(--border-accent); }
.course-section__header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
/* Section numbers: large and prominent */
.course-section__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: rgba(200,162,78,0.65);
  letter-spacing: 0.04em;
  flex-shrink: 0;
  line-height: 1;
}
/* Section titles: gold to match chapter titles in book */
.course-section__title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 400; color: var(--accent-gold); line-height: 1.3; }
.course-section__lectures { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.course-section__lectures li { display: flex; align-items: flex-start; gap: 8px; font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.5; }
.course-section__lectures li::before { content: ''; display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-gold); opacity: 0.5; margin-top: 7px; flex-shrink: 0; }

/* ─── ENROLL ── */
.course-enroll { padding: 112px 0; background: var(--bg-secondary); }
.course-enroll__inner { text-align: center; max-width: 640px; margin: 0 auto; }
.course-enroll .course-enroll__title {
  font-family: var(--font-display) !important;
  font-size: var(--text-2xl); font-weight: 400;
  color: var(--text-bright); margin-bottom: 2.5rem !important;
  line-height: 1.25;
}
.course-enroll .course-enroll__sub { color: var(--text-secondary); line-height: 1.75; margin-bottom: 3.5rem !important; }
/* Centred column of actions */
.course-enroll__actions { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.course-enroll__cta { width: auto !important; }
.course-enroll__access { font-size: 0.875rem; color: var(--text-muted); }
.course-enroll__secondary { display: flex; justify-content: center; margin-top: 8px; }

/* ─── RESPONSIVE ── */
@media (max-width: 1100px) {
  .course-hero__layout { grid-template-columns: 1fr 300px; gap: 40px; }
}
@media (max-width: 900px) {
  .course-hero__layout { grid-template-columns: 1fr; gap: 40px; }
  .course-hero__visual { display: flex; justify-content: center; }
  /* Cover: 420px max on tablet — proportional to screen, not tiny 240px */
  .course-cover-wrap { max-width: 420px; margin: 0 auto; }
  .course-cover-img { max-width: 100%; }
  /* Why cards: 2 columns on tablet — uses the horizontal space */
  .course-why__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 601px) and (max-width: 900px) {
  /* 2-col range only (phones are 1-col): center a lone 3rd card at half width so
     it doesn't sit left-aligned under the first column. */
  .course-why__card:nth-child(3):last-child { grid-column: 1 / -1; width: calc(50% - 10px); justify-self: center; }
}
@media (max-width: 600px) {
  /* Less top padding on phones — 100px was wasting vertical space */
  .course-hero { padding: 80px 0 48px; }
  .course-hero__cta-group { flex-direction: column; align-items: flex-start; }
  .course-curriculum { grid-template-columns: 1fr; }
  /* Cover: full-width on phones */
  .course-cover-wrap { max-width: 100%; }
  /* Why cards: back to 1 column on phones */
  .course-why__grid { grid-template-columns: 1fr; }
  /* Enroll CTAs: full-width so long button text doesn't overflow */
  .course-enroll__actions .cta-button,
  .course-enroll__actions .cta-button--secondary { width: 100% !important; justify-content: center; }
}
@media (max-width: 390px) {
  .course-hero__headline { font-size: clamp(1.75rem, 8vw, 2.25rem); }
}
