:root {
  --paper: #f7f3ec;
  --paper-soft: #fffaf1;
  --ink: #1f2824;
  --muted: #64706a;
  --forest: #254d3d;
  --leaf: #6d8a5d;
  --clay: #b86d3c;
  --sky: #d9e8ee;
  --line: rgba(31, 40, 36, 0.14);
  --shadow: 0 18px 50px rgba(31, 40, 36, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: #fff;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(247, 243, 236, 0.96);
  color: var(--ink);
  box-shadow: 0 8px 28px rgba(31, 40, 36, 0.08);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  line-height: 1.1;
}

.brand small {
  color: currentColor;
  opacity: 0.75;
  font-size: 0.78rem;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
}

.site-nav a {
  text-decoration: none;
  opacity: 0.88;
}

.site-nav a:hover {
  opacity: 1;
}

.menu-toggle {
  display: none;
  min-height: 40px;
  border: 1px solid currentColor;
  border-radius: 6px;
  padding: 8px 14px;
  background: transparent;
  color: inherit;
  font: inherit;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 30, 25, 0.84), rgba(18, 30, 25, 0.34) 58%, rgba(18, 30, 25, 0.18)),
    linear-gradient(0deg, rgba(18, 30, 25, 0.66), rgba(18, 30, 25, 0.08) 45%);
  z-index: -1;
}

.hero-content {
  width: min(940px, 100%);
  padding: 150px clamp(22px, 6vw, 76px) 72px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f2bc7a;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  max-width: 860px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 7vw, 6rem);
  line-height: 0.98;
  font-weight: 500;
}

h2 {
  margin-bottom: 0;
  max-width: 780px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 1.05;
  font-weight: 500;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 700;
}

.button.primary {
  background: var(--clay);
  color: #fff;
}

.button.disabled {
  cursor: default;
  opacity: 0.86;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.72);
  color: #fff;
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-band div {
  background: var(--paper-soft);
  padding: 24px clamp(18px, 4vw, 48px);
}

.intro-band span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.intro-band strong {
  font-size: 1.02rem;
}

.section {
  padding: clamp(68px, 9vw, 120px) clamp(22px, 6vw, 76px);
}

.split {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(32px, 7vw, 92px);
  align-items: start;
}

.copy-stack {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.copy-stack p:last-child,
.place-copy p:last-child,
.contact-panel p:last-child {
  margin-bottom: 0;
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 34px;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pillar-card,
.programme-list article,
.timeline article,
.founder-card,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
}

.pillar-card {
  min-height: 280px;
  padding: 24px;
}

.pillar-card span,
.timeline span {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--clay);
  font-weight: 800;
  font-size: 0.85rem;
}

.pillar-card p,
.programme-list p,
.timeline p,
.founder-card p,
.contact-panel p,
.note {
  color: var(--muted);
}

.place {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1fr);
  gap: clamp(32px, 7vw, 88px);
  align-items: center;
  background: var(--sky);
}

.place-image img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.place-copy p {
  color: #4c5f59;
  font-size: 1.05rem;
}

.quiet-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.quiet-list li {
  border-top: 1px solid rgba(31, 40, 36, 0.16);
  padding-top: 12px;
}

.programmes {
  background: #eef0e4;
}

.programme-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.programme-list article {
  padding: 24px;
}

.note {
  max-width: 880px;
  margin: 24px 0 0;
  font-size: 0.95rem;
}

.founder-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.founder-card {
  overflow: hidden;
}

.founder-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.portrait-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgba(37, 77, 61, 0.92), rgba(109, 138, 93, 0.78)),
    var(--forest);
  color: #fff;
}

.portrait-placeholder span {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.founder-card div {
  padding: 24px;
}

.role {
  margin-bottom: 16px;
  color: var(--clay);
  font-weight: 700;
}

.roadmap {
  background: var(--forest);
  color: #fff;
}

.roadmap .eyebrow,
.roadmap .timeline span {
  color: #f2bc7a;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.timeline article {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  padding: 24px;
}

.timeline p {
  color: rgba(255, 255, 255, 0.78);
}

.domains {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(300px, 1.15fr);
  gap: clamp(28px, 7vw, 76px);
  align-items: start;
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.domain-grid span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
  padding: 16px;
  font-weight: 700;
  word-break: break-word;
}

.contact {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1fr);
  gap: clamp(28px, 7vw, 76px);
  align-items: center;
  background: #efe8d8;
}

.contact-panel {
  padding: 28px;
}

