/* ══════════════════════════════════════════════════════
   SECTION 06 — "Course Syllabus / 16 sessions. One magnetic brand."

   Page canvas: 1440px wide
   Content frame 181:3383 — x=156, y=4806 (padding-top ~152px), w=1128, h=1092
   Course Title header: 878px, centred (125px each side)
   Course Content accordion: 848px, centred (140px each side)

   Background elements:
     .s6__planet  — radial gradient orb (271×271), pure CSS
                    left=-135px (half off-screen), top≈739px from section top
     .s6__timeline — 2px #422e10 vertical line through all dot markers

   Accordion:
     .s6__module--open  — Foundation (01) open by default
     .s6__module        — Modules 02-06, collapsed
   ══════════════════════════════════════════════════════ */


/* ── Section shell ── */
.s6 {
  position: relative;
  width: 100%;
  background: #150d00;
  padding: 152px 0 140px;
  overflow: hidden;
  isolation: isolate;
}


/* ── Planet/orb — CSS radial gradient (no image needed) ── */
.s6__planet {
  position: absolute;
  left: -135px;
  top: 700px;
  width: 271px;
  height: 271px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 32% 28%,
    rgba(232, 193, 122, 0.6) 0%,
    rgba(213, 153, 62, 0.3) 35%,
    rgba(213, 153, 62, 0.08) 60%,
    transparent 78%
  );
  box-shadow:
    0px 0px 55px 0px rgba(213, 153, 62, 0.4),
    0px 0px 110px 0px rgba(213, 153, 62, 0.15),
    0px 0px 180px 0px rgba(213, 153, 62, 0.06);
  z-index: 0;
  pointer-events: none;
}


/* ════════════════════════════════════════
   CONTENT WRAPPER — 1128px centred
   ════════════════════════════════════════ */
.s6__inner {
  position: relative;
  z-index: 1;
  width: 1128px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}


/* ════════════════════════════════════════
   HEADER — eyebrow + headline (878px)
   ════════════════════════════════════════ */
.s6__header {
  width: 878px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Eyebrow: Inter SemiBold 12px, gold, uppercase, tracking 3.264px */
.s6__eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3.264px;
  line-height: 16.32px;
  color: var(--color-gold);
  margin: 0;
}

