/* Course sales page (/courses/{slug}). One typeface everywhere (Mukta via
   --font-body: Marathi + English in the same family) on a single type scale,
   a cinematic hero with the click-to-play intro video, count-up stats, the
   learning journey, a premium enroll card, a closing CTA and a floating
   enroll bar. Theme tokens only (--dashboard-*). Motion is decorative and
   switched off for prefers-reduced-motion. */

.cl-page {
  --cl-radius: 1.5rem;
  --cl-ink: #ffffff;
  --cl-ink-soft: rgba(255, 255, 255, 0.78);
  --cl-glass: rgba(255, 255, 255, 0.08);
  --cl-glass-line: rgba(255, 255, 255, 0.18);
  --cl-step-hero: clamp(2.1rem, 1.3rem + 3.4vw, 3.9rem);
  --cl-step-h2: clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem);
  --cl-step-lead: clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem);
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
  font-family: var(--font-body);
}

.cl-page > * { min-width: 0; }

.cl-page :where(h1, h2, h3, h4, p, li, a, button, input, select, textarea, label, summary, small, strong, span) {
  font-family: inherit;
}

.cl-page :where(code, pre, kbd) { font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace); }

.cl-page :where(h1, h2, h3) { letter-spacing: -0.015em; text-wrap: balance; }

.cl-page :where(p, li) { text-wrap: pretty; }

.cl-section-title {
  margin: 0 0 1.25rem;
  color: var(--dashboard-heading);
  font-size: var(--cl-step-h2);
  font-weight: 700;
  line-height: 1.15;
}

/* ---------- Hero ---------- */
.cl-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  border-radius: calc(var(--cl-radius) + 0.25rem);
  color: var(--cl-ink);
  background:
    radial-gradient(circle at 14% 8%, rgba(113, 96, 255, 0.42), transparent 30%),
    radial-gradient(circle at 88% 22%, rgba(226, 105, 255, 0.2), transparent 27%),
    linear-gradient(145deg, #120f2b 0%, #261f63 55%, #4a3ed0 130%);
  box-shadow: 0 30px 60px var(--dashboard-shadow, rgba(35, 31, 89, 0.2));
}

.cl-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  pointer-events: none;
  -webkit-mask-image: linear-gradient(135deg, #000 5%, transparent 80%);
  mask-image: linear-gradient(135deg, #000 5%, transparent 80%);
}

.cl-hero__aurora { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.cl-hero__aurora span {
  position: absolute;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: cl-drift 18s ease-in-out infinite alternate;
}

.cl-hero__aurora span:nth-child(1) { top: -40%; left: -10%; background: var(--dashboard-hero-end); }
.cl-hero__aurora span:nth-child(2) { bottom: -50%; right: -15%; background: color-mix(in srgb, var(--dashboard-highlight) 70%, transparent); animation-delay: -6s; }
.cl-hero__aurora span:nth-child(3) { top: 30%; left: 40%; width: 20rem; height: 20rem; background: color-mix(in srgb, #db2777 55%, transparent); opacity: 0.3; animation-delay: -12s; }

@keyframes cl-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(3rem, 2rem, 0) scale(1.15); }
}

.cl-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  align-items: center;
}

.cl-hero__content { display: grid; gap: 1.1rem; min-width: 0; }

.cl-hero__badges { margin: 0; }

.cl-hero__title {
  margin: 0;
  color: var(--cl-ink);
  font-size: var(--cl-step-hero);
  font-weight: 700;
  line-height: 1.04;
}

.cl-word {
  display: inline-block;
  animation: cl-word-in 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 70ms + 120ms);
}

.cl-word:nth-last-child(-n + 2) {
  background: linear-gradient(95deg, #ffffff 0%, var(--dashboard-highlight) 45%, #f9a8d4 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: cl-word-in 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both, cl-shimmer 6s ease-in-out 1.2s infinite alternate;
  animation-delay: calc(var(--i, 0) * 70ms + 120ms), 1.2s;
}

@keyframes cl-word-in {
  from { opacity: 0; transform: translateY(0.45em); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes cl-shimmer {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

.cl-hero__tagline {
  max-width: 38rem;
  margin: 0;
  color: var(--cl-ink-soft);
  font-size: var(--cl-step-lead);
  line-height: 1.6;
}

.cl-hero__rotator {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
  min-height: 1.8em;
  margin: 0;
  color: var(--cl-ink-soft);
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
  font-weight: 600;
}

.cl-rotator { color: var(--dashboard-highlight); font-weight: 700; }

.cl-caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: -0.2rem;
  background: var(--dashboard-highlight);
  align-self: center;
  animation: cl-blink 1s steps(1) infinite;
}

@keyframes cl-blink { 50% { opacity: 0; } }

.cl-hero__social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  margin: 0;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--cl-glass-line);
  border-radius: 999px;
  background: var(--cl-glass);
  color: var(--cl-ink-soft);
  font-size: 0.86rem;
}

.cl-hero__social strong { color: var(--cl-ink); }

.cl-hero__pulse {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: cl-pulse 1.8s ease-out infinite;
}

@keyframes cl-pulse { to { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } }

.cl-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.35rem; }

/* "Available on" -- shown only when an admin restricted the course's platforms */
.cl-hero__platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0.2rem 0 0;
  color: var(--cl-ink-soft);
  font-size: 0.84rem;
}

.cl-hero__platforms-label { margin-right: 0.15rem; font-weight: 700; }

/* Buttons */
.cl-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.2rem;
  overflow: hidden;
  padding: 0.75rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 1rem;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.cl-btn svg { width: 1.15rem; height: 1.15rem; }

.cl-btn:hover { transform: translateY(-2px); text-decoration: none; }

.cl-btn:focus-visible { outline: 3px solid var(--dashboard-highlight); outline-offset: 3px; }

.cl-btn--primary {
  background: linear-gradient(135deg, #ffffff 0%, color-mix(in srgb, var(--dashboard-highlight) 60%, #ffffff) 100%);
  color: var(--dashboard-hero-start);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
}

.cl-btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.4) 50%, transparent 65%);
  pointer-events: none;
  mix-blend-mode: overlay;
  transform: translateX(-120%);
  animation: cl-sheen 3.8s ease-in-out 2s infinite;
}

@keyframes cl-sheen {
  0%, 55% { transform: translateX(-120%); }
  80%, 100% { transform: translateX(120%); }
}

.cl-btn__price { opacity: 0.75; font-weight: 600; }

.cl-btn--glass {
  border-color: var(--cl-glass-line);
  background: var(--cl-glass);
  color: var(--cl-ink);
  backdrop-filter: blur(8px);
}

.cl-btn--glass:hover { background: rgba(255, 255, 255, 0.16); }

.cl-btn--light { background: #ffffff; color: #1e1b4b; box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2); }

.cl-btn--sm { min-height: 2.6rem; padding: 0.5rem 1.05rem; font-size: 0.9rem; border-radius: 0.85rem; }

/* Media: video / cover + chapter peek */
.cl-hero__media { display: grid; gap: 1rem; min-width: 0; }

.cl-video,
.cl-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #05060f;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.cl-video::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 0;
  border-radius: inherit;
  background: conic-gradient(from var(--cl-angle, 0deg), var(--dashboard-highlight), #f472b6, var(--dashboard-hero-end), var(--dashboard-highlight));
  animation: cl-spin 6s linear infinite;
  opacity: 0.85;
}

@property --cl-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes cl-spin { to { --cl-angle: 360deg; } }

.cl-video__poster,
.cl-video iframe {
  position: absolute;
  inset: 3px;
  z-index: 1;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  border: 0;
  border-radius: calc(1.25rem - 3px);
}

.cl-video__poster {
  display: block;
  overflow: hidden;
  padding: 0;
  background: #05060f;
  cursor: pointer;
}

.cl-video__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 500ms ease;
}

.cl-video__poster:hover img { transform: scale(1.07); }

.cl-video__poster:focus-visible { outline: 3px solid var(--dashboard-highlight); outline-offset: -6px; }

.cl-video__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 6, 15, 0.05) 20%, rgba(5, 6, 15, 0.55) 60%, rgba(5, 6, 15, 0.92) 100%);
}

.cl-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: #ffffff;
  color: var(--dashboard-hero-mid);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55), 0 16px 34px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, -50%);
  animation: cl-ring 2s ease-out infinite;
  transition: transform 220ms ease;
}

