/* =========================================================
   Losaia Learn — site theme
   Classic academic look: steel blue, coral accents, serif headings.
   Tailwind mirrors these colours in tailwind.config.js.
   ========================================================= */

/* ---------- 1. Colour + font tokens ---------- */
:root {
  --ll-navy: #22405E;        /* headings, dark text, logo */
  --ll-navy-2: #2E5070;      /* chips/cards on dark backgrounds */
  --ll-navy-deep: #1B344D;   /* deepest blue */
  --ll-primary: #335C81;     /* primary buttons, links, stats band, footer bar */
  --ll-primary-dark: #274A6B;/* hover */
  --ll-primary-soft: #E8EFF6;/* soft blue badges */
  --ll-accent: #C94A3C;      /* coral highlights, categories, accent buttons */
  --ll-accent-dark: #B03E32; /* hover */
  --ll-accent-ink: #FFFFFF;  /* text on coral */
  --ll-accent-soft: #FBE9E6; /* soft coral badges */
  --ll-bg: #F6F8FA;          /* page background */
  --ll-card: #FFFFFF;
  --ll-text: #22303C;
  --ll-text-2: #3A4B57;
  --ll-muted: #6B7A86;
  --ll-on-dark: #D6E1EB;     /* body text on blue */
  --ll-border: #E2E8EE;
  --ll-border-strong: #C9D4DE;

  --ll-font-head: 'Bitter', Georgia, serif;
  --ll-font-body: 'Open Sans', system-ui, sans-serif;

  --ll-radius: 6px;
  --ll-radius-lg: 10px;
  --ll-shadow: 0 10px 30px rgba(34, 64, 94, .10);
}

/* ---------- 2. Base ---------- */
body {
  margin: 0;
  background: var(--ll-bg);
  color: var(--ll-text);
  font-family: var(--ll-font-body);
  font-size: 16px;
  line-height: 1.65;
}
h1, h2, h3, h4 {
  font-family: var(--ll-font-head);
  color: var(--ll-navy);
  line-height: 1.2;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 700; }
h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 600; }
h3 { font-size: 20px; font-weight: 600; }
a { color: var(--ll-primary); text-decoration: none; }
/* :where() keeps this at plain-element strength so Tailwind colour classes
   on existing links/buttons (e.g. white text on blue) still win on hover. */
a:where(:hover) { color: var(--ll-primary-dark); text-decoration: underline; }
img { max-width: 100%; }

