/* WP LMS Pro — Frontend styles */

/* ── Theme-compatibility hardening ──
   Block themes / standard themes (Twenty Twenty-X) and page builders each apply
   their own global resets to images, lists and boxes. Scope a predictable
   baseline to the LMS components so the layout renders identically regardless of
   the active theme (these screens are full plugin templates, not theme content). */
.lms-course-udemy, .lms-course-udemy *, .lms-course-udemy *::before, .lms-course-udemy *::after,
.lms-archive, .lms-archive *, .lms-archive *::before, .lms-archive *::after,
.lms-course-complete, .lms-course-complete *, .lms-course-complete *::before, .lms-course-complete *::after {
  box-sizing: border-box;
}
/* Neutralise theme image constraints (max-height, height:auto !important, etc.)
   inside LMS media wrappers — the wrappers control the aspect ratio. */
.lms-course-sidecard__media img,
.lms-course-card__thumb img,
.lms-course-hero__media img { max-width: none; max-height: none; }

/* ── Typography baseline ──
   The stylesheet uses px sizes tuned for a clean sans-serif. Without a declared
   family the LMS inherits whatever the theme uses — including serif/display
   *heading* fonts that clash with the card design. Pin a predictable, overridable
   font on the LMS roots and force headings to match it (override via --lms-font,
   e.g. set it to `inherit` to follow the theme, or to your brand font). */