.cl-video__poster:hover .cl-video__play { transform: translate(-50%, -50%) scale(1.08); }

.cl-video__play svg { width: 2rem; height: 2rem; margin-left: 0.3rem; }

@keyframes cl-ring { to { box-shadow: 0 0 0 22px rgba(255, 255, 255, 0), 0 16px 34px rgba(0, 0, 0, 0.4); } }

.cl-video__label {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1rem;
  display: grid;
  gap: 0.1rem;
  color: #ffffff;
  text-align: left;
}

.cl-video__label strong { font-size: 1.05rem; }

.cl-video__label small { color: rgba(255, 255, 255, 0.75); font-size: 0.82rem; }

.cl-cover {
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--dashboard-highlight) 45%, transparent) 0%, transparent 60%),
    linear-gradient(135deg, var(--dashboard-hero-end), var(--dashboard-hero-start));
}

.cl-cover__monogram { color: rgba(255, 255, 255, 0.92); font-size: clamp(3rem, 2rem + 4vw, 5rem); font-weight: 700; }

.cl-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* When a course has no real video or thumbnail, show useful course facts in
   the visual column. This is shared, data-driven UI rather than placeholder
   artwork, so every course still communicates a concrete learning route. */
.cl-course-path {
  position: relative;
  padding: clamp(1.1rem, 0.9rem + 1vw, 1.6rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.35rem;
  background: rgba(14, 12, 45, 0.5);
  box-shadow: 0 26px 55px rgba(3, 2, 20, 0.35);
  backdrop-filter: blur(14px);
}

.cl-course-path::after {
  position: absolute;
  top: -4rem;
  right: -4rem;
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  background: rgba(202, 187, 255, 0.16);
  content: "";
  pointer-events: none;
}

.cl-course-path__eyebrow {
  margin: 0 0 0.85rem;
  color: #ddd6fe;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cl-course-path ol {
  position: relative;
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
  list-style: none;
}

.cl-course-path ol::before {
  position: absolute;
  top: 1.4rem;
  bottom: 1.4rem;
  left: 1.1rem;
  width: 2px;
  background: linear-gradient(#a78bfa, #67e8f9, #f9a8d4);
  content: "";
  opacity: 0.55;
}

.cl-course-path li {
  position: relative;
  display: grid;
  min-width: 0;
  padding: 0.75rem;
  grid-template-columns: 2.3rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.06);
}

.cl-course-path li > span:last-child { display: grid; min-width: 0; gap: 0.05rem; }
.cl-course-path li strong { color: #ffffff; font-size: 0.98rem; }
.cl-course-path li small { color: rgba(255, 255, 255, 0.7); font-size: 0.82rem; line-height: 1.35; }

.cl-course-path__number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0.75rem;
  background: #312783;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
}

.cl-peek {
  padding: 1rem 1.1rem;
  border: 1px solid var(--cl-glass-line);
  border-radius: 1.1rem;
  background: var(--cl-glass);
  backdrop-filter: blur(12px);
}

.cl-peek__title {
  margin: 0 0 0.6rem;
  color: var(--dashboard-highlight);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cl-peek__list { display: grid; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }

.cl-peek__list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  color: var(--cl-ink-soft);
  font-size: 0.9rem;
}

.cl-peek__num { color: rgba(255, 255, 255, 0.45); font-size: 0.78rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.cl-peek__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cl-peek__tag {
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.68rem;
  font-weight: 700;
}

.cl-peek__list li.is-open { color: var(--cl-ink); }

.cl-peek__list li.is-open .cl-peek__tag { background: rgba(34, 197, 94, 0.22); color: #86efac; }

.cl-peek__more { display: inline-block; margin-top: 0.6rem; color: var(--dashboard-highlight); font-size: 0.84rem; font-weight: 700; text-decoration: none; }

.cl-peek__more:hover { text-decoration: underline; }

/* ---------- Stats ---------- */
.cl-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1rem;
  margin: -3.25rem clamp(0.75rem, 3vw, 2.5rem) 0;
  padding: 0;
  list-style: none;
  position: relative;
  z-index: 2;
}

.cl-stat {
  display: grid;
  gap: 0.15rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--dashboard-border);
  border-radius: 1.2rem;
  background: var(--dashboard-surface);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--dashboard-text) 10%, transparent);
}

.cl-stat__value {
  background: linear-gradient(120deg, var(--dashboard-accent-deep), var(--dashboard-accent) 60%, #db2777);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.cl-stat__value--text { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); }

.cl-stat__label { color: var(--dashboard-muted); font-size: 0.86rem; font-weight: 600; }

/* ---------- Journey ---------- */
.cl-journey {
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  border: 1px solid var(--dashboard-border);
  border-radius: var(--cl-radius);
  background:
    radial-gradient(80% 120% at 0% 0%, color-mix(in srgb, var(--dashboard-accent) 8%, transparent) 0%, transparent 60%),
    var(--dashboard-surface);
}

.cl-journey__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cl-journey__steps::before {
  content: "";
  position: absolute;
  top: 1.35rem;
  left: 1.5rem;
  right: 1.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--dashboard-accent), var(--dashboard-highlight), #db2777);
  opacity: 0.35;
}

.cl-journey__steps li { position: relative; display: grid; gap: 0.35rem; }

.cl-journey__num {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--dashboard-accent), var(--dashboard-accent-deep));
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 0 0 6px var(--dashboard-surface), 0 10px 20px color-mix(in srgb, var(--dashboard-accent) 30%, transparent);
}

.cl-journey__steps strong { margin-top: 0.4rem; color: var(--dashboard-heading); font-size: 1.02rem; }

.cl-journey__steps small { color: var(--dashboard-muted); font-size: 0.88rem; line-height: 1.5; }

/* ---------- Existing content, restyled ---------- */
.cl-page .course-detail-layout { gap: 1.5rem; }

.cl-page .course-detail-layout__main > section,
.cl-page .public-card {
  border-radius: var(--cl-radius);
}

.cl-page .course-detail-layout__main h2 {
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.75rem);
  font-weight: 700;
}

.cl-page .course-overview-markdown,
.cl-page .course-features-markdown {
  color: var(--dashboard-text);
  font-size: 1.05rem;
  line-height: 1.75;
}

.cl-page .course-overview-markdown :is(p, li),
.cl-page .course-features-markdown :is(p, li) {
  font-size: inherit;
  line-height: inherit;
}

/* Enroll card */
.cl-page .course-summary-card {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--dashboard-accent) 30%, var(--dashboard-border));
  border-radius: var(--cl-radius);
  box-shadow: 0 24px 50px color-mix(in srgb, var(--dashboard-accent) 16%, transparent);
}

.cl-page .course-summary-card::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg, var(--dashboard-accent), var(--dashboard-highlight), #db2777);
}

.cl-page .course-summary-card__price {
  font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem);
  font-weight: 700;
  line-height: 1.15;
}

/* Enroll card: one type scale -- 0.78rem labels, 0.9rem body, 700 actions */
.cl-page .course-summary-card { padding: 1.35rem 1.35rem 1.25rem; }

.cl-page .course-summary-card::before { margin: -1.35rem -1.35rem 1.1rem; }

.cl-page .course-summary-card__price { display: grid; gap: 0.1rem; }

