/* ═══════════════════════════════════════════════════════════
   LMS — course cards, course page, curriculum, lesson player,
   dashboard, progress, quiz.
   Reuses the portfolio's .work-item / .service-card geometry so
   the catalog reads as the same hand.
   ═══════════════════════════════════════════════════════════ */

/* ═══════════ HERO (tutorials landing) ═══════════ */
.lms-hero {
  position: relative;
  padding-block: clamp(4rem, 12vw, 9rem) clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}
.lms-hero .shell {
  position: relative;
  z-index: 2;
}
.lms-hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(
    ellipse 80% 80% at 50% 40%,
    black 20%,
    transparent 75%
  );
  mask-image: radial-gradient(
    ellipse 80% 80% at 50% 40%,
    black 20%,
    transparent 75%
  );
}
/* Compositor-only pan, same trick the portfolio uses. */
.lms-hero-grid::before {
  content: "";
  position: absolute;
  inset: -60px;
  background-image: linear-gradient(
      rgba(0, 222, 255, 0.04) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(0, 222, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: lmsGridPan 20s linear infinite;
  will-change: transform;
}
@keyframes lmsGridPan {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(60px, 60px, 0);
  }
}
.lms-hero-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3rem, 11vw, 8rem);
  line-height: 0.86;
  letter-spacing: 0.01em;
}
.lms-hero-title .accent {
  color: var(--cyan);
}
.lms-hero .lede {
  margin-top: 1.5rem;
}
.lms-hero .cluster {
  margin-top: 2.25rem;
}

/* ═══════════ COURSE GRID ═══════════ */
.course-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.75rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}

.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--gray);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s, background 0.4s;
}
.course-card:hover {
  border-color: var(--cyangl);
  background: var(--gray2);
  transform: translateY(-4px);
}
.course-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--gray2);
  overflow: hidden;
}
.course-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.course-card:hover .course-card__media img {
  transform: scale(1.05);
}
/* Placeholder when a course has no thumbnail yet */
.course-card__media--empty {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #001a1f, #002830 60%, #003040);
}
.course-card__media--empty span {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.5rem;
  color: rgba(0, 222, 255, 0.25);
  letter-spacing: 0.1em;
}
.course-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  background: rgba(4, 5, 10, 0.85);
  backdrop-filter: blur(8px);
  color: var(--cyan);
  border: 1px solid var(--cyandim);
}
.course-card__badge--enrolled {
  color: var(--success);
  border-color: rgba(61, 220, 151, 0.3);
}
.course-card__badge--free {
  color: var(--gold);
  border-color: rgba(232, 201, 74, 0.3);
}
.course-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}
.course-card__label {
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
}
.course-card__title {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--white);
}
.course-card__title a {
  color: inherit;
  text-decoration: none;
}
/* Whole card clickable, title still the accessible name */
.course-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
}
.course-card__excerpt {
  font-size: 0.75rem;
  line-height: 1.7;
  color: rgba(238, 240, 245, 0.55);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.course-card__meta {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--mid);
  text-transform: uppercase;
}
.course-card__price {
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}
.course-card__price del {
  color: var(--mid);
  margin-right: 0.4em;
  font-size: 0.85em;
}
.course-card__price ins {
  text-decoration: none;
  color: var(--cyan);
}
.course-card__price--free {
  color: var(--gold);
}

/* ═══════════ FILTER BAR ═══════════ */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.filter-bar a {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.filter-bar a:hover {
  color: var(--white);
}
.filter-bar a.is-active {
  color: var(--cyan);
  border-color: var(--cyandim);
  background: rgba(0, 222, 255, 0.05);
}

/* ═══════════ COURSE SINGLE ═══════════ */
.course-layout {
  display: grid;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}
@media (min-width: 1000px) {
  .course-layout {
    grid-template-columns: minmax(0, 1fr) 380px;
  }
}
.course-head {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.course-head h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  margin-block: 0.5rem 1rem;
}
.course-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-block: 1.25rem;
  border-block: 1px solid var(--border);
  margin-bottom: 2rem;
}
.course-stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.course-stat dt {
  font-size: 0.55rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mid);
}
.course-stat dd {
  font-size: 0.85rem;
  color: var(--white);
  letter-spacing: 0.04em;
}