:root { --lms-font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.lms-course-udemy, .lms-archive, .lms-scorm-focus, .lms-lesson-layout,
.lms-quiz-single, .lms-cp, .lms-cert-verify, .lms-my-courses {
  font-family: var(--lms-font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.lms-course-udemy :is(h1,h2,h3,h4,h5,h6),
.lms-archive :is(h1,h2,h3,h4,h5,h6),
.lms-scorm-focus :is(h1,h2,h3,h4,h5,h6),
.lms-lesson-layout :is(h1,h2,h3,h4,h5,h6),
.lms-quiz-single :is(h1,h2,h3,h4,h5,h6),
.lms-cp :is(h1,h2,h3,h4,h5,h6),
.lms-cert-verify :is(h1,h2,h3,h4,h5,h6) {
  font-family: inherit;
  -webkit-font-smoothing: inherit;
}

/* Form controls don't inherit font-family natively — keep them on the LMS font. */
.lms-btn,
.lms-course-udemy :is(button,input,select,textarea),
.lms-archive :is(button,input,select,textarea),
.lms-quiz-single :is(button,input,select,textarea),
.lms-scorm-focus :is(button,input,select,textarea),
.lms-cp :is(button,input,select,textarea) {
  font-family: inherit;
}

.lms-btn {
  display: inline-block;
  padding: 10px 18px;
  border: 0;
  border-radius: var(--lms-btn-radius, 6px);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background .15s, opacity .15s;
}
.lms-btn--primary { background: var(--lms-primary, #2563eb); color: #fff; }
.lms-btn--primary:hover { background: var(--lms-primary-hover, #1d4ed8); }
.lms-btn--secondary { background: #e2e8f0; color: #0f172a; }
.lms-btn--link { background: transparent; color: var(--lms-primary, #2563eb); padding: 10px 8px; }
.lms-btn--link:hover { text-decoration: underline; }
.lms-btn:disabled { opacity: .6; cursor: default; }

.lms-notice {
  padding: 14px 18px;
  background: #f1f5f9;
  border-left: 4px solid var(--lms-primary, #2563eb);
  border-radius: 4px;
}

/* ── Courses archive layout ────────────────────────────────────────────── */
.lms-archive {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}
.lms-archive__header { margin-bottom: 22px; }
.lms-archive__header h1 { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -.02em; }

.lms-archive__filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-bottom: 34px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 14px;
}
.lms-archive__filters select {
  appearance: none;
  -webkit-appearance: none;
  padding: 9px 34px 9px 14px;
  border: 1px solid #d8e0ea;
  border-radius: 10px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  font-size: 14px; color: #0f172a; cursor: pointer;
}
.lms-archive__filters select:focus { outline: none; border-color: var(--lms-primary, #2563eb); box-shadow: 0 0 0 3px var(--lms-accent, #8b5cf6); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lms-accent, #8b5cf6) 25%, transparent); }
.lms-archive__filters .lms-btn {
  margin-left: auto;
  background: var(--lms-primary, #2563eb); color: #fff;
  border-radius: var(--lms-btn-radius, 10px); padding: 10px 22px;
}
.lms-archive__filters .lms-btn:hover { background: var(--lms-primary-hover, #1d4ed8); }

.lms-archive__pagination { margin-top: 44px; text-align: center; }
.lms-archive__pagination .page-numbers {
  display: inline-block; padding: 8px 14px; margin: 0 3px;
  border-radius: 9px; text-decoration: none;
  color: #0f172a; background: #f1f5f9; font-weight: 600;
}
.lms-archive__pagination .page-numbers.current { background: var(--lms-primary, #2563eb); color: #fff; }

/* ── Course cards / grid ───────────────────────────────────────────────── */
.lms-course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}
@media (max-width: 992px) { .lms-course-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 600px) { .lms-course-grid { grid-template-columns: 1fr; gap: 20px; } }

.lms-course-card {
  position: relative;
  background: #fff;
  border-radius: var(--lms-card-radius, 18px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px -12px rgba(15, 23, 42, .25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.lms-course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px -18px rgba(15, 23, 42, .38);
}

.lms-course-card__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #e0e7ff, #f1f5f9);
  overflow: hidden;
}
.lms-course-card__thumb img {
  width: 100% !important; height: 100% !important; max-width: none !important;
  margin: 0 !important; border: 0 !important; border-radius: 0 !important;
  object-fit: cover; display: block;
  transition: transform .35s ease;
}
.lms-course-card:hover .lms-course-card__thumb img { transform: scale(1.05); }
.lms-course-card__thumb-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #6366f1, #2563eb);
  text-transform: uppercase;
}
.lms-course-card__enrolled {
  position: absolute; top: 14px; right: 14px;
  padding: 5px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .03em;
  color: #166534; background: rgba(220, 252, 231, .96);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}

/* Category pill (coloured, overlaps the image / body seam) */
.lms-pill {
  position: absolute; left: 18px; bottom: -13px;
  display: inline-block; padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px; font-weight: 700; line-height: 1;
  color: #fff;
  box-shadow: 0 6px 16px -4px rgba(15, 23, 42, .4);
}
.lms-pill--0 { background: #2563eb; }   /* blue   */
.lms-pill--1 { background: #f59e0b; }   /* amber  */
.lms-pill--2 { background: #ef4444; }   /* red    */
.lms-pill--3 { background: #10b981; }   /* green  */
.lms-pill--4 { background: #8b5cf6; }   /* purple */
.lms-pill--5 { background: #06b6d4; }   /* teal   */

.lms-course-card__body {
  padding: 26px 22px 22px;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
.lms-course-card__title { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 800; }
.lms-course-card__title a { text-decoration: none; color: #0f172a; }
.lms-course-card__title a:hover { color: var(--lms-primary, #2563eb); }
.lms-course-card__excerpt {
  margin: 0; color: #64748b; font-size: 14px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.lms-course-card__footer {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding-top: 16px;
  border-top: 1px solid #eef2f7;
}
.lms-course-card__author { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lms-course-card__avatar { border-radius: 50%; width: 36px; height: 36px; flex: 0 0 auto; }
.lms-course-card__author-meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.lms-course-card__author-name {
  font-size: 13px; font-weight: 700; color: #0f172a;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px;
}
.lms-course-card__price { font-size: 13px; font-weight: 700; color: var(--lms-primary, #2563eb); }
.lms-course-card__price.is-free { color: var(--lms-success, #16a34a); }
.lms-course-card__cta {
  flex: 0 0 auto;
  border-radius: var(--lms-btn-radius, 999px);
  padding: 10px 18px;
  font-size: 14px;
  white-space: nowrap;
}

.lms-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: #fef3c7;
  color: #92400e;
}
.lms-badge--enrolled { background: #dcfce7; color: #166534; }

/* ── Progress bar ── */
.lms-progress {
  position: relative;
  height: 14px;
  background: #e9eef5;
  border-radius: 20px;
  overflow: hidden;
  margin: 8px 0;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .08);
}
.lms-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  border-radius: 20px;
  transition: width .4s ease;
}
.lms-progress__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
  color: #0f172a;
}

/* ── Single course (Udemy-style) ── */
.lms-course-udemy {
  --lms-accent: var(--lms-primary, #2563eb);
  --lms-ink: #1c1d1f;            /* Udemy near-black */
  --lms-card-w: 340px;
  position: relative;
  max-width: 1180px;
  margin: 0 auto 60px;
  padding: 0 24px;
  color: #2d2f31;
}

/* Dark hero band */
.lms-course-hero {
  background: var(--lms-ink);
  color: #fff;
  border-radius: 0 0 16px 16px;
  margin: 0 -24px 32px;
  padding: 44px 24px 40px;
}
.lms-course-hero__body {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  /* reserve room for the floating card on desktop */
  padding-right: calc(var(--lms-card-w) + 64px);
}
.lms-course-crumbs { font-size: 13px; color: #c0c4fc; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lms-course-crumbs a { color: #c0c4fc; text-decoration: none; font-weight: 600; }
.lms-course-crumbs a:hover { color: #fff; text-decoration: underline; }
.lms-course-crumbs span[aria-hidden] { opacity: .6; }
.lms-course-hero__title { margin: 0 0 14px; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.18; letter-spacing: -.01em; font-weight: 800; color: #fff; }
.lms-course-hero__excerpt { color: #d1d2e0; font-size: 17px; line-height: 1.6; max-width: 720px; }
.lms-course-hero__excerpt p { margin: 0 0 8px; }

.lms-course-hero__meta { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 22px; }
.lms-course-hero__meta li { font-size: 14px; color: #d1d2e0; display: flex; align-items: center; gap: 6px; }
.lms-course-hero__meta strong { color: #fff; font-weight: 700; }
.lms-course-hero__meta-icon { opacity: .8; }

.lms-course-hero__progress { margin-top: 24px; max-width: 460px; }
.lms-course-hero__progress-bar { height: 10px; border-radius: 8px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.lms-course-hero__progress-bar span { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #22c55e, #16a34a); transition: width .4s ease; }
.lms-course-hero__progress-note { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: #e2e3f0; }
.lms-course-hero__progress-note span { color: #b9bbce; font-weight: 500; }

/* Floating product card — overlaps the hero on desktop */
.lms-course-sidecard {
  position: absolute;
  top: 60px;
  right: 24px;
  width: var(--lms-card-w);
  background: #fff;
  border: 1px solid #e7ecf3;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 50px -18px rgba(15, 23, 42, .45);
  z-index: 5;
}
.lms-course-sidecard__media { aspect-ratio: 16 / 9; overflow: hidden; background: #f1f5f9; }
.lms-course-sidecard__media img {
  width: 100% !important; height: 100% !important; max-width: none !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important;
  object-fit: cover !important; display: block !important;
}
.lms-course-sidecard__body { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.lms-course-sidecard__pricerow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lms-course-sidecard .lms-btn { width: 100%; padding: 14px 18px; font-size: 16px; font-weight: 700; border-radius: 10px; }
.lms-course-sidecard .lms-btn--primary { background: var(--lms-primary, #a435f0); }
.lms-course-sidecard .lms-btn--primary:hover { background: var(--lms-primary-hover, #8710d8); }
.lms-course-sidecard .lms-btn--secondary { background: #fff; color: #1c1d1f; border: 1px solid #1c1d1f; }
.lms-course-sidecard .lms-btn--secondary:hover { background: #f7f7f8; }
.lms-course-sidecard__title {
  margin: 8px 0 0;
  font-size: 16px;
  font-weight: 800;
  color: #1c1d1f;
}
.lms-course-facts__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.lms-course-facts__item { display: flex; align-items: center; gap: 12px; color: #334155; font-size: 15px; font-weight: 500; }
.lms-course-facts__icon {
  flex: 0 0 30px;
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: #eef2ff;
  color: var(--lms-accent);
  font-size: 13px;
}

/* Light content body — reserve room for the floating card on desktop */
.lms-course-content { padding-right: calc(var(--lms-card-w) + 64px); }
.lms-course-main { max-width: 760px; }
.lms-course-section { margin: 0 0 36px; }
.lms-course-section__title { margin: 0 0 18px; font-size: 22px; font-weight: 800; color: #1c1d1f; letter-spacing: -.01em; }
.lms-course-description { color: #3c3d41; font-size: 16px; line-height: 1.7; }
.lms-course-description p { margin: 0 0 14px; }

/* Curriculum / modules */
.lms-curriculum__section { margin-bottom: 22px; }
.lms-curriculum__section-title { margin: 0 0 12px; font-size: 16px; }
.lms-curriculum__lessons, .lms-curriculum__topics { list-style: none; padding: 0; margin: 0; }
.lms-curriculum__lesson {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border: 1px solid #e7ecf3;
  border-radius: 12px;
  margin-bottom: 10px;
  background: #fff;
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.lms-curriculum__lesson:hover { box-shadow: 0 8px 24px -16px rgba(15, 23, 42, .4); border-color: #d6deea; transform: translateY(-1px); }
.lms-curriculum__lesson.is-complete { background: #f6fdf9; border-color: #c7eed5; }
.lms-curriculum__lesson a { text-decoration: none; color: #0f172a; font-weight: 600; font-size: 15px; }
.lms-curriculum__lesson a:hover { color: var(--lms-accent); }

/* Numbered / check token */
.lms-curriculum__check {
  flex: 0 0 30px;
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #eef2ff;
  color: var(--lms-accent);
  font-weight: 700;
  font-size: 14px;
}
.lms-curriculum__lesson.is-complete .lms-curriculum__check { background: #16a34a; color: #fff; }

.lms-curriculum__locked { color: #94a3b8; font-weight: 600; font-size: 15px; }
.lms-curriculum__topics { width: 100%; padding-left: 44px; color: #64748b; font-size: 14px; }
.lms-curriculum__topics li { padding: 3px 0; }
.lms-curriculum__status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  background: #dcfce7;
  color: #166534;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}

/* Price + note (inside the floating card) */
.lms-course-price { font-size: 30px; font-weight: 800; color: #1c1d1f; line-height: 1; }
.lms-course-card__note { margin: 4px 0 0; color: #94a3b8; font-size: 13px; text-align: center; }

.lms-instructor { display: flex; gap: 16px; align-items: flex-start; }
.lms-instructor img { border-radius: 50%; }

/* ── Lesson ── */
.lms-lesson-layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; }
.lms-lesson-video { position: relative; margin: 18px 0; }
.lms-lesson-video iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 10px; }
.lms-lesson-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.lms-mark-complete.is-complete { background: #22c55e; }
.lms-lesson-nav { display: flex; gap: 16px; }

.lms-lesson-continue {
  width: 100%;
  margin-top: 20px;
  padding: 20px 22px;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #2563eb;
  border-radius: 10px;
  background: #f0f7ff;
  animation: lms-continue-in .25s ease-out;
}
@keyframes lms-continue-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.lms-lesson-continue__heading { margin: 0 0 4px; font-size: 18px; font-weight: 700; color: #15803d; }
.lms-lesson-continue__next { margin: 0 0 14px; font-size: 16px; color: #0f172a; }
.lms-lesson-continue__label { color: #64748b; font-weight: 600; }
.lms-lesson-continue__done { margin: 0 0 14px; color: #475569; }
.lms-lesson-continue__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lms-lesson-sidebar__list { list-style: none; padding: 0; margin: 0; }
.lms-lesson-sidebar__list li { padding: 8px 12px; border-radius: 6px; }
.lms-lesson-sidebar__list li.is-current { background: #eff6ff; font-weight: 600; }
.lms-lesson-sidebar__list li.is-complete a::before { content: "✓ "; color: #22c55e; }

/* ── Full-screen SCORM focus mode (Option A: SCORM-inside-lesson) ── */
.lms-scorm-focus {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  background: #0f172a;
}
.admin-bar .lms-scorm-focus { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .lms-scorm-focus { top: 46px; }
}
.lms-scorm-focus__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 18px;
  height: 56px;
  flex-shrink: 0;
  background: #1e293b;
  border-bottom: 1px solid #334155;
}
.lms-scorm-focus__exit {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.lms-scorm-focus__exit:hover { color: #fff; }
.lms-scorm-focus__title {
  font-weight: 700;
  font-size: 16px;
  color: #f1f5f9;
  margin-right: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lms-scorm-focus__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lms-scorm-focus__actions .lms-btn { padding: 8px 16px; }
.lms-scorm-focus__stage { flex: 1; min-height: 0; }
.lms-scorm-focus__frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #0f172a;
}
.lms-scorm-focus .lms-lesson-continue {
  margin: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  animation: none;
}

/* ── Quiz ── */
.lms-quiz-question { border: 1px solid #e2e8f0; border-radius: 10px; padding: 18px; margin: 0 0 18px; }
.lms-quiz-question__title { font-weight: 700; font-size: 17px; padding: 0; }
.lms-quiz-question__num { color: #2563eb; }
.lms-quiz-answer { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.lms-quiz-answer:hover { background: #f8fafc; }
.lms-quiz-fill, .lms-quiz-essay { width: 100%; padding: 10px; border: 1px solid #cbd5e1; border-radius: 6px; }
.lms-quiz-timer { font-weight: 700; margin-bottom: 16px; color: #b45309; }
.lms-quiz-results { padding: 24px; border-radius: 10px; text-align: center; }
.lms-quiz-results.is-pass { background: #f0fdf4; border: 1px solid #bbf7d0; }
.lms-quiz-results.is-fail { background: #fef2f2; border: 1px solid #fecaca; }
.lms-quiz-results__heading { margin: 0 0 8px; }

/* ── Certificate verify ── */
.lms-cert-verify__form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 18px; }
.lms-cert-verify__form input[type="text"] { padding: 10px; border: 1px solid #cbd5e1; border-radius: 6px; min-width: 240px; }
.lms-cert-verify__form button { padding: 10px 18px; border: 0; border-radius: 6px; background: #2563eb; color: #fff; font-weight: 600; cursor: pointer; }
.lms-cert-verify__result { padding: 18px; border-radius: 10px; }
.lms-cert-verify__result.is-valid { background: #f0fdf4; border: 1px solid #bbf7d0; }
.lms-cert-verify__result.is-invalid { background: #fef2f2; border: 1px solid #fecaca; }
.lms-cert-verify__badge { font-weight: 700; color: #166534; margin: 0 0 8px; }
.lms-cert-verify__meta { color: #64748b; font-size: 14px; }

/* Below this width the floating card drops into normal flow,
   sitting between the hero and the content body. */
@media (max-width: 980px) {
  .lms-course-hero__body { padding-right: 24px; }
  .lms-course-content { padding-right: 0; }
  .lms-course-main { max-width: none; }
  .lms-course-sidecard {
    position: static;
    width: auto;
    margin: 0 0 28px;
  }
}

@media (max-width: 860px) {
  .lms-lesson-layout { grid-template-columns: 1fr; gap: 24px; }
}