.cl-price__label {
  color: var(--dashboard-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cl-price__amount {
  background: linear-gradient(120deg, var(--dashboard-heading) 30%, var(--dashboard-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(2rem, 1.6rem + 1.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.cl-page .course-summary-card__price-sub { color: var(--dashboard-muted); font-size: 0.86rem; line-height: 1.5; }

.cl-page .course-summary-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.cl-page .course-summary-card__actions > * { grid-column: 1 / -1; }

.cl-page .course-summary-card__actions > .cl-info-btn {
  grid-column: auto;
  min-height: 2.5rem;
  gap: 0.3rem;
  padding: 0.4rem 0.35rem;
  border-radius: 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.cl-page .course-summary-card__actions > .cl-info-btn svg { width: 0.95rem; height: 0.95rem; }

.cl-page .course-summary-card__actions .btn,
.cl-page .course-summary-card__actions button {
  border-radius: 0.85rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.cl-page .course-summary-card__actions .btn:not(.btn-secondary) {
  min-height: 3rem;
  background: linear-gradient(135deg, var(--dashboard-accent), var(--dashboard-accent-deep));
  box-shadow: 0 12px 24px color-mix(in srgb, var(--dashboard-accent) 32%, transparent);
}

.cl-page .course-summary-card__specs-title {
  color: var(--dashboard-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.cl-page .course-specs-list li {
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--dashboard-border);
  font-size: 0.86rem;
}

.cl-page .course-specs-list li:last-child { border-bottom: 0; }

.cl-page .course-specs-list .spec-label { color: var(--dashboard-muted); font-weight: 500; }

.cl-page .course-specs-list .spec-value { color: var(--dashboard-heading); font-weight: 700; }

.cl-page .course-summary-card__guarantee {
  border: 1px solid color-mix(in srgb, #16a34a 30%, var(--dashboard-border));
  border-radius: 0.8rem;
  background: color-mix(in srgb, #16a34a 6%, var(--dashboard-surface));
  font-size: 0.8rem;
}

.cl-page #enroll-card { scroll-margin-top: 5.5rem; }

.cl-page #enroll-card.is-spotlit .course-summary-card { animation: cl-spot 1.6s ease-out 1; }

@keyframes cl-spot {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--dashboard-accent) 70%, transparent); }
  60% { box-shadow: 0 0 0 14px color-mix(in srgb, var(--dashboard-accent) 0%, transparent); }
  100% { box-shadow: 0 24px 50px color-mix(in srgb, var(--dashboard-accent) 16%, transparent); }
}

/* ---------- Content blocks below the journey ---------- */
.cl-block-head { margin-bottom: 1.1rem; }

.cl-block-head__eyebrow {
  margin: 0 0 0.3rem;
  color: var(--dashboard-accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cl-block-head h2,
.cl-curriculum__head h2 {
  margin: 0;
  color: var(--dashboard-heading);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
}

.cl-page .course-detail-layout { gap: 1.5rem; margin-top: 0; }

.cl-page .course-detail-layout__main { gap: 1.25rem; }

/* Grid items default to min-width:auto. The certificate preview deliberately
   contains nowrap print-layout lines sized with container units; without this
   guard their intrinsic width can expand the entire course body to several
   thousand pixels on a phone. The certificate then scales inside the real
   content width instead of defining that width. */
.cl-page .course-detail-layout__main > * { min-width: 0; }

/* What's included: feature cards */
.cl-features {
  padding: clamp(1.25rem, 1rem + 1.2vw, 1.9rem);
  border: 1px solid var(--dashboard-border);
  border-radius: var(--cl-radius);
  background:
    radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--dashboard-highlight) 10%, transparent) 0%, transparent 60%),
    var(--dashboard-surface);
}

.cl-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cl-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--dashboard-border);
  border-radius: 1.05rem;
  background: var(--dashboard-surface);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.cl-feature:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--dashboard-accent) 40%, var(--dashboard-border));
  box-shadow: 0 16px 32px color-mix(in srgb, var(--dashboard-accent) 12%, transparent);
}

.cl-feature__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, var(--dashboard-accent), var(--dashboard-accent-deep));
  color: #ffffff;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--dashboard-accent) 30%, transparent);
}

.cl-feature:nth-child(4n + 2) .cl-feature__icon { background: linear-gradient(135deg, #0891b2, #0e7490); box-shadow: 0 8px 18px rgba(8, 145, 178, 0.28); }
.cl-feature:nth-child(4n + 3) .cl-feature__icon { background: linear-gradient(135deg, #db2777, #9d174d); box-shadow: 0 8px 18px rgba(219, 39, 119, 0.26); }
.cl-feature:nth-child(4n + 4) .cl-feature__icon { background: linear-gradient(135deg, #f59e0b, #b45309); box-shadow: 0 8px 18px rgba(245, 158, 11, 0.28); }

.cl-feature__icon svg { width: 1.25rem; height: 1.25rem; }

.cl-feature__body { display: grid; gap: 0.25rem; min-width: 0; }

.cl-feature__body strong { color: var(--dashboard-heading); font-size: 1.02rem; line-height: 1.35; }

.cl-feature__body span { color: var(--dashboard-muted); font-size: 0.94rem; line-height: 1.6; }

/* About card */
.cl-page .course-detail-layout__main > section:not(.cl-features):not(.cl-curriculum) {
  padding: clamp(1.25rem, 1rem + 1.2vw, 1.9rem);
  border-radius: var(--cl-radius);
}

/* ---------- Curriculum ---------- */
.cl-page .cl-curriculum {
  padding: clamp(1.25rem, 1rem + 1.2vw, 1.9rem);
  border-radius: var(--cl-radius);
}

.cl-curriculum__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cl-curriculum__sub { margin: 0.35rem 0 0; color: var(--dashboard-muted); font-size: 0.95rem; }

.cl-curriculum__stats { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }

.cl-curriculum__stats li {
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--dashboard-border);
  border-radius: 999px;
  background: var(--dashboard-surface);
  color: var(--dashboard-muted);
  font-size: 0.85rem;
}

.cl-curriculum__stats strong { color: var(--dashboard-heading); font-size: 1rem; }

.cl-curriculum__stats li.is-free { border-color: color-mix(in srgb, #16a34a 40%, var(--dashboard-border)); background: color-mix(in srgb, #16a34a 8%, var(--dashboard-surface)); }

.cl-curriculum__stats li.is-free strong { color: #15803d; }

.cl-preview-lessons {
  border-color: color-mix(in srgb, #16a34a 34%, var(--dashboard-border));
  background: linear-gradient(145deg, color-mix(in srgb, #16a34a 7%, var(--dashboard-surface)) 0%, var(--dashboard-surface) 58%);
}

.cl-preview-lessons .cl-block-head__eyebrow { color: #15803d; }

.cl-preview-lessons__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.8rem;
}

.cl-preview-lessons__title-row h2 { margin: 0; }

.cl-preview-lessons__syllabus-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--dashboard-accent) 34%, var(--dashboard-border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--dashboard-accent) 7%, var(--dashboard-surface));
  color: var(--dashboard-accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.cl-preview-lessons__syllabus-link:hover {
  border-color: var(--dashboard-accent);
  background: var(--dashboard-accent-soft);
  color: var(--dashboard-accent);
  transform: translateY(-1px);
}

.cl-preview-lessons__syllabus-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--dashboard-accent) 38%, transparent);
  outline-offset: 2px;
}

.cl-preview-lessons__syllabus-arrow { font-size: 1rem; line-height: 1; }

.cl-preview-lessons__list {
  border-color: color-mix(in srgb, #16a34a 28%, var(--dashboard-border));
}

.cl-curriculum #chapters-title { scroll-margin-top: 5.5rem; }

.cl-curriculum__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.cl-curriculum__search {
  position: relative;
  display: flex;
  flex: 1 1 16rem;
  align-items: center;
}

.cl-curriculum__search svg {
  position: absolute;
  left: 0.85rem;
  width: 1.05rem;
  height: 1.05rem;
  color: var(--dashboard-muted);
  pointer-events: none;
}

.cl-curriculum__search input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.9rem 0.5rem 2.5rem;
  border: 1px solid var(--dashboard-border);
  border-radius: 0.9rem;
  background: var(--dashboard-surface);
  color: var(--dashboard-text);
  font-size: 0.95rem;
}

.cl-curriculum__search input:focus {
  outline: none;
  border-color: var(--dashboard-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dashboard-accent) 18%, transparent);
}

.cl-chip-btn {
  min-height: 2.75rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--dashboard-border);
  border-radius: 0.9rem;
  background: var(--dashboard-surface);
  color: var(--dashboard-heading);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.cl-chip-btn:hover { border-color: var(--dashboard-accent); color: var(--dashboard-accent); }

.cl-chip-btn:focus-visible { outline: 3px solid var(--dashboard-accent); outline-offset: 2px; }

.cl-curriculum__status { flex-basis: 100%; margin: 0; color: var(--dashboard-muted); font-size: 0.86rem; }

/* ==========================================================================
   Course Curriculum: Step-by-Step Learning Roadmap & Hierarchy
   Universal architecture for all courses (1-tier, 2-tier, or multi-tier)
   ========================================================================== */
.cl-curriculum .curriculum-tree {
  display: grid;
  gap: 0.85rem;
  overflow: visible;
  border: 0;
  counter-reset: cl-section;
}

/* Depth 0: Learning Step / Phase Milestone Card */
.cl-curriculum .curriculum-tree__node[data-depth="0"] {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--dashboard-border);
  border-radius: 1rem;
  background: var(--dashboard-surface);
  counter-increment: cl-section;
  counter-reset: cl-sub;
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.03);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.cl-curriculum .curriculum-tree__node[data-depth="0"]:hover {
  border-color: color-mix(in srgb, var(--dashboard-accent) 30%, var(--dashboard-border));
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.06);
}

.cl-curriculum .curriculum-tree__node[data-depth="0"][open] {
  border-color: color-mix(in srgb, var(--dashboard-accent) 38%, var(--dashboard-border));
  box-shadow: 0 8px 24px color-mix(in srgb, var(--dashboard-accent) 9%, transparent);
}

.cl-curriculum .curriculum-tree__node[hidden] { display: none; }

/* Depth 0 Header: Step milestone row */
.cl-curriculum .curriculum-tree__node[data-depth="0"] > .curriculum-tree__header:not(.curriculum-tree__header--locked),
.cl-curriculum .curriculum-tree__node[data-depth="0"] > .curriculum-tree__header--locked .curriculum-tree__header-link {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.8rem;
  min-height: 0;
  padding: 0.85rem 1.15rem;
  background: transparent;
  color: var(--dashboard-heading);
  cursor: pointer;
  transition: background 160ms ease;
}

.cl-curriculum .curriculum-tree__node[data-depth="0"][open] > .curriculum-tree__header:not(.curriculum-tree__header--locked) {
  background: color-mix(in srgb, var(--dashboard-accent) 4%, var(--dashboard-surface));
  border-bottom: 1px solid color-mix(in srgb, var(--dashboard-accent) 14%, var(--dashboard-border));
}

.cl-curriculum .curriculum-tree__node[data-depth="0"] .curriculum-tree__title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1.02rem;
  font-weight: 750;
  line-height: 1.35;
  color: var(--dashboard-heading);
}

/* Step Milestone Badge: e.g. "Step 01", "Step 02", "Step 03" */
.cl-curriculum .curriculum-tree__node[data-depth="0"] > .curriculum-tree__header:not(.curriculum-tree__header--locked)::before,
.cl-curriculum .curriculum-tree__node[data-depth="0"] > .curriculum-tree__header--locked .curriculum-tree__header-link::before {
  content: "Step " counter(cl-section, decimal-leading-zero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  order: -2;
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--dashboard-accent) 10%, var(--dashboard-surface));
  border: 1px solid color-mix(in srgb, var(--dashboard-accent) 22%, transparent);
  color: var(--dashboard-accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 180ms ease;
}

.cl-curriculum .curriculum-tree__node[data-depth="0"][open] > .curriculum-tree__header::before {
  background: linear-gradient(135deg, var(--dashboard-accent), var(--dashboard-accent-deep));
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--dashboard-accent) 28%, transparent);
}

.cl-curriculum .curriculum-tree__node[data-depth="0"] > .curriculum-tree__body {
  padding: 0.65rem 0.65rem 0.85rem;
}

/* Locked Step Header */
.cl-curriculum .curriculum-tree__header--locked { padding: 0; background: transparent; }
.cl-curriculum .curriculum-tree__header--locked .curriculum-tree__header-link { width: 100%; text-decoration: none; }
.cl-curriculum .curriculum-tree__node--locked { background: color-mix(in srgb, var(--dashboard-muted) 4%, var(--dashboard-surface)); }
.cl-curriculum .curriculum-tree__node--locked .curriculum-tree__title { color: var(--dashboard-muted); font-weight: 600; }
.cl-curriculum .curriculum-tree__node--locked .curriculum-tree__header-link:hover .curriculum-tree__count::after { content: " · Unlock"; color: var(--dashboard-accent); }
.cl-curriculum .curriculum-tree__node--locked .curriculum-tree__chevron { display: none; }

.cl-curriculum .curriculum-tree__lock-icon { order: -1; font-size: 0.85rem; opacity: 0.8; }
.cl-curriculum .curriculum-tree__chevron { order: 10; margin-left: 0.15rem; flex: 0 0 auto; }

/* Chapter Count Badge */
.cl-curriculum .curriculum-tree__count {
  flex: 0 0 auto;
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--dashboard-border);
  border-radius: 999px;
  background: var(--dashboard-surface);
  color: var(--dashboard-muted);
  font-size: 0.74rem;
  font-weight: 650;
  white-space: nowrap;
}

.cl-curriculum .curriculum-tree__free {
  flex: 0 0 auto;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

/* ==========================================================================
   Depth 1: Subject / Course Track Card
   Inside a Phase/Step, children represent individual Courses or Tracks
   ========================================================================== */
.cl-curriculum .curriculum-tree__node[data-depth="1"] {
  position: relative;
  margin: 0.65rem 0;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--dashboard-accent) 18%, var(--dashboard-border));
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--dashboard-surface-soft, rgba(0,0,0,0.02)) 80%, var(--dashboard-surface));
  counter-increment: cl-sub;
  counter-reset: cl-subsub;
  overflow: hidden;
  transition: all 180ms ease;
}