.contact-panel .button {
  margin-top: 12px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 28px;
  padding: 28px clamp(22px, 6vw, 76px);
  background: #17201c;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1080px) {
  .pillar-grid,
  .programme-list,
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding-top: 8px;
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px 12px;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-content {
    padding-top: 132px;
  }

  .hero-actions,
  .intro-band,
  .split,
  .place,
  .founder-grid,
  .domains,
  .contact {
    grid-template-columns: 1fr;
  }

  .intro-band {
    gap: 1px;
  }

  .pillar-grid,
  .programme-list,
  .timeline,
  .domain-grid {
    grid-template-columns: 1fr;
  }

  .founder-card img {
    aspect-ratio: 5 / 4;
  }

  .portrait-placeholder {
    aspect-ratio: 5 / 4;
  }
}

@media (max-width: 460px) {
  .brand strong {
    font-size: 0.88rem;
  }

  .brand small {
    font-size: 0.72rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
  }

  .button {
    width: 100%;
  }
}

/* ============================================================
   LMS: Courses & Dashboard styles
   ============================================================ */

/* --- Override header a for course pages --- */
.site-header .site-nav a.is-current {
  opacity: 1;
  border-bottom: 2px solid var(--clay);
}

/* --- Courses page hero --- */
.courses-hero {
  padding: 140px clamp(22px, 6vw, 76px) 60px;
  background: linear-gradient(135deg, #1f3629 0%, #2d4d3a 100%);
  color: #fff;
}

.courses-hero-content {
  max-width: 820px;
  margin: 0 auto;
}

.courses-hero .hero-copy {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  line-height: 1.5;
}

/* --- Course grid --- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1100px;
}

.course-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-soft);
  padding: 28px;
}

.course-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.course-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--forest);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-coming-soon .course-tag {
  background: var(--muted);
}

.course-lessons {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.course-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  margin-bottom: 0;
}

.course-summary {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.course-meta {
  font-size: 0.83rem;
  color: var(--muted);
}

.course-card .button {
  align-self: flex-start;
}

/* --- Account prompt section --- */
.account-prompt-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-soft);
  padding: 32px;
  max-width: 640px;
  text-align: center;
}

.account-prompt-card h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.account-prompt-card p {
  color: var(--muted);
  margin-bottom: 20px;
}

/* ============================================================
   Course detail layout (sidebar + content)
   ============================================================ */
.course-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 80vh;
  margin-top: 76px;
}

.course-sidebar {
  position: sticky;
  top: 76px;
  align-self: start;
  background: #eef0e4;
  border-right: 1px solid var(--line);
  max-height: calc(100vh - 76px);
  overflow-y: auto;
}

.sidebar-sticky {
  padding: 28px 20px;
}

.sidebar-back {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 0.88rem;
  color: var(--clay);
  text-decoration: none;
  font-weight: 600;
}

.sidebar-back:hover {
  text-decoration: underline;
}

.sidebar-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 18px;
}

/* Progress bar in sidebar */
.course-progress-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.progress-bar-track {
  flex: 1;
  height: 6px;
  background: rgba(31, 40, 36, 0.12);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--clay);
  border-radius: 4px;
  transition: width 300ms ease;
}

.progress-label {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  font-weight: 600;
}

/* Lesson list */
.lesson-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 4px;
}

.lesson-list li {
  margin: 0;
}

.lesson-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.88rem;
  color: var(--ink);
  transition: background 120ms ease;
}

.lesson-link:hover {
  background: rgba(37, 77, 61, 0.08);
}

.lesson-link.is-active {
  background: var(--forest);
  color: #fff;
}

.lesson-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}

.lesson-link.is-active .lesson-num {
  border-color: rgba(255, 255, 255, 0.5);
}

.lesson-name {
  flex: 1;
}

.lesson-status-icon {
  font-size: 0.82rem;
  opacity: 0.4;
  flex-shrink: 0;
}

.lesson-status-icon.is-done {
  opacity: 1;
  color: var(--leaf);
}

.lesson-link.is-active .lesson-status-icon.is-done {
  color: #a8d08a;
}

.sidebar-actions {
  margin-top: 16px;
}

.full-width {
  width: 100%;
}

/* --- Course content area --- */
.course-content {
  padding: 40px clamp(24px, 4vw, 60px);
  max-width: 820px;
}

.lesson {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-soft);
  padding: 36px 36px 32px;
  margin-bottom: 32px;
  scroll-margin-top: 90px;
}

.lesson-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.lesson h2 {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.lesson-intro {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 24px;
}

.lesson-body h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  margin: 28px 0 10px;
  color: var(--forest);
}

.lesson-body p {
  color: var(--muted);
  margin-bottom: 14px;
}

.lesson-body ul,
.lesson-body ol {
  color: var(--muted);
  padding-left: 20px;
}

.lesson-body li {
  margin-bottom: 8px;
}