/* Sticky purchase panel */
.course-buy {
  background: var(--gray);
  border: 1px solid var(--border);
  padding: 1.5rem;
}
@media (min-width: 1000px) {
  .course-buy {
    position: sticky;
    top: calc(var(--nav-h) + 1.5rem);
  }
}
.course-buy__media {
  margin: -1.5rem -1.5rem 1.25rem;
  aspect-ratio: 16 / 9;
  background: var(--gray2);
}
.course-buy__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.course-buy__price {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.75rem;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 0.25rem;
}
.course-buy__price del {
  color: var(--mid);
  font-size: 0.5em;
  margin-right: 0.3em;
}
.course-buy__price ins {
  text-decoration: none;
  color: var(--cyan);
}
.course-buy__note {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 1.25rem;
}
.course-buy .btn {
  width: 100%;
}
.course-buy__includes {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.7rem;
}
.course-buy__includes li {
  list-style: none;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.72rem;
  line-height: 1.6;
  color: rgba(238, 240, 245, 0.7);
}
.course-buy__includes li::before {
  content: "";
  flex: 0 0 6px;
  height: 6px;
  margin-top: 0.45em;
  background: var(--cyan);
}

/* ═══════════ CURRICULUM ═══════════
   Same accordion geometry as the portfolio's .work-item. */
.curriculum {
  border-top: 1px solid var(--border);
}
.topic {
  border-bottom: 1px solid var(--border);
}
.topic__head {
  width: 100%;
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  padding: clamp(1.1rem, 2vw, 1.6rem) 0;
  background: none;
  border: 0;
  text-align: left;
  color: inherit;
  font: inherit;
  transition: padding-left 0.4s;
}
.topic__head:hover {
  padding-left: 0.75rem;
}
.topic__num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.4rem;
  color: var(--cyan);
  letter-spacing: 0.06em;
}
.topic__title {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  line-height: 1.35;
  color: var(--white);
}
.topic__meta {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
  margin-top: 0.3rem;
}
.topic__chevron {
  width: 20px;
  height: 20px;
  color: var(--mid);
  transition: transform 0.4s, color 0.3s;
}
.topic__chevron svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.topic__head[aria-expanded="true"] .topic__chevron {
  transform: rotate(180deg);
  color: var(--cyan);
}
.topic__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.topic__panel.open {
  max-height: 2000px;
}
.topic__list {
  list-style: none;
  padding-bottom: 1rem;
}
.lesson-row {
  display: grid;
  grid-template-columns: 1.5rem 1fr auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 0 0.75rem 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  color: rgba(238, 240, 245, 0.75);
  text-decoration: none;
  font-size: 0.78rem;
  line-height: 1.5;
  transition: color 0.2s, background 0.2s, padding-left 0.3s;
  min-height: 44px;
}
a.lesson-row:hover {
  color: var(--cyan);
  background: rgba(0, 222, 255, 0.03);
  padding-left: 3.5rem;
}
.lesson-row__icon {
  width: 16px;
  height: 16px;
  color: var(--mid);
  flex-shrink: 0;
}
.lesson-row__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.lesson-row.is-complete .lesson-row__icon {
  color: var(--success);
}
.lesson-row.is-locked {
  color: var(--mid);
  cursor: not-allowed;
}
.lesson-row__time {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--mid);
}
@media (max-width: 640px) {
  .topic__head {
    grid-template-columns: 2.25rem 1fr auto;
    gap: 0.75rem;
  }
  .lesson-row {
    padding-left: 2.25rem;
  }
  a.lesson-row:hover {
    padding-left: 2.5rem;
  }
}

/* ═══════════ PROGRESS ═══════════ */
.progress {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.progress__bar {
  position: relative;
  height: 3px;
  background: var(--gray3);
  overflow: hidden;
}
.progress__fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyangl);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
}
.progress__meta strong {
  color: var(--cyan);
  font-weight: 400;
}
.progress--lg .progress__bar {
  height: 5px;
}