/* Headline: Excon Regular 64px, white gradient */
.s6__headline {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 400;
  line-height: 86px;
  letter-spacing: -4px;
  background: linear-gradient(to bottom, #ffffff 19.478%, #c0c0c0 93.976%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

/* "magnetic" — gold override */
.s6__hl-gold {
  -webkit-text-fill-color: var(--color-gold);
  color: var(--color-gold);
}


/* ════════════════════════════════════════
   ACCORDION WRAPPER — 848px centred
   Contains the vertical timeline + modules
   ════════════════════════════════════════ */
.s6__accordion-wrap {
  position: relative;
  width: 848px;
  margin: 0 auto;
}

/* ── Vertical timeline line — runs behind all dots ── */
.s6__timeline {
  position: absolute;
  left: 5px; /* centre of 12px dot (6px) minus 1px for half of 2px line */
  top: 0;
  bottom: 0;
  width: 2px;
  background: #422e10;
  z-index: 0;
}


/* ════════════════════════════════════════
   MODULE (accordion item)
   ════════════════════════════════════════ */
.s6__module {
  position: relative;
  z-index: 1;
}


/* ── Module button (the clickable row) ── */
.s6__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 94px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

/* Open module has shorter button row */
.s6__module--open .s6__btn {
  height: 59.6px;
}


/* ── Session Info — left side of button ── */
.s6__session-info {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Timeline dot */
.s6__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #422e10;
  border: 1.6px solid #422e10;
  box-shadow: 0px 0px 14px 0px rgba(213, 153, 62, 0.31);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.s6__dot--active {
  background: #d5993e;
  border-color: #d5993e;
}

/* Session details — number + title + count */
.s6__session-details {
  display: flex;
  align-items: center;
  gap: 12px;
}

.s6__session-num-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Session number — Playfair Display Italic 32px gold */
.s6__num {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 32px;
  line-height: 69.752px;
  color: var(--color-gold);
  white-space: nowrap;
}

/* Session title — Excon Medium 24px cream */
.s6__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 27.6px;
  color: #f5ede0;
  white-space: nowrap;
}

/* Session count — Inter Regular 14px muted */
.s6__count {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 14.88px;
  color: rgba(245, 237, 224, 0.54);
  white-space: nowrap;
}


/* ── Toggle icon (+/×) — right side of button ── */
.s6__toggle {
  position: relative;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.s6__toggle::before,
.s6__toggle::after {
  content: '';
  position: absolute;
  background: rgba(245, 237, 224, 0.54);
  border-radius: 1px;
}

/* Horizontal bar */
.s6__toggle::before {
  width: 15px;
  height: 1.5px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

/* Vertical bar */
.s6__toggle::after {
  width: 1.5px;
  height: 15px;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.25s ease;
}

/* When open: rotate +=45deg → × shape */
.s6__module--open .s6__toggle {
  transform: rotate(45deg);
}


/* ════════════════════════════════════════
   PANEL — expanded content (Foundation)
   ════════════════════════════════════════ */
.s6__panel {
  padding-left: 56px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-bottom: 0;
  transition: max-height 0.45s ease, opacity 0.3s ease, padding-bottom 0.45s ease;
}

.s6__panel--open {
  max-height: 2000px;
  opacity: 1;
  padding-bottom: 12px;
}


/* Sub-top row — title/desc left, badge right */
.s6__sub-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

/* ── Sub-session card ── */
.s6__sub {
  backdrop-filter: blur(6.55px);
  -webkit-backdrop-filter: blur(6.55px);
  background: rgba(255, 245, 230, 0.02);
  border: 0.8px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 16.8px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

/* Left side — number + title + desc */
.s6__sub-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.s6__sub-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Sub-session number — Playfair Italic, gold, small */
.s6__sub-num {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: var(--color-gold);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Sub-session title — Excon Medium 16px white */
.s6__sub-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #ffffff;
  margin: 0;
}

/* Sub-session description — Inter Medium 14px muted, offset to align under title */
.s6__sub-desc {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 21.08px;
  color: rgba(245, 237, 224, 0.54);
  margin: 0;
  padding-left: 20.2px; /* aligns under title, not number */
}

/* Deliverable badge — right side, always consistent size */
.s6__deliverable {
  flex-shrink: 0;
  background: rgba(213, 153, 62, 0.14);
  border: 0.8px solid rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 6px 12px;
  min-height: 34px;
  max-width: 210px;
  display: flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: rgba(245, 237, 224, 0.70);
  text-align: right;
  white-space: normal;
  align-self: flex-start;
}


/* ── Video preview card (inside first sub-session) ── */
.s6__sub--with-video {
  flex-direction: column;
  align-items: stretch;
  padding-bottom: 0;
  overflow: hidden;
}

.s6__sub--with-video .s6__sub-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16.8px;
}

.s6__preview {
  position: relative;
  width: calc(100% + 33.6px); /* bleed to card edges (2× 16.8px padding) */
  margin-left: -16.8px;
  height: 415px;
  background: #140c02;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* Gradient overlay — frosts + darkens thumbnail so play button stays readable */
.s6__preview-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10, 6, 0, 0.45) 0%, rgba(10, 6, 0, 0.65) 100%),
    linear-gradient(151.38deg, rgba(213, 153, 62, 0.1) 0%, transparent 100%);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  pointer-events: none;
}

/* Center content: play button + label */
.s6__preview-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Play button circle */
.s6__play-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(10, 6, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(213, 153, 62, 0.65);
  box-shadow:
    0 0 0 8px rgba(213, 153, 62, 0.1),
    0 0 28px rgba(213, 153, 62, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0 0 0 4px; /* slight right offset for play triangle optical alignment */
  transition: background 0.2s, box-shadow 0.2s;
}

.s6__play-btn:hover {
  background: rgba(213, 153, 62, 0.22);
  box-shadow:
    0 0 0 10px rgba(213, 153, 62, 0.14),
    0 0 36px rgba(213, 153, 62, 0.35);
}

.s6__play-btn img {
  width: 28px;
  height: 28px;
  display: block;
}

/* "Preview: First 3 minutes" label */
.s6__preview-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 19.2px;
  color: #f5ede0;
  margin: 0;
  white-space: nowrap;
}

/* Progress bar at bottom of preview */
.s6__progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #1a1a1a;
}

.s6__progress-fill {
  height: 100%;
  width: 0%; /* not started */
  background: var(--color-gold);
  border-radius: 0 4px 4px 0;
}


/* ════════════════════════════════════════
   INLINE VIDEO PLAYER
   ════════════════════════════════════════ */

/* Restore button — overlays top-right of .s6__preview while video is playing */
.s6__video-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(10, 6, 0, 0.75);
  border: 1px solid rgba(213, 153, 62, 0.5);
  color: var(--color-gold);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.s6__video-close:hover {
  background: rgba(213, 153, 62, 0.22);
}