.cl-curriculum .curriculum-tree__node[data-depth="1"]:hover {
  border-color: color-mix(in srgb, var(--dashboard-accent) 32%, var(--dashboard-border));
  background: var(--dashboard-surface);
}

.cl-curriculum .curriculum-tree__node[data-depth="1"][open] {
  background: var(--dashboard-surface);
  border-color: color-mix(in srgb, var(--dashboard-accent) 28%, var(--dashboard-border));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.cl-curriculum .curriculum-tree__node[data-depth="1"] > .curriculum-tree__header:not(.curriculum-tree__header--locked),
.cl-curriculum .curriculum-tree__node[data-depth="1"] > .curriculum-tree__header--locked .curriculum-tree__header-link {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.68rem 0.95rem;
  color: var(--dashboard-heading);
  cursor: pointer;
  transition: background 150ms ease;
}

.cl-curriculum .curriculum-tree__node[data-depth="1"][open] > .curriculum-tree__header:not(.curriculum-tree__header--locked) {
  border-bottom: 1px solid color-mix(in srgb, var(--dashboard-border) 80%, transparent);
  background: color-mix(in srgb, var(--dashboard-surface-soft, rgba(0,0,0,0.02)) 40%, var(--dashboard-surface));
}

.cl-curriculum .curriculum-tree__node[data-depth="1"] > .curriculum-tree__header:not(.curriculum-tree__header--locked)::before,
.cl-curriculum .curriculum-tree__node[data-depth="1"] > .curriculum-tree__header--locked .curriculum-tree__header-link::before {
  content: "Track " counter(cl-sub);
  order: -2;
  flex: 0 0 auto;
  padding: 0.16rem 0.55rem;
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--dashboard-accent) 9%, var(--dashboard-surface));
  border: 1px solid color-mix(in srgb, var(--dashboard-accent) 20%, transparent);
  color: var(--dashboard-accent);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  transition: all 180ms ease;
}

.cl-curriculum .curriculum-tree__node[data-depth="1"][open] > .curriculum-tree__header::before {
  background: var(--dashboard-accent);
  color: #ffffff;
  border-color: transparent;
}

.cl-curriculum .curriculum-tree__node[data-depth="1"] .curriculum-tree__title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.35;
}

.cl-curriculum .curriculum-tree__node[data-depth="1"] > .curriculum-tree__body {
  padding: 0.45rem 0.55rem 0.65rem;
}

/* ==========================================================================
   Depth 2: Module / Topic Unit
   Inside a Course/Track, children represent Modules
   ========================================================================== */