/* ═══════════ LESSON PLAYER ═══════════ */
.lesson-shell {
  display: grid;
  min-height: calc(100svh - var(--nav-h));
}
@media (min-width: 1000px) {
  .lesson-shell {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}
.lesson-main {
  padding: clamp(1.25rem, 3vw, 2.5rem);
  min-width: 0;
}
.lesson-video {
  background: #000;
  aspect-ratio: 16 / 9;
  width: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}
.lesson-video > iframe,
.lesson-video > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.lesson-video__locked {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 1rem;
  padding: 2rem;
  background: linear-gradient(135deg, #001a1f, #04050a);
}
.lesson-head {
  margin-top: 1.75rem;
}
.lesson-head h1 {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.2;
  margin-block: 0.4rem 0.75rem;
}
.lesson-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

/* Sidebar curriculum */
.lesson-side {
  border-left: 1px solid var(--border);
  background: var(--gray);
  display: flex;
  flex-direction: column;
  max-height: calc(100svh - var(--nav-h));
}
@media (max-width: 999px) {
  .lesson-side {
    border-left: 0;
    border-top: 1px solid var(--border);
    max-height: none;
  }
}
.lesson-side__head {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--gray);
  z-index: 2;
}
.lesson-side__scroll {
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--gray3) transparent;
}
.lesson-side__scroll::-webkit-scrollbar {
  width: 6px;
}
.lesson-side__scroll::-webkit-scrollbar-thumb {
  background: var(--gray3);
}
.lesson-side .lesson-row {
  padding-left: 1.25rem;
}
.lesson-side a.lesson-row:hover {
  padding-left: 1.6rem;
}
.lesson-side .lesson-row.is-current {
  color: var(--cyan);
  background: rgba(0, 222, 255, 0.06);
  box-shadow: inset 2px 0 0 var(--cyan);
}
.lesson-side .topic__head {
  grid-template-columns: 1fr auto;
  padding: 1rem 1.25rem;
}
.lesson-side .topic__num {
  display: none;
}

/* ═══════════ DASHBOARD ═══════════ */
.dash {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
@media (min-width: 900px) {
  .dash {
    grid-template-columns: 250px minmax(0, 1fr);
  }
}
.dash-nav {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: var(--gray);
}
@media (max-width: 899px) {
  .dash-nav {
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .dash-nav::-webkit-scrollbar {
    display: none;
  }
}
.dash-nav a {
  padding: 0.9rem 1.1rem;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  min-height: 44px;
  display: flex;
  align-items: center;
}
@media (max-width: 899px) {
  .dash-nav a {
    border-bottom: 0;
    border-right: 1px solid var(--border);
  }
}
.dash-nav a:hover {
  color: var(--white);
  background: var(--gray2);
}
.dash-nav a.is-active {
  color: var(--cyan);
  background: rgba(0, 222, 255, 0.05);
  box-shadow: inset 2px 0 0 var(--cyan);
}
@media (max-width: 899px) {
  .dash-nav a.is-active {
    box-shadow: inset 0 -2px 0 var(--cyan);
  }
}
.dash-panel {
  min-width: 0;
}
.dash-stats {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-bottom: 2rem;
}
.dash-stat {
  background: var(--gray);
  padding: 1.25rem;
}
.dash-stat__num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.25rem;
  line-height: 1;
  color: var(--cyan);
}
.dash-stat__label {
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid);
  margin-top: 0.4rem;
}

/* ═══════════ QUIZ ═══════════ */
.quiz {
  max-width: 760px;
}
.quiz__progress {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 1rem;
}
.quiz__question {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  line-height: 1.4;
  margin-bottom: 1.75rem;
}
.quiz__options {
  display: grid;
  gap: 0.75rem;
  list-style: none;
}
.quiz__option {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  background: var(--gray);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  line-height: 1.6;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.quiz__option:hover {
  border-color: var(--cyangl);
  background: var(--gray2);
}
.quiz__option.is-correct {
  border-color: var(--success);
  background: rgba(61, 220, 151, 0.06);
}
.quiz__option.is-wrong {
  border-color: var(--danger);
  background: rgba(255, 92, 106, 0.06);
}

/* ═══════════ PAGINATION ═══════════ */
.pagination {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.pagination .page-numbers {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  border: 1px solid var(--border);
  color: var(--mid);
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  transition: color 0.2s, border-color 0.2s;
}
.pagination .page-numbers:hover {
  color: var(--cyan);
  border-color: var(--cyangl);
}
.pagination .page-numbers.current {
  background: var(--cyan);
  color: var(--black);
  border-color: var(--cyan);
}

/* ═══════════════════════════════════════════════════════════
   COURSE RAIL — horizontal snap slider
   Same interaction as the portfolio home page slider, so the
   two sites read as one. Cards are the ordinary .course-card;
   a rail is a layout, not a new component.
   ═══════════════════════════════════════════════════════════ */
.course-rail {
  position: relative;
}
.course-rail + .course-rail {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.course-rail__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: clamp(1rem, 2.5vw, 1.5rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.course-rail__tools {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}
.course-rail__all {
  /* 16px of text is not a tap target; pad it out to 44 */
  min-height: 44px;
  padding-block: 0.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  transition: color 0.3s, gap 0.3s;
}
.course-rail__all svg {
  width: 13px;
  height: 13px;
}
.course-rail__all:hover {
  color: var(--cyan);
  gap: 0.75rem;
}

.course-rail__nav {
  display: flex;
  gap: 0.5rem;
}
.rail-arrow {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--gray);
  color: var(--white);
  display: grid;
  place-items: center;
  transition: border-color 0.3s, background 0.3s, opacity 0.3s, transform 0.3s;
}
.rail-arrow svg {
  width: 17px;
  height: 17px;
}
.rail-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}
.rail-arrow:not(:disabled):hover {
  border-color: var(--cyan);
  background: var(--cyandim);
  transform: scale(1.08);
}
.rail-arrow:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.course-rail__track {
  display: flex;
  gap: clamp(0.9rem, 1.8vw, 1.75rem);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* room for the card's hover lift and glow */
  padding: 0.5rem 0.5rem 1.5rem;
  margin-inline: -0.5rem;
  cursor: grab;
}
.course-rail__track::-webkit-scrollbar {
  display: none;
}
.course-rail__track:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}
.course-rail__track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}
/* Swallow clicks that land at the end of a drag */
.course-rail__track.is-dragging .course-card {
  pointer-events: none;
}