.ll-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ll-section { padding: 72px 0; }
.ll-section-white { background: #fff; }
.ll-eyebrow {
  display: block; font-size: 13px; font-weight: 700; color: var(--ll-accent);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px;
}

/* Section title with a thin rule running to the right, e.g. "OUR FEATURED COURSES ———" */
.ll-section-title { display: flex; align-items: center; gap: 20px; margin-bottom: 36px; }
.ll-section-title h2 { margin: 0; text-transform: uppercase; font-size: clamp(20px, 2.4vw, 26px); letter-spacing: .02em; white-space: nowrap; }
.ll-section-title::after { content: ""; flex: 1; height: 1px; background: var(--ll-border); order: 1; }
.ll-section-title > .ll-section-tools { order: 2; display: flex; gap: 6px; }
.ll-section-title.centered { justify-content: center; }
.ll-section-title.centered::after { display: none; }
.ll-section-sub { margin: -24px 0 36px; color: var(--ll-muted); }

/* ---------- 3. Header / nav ---------- */
.ll-topbar { background: var(--ll-navy-deep); color: var(--ll-on-dark); font-size: 13px; }
.ll-topbar .ll-container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-top: 7px; padding-bottom: 7px; }
.ll-topbar a { color: var(--ll-on-dark); }
.ll-topbar a:hover { color: #fff; }

.ll-header { background: #fff; border-bottom: 1px solid var(--ll-border); box-shadow: 0 2px 10px rgba(34,64,94,.05); }
.ll-header .ll-container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 14px; padding-bottom: 14px;
}
.ll-logo { display: flex; align-items: center; gap: 10px; color: var(--ll-navy);
  font-family: var(--ll-font-head); font-weight: 700; font-size: 22px; letter-spacing: .01em; }
.ll-logo:hover { text-decoration: none; color: var(--ll-navy); }
.ll-logo-mark {
  width: 36px; height: 36px; border-radius: 6px; background: var(--ll-primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
  box-shadow: inset -6px -6px 0 rgba(0,0,0,.12);
}
.ll-logo span.accent { color: var(--ll-accent); }
.ll-nav { display: flex; flex-wrap: wrap; gap: 4px; font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .03em; }
.ll-nav a { color: var(--ll-text-2); padding: 7px 12px; border-radius: 4px; }
.ll-nav a:hover { color: var(--ll-accent); text-decoration: none; }
.ll-nav a.active { background: var(--ll-accent); color: #fff; }

/* ---------- 4. Buttons ---------- */
.ll-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: var(--ll-radius);
  font-family: inherit; font-weight: 700; font-size: 14px; border: 0; cursor: pointer;
  text-decoration: none; text-transform: uppercase; letter-spacing: .03em;
  transition: background .15s, color .15s, border-color .15s;
}
.ll-btn:hover { text-decoration: none; }
.ll-btn-primary { background: var(--ll-primary); color: #fff; }
.ll-btn-primary:hover { background: var(--ll-primary-dark); color: #fff; }
.ll-btn-accent { background: var(--ll-accent); color: var(--ll-accent-ink); }
.ll-btn-accent:hover { background: var(--ll-accent-dark); color: var(--ll-accent-ink); }
.ll-btn-dark { background: var(--ll-navy); color: #fff; }
.ll-btn-dark:hover { background: var(--ll-navy-2); color: #fff; }
.ll-btn-outline { background: transparent; color: var(--ll-navy); border: 1.5px solid var(--ll-border-strong); }
.ll-btn-outline:hover { border-color: var(--ll-primary); color: var(--ll-primary); }
.ll-btn-ghost-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.ll-btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.ll-btn-block { width: 100%; }

/* Small square arrow button (carousels) */
.ll-arrow {
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 4px; background: transparent; color: var(--ll-primary); cursor: pointer;
}
.ll-arrow:hover { background: var(--ll-primary-soft); }
.ll-arrow svg { width: 22px; height: 22px; }

/* ---------- 5. Hero (blue band on inner pages) ---------- */
.ll-hero { background: var(--ll-primary); color: #fff; padding: 56px 0 64px; }
.ll-hero h1, .ll-hero h2 { color: #fff; }
.ll-hero p { color: var(--ll-on-dark); font-size: 18px; max-width: 680px; }
.ll-hero .highlight { color: #FFD2CB; }
.ll-breadcrumb { font-size: 14px; color: #BFD0E0; margin-bottom: 16px; }
.ll-breadcrumb a { color: #BFD0E0; }

/* ---------- 6. Home carousel ---------- */
.ll-carousel { position: relative; height: clamp(440px, 62vh, 600px); overflow: hidden; background: var(--ll-navy-deep); }
.ll-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.ll-slide.is-active { opacity: 1; visibility: visible; }
.ll-slide picture, .ll-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ll-slide.is-active img { animation: ll-kenburns 9s ease-out both; }
.ll-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,40,62,.88) 0%, rgba(20,40,62,.62) 45%, rgba(20,40,62,.15) 100%);
}
.ll-slide-content { position: relative; z-index: 1; height: 100%; display: flex; align-items: center; }
.ll-slide-content .inner { max-width: 600px; color: #fff; }
.ll-slide-content .ll-eyebrow { color: #FFB3A8; }
.ll-slide-content h1, .ll-slide-content h2 { color: #fff; font-size: clamp(30px, 4.6vw, 50px); font-weight: 700; margin-bottom: 16px; }
.ll-slide-content p { color: var(--ll-on-dark); font-size: clamp(16px, 1.6vw, 19px); margin: 0 0 28px; }
.ll-slide.is-active .inner > * { animation: ll-rise .8s ease both; }
.ll-slide.is-active .inner > *:nth-child(2) { animation-delay: .12s; }
.ll-slide.is-active .inner > *:nth-child(3) { animation-delay: .24s; }
.ll-slide.is-active .inner > *:nth-child(4) { animation-delay: .36s; }
.ll-carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.ll-carousel-nav:hover { background: rgba(255,255,255,.3); }
.ll-carousel-nav.prev { left: 18px; }
.ll-carousel-nav.next { right: 18px; }
.ll-carousel-nav svg { width: 22px; height: 22px; }
.ll-carousel-dots { position: absolute; z-index: 2; bottom: 64px; left: 0; right: 0; }
.ll-carousel-dots .ll-container { display: flex; gap: 8px; }
.ll-carousel-dots button {
  width: 34px; height: 4px; padding: 0; border: 0; border-radius: 2px; cursor: pointer;
  background: rgba(255,255,255,.4); transition: background .2s, width .2s;
}
.ll-carousel-dots button.is-active { background: var(--ll-accent); width: 54px; }
@keyframes ll-kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes ll-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Course search card overlapping the carousel */
.ll-searchbar {
  position: relative; z-index: 3; margin-top: -40px; background: #fff; border-radius: var(--ll-radius-lg);
  box-shadow: var(--ll-shadow); padding: 18px; display: grid; gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .ll-searchbar { grid-template-columns: 2fr 1.2fr auto; } }
.ll-searchbar .ll-input, .ll-searchbar .ll-select { min-height: 48px; }

/* ---------- 7. Feature icons row ---------- */
.ll-feature { text-align: center; padding: 8px 12px; }
.ll-feature .icon { color: var(--ll-primary); width: 72px; height: 72px; margin: 0 auto 18px; transition: color .2s, transform .2s; }
.ll-feature h3 { text-transform: uppercase; font-size: 19px; margin-bottom: 4px; transition: color .2s; }
.ll-feature .sub { display: block; font-size: 16px; color: var(--ll-text-2); margin-bottom: 14px; }
.ll-feature p { color: var(--ll-muted); font-size: 14.5px; line-height: 1.9; margin: 0; }
.ll-feature:hover .icon { color: var(--ll-accent); transform: translateY(-4px); }
.ll-feature:hover h3 { color: var(--ll-accent); }

/* ---------- 8. Stats band ---------- */
.ll-stats { background: var(--ll-primary); color: #fff; padding: 48px 0; }
.ll-stats .stat { text-align: center; }
.ll-stats .bubble {
  width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: #fff; color: var(--ll-primary);
  display: flex; align-items: center; justify-content: center;
}
.ll-stats .bubble svg { width: 28px; height: 28px; }
.ll-stats .num { font-family: var(--ll-font-head); font-size: clamp(32px, 4vw, 42px); font-weight: 700; line-height: 1.1; color: #fff; }
.ll-stats .label { color: var(--ll-on-dark); font-size: 16px; }

/* ---------- 9. Cards ---------- */
.ll-card {
  background: var(--ll-card); border: 1px solid var(--ll-border);
  border-radius: var(--ll-radius-lg); padding: 24px;
}
.ll-card-dark { background: var(--ll-primary); color: #fff; border-radius: var(--ll-radius-lg); padding: 24px; }
.ll-card-dark h2, .ll-card-dark h3 { color: #fff; }
.ll-card-dark p { color: var(--ll-on-dark); }

/* Course card */
.ll-course-card {
  background: #fff; border: 1px solid var(--ll-border); border-radius: var(--ll-radius);
  overflow: hidden; display: flex; flex-direction: column; color: var(--ll-text);
  transition: box-shadow .2s, transform .2s;
}
.ll-course-card:hover { text-decoration: none; box-shadow: var(--ll-shadow); transform: translateY(-3px); }
.ll-course-card .thumb { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--ll-primary); }
.ll-course-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.ll-course-card:hover .thumb img { transform: scale(1.05); }
.ll-course-card .body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ll-course-card .category { font-size: 14px; color: var(--ll-accent); font-weight: 600; }
.ll-course-card .title { font-family: var(--ll-font-head); font-weight: 600; font-size: 19px; color: var(--ll-navy); line-height: 1.3; }
.ll-course-card .meta { font-size: 14px; color: var(--ll-muted); }
.ll-course-card .footer {
  margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 12px;
}
.ll-price { font-family: var(--ll-font-head); font-weight: 700; font-size: 22px; color: var(--ll-navy); }
.ll-price-pill {
  display: inline-block; background: var(--ll-primary); color: #fff; border-radius: 4px;
  font-family: var(--ll-font-head); font-weight: 700; font-size: 17px; padding: 6px 12px; line-height: 1.2;
}

.ll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

/* Horizontal scroller with snap points (courses, posts) — no JS library needed */
.ll-scroller {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, calc((100% - 48px) / 3));
  gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 2px 18px; scrollbar-width: thin;
}
.ll-scroller > * { scroll-snap-align: start; }
@media (max-width: 720px) { .ll-scroller { grid-auto-columns: 82%; } }

/* Field of study tile */
.ll-field {
  display: block; background: #fff; border: 1px solid var(--ll-border); border-radius: var(--ll-radius);
  padding: 22px 14px; text-align: center; color: var(--ll-text); transition: border-color .2s, box-shadow .2s, transform .2s;
}
.ll-field:hover { text-decoration: none; border-color: var(--ll-accent); box-shadow: var(--ll-shadow); transform: translateY(-2px); }
.ll-field .emoji { font-size: 30px; line-height: 1; margin-bottom: 10px; }
.ll-field .name { font-family: var(--ll-font-head); font-weight: 600; color: var(--ll-navy); font-size: 15px; }
.ll-field .count { font-size: 13px; color: var(--ll-muted); }

/* Enroll / price box on course page */
.ll-enroll-box {
  background: #fff; border-radius: var(--ll-radius-lg); overflow: hidden;
  box-shadow: 0 24px 48px rgba(20,40,62,.22); color: var(--ll-text);
}
.ll-enroll-box .body { padding: 24px; display: flex; flex-direction: column; gap: 14px; }

/* ---------- 10. Tabs ---------- */
.ll-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--ll-border); margin-bottom: 24px; }
.ll-tabs button {
  border: 1px solid transparent; border-bottom: 0; background: transparent; cursor: pointer;
  padding: 11px 16px; font: inherit; font-size: 15px; color: var(--ll-text-2); border-radius: 4px 4px 0 0;
  margin-bottom: -1px;
}
.ll-tabs button:hover { color: var(--ll-primary); }
.ll-tabs button[aria-selected="true"] {
  background: #fff; border-color: var(--ll-border); color: var(--ll-primary); box-shadow: inset 0 3px 0 var(--ll-primary);
}
.ll-tab-panel p { color: var(--ll-muted); line-height: 1.9; }
.ll-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ll-checklist li { display: flex; gap: 10px; color: var(--ll-text-2); }
.ll-checklist li::before { content: "✓"; color: var(--ll-accent); font-weight: 700; }
.ll-photo { border-radius: var(--ll-radius-lg); overflow: hidden; box-shadow: var(--ll-shadow); }
.ll-photo img { display: block; width: 100%; height: auto; }

/* ---------- 11. Team (tutors) ---------- */
.ll-team-card { background: #fff; border: 1px solid var(--ll-border); border-radius: var(--ll-radius); overflow: hidden; text-align: center; }
.ll-team-card .photo { aspect-ratio: 1; overflow: hidden; background: var(--ll-primary-soft); }
.ll-team-card .photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(25%); transition: filter .3s, transform .4s; }
.ll-team-card:hover .photo img { filter: none; transform: scale(1.04); }
.ll-team-card .initial { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--ll-font-head); font-size: 64px; color: var(--ll-primary); }
.ll-team-card .info { padding: 16px; }
.ll-team-card .name { font-family: var(--ll-font-head); font-weight: 600; font-size: 19px; color: var(--ll-navy); }
.ll-team-card .role { font-size: 14px; color: var(--ll-muted); }

/* ---------- 12. Blog ---------- */
.ll-blog-band { background: linear-gradient(135deg, #E3ECF4 0%, #F4F7FA 55%, #F9ECE8 100%); }
.ll-post { display: flex; gap: 22px; align-items: flex-start; }
.ll-date-badge { flex: none; width: 72px; text-align: center; border-radius: 4px; overflow: hidden; box-shadow: 0 6px 16px rgba(34,64,94,.12); }
.ll-date-badge .top { background: var(--ll-primary); color: #fff; padding: 8px 4px 6px; line-height: 1.15; }
.ll-date-badge .day { display: block; font-family: var(--ll-font-head); font-size: 22px; font-weight: 700; }
.ll-date-badge .mon { display: block; font-size: 13px; }
.ll-date-badge .bottom { background: var(--ll-accent); color: #fff; font-size: 12px; font-weight: 600; padding: 6px 4px; text-transform: uppercase; letter-spacing: .04em; }
.ll-date-badge.overlay { position: absolute; top: 14px; left: 14px; width: 64px; z-index: 1; }
.ll-post-card {
  flex: 1; min-width: 0; background: #fff; border-radius: var(--ll-radius); overflow: hidden;
  box-shadow: 0 6px 22px rgba(34,64,94,.08); display: flex; flex-direction: column; color: var(--ll-text);
  transition: box-shadow .2s, transform .2s;
}
.ll-post-card:hover { text-decoration: none; box-shadow: var(--ll-shadow); transform: translateY(-3px); }
.ll-post-card .cover { aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--ll-primary), var(--ll-navy-deep)); }
.ll-post-card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.ll-post-card:hover .cover img { transform: scale(1.05); }
.ll-post-card .body { padding: 20px 22px; flex: 1; }
.ll-post-card .title { font-family: var(--ll-font-head); font-weight: 600; font-size: 20px; color: var(--ll-navy); line-height: 1.3; margin-bottom: 10px; }
.ll-post-card .excerpt { color: var(--ll-muted); font-size: 15px; line-height: 1.8; margin: 0; }
.ll-post-card .foot { border-top: 1px solid var(--ll-border); padding: 12px 22px; font-size: 14px; color: var(--ll-muted); display: flex; gap: 16px; flex-wrap: wrap; }
.ll-post-card .foot .tag { color: var(--ll-primary); }

/* Article body written in the rich text editor */
.ll-prose { font-size: 17px; line-height: 1.85; color: var(--ll-text-2); }
.ll-prose > * + * { margin-top: 1.1em; }
.ll-prose p { margin: 0; }
.ll-prose h2 { font-size: 26px; margin-top: 1.6em; }
.ll-prose h3 { font-size: 21px; margin-top: 1.4em; }
.ll-prose h4 { font-size: 18px; margin-top: 1.2em; }
.ll-prose ul { list-style: disc; padding-left: 1.4em; }
.ll-prose ol { list-style: decimal; padding-left: 1.4em; }
.ll-prose li + li { margin-top: .35em; }
.ll-prose a { text-decoration: underline; }
.ll-prose img { height: auto; border-radius: var(--ll-radius); }
.ll-prose blockquote { border-left: 4px solid var(--ll-accent); margin-left: 0; padding: 4px 0 4px 18px; font-style: italic; color: var(--ll-navy); }
.ll-prose pre { background: #F1F4F7; padding: 14px; border-radius: var(--ll-radius); overflow-x: auto; font-size: 14px; }
.ll-prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.ll-prose th, .ll-prose td { border: 1px solid var(--ll-border-strong); padding: 8px 12px; text-align: left; }

/* ---------- 13. Call-to-action box ---------- */
.ll-cta-box {
  border: 1px solid var(--ll-border); background: #fff; border-radius: var(--ll-radius);
  padding: 44px 24px; text-align: center;
}
.ll-cta-box h2 { font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 8px; }
.ll-cta-box p { color: var(--ll-muted); font-family: var(--ll-font-head); font-size: 17px; margin: 0 0 24px; }
.ll-cta-photo { position: relative; color: #fff; overflow: hidden; }
.ll-cta-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ll-cta-photo::before { content: ""; position: absolute; inset: 0; background: rgba(27,52,77,.82); z-index: 1; }
.ll-cta-photo > .ll-container { position: relative; z-index: 2; }
.ll-cta-photo h2 { color: #fff; }
.ll-cta-photo p { color: var(--ll-on-dark); }

/* ---------- 14. Badges ---------- */
.ll-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.ll-badge-gold { background: var(--ll-accent-soft); color: #9A3329; }
.ll-badge-green { background: var(--ll-primary-soft); color: var(--ll-primary-dark); }
.ll-badge-grey { background: #EEF2F5; color: var(--ll-text-2); }
.ll-badge-solid { background: var(--ll-accent); color: var(--ll-accent-ink); }

/* ---------- 15. Forms ---------- */
.ll-label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--ll-text); }
.ll-input, .ll-select, .ll-textarea {
  width: 100%; box-sizing: border-box; min-height: 50px; padding: 0 16px;
  border: 1.5px solid var(--ll-border-strong); border-radius: var(--ll-radius);
  background: #fff; font-family: inherit; font-size: 16px; color: var(--ll-text);
}
.ll-textarea { padding: 14px 16px; min-height: 110px; }
.ll-input:focus, .ll-select:focus, .ll-textarea:focus {
  outline: none; border-color: var(--ll-primary); box-shadow: 0 0 0 3px rgba(51,92,129,.18);
}
input[type=checkbox], input[type=radio] { accent-color: var(--ll-primary); }

/* ---------- 16. Curriculum accordion ---------- */
.ll-curriculum { background: #fff; border: 1px solid var(--ll-border); border-radius: var(--ll-radius-lg); overflow: hidden; }
.ll-module { border-bottom: 1px solid #EDF1F4; }
.ll-module summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px;
  padding: 16px 24px; font-weight: 600;
}
.ll-module summary::-webkit-details-marker { display: none; }
.ll-module[open] summary { background: #F3F6F9; }
.ll-module-num {
  flex: none; width: 34px; height: 34px; border-radius: 6px; background: var(--ll-primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700;
}
.ll-module .lessons { padding: 4px 24px 16px 74px; }
.ll-lesson { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 15px; color: var(--ll-text-2); }
.ll-lesson .time { margin-left: auto; color: var(--ll-muted); font-size: 14px; }

/* ---------- 17. Progress bar ---------- */
.ll-progress { height: 8px; border-radius: 999px; background: var(--ll-border); overflow: hidden; }
.ll-progress > div { height: 100%; background: var(--ll-primary); }
.ll-hero .ll-progress, .ll-card-dark .ll-progress { background: var(--ll-navy-2); }
.ll-hero .ll-progress > div, .ll-card-dark .ll-progress > div { background: var(--ll-accent); }

/* ---------- 18. Footer ---------- */
.ll-footer { background: #F1F4F7; color: var(--ll-muted); font-size: 15px; }
.ll-footer-links { background: #fff; border-top: 1px solid var(--ll-border); border-bottom: 1px solid var(--ll-border); }
.ll-footer-links .ll-container { display: flex; flex-wrap: wrap; gap: 6px 0; padding-top: 18px; padding-bottom: 18px; }
.ll-footer-links a { color: var(--ll-primary); padding: 0 12px; border-left: 1px solid var(--ll-border-strong); line-height: 1; }
.ll-footer-links a:first-child { border-left: 0; padding-left: 6px; }
.ll-footer-main { padding: 48px 0 40px; }
.ll-footer h4 { color: var(--ll-navy); font-family: var(--ll-font-head); font-size: 20px; font-weight: 600; margin-bottom: 18px; }
.ll-footer a { color: var(--ll-text-2); }
.ll-footer a:hover { color: var(--ll-accent); }
.ll-footer .contact-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.ll-footer .contact-row svg { flex: none; width: 18px; height: 18px; margin-top: 4px; color: var(--ll-muted); }
.ll-social { display: flex; gap: 10px; flex-wrap: wrap; }
.ll-social a {
  width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 1px solid var(--ll-border);
  display: inline-flex; align-items: center; justify-content: center; color: var(--ll-text-2); transition: background .15s, color .15s;
}
.ll-social a:hover { background: var(--ll-primary); color: #fff; border-color: var(--ll-primary); }
.ll-social svg { width: 18px; height: 18px; }
.ll-footer-bottom { background: var(--ll-primary); color: #fff; font-size: 14px; }
.ll-footer-bottom .ll-container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 18px; padding-bottom: 18px; }
.ll-footer-bottom a { color: #fff; }
.ll-footer-bottom a:hover { color: #FFD2CB; }
.ll-footer-bottom nav a + a { margin-left: 10px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.4); }

/* Back-to-top button */
.ll-to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 44px; height: 44px; border: 0; border-radius: 4px;
  background: var(--ll-primary); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--ll-shadow);
}
.ll-to-top:hover { background: var(--ll-primary-dark); }

/* Pagination links (Laravel's Tailwind view) pick up the theme colours automatically. */

/* ---------- 19. Mobile + motion ---------- */
@media (max-width: 720px) {
  .ll-section { padding: 52px 0; }
  .ll-nav { gap: 0; }
  .ll-module .lessons { padding-left: 24px; }
  .ll-carousel-nav { display: none; }
  .ll-carousel-dots { bottom: 56px; }
  .ll-slide::after { background: linear-gradient(180deg, rgba(20,40,62,.55) 0%, rgba(20,40,62,.85) 100%); }
  .ll-post { gap: 14px; }
  .ll-date-badge { width: 58px; }
  .ll-section-title h2 { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .ll-slide, .ll-slide.is-active img, .ll-slide.is-active .inner > * { animation: none !important; transition: none !important; }
  .ll-scroller { scroll-behavior: auto; }
}