.cl-curriculum .curriculum-tree__node[data-depth="2"] {
  position: relative;
  margin: 0.45rem 0.4rem;
  padding: 0;
  border: 1px solid var(--dashboard-border);
  border-radius: 0.7rem;
  background: var(--dashboard-surface);
  counter-increment: cl-subsub;
  overflow: hidden;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.cl-curriculum .curriculum-tree__node[data-depth="2"]:hover {
  border-color: color-mix(in srgb, var(--dashboard-accent) 26%, var(--dashboard-border));
}

.cl-curriculum .curriculum-tree__node[data-depth="2"][open] {
  border-color: color-mix(in srgb, var(--dashboard-accent) 26%, var(--dashboard-border));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.cl-curriculum .curriculum-tree__node[data-depth="2"] > .curriculum-tree__header:not(.curriculum-tree__header--locked),
.cl-curriculum .curriculum-tree__node[data-depth="2"] > .curriculum-tree__header--locked .curriculum-tree__header-link {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.85rem;
  color: var(--dashboard-heading);
  cursor: pointer;
  transition: background 150ms ease;
}

.cl-curriculum .curriculum-tree__node[data-depth="2"][open] > .curriculum-tree__header:not(.curriculum-tree__header--locked) {
  border-bottom: 1px solid color-mix(in srgb, var(--dashboard-border) 80%, transparent);
  background: color-mix(in srgb, var(--dashboard-accent) 2%, var(--dashboard-surface));
}

/* Subtle, clean module indicator bullet */
.cl-curriculum .curriculum-tree__node[data-depth="2"] > .curriculum-tree__header:not(.curriculum-tree__header--locked)::before,
.cl-curriculum .curriculum-tree__node[data-depth="2"] > .curriculum-tree__header--locked .curriculum-tree__header-link::before {
  content: "";
  display: inline-block;
  order: -2;
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--dashboard-accent);
  opacity: 0.6;
  transition: opacity 160ms ease, box-shadow 160ms ease;
}

.cl-curriculum .curriculum-tree__node[data-depth="2"][open] > .curriculum-tree__header::before {
  opacity: 1;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dashboard-accent) 22%, transparent);
}

.cl-curriculum .curriculum-tree__node[data-depth="2"] .curriculum-tree__title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.35;
}

.cl-curriculum .curriculum-tree__node[data-depth="2"] > .curriculum-tree__body {
  padding: 0.3rem 0.4rem 0.5rem;
}

/* Depth >= 3: Fallback for deeper hierarchies */
.cl-curriculum .curriculum-tree__node:not([data-depth="0"]):not([data-depth="1"]):not([data-depth="2"]) {
  position: relative;
  margin: 0.4rem 0.5rem;
  padding: 0 0 0 0.65rem;
  border: 0;
  border-left: 2px solid color-mix(in srgb, var(--dashboard-accent) 22%, var(--dashboard-border));
}

/* ==========================================================================
   Chapter List & Rows: Sequential, clean lessons inside the module
   ========================================================================== */
.cl-curriculum .chapter-list {
  display: grid;
  gap: 0;
  margin: 0.35rem 0.45rem 0.45rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--dashboard-border);
  border-radius: 0.65rem;
  background: var(--dashboard-surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.cl-curriculum .chapter-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 0;
  padding: 0.55rem 0.85rem;
  border: 0;
  border-top: 1px solid var(--dashboard-border);
  border-radius: 0;
  background: var(--dashboard-surface);
  font-size: 0.88rem;
  transition: background 150ms ease;
}

.cl-curriculum .chapter-list__item:first-child { border-top: 0; }

.cl-curriculum .chapter-list__item:hover {
  background: color-mix(in srgb, var(--dashboard-accent) 4%, var(--dashboard-surface));
}

.cl-curriculum .chapter-list__item[hidden] { display: none; }

.cl-curriculum .chapter-list__main-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1 1 auto;
}

.cl-curriculum .chapter-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.85rem;
  height: 1.6rem;
  padding: 0;
  border-radius: 0.45rem;
  background: color-mix(in srgb, var(--dashboard-accent) 9%, var(--dashboard-surface));
  border: 1px solid color-mix(in srgb, var(--dashboard-accent) 18%, transparent);
  color: var(--dashboard-accent);
  font-size: 0.74rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.cl-curriculum .chapter-list__link,
.cl-curriculum .chapter-list__text {
  color: var(--dashboard-heading);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
}

.cl-curriculum .chapter-list__item--locked .chapter-list__text {
  color: var(--dashboard-text);
  font-weight: 500;
}

.cl-curriculum .chapter-list__action-group {
  flex: 0 0 auto;
}