.course-rail__track > .course-card {
  flex: 0 0 clamp(270px, 78vw, 340px);
  scroll-snap-align: start;
}

.course-rail__bar {
  height: 2px;
  background: var(--gray2);
  border-radius: 2px;
  overflow: hidden;
}
.course-rail__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--cyan);
  border-radius: 2px;
  transition: width 0.18s linear;
}

/* Arrows are a pointer affordance. On touch the rail is swiped, and
   the two buttons only crowd a small screen. */
@media (max-width: 720px) {
  .course-rail__nav {
    display: none;
  }
  .course-rail__track {
    scroll-snap-type: x proximity;
  }
}
@media (hover: none) {
  .course-rail__nav {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════
   LANDING PAGE — hero copy, steps, closing CTA
   ═══════════════════════════════════════════════════════════ */

/* The hero holds the rail now, so its bottom padding is the rail's. */
.lms-hero {
  padding-block: clamp(3rem, 9vw, 7rem) clamp(2.5rem, 5vw, 4rem);
}
.lms-hero__inner {
  position: relative;
  z-index: 2;
}
/* A measure, not the full shell — long lines are the main thing that
   makes a landing page feel like work to read. */
.lms-hero__lede {
  max-width: 46ch;
  margin-top: 1.25rem;
}
.lms-hero__cta {
  margin-top: 2rem;
}
.lms-hero__rail {
  position: relative;
  z-index: 2;
  margin-top: clamp(3rem, 7vw, 5rem);
}

/* ── Closing CTA ── */
.lms-cta {
  border: 1px solid var(--border);
  background: var(--gray);
  padding: clamp(1.75rem, 4vw, 3rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
}
.lms-cta__title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.75rem);
  line-height: 0.95;
}
.lms-cta__body {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--mid);
  margin-top: 0.75rem;
  max-width: 52ch;
}
.lms-cta .btn {
  flex-shrink: 0;
}

@media (max-width: 720px) {
  /* Stacked buttons beat two cramped ones sharing a line. */
  .lms-hero__cta {
    flex-direction: column;
    align-items: stretch;
  }
  .lms-hero__cta .btn {
    width: 100%;
    justify-content: center;
  }
  .lms-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .lms-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* A rail whose cards all fit needs no arrows and no progress bar. */
.course-rail.is-static .course-rail__nav,
.course-rail.is-static .course-rail__bar {
  display: none;
}
.course-rail.is-static .course-rail__track {
  cursor: default;
}

/* ── Course description (inc/course-description.php) ──
   Sits at the top of Tutor's Course Info tab, so it is scoped tightly
   enough to win over Tutor's own heading/body colours. */
.course-about {
  border-top: 1px solid var(--border);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.course-about .course-about__title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 0.95;
  color: var(--white);
  margin: 0 0 1.25rem;
}
.course-about .course-about__body {
  max-width: 72ch;
  overflow-wrap: anywhere;
}
.course-about .course-about__body p {
  color: rgba(238, 240, 245, 0.8);
}