.lesson-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.mark-complete-btn {
  cursor: pointer;
  font-size: 0.9rem;
}

.mark-complete-btn.completed {
  background: var(--leaf);
  color: #fff;
  opacity: 0.7;
  cursor: default;
}

.course-complete-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 18px 22px;
  border-radius: 8px;
  background: #e8f0e0;
  border: 1px solid var(--leaf);
}

.course-complete-banner span {
  font-size: 1.8rem;
}

.course-complete-banner strong {
  display: block;
  margin-bottom: 4px;
}

.course-complete-banner p {
  margin: 0;
  color: var(--muted);
}

.course-complete-banner a {
  color: var(--forest);
  font-weight: 700;
}

.course-footer {
  margin-top: 0;
}

/* ============================================================
   Dashboard
   ============================================================ */
.dashboard-hero {
  padding: 140px clamp(22px, 6vw, 76px) 50px;
  background: linear-gradient(135deg, #1f3629 0%, #2d4d3a 100%);
  color: #fff;
}

.dashboard-hero-content {
  max-width: 820px;
  margin: 0 auto;
}

.dashboard-hero .hero-copy {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
}

/* Profile card */
.profile-section {
  padding-top: 40px;
  padding-bottom: 20px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-soft);
  padding: 22px 28px;
  max-width: 660px;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
}

.profile-details {
  flex: 1;
}

.profile-details h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  margin-bottom: 2px;
}

.profile-email {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}

.profile-actions .button {
  font-size: 0.88rem;
  min-height: 38px;
  padding: 8px 16px;
}

/* Dashboard course cards */
.dashboard-courses-section h2 {
  font-size: 1.4rem;
  margin-bottom: 22px;
}

.dashboard-courses {
  display: grid;
  gap: 14px;
  max-width: 660px;
}

.course-progress-card {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-soft);
  padding: 18px 22px;
}

.course-progress-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  flex: 1;
  margin: 0;
  min-width: 180px;
}

.dashboard-progress-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 180px;
}

.dashboard-progress-bar .progress-bar-track {
  flex: 1;
}

.progress-text {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
  font-weight: 600;
  min-width: 48px;
}

.course-progress-card .button.small {
  font-size: 0.82rem;
  min-height: 34px;
  padding: 6px 14px;
}

/* Certificates */
.dashboard-certs-section {
  padding-top: 36px;
}

.dashboard-certs-section h2 {
  font-size: 1.4rem;
  margin-bottom: 22px;
}

.certs-grid {
  display: grid;
  gap: 16px;
  max-width: 660px;
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-soft);
  padding: 18px 22px;
}

.cert-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.cert-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  flex: 1;
  margin: 0;
}

.cert-card p {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}

.cert-card .button.small {
  font-size: 0.82rem;
  min-height: 34px;
  padding: 6px 14px;
}

/* --- Modal overlay --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(23, 32, 28, 0.72);
  backdrop-filter: blur(4px);
}

.modal-content {
  width: min(420px, 92vw);
  border-radius: 10px;
  background: var(--paper-soft);
  padding: 28px 32px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}

.modal-content h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.modal-content p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.registration-form {
  display: grid;
  gap: 14px;
}

.registration-form label {
  display: grid;
  gap: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.registration-form input {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: 0.95rem;
  background: #fff;
}

.registration-form input:focus {
  outline: 2px solid var(--clay);
  outline-offset: -1px;
  border-color: transparent;
}

.form-note {
  font-size: 0.82rem !important;
  color: var(--muted);
  margin: 0 !important;
}

.registration-form .button {
  margin-top: 4px;
}

/* ============================================================
   LMS: responsive
   ============================================================ */
@media (max-width: 860px) {
  .course-layout {
    grid-template-columns: 1fr;
    margin-top: 72px;
  }

  .course-sidebar {
    position: static;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-sticky {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
  }

  .sidebar-sticky .sidebar-back {
    margin-bottom: 0;
    width: 100%;
  }

  .sidebar-title {
    margin-bottom: 0;
    flex: 1;
    min-width: 180px;
  }

  .course-progress-summary {
    margin-bottom: 0;
    min-width: 160px;
  }

  .lesson-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    margin-bottom: 0;
  }

  .lesson-list li {
    flex: 1 1 auto;
    min-width: 120px;
  }

  .sidebar-actions {
    margin-top: 0;
  }

  .course-grid {
    grid-template-columns: 1fr;
  }

  .course-progress-card {
    flex-wrap: wrap;
  }

  .course-progress-card h3 {
    min-width: 100%;
  }

  .cert-card {
    flex-wrap: wrap;
  }

  .lesson {
    padding: 24px 20px;
  }
}