.cl-curriculum .chapter-action-btn {
  height: 1.85rem;
  min-width: 0;
  padding: 0 0.75rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.cl-curriculum .chapter-action-btn--purchase {
  border: 1px dashed color-mix(in srgb, var(--dashboard-accent) 35%, var(--dashboard-border));
  background: transparent;
  color: var(--dashboard-muted);
}

.cl-curriculum .chapter-action-btn--purchase::before {
  content: "\1F512\FE0E";
  margin-right: 0.3rem;
  font-size: 0.7rem;
  opacity: 0.7;
}

/* Sections already group the chapters; per-row category is hidden */
.cl-curriculum .chapter-list__category { display: none; }

/* ---------- Enroll card pinned beside long content (desktop) ---------- */
@media (min-width: 960px) {
  .cl-page .course-detail-layout__side {
    position: relative;
    top: auto;
    align-self: stretch;
    display: block;
  }

  .cl-page .course-summary-card.is-pinned {
    position: fixed;
    top: 24px;
    z-index: 20;
  }

  .cl-page .course-summary-card.is-pinned,
  .cl-page .course-summary-card.is-pinned-bottom {
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }

  .cl-page .course-summary-card.is-pinned::-webkit-scrollbar,
  .cl-page .course-summary-card.is-pinned-bottom::-webkit-scrollbar { display: none; }

  .cl-page .course-summary-card.is-compact .course-summary-card__specs,
  .cl-page .course-summary-card.is-compact .course-summary-card__guarantee { display: none; }

  .cl-page .course-summary-card.is-pinned-bottom {
    position: absolute;
    bottom: 0;
    z-index: 20;
  }
}

@media (max-width: 560px) {
  .cl-preview-lessons__syllabus-link { flex: 1 1 100%; justify-content: center; }
  .cl-curriculum__tools .cl-chip-btn { flex: 1 1 auto; }
  .cl-curriculum .chapter-action-btn span:first-child { font-size: 0.7rem; }
  .cl-curriculum .curriculum-tree__node[data-depth] > .curriculum-tree__header:not(.curriculum-tree__header--locked),
  .cl-curriculum .curriculum-tree__node[data-depth] > .curriculum-tree__header--locked .curriculum-tree__header-link {
    flex-wrap: wrap;
    row-gap: 0.35rem;
  }

  /* A phone cannot fit the step/track marker, lock/free state, a long
     translated title and the chapter count on one useful line. Keep the
     compact metadata together, then give every hierarchy title an
     uncluttered full-width line. This applies at every tree depth so the
     same squeezed-word failure cannot reappear in a nested module. */
  .cl-curriculum .curriculum-tree__node[data-depth] .curriculum-tree__title {
    order: 10;
    flex: 1 0 100%;
    min-width: 0;
    overflow-wrap: break-word;
  }

  .cl-curriculum .curriculum-tree__count {
    order: 1;
    margin-left: auto;
  }

  .cl-curriculum .curriculum-tree__chevron {
    order: 2;
    margin-left: 0;
  }

  .cl-curriculum .curriculum-tree__node[data-depth="0"] > .curriculum-tree__body { padding: 0.45rem 0.35rem 0.65rem; }
  .cl-curriculum .curriculum-tree__node[data-depth="1"] { margin: 0.45rem 0; }
  .cl-curriculum .curriculum-tree__node[data-depth="1"] > .curriculum-tree__body { padding: 0.35rem 0.25rem 0.45rem; }
  .cl-curriculum .curriculum-tree__node[data-depth="2"] { margin: 0.35rem 0.15rem; }
  .cl-curriculum .curriculum-tree__node:not([data-depth="0"]):not([data-depth="1"]):not([data-depth="2"]) { margin-left: 0.25rem; padding-left: 0.4rem; }
  .cl-curriculum .chapter-list { margin: 0.25rem 0.15rem 0.35rem; }
  .cl-curriculum .chapter-list__item { padding: 0.45rem 0.6rem; gap: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cl-feature { transition: none; }
  .cl-feature:hover { transform: none; }
}

/* ---------- Final CTA ---------- */
.cl-final {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  border-radius: var(--cl-radius);
  color: #ffffff;
  background:
    radial-gradient(100% 140% at 100% 0%, rgba(255, 255, 255, 0.2) 0%, transparent 55%),
    linear-gradient(135deg, var(--dashboard-accent-deep), var(--dashboard-accent) 50%, #db2777 130%);
  box-shadow: 0 24px 50px color-mix(in srgb, var(--dashboard-accent) 30%, transparent);
}

.cl-final__eyebrow { margin: 0; color: rgba(255, 255, 255, 0.8); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

.cl-final h2 { margin: 0.25rem 0 0; color: #ffffff; font-size: var(--cl-step-h2); font-weight: 700; }

.cl-final p:not(.cl-final__eyebrow) { margin: 0.35rem 0 0; color: rgba(255, 255, 255, 0.85); font-size: 1.02rem; }

.cl-final__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

.cl-final__price { color: rgba(255, 255, 255, 0.85); font-size: 1rem; }

.cl-final__price strong { color: #ffffff; font-size: 1.6rem; }

/* ---------- Floating enroll bar ---------- */
.cl-buybar {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(40rem, calc(100% - 1.5rem));
  padding: 0.6rem 0.6rem 0.6rem 1.1rem;
  border: 1px solid color-mix(in srgb, var(--dashboard-accent) 30%, var(--dashboard-border));
  border-radius: 1.1rem;
  background: color-mix(in srgb, var(--dashboard-surface) 90%, transparent);
  box-shadow: 0 18px 44px color-mix(in srgb, var(--dashboard-text) 22%, transparent);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translate(-50%, 140%);
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 240ms ease;
  pointer-events: none;
}

.cl-buybar.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

.cl-buybar__text { display: grid; flex: 1; min-width: 0; }

.cl-buybar__text strong { overflow: hidden; color: var(--dashboard-heading); font-size: 0.95rem; text-overflow: ellipsis; white-space: nowrap; }

.cl-buybar__text small { color: var(--dashboard-muted); font-size: 0.8rem; }

.cl-buybar .cl-btn--primary {
  background: linear-gradient(135deg, var(--dashboard-accent), var(--dashboard-accent-deep));
  color: var(--dashboard-on-accent, #ffffff);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--dashboard-accent) 35%, transparent);
}

/* ---------- Reveal on scroll (JS adds .cl-reveal) ---------- */
.cl-reveal { opacity: 0; transform: translateY(28px); transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1); }

.cl-reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cl-hero__grid { grid-template-columns: 1fr; }
  .cl-journey__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cl-journey__steps::before { display: none; }
}

@media (max-width: 560px) {
  .cl-hero { border-radius: var(--cl-radius); }
  .cl-hero__actions .cl-btn { flex: 1 1 100%; }
  .cl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: -2.25rem 0.5rem 0; gap: 0.6rem; }
  .cl-stat { padding: 0.85rem; }
  .cl-journey__steps { grid-template-columns: 1fr; gap: 1rem; }
  .cl-journey__steps li { grid-template-columns: auto 1fr; column-gap: 0.85rem; }
  .cl-journey__num { grid-row: span 2; width: 2.3rem; height: 2.3rem; font-size: 0.95rem; }
  .cl-journey__steps strong { margin-top: 0; }
  .cl-video__play { width: 4rem; height: 4rem; }
  .cl-video__label small { display: none; }
  .cl-video__label { bottom: 0.7rem; }
  .cl-final__actions, .cl-final__actions .cl-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .cl-hero__aurora span,
  .cl-word,
  .cl-word:nth-last-child(-n + 2),
  .cl-caret,
  .cl-hero__pulse,
  .cl-btn--primary::after,
  .cl-video::before,
  .cl-video__play { animation: none; }
  .cl-reveal { opacity: 1; transform: none; transition: none; }
  .cl-btn, .cl-video__poster img, .cl-buybar { transition: none; }
}

/* ---------- Localized landing additions (trust, audience, reasons, experience,
   certificate, teacher, FAQ). Theme tokens only; plain greens/golds keep
   their own contrast on every theme. ---------- */

/* Small headings read as clear pills, not faint caps. */
.cl-block-head__eyebrow {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 0.6rem;
  padding: 0.32rem 0.85rem;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  background: var(--dashboard-accent-soft);
  color: var(--dashboard-accent-deep);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  text-transform: none;
}

.cl-block-head__eyebrow::before {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--dashboard-accent);
  content: "";
}

.cl-block-head__lead {
  max-width: 52rem;
  margin: 0.6rem 0 0;
  color: var(--dashboard-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.cl-text-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.35rem;
  color: var(--dashboard-accent-deep);
  font-weight: 700;
  text-decoration: none;
}

.cl-text-link:hover { text-decoration: underline; text-underline-offset: 0.2rem; }

/* Hero benefit chips */
.cl-hero__chips {
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
}

.cl-hero__chips li {
  display: inline-flex;
  padding: 0.38rem 0.75rem;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--cl-glass-line);
  border-radius: 999px;
  background: var(--cl-glass);
  color: var(--cl-ink);
  font-size: 0.92rem;
  font-weight: 650;
}

.cl-hero__chips li span {
  display: grid;
  width: 1.15rem;
  height: 1.15rem;
  place-items: center;
  border-radius: 50%;
  background: #34d399;
  color: #06331f;
  font-size: 0.7rem;
  font-weight: 900;
}

/* Trust bar under the stats */
.cl-trust ul {
  display: grid;
  margin: 0;
  padding: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.4rem;
  border: 1px solid var(--dashboard-border);
  border-radius: var(--cl-radius);
  background: var(--dashboard-surface);
  list-style: none;
}

.cl-trust li {
  display: flex;
  padding: 0.5rem;
  align-items: center;
  gap: 0.65rem;
}

.cl-trust li > span {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.8rem;
  background: var(--dashboard-accent-soft);
  color: var(--dashboard-accent-deep);
}

.cl-trust svg,
.cl-experience svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cl-trust p { display: grid; margin: 0; line-height: 1.3; }
.cl-trust strong { color: var(--dashboard-heading); font-size: 0.95rem; }
.cl-trust small { color: var(--dashboard-muted); font-size: 0.82rem; }

/* Shared card shell for the new sections */
.cl-who,
.cl-why,
.cl-experience,
.cl-cert,
.cl-teacher,
.cl-vs,
.cl-faq {
  padding: clamp(1.25rem, 1rem + 1.2vw, 1.9rem);
  border: 1px solid var(--dashboard-border);
  border-radius: var(--cl-radius);
  background: var(--dashboard-surface);
}

/* Who is it for: persona cards */
.cl-who__grid {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.75rem;
  list-style: none;
}

.cl-who__card {
  display: grid;
  padding: 0.95rem;
  align-content: start;
  gap: 0.3rem;
  border: 1px solid var(--dashboard-border);
  border-left: 4px solid #10b981;
  border-radius: 1rem;
  background: color-mix(in srgb, #10b981 5%, var(--dashboard-surface));
}

.cl-who__check {
  display: grid;
  width: 1.6rem;
  height: 1.6rem;
  place-items: center;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 900;
}

.cl-who__card strong,
.cl-why__card strong { color: var(--dashboard-heading); font-size: 1.02rem; line-height: 1.35; }

.cl-who__card small,
.cl-why__card small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--dashboard-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

/* Why buy: numbered reasons */
.cl-why {
  background:
    radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--dashboard-accent) 9%, transparent) 0%, transparent 60%),
    var(--dashboard-surface);
}

.cl-why__grid {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0.75rem;
  list-style: none;
}

.cl-why__card {
  position: relative;
  display: grid;
  padding: 1rem 1rem 1rem 3.6rem;
  align-content: start;
  gap: 0.3rem;
  border: 1px solid var(--dashboard-border);
  border-radius: 1rem;
  background: var(--dashboard-surface);
}

.cl-why__num {
  position: absolute;
  top: 1rem;
  left: 0.9rem;
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, var(--dashboard-accent), var(--dashboard-accent-deep));
  color: var(--dashboard-on-accent);
  font-size: 0.85rem;
  font-weight: 800;
}

/* Learning experience tiles */
.cl-experience__grid {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 0.65rem;
  list-style: none;
}

.cl-experience__grid li {
  display: grid;
  padding: 0.9rem;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 0.7rem;
  row-gap: 0.1rem;
  border: 1px solid var(--dashboard-border);
  border-radius: 0.95rem;
  background: var(--dashboard-surface);
}

.cl-experience__grid li > span {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  grid-row: span 2;
  place-items: center;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--dashboard-accent), var(--dashboard-accent-deep));
  color: var(--dashboard-on-accent);
}

.cl-experience__grid li:nth-child(3n + 2) > span { background: linear-gradient(135deg, #0891b2, #0e7490); color: #ffffff; }
.cl-experience__grid li:nth-child(3n + 3) > span { background: linear-gradient(135deg, #f59e0b, #b45309); color: #ffffff; }

.cl-experience__grid strong { color: var(--dashboard-heading); font-size: 0.98rem; line-height: 1.3; }
.cl-experience__grid small { color: var(--dashboard-muted); font-size: 0.86rem; line-height: 1.4; }

/* Certificate */
.cl-cert {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 1.5rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(233, 167, 47, 0.14), transparent 45%),
    var(--dashboard-surface);
}

/* JobBridge AI teaser (partials/job-bridge-course-teaser.php): the
   certificate card layout without a sample image, so one column. */
.cl-jobs { grid-template-columns: minmax(0, 1fr); }
.cl-jobs .cl-cert__copy { max-width: 46rem; }

.cl-cert h2 { margin: 0; color: var(--dashboard-heading); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); line-height: 1.2; }

.cl-cert__rule {
  display: inline-flex;
  margin: 0.8rem 0 0;
  padding: 0.45rem 0.8rem;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #f3d38a;
  border-radius: 0.75rem;
  background: #fff6e2;
  color: #5c3d00;
  font-size: 0.95rem;
}

.cl-cert__rule span { color: #c98a12; font-weight: 900; }

.cl-cert__points {
  display: grid;
  margin: 0.9rem 0 0.4rem;
  padding: 0;
  gap: 0.45rem;
  list-style: none;
}

.cl-cert__points li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--dashboard-text);
  font-size: 0.97rem;
  line-height: 1.5;
}

.cl-cert__points li::before {
  position: absolute;
  top: 0.1rem;
  left: 0;
  display: grid;
  width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0b43c, #c98a12);
  color: #ffffff;
  content: "✓";
  font-size: 0.7rem;
  font-weight: 900;
}

.cl-cert__sample { min-width: 0; margin: 0; }
.cl-cert__sample .certificate-stage { border-radius: 1rem; }
.cl-cert__sample figcaption { margin-top: 0.55rem; color: var(--dashboard-muted); font-size: 0.85rem; text-align: center; }

/* Teacher */
.cl-teacher {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  align-items: center;
  gap: 1.4rem;
}

.cl-teacher__photo {
  position: relative;
  overflow: hidden;
  border-radius: 1.1rem;
  background: var(--dashboard-accent-soft);
  aspect-ratio: 4 / 5;
}

.cl-teacher__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }

.cl-teacher__years {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  left: 0.5rem;
  display: flex;
  margin: 0;
  padding: 0.45rem 0.6rem;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  color: #17213d;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.cl-teacher__years b { color: #3f32bd; font-size: 1.4rem; }

.cl-teacher__copy h2 { margin: 0; color: var(--dashboard-heading); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }

.cl-teacher__roles { display: flex; margin: 0.6rem 0 0; padding: 0; flex-wrap: wrap; gap: 0.35rem; list-style: none; }

.cl-teacher__roles li {
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--dashboard-border);
  border-radius: 999px;
  color: var(--dashboard-text);
  font-size: 0.84rem;
  font-weight: 700;
}

.cl-teacher__callout {
  display: grid;
  margin: 0.8rem 0 0;
  padding: 0.7rem 0.85rem;
  gap: 0.15rem;
  border: 1px solid #f3d38a;
  border-radius: 0.85rem;
  background: #fff6e2;
}

.cl-teacher__callout small { color: #8a5a00; font-size: 0.8rem; font-weight: 800; }
.cl-teacher__callout strong { color: #3a2500; font-size: 1rem; }
.cl-teacher__line { margin: 0.8rem 0 0.2rem; color: var(--dashboard-text); line-height: 1.6; }

/* FAQ */
.cl-faq__list { display: grid; gap: 0.6rem; }

.cl-faq details {
  border: 1px solid var(--dashboard-border);
  border-radius: 0.9rem;
  background: var(--dashboard-surface);
}

.cl-faq summary {
  display: flex;
  min-height: 3.3rem;
  padding: 0.85rem 1rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--dashboard-heading);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  list-style: none;
}

.cl-faq summary::-webkit-details-marker { display: none; }

.cl-faq summary span {
  display: grid;
  width: 1.6rem;
  height: 1.6rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--dashboard-accent-soft);
  color: var(--dashboard-accent-deep);
  transition: transform 180ms ease;
}

.cl-faq details[open] summary span { transform: rotate(45deg); }

.cl-faq details > p,
.cl-faq__plans { margin: 0; padding: 0 1rem 1rem; color: var(--dashboard-muted); font-size: 0.95rem; line-height: 1.6; }

.cl-faq__plans { display: grid; gap: 0.35rem; padding-bottom: 0.6rem; list-style: none; }

.cl-faq__plans li {
  display: flex;
  padding: 0.5rem 0.75rem;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--dashboard-border);
  border-radius: 0.7rem;
  color: var(--dashboard-text);
}

.cl-faq__plans b { color: var(--dashboard-heading); }

/* Desktop keeps the full syllabus/specifications visible. On narrow screens
   the same semantic content becomes an explicit disclosure, so the purchase
   decision and key outcomes are reachable without thousands of pixels of
   forced scrolling. */
.cl-mobile-curriculum-disclosure > summary,
.cl-mobile-specs > summary { display: none; }

.cl-mobile-curriculum-disclosure:not([open]) > .cl-mobile-curriculum-disclosure__body,
.cl-mobile-specs:not([open]) > .cl-mobile-specs__body { display: block; }

.cl-mobile-curriculum-disclosure__body,
.cl-mobile-specs__body { min-width: 0; }

@media (max-width: 959px) {
  .cl-page { gap: 1.1rem; }

  .cl-breadcrumb-shell .breadcrumb ol { min-height: 2.25rem; align-items: center; }
  .cl-breadcrumb-shell .breadcrumb li { display: none; }
  .cl-breadcrumb-shell .breadcrumb li:nth-child(2) { display: flex; }
  .cl-breadcrumb-shell .breadcrumb li:nth-child(2)::after { display: none; }
  .cl-breadcrumb-shell .breadcrumb li:nth-child(2) a::before { margin-right: 0.35rem; content: "\2190"; }

  .cl-hero { padding: clamp(1.25rem, 4vw, 2rem); }
  .cl-hero--with-path .cl-course-path { display: none; }
  .cl-hero--path-only .cl-hero__media { display: none; }
  .cl-hero__content { gap: 0.85rem; }

  .cl-page .course-detail-layout__side { order: -1; }

  .cl-mobile-curriculum-disclosure > summary {
    display: flex;
    min-height: 3rem;
    padding: 0.7rem 0.85rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 1px solid color-mix(in srgb, var(--dashboard-accent) 30%, var(--dashboard-border));
    border-radius: 0.85rem;
    background: color-mix(in srgb, var(--dashboard-accent) 7%, var(--dashboard-surface));
    color: var(--dashboard-heading);
    cursor: pointer;
    font-weight: 750;
    list-style: none;
  }

  .cl-mobile-curriculum-disclosure > summary::-webkit-details-marker { display: none; }

  .cl-mobile-curriculum-disclosure > summary strong {
    color: var(--dashboard-accent-deep);
    font-size: 0.82rem;
  }

  .cl-mobile-curriculum-disclosure > summary strong > span {
    display: inline-block;
    transition: transform 180ms ease;
  }

  .cl-mobile-curriculum-disclosure[open] > summary strong > span { transform: rotate(180deg); }

  .cl-mobile-curriculum-disclosure:not([open]) > .cl-mobile-curriculum-disclosure__body { display: none; }
  .cl-mobile-curriculum-disclosure__body { padding-top: 0.9rem; }

  /* Course Details (specifications): Always visible directly inside enroll card on mobile */
  .cl-mobile-specs > summary { display: none !important; }
  .cl-mobile-specs > .cl-mobile-specs__body,
  .cl-mobile-specs:not([open]) > .cl-mobile-specs__body { display: block !important; padding-top: 0.5rem; }

  .cl-trust ul,
  .cl-who__grid,
  .cl-features__grid,
  .cl-why__grid,
  .cl-experience__grid {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(16rem, 86%);
    gap: 0.7rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-color: color-mix(in srgb, var(--dashboard-accent) 35%, transparent) transparent;
    scrollbar-width: thin;
  }

  .cl-trust li,
  .cl-who__card,
  .cl-feature,
  .cl-why__card,
  .cl-experience__grid li { scroll-snap-align: start; }

  .cl-trust ul { padding: 0.65rem; grid-auto-columns: minmax(15rem, 78%); }
  /* Preview chapters are actions, not decorative cards. Keep every row fully
     visible on phones instead of showing a clipped next-card "peek" that can
     look like missing course content. */
  .cl-curriculum .cl-preview-lessons__list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.7rem;
    overflow: visible;
    border: 0;
    border-radius: 0;
  }
  .cl-curriculum .cl-preview-lessons__list > li {
    width: 100%;
    min-width: 0;
    border: 1px solid color-mix(in srgb, #16a34a 28%, var(--dashboard-border));
    border-radius: 0.8rem;
  }

  .cl-page .course-summary-card { box-shadow: 0 16px 34px color-mix(in srgb, var(--dashboard-accent) 13%, transparent); }
}

@media (max-width: 760px) {
  .cl-cert { grid-template-columns: minmax(0, 1fr); }

  .cl-teacher {
    grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
  }

  .cl-teacher__photo { width: 100%; max-width: none; margin: 0; }

  .cl-teacher__years {
    right: 0.3rem;
    bottom: 0.3rem;
    left: 0.3rem;
    padding: 0.3rem;
    gap: 0.25rem;
    font-size: 0.64rem;
  }

  .cl-teacher__years b { font-size: 1rem; }
}

@media (max-width: 560px) {
  .cl-page { --cl-radius: 1.1rem; }
  .cl-hero { border-radius: 1.1rem; }
  .cl-hero__title { font-size: clamp(1.85rem, 8.5vw, 2.55rem); line-height: 1.08; }
  .cl-hero__tagline { font-size: 1rem; line-height: 1.5; }

  .cl-hero__chips {
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .cl-hero__chips::-webkit-scrollbar { display: none; }
  .cl-hero__chips li { flex: 0 0 auto; font-size: 0.84rem; }
  .cl-hero__actions { margin-top: 0; }
  .cl-hero__actions .cl-btn { min-height: 2.85rem; }
  .cl-video, .cl-cover { border-radius: 1rem; }

  .cl-stats {
    display: grid;
    margin: -1.85rem 0.45rem 0;
    padding: 0 0 0.3rem;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 9.8rem;
    gap: 0.55rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }

  .cl-stats::-webkit-scrollbar { display: none; }
  .cl-stat { min-height: 5.35rem; padding: 0.75rem 0.85rem; scroll-snap-align: start; }
  .cl-stat__value { font-size: 1.55rem; }
  .cl-stat__value--text { font-size: 1.02rem; }

  .cl-page .course-detail-layout { gap: 1rem; }
  .cl-page .course-detail-layout__main { gap: 1rem; }
  .cl-page .course-summary-card { padding: 1.05rem; }
  .cl-page .course-summary-card::before { margin: -1.05rem -1.05rem 0.85rem; }

  .cl-page .course-detail-layout__main > section,
  .cl-page .cl-curriculum,
  .cl-who,
  .cl-why,
  .cl-experience,
  .cl-cert,
  .cl-teacher,
  .cl-faq { padding: 1rem; }

  .cl-block-head { margin-bottom: 0.8rem; }
  .cl-block-head__lead { font-size: 0.92rem; line-height: 1.5; }
  .cl-block-head h2,
  .cl-curriculum__head h2 { font-size: 1.3rem; }
  .cl-curriculum__head { margin-bottom: 0.8rem; }

  .cl-who__grid,
  .cl-features__grid,
  .cl-why__grid,
  .cl-experience__grid { grid-auto-columns: minmax(15.5rem, 88%); }

  .cl-feature,
  .cl-who__card,
  .cl-why__card,
  .cl-experience__grid li { min-height: 8.5rem; }

  .cl-teacher { grid-template-columns: minmax(0, 1fr); }
  .cl-teacher__photo { aspect-ratio: 4 / 3; }
  .cl-teacher__years {
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
    padding: 0.55rem 0.7rem;
    gap: 0.5rem;
    font-size: 0.78rem;
  }
  .cl-teacher__years b { font-size: 1.35rem; }
  .cl-teacher__roles li { padding: 0.2rem 0.5rem; font-size: 0.75rem; }
  .cl-teacher__callout { padding: 0.55rem 0.65rem; }
  .cl-teacher__callout strong { font-size: 0.88rem; }
  .cl-teacher__line { font-size: 0.9rem; line-height: 1.45; }

  .cl-final { padding: 1.15rem; }
  .cl-final p:not(.cl-final__eyebrow) { font-size: 0.92rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cl-faq summary span { transition: none; }
}

/* JobBridge AI live-jobs line in the hero (links to the jobs section or,
   for owners, to their matches). */
.cl-hero__jobs a { color: inherit; text-decoration: none; }
.cl-hero__jobs a:hover, .cl-hero__jobs a:focus-visible { text-decoration: underline; }
.cl-hero__jobs strong { color: var(--cl-ink); }

/* Career Lab offer + "free vs this course" comparison
   (partials/career-lab-course-offer.php). */
.cl-lab__stats { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.9rem 0 0.2rem; padding: 0; list-style: none; }
.cl-lab__stats li { display: grid; min-width: 8.5rem; padding: 0.65rem 0.85rem; border: 1px solid var(--dashboard-border); border-radius: 0.8rem; background: var(--dashboard-bg); }
.cl-lab__stats strong { color: var(--dashboard-accent); font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.cl-lab__stats span { color: var(--dashboard-muted); font-size: 0.8rem; font-weight: 600; }

.cl-vs__wrap { overflow-x: auto; border: 1px solid var(--dashboard-border); border-radius: 0.9rem; }
.cl-vs__table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.cl-vs__table th, .cl-vs__table td { padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--dashboard-border); text-align: center; vertical-align: middle; }
.cl-vs__table tbody tr:last-child th, .cl-vs__table tbody tr:last-child td { border-bottom: 0; }
.cl-vs__table thead th { background: var(--dashboard-bg); color: var(--dashboard-heading); font-size: 0.82rem; font-weight: 700; }
.cl-vs__table tbody th { color: var(--dashboard-heading); font-weight: 600; text-align: left; }
.cl-vs__table .cl-vs__us { background: color-mix(in srgb, var(--dashboard-accent-soft) 70%, transparent); }
.cl-vs__table thead .cl-vs__us { color: var(--dashboard-accent-deep, var(--dashboard-accent)); }
.cl-vs__mark { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; }
.cl-vs__mark svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cl-vs__mark--yes { background: rgba(5, 150, 105, 0.12); color: #059669; }
.cl-vs__mark--no { background: rgba(100, 116, 139, 0.12); color: #64748b; }
.cl-vs__part { color: var(--dashboard-muted); font-size: 0.8rem; font-weight: 600; }
.cl-vs__note { margin: 0.8rem 0 0; color: var(--dashboard-muted); font-size: 0.85rem; line-height: 1.55; }

@media (max-width: 640px) {
  .cl-vs__wrap { overflow: visible; border: 0; }
  .cl-vs__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cl-vs__table, .cl-vs__table tbody, .cl-vs__table tr, .cl-vs__table th, .cl-vs__table td { display: block; }
  .cl-vs__table tr { margin-bottom: 0.6rem; border: 1px solid var(--dashboard-border); border-radius: 0.8rem; overflow: hidden; }
  .cl-vs__table tbody th { background: var(--dashboard-bg); }
  .cl-vs__table td { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; text-align: right; }
  .cl-vs__table td::before { content: attr(data-label); color: var(--dashboard-text); font-size: 0.82rem; font-weight: 600; text-align: left; }
  .cl-vs__table tbody tr:last-child td { border-bottom: 1px solid var(--dashboard-border); }
  .cl-vs__table tbody tr td:last-child { border-bottom: 0; }
}
.cl-lab__line { margin: 0.6rem 0 0; color: var(--dashboard-text); font-size: 0.9rem; line-height: 1.55; }
.cl-lab__line span { color: var(--dashboard-muted); font-weight: 600; }
.cl-lab__line strong { color: var(--dashboard-heading); font-weight: 600; }
