/* Lectures landing (categories) - design v1. Scoped to body.ll-page.
   Visual rules only. Carousel, filter and link behaviour (classes and IDs used by scripts) are unchanged. */

.ll-page {
  --ll-ink: #1d1d1f;
  --ll-muted: #6e6e75;
  --ll-hair: #e0e0e6;
  --ll-surface: #ffffff;
  --ll-fill: #f3f3f7;
  --ll-accent: #e8485c;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ll-ink);
  background-color: #f6f6f8 !important;
}

/* Banner (carousel stays as it is; it sits in a rounded card) */
.ll-page .carousel-container { max-width: 1312px; margin: 24px auto 0; padding: 0 64px; box-sizing: border-box; }
.ll-page .carousel-wrapper { border-radius: 24px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.ll-page .carousel-dots { margin-top: 12px; }

/* Section titles and spacing */
.ll-page .categories-section, .ll-page .top-selling-section, .ll-page .educators-section {
  max-width: 1312px; margin: 56px auto 0; padding: 0 64px; box-sizing: border-box;
}
.ll-page .container-xxl { padding: 0; max-width: none; }
.ll-page .section-title {
  margin: 0 0 20px; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: var(--ll-ink);
}
.ll-page .categories-section > .container-xxl > hr { display: none; }
.ll-page .categories-section .section-title + .row + hr,
.ll-page .categories-section hr { border: 0; border-top: 1px solid var(--ll-hair); margin: 28px 0; }

/* Course category cards */
.ll-page .categories-section .row { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; }
.ll-page .categories-section .row > [class*="col-"] { width: auto; max-width: none; flex: none; padding: 0; }
.ll-page .category-card-large {
  height: 100%; padding: 24px; background: var(--ll-surface); border: 1px solid var(--ll-hair); border-radius: 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04); transition: border-color 0.2s ease;
}
.ll-page a:hover .category-card-large { border-color: var(--ll-ink); }
.ll-page .category-icon { margin-bottom: 14px; }
.ll-page .category-card-large h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--ll-ink); }
.ll-page .category-card-large p, .ll-page .category-card-large .text-muted { font-size: 14px; color: var(--ll-muted); }
.ll-page .categories-section a { text-decoration: none; color: inherit; display: block; }

/* Product carousels */
.ll-page .product-main-container { position: relative; }
.ll-page .product-carousel-wrapper { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; }
.ll-page .product-carousel-wrapper::-webkit-scrollbar { display: none; }
.ll-page .product-item-container { flex: 0 0 calc((100% - 60px) / 4); min-width: 240px; scroll-snap-align: start; }
.ll-page .product-card-wrapper {
  height: 100%; background: var(--ll-surface); border: 1px solid var(--ll-hair); border-radius: 20px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04);
}
.ll-page .product-card-link { color: var(--ll-ink); height: 100%; }
.ll-page .product-card-link .img-card {
  position: relative; margin: 14px; border-radius: 14px; background: #f1eeec; aspect-ratio: 16 / 10; overflow: hidden;
  display: flex; align-items: center; justify-content: center; border: 0;
}
.ll-page .product-card-link .img-card img { width: 100%; object-fit: cover; }
.ll-page .ribbon {
  position: absolute; top: 10px; left: 10px; z-index: 2; padding: 5px 10px; border-radius: 8px;
  background: var(--ll-ink); color: #fff; font-size: 11px; font-weight: 700;
}
.ll-page .badge-custom {
  position: absolute; top: 10px; right: 10px; z-index: 2; padding: 5px 10px; border-radius: 8px;
  background: var(--ll-accent); color: #fff; font-size: 11px; font-weight: 700;
}
.ll-page .badge-circle-hours {
  position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 58px; height: 58px; border-radius: 50%;
  background: var(--ll-ink); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ll-page .hours-number { font-size: 16px; font-weight: 700; line-height: 1; }
.ll-page .hours-text { font-size: 10px; opacity: 0.8; }
.ll-page .product-info { padding: 4px 18px 18px !important; }
.ll-page .product-info .product-name { display: block; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--ll-ink); margin: 0 0 6px; }
.ll-page .product-info .author-name { display: block; font-size: 13px; color: var(--ll-muted); margin-bottom: 12px; }
.ll-page .price-info { display: flex; align-items: baseline; gap: 8px; }
.ll-page .price-current { margin: 0; font-size: 17px; font-weight: 700; color: var(--ll-ink); }
.ll-page .price-original { font-size: 13px; color: var(--ll-muted); text-decoration: line-through; }
.ll-page .carousel-nav-btn {
  position: absolute; top: 40%; z-index: 3; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--ll-hair); background: var(--ll-surface); color: var(--ll-ink);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.ll-page .carousel-nav-btn.prev { left: -12px; }
.ll-page .carousel-nav-btn.next { right: -12px; }

/* Educators */
.ll-page .educators-section .row { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; }
.ll-page .educators-section .row > [class*="col-"] { width: auto; max-width: none; flex: none; padding: 0; }
.ll-page .educator-card {
  height: 100%; padding: 20px; background: var(--ll-surface); border: 1px solid var(--ll-hair); border-radius: 20px;
  display: flex; align-items: center; gap: 14px; box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04);
}
.ll-page .educator-avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--ll-fill); }
.ll-page .educator-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ll-page .educator-card h4 { margin: 0; font-size: 16px; font-weight: 700; color: var(--ll-ink); }

/* Responsive */
@media (max-width: 1199.98px) {
  .ll-page .product-item-container { flex-basis: calc((100% - 40px) / 3); }
  .ll-page .educators-section .row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .ll-page .carousel-container, .ll-page .categories-section, .ll-page .top-selling-section, .ll-page .educators-section { padding-left: 32px; padding-right: 32px; }
  .ll-page .categories-section .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ll-page .product-item-container { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 575.98px) {
  .ll-page .carousel-container, .ll-page .categories-section, .ll-page .top-selling-section, .ll-page .educators-section { padding-left: 16px; padding-right: 16px; margin-top: 40px; }
  .ll-page .categories-section .row, .ll-page .educators-section .row { grid-template-columns: minmax(0, 1fr); }
  .ll-page .product-item-container { flex-basis: 80%; }
  .ll-page .section-title { font-size: 22px; }
}

/* ---------- Hero (preview) ---------- */
.ll-page .ll-hero { max-width: 1312px; margin: 0 auto; padding: 48px 64px 8px; box-sizing: border-box; }
.ll-page .ll-eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--ll-accent); }
.ll-page .ll-hero-title { margin: 0; font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; color: var(--ll-ink); }
.ll-page .ll-hero-title span { color: var(--ll-accent); }
.ll-page .ll-hero-sub { margin: 16px 0 0; max-width: 620px; font-size: 17px; line-height: 1.6; color: var(--ll-muted); }
.ll-page .ll-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ll-page .ll-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 26px;
  border-radius: 14px; font-size: 15px; font-weight: 700; text-decoration: none; border: 1px solid transparent;
}
.ll-page .ll-btn-primary { background: var(--ll-ink); color: #fff !important; }
.ll-page .ll-btn-secondary { background: var(--ll-surface); color: var(--ll-ink) !important; border-color: var(--ll-hair); }
.ll-page .ll-hero + .carousel-container { margin-top: 28px; }
@media (max-width: 991.98px) { .ll-page .ll-hero { padding: 32px 32px 0; } }
@media (max-width: 575.98px) {
  .ll-page .ll-hero { padding: 24px 16px 0; }
  .ll-page .ll-hero-actions .ll-btn { flex: 1 1 100%; }
}

/* ---------- Override the shared categories.css look (preview: left-aligned, flat cards) ---------- */
.ll-page .section-title { text-align: left; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 20px; color: var(--ll-ink); }
.ll-page .section-title::after { display: none !important; content: none; }
.ll-page .categories-section .section-title { margin-top: 0; }
.ll-page .category-card-large {
  display: flex; align-items: center; gap: 16px; text-align: left; height: 100%; padding: 22px 24px;
  background: var(--ll-surface); border: 1px solid var(--ll-hair); border-radius: 20px; box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04);
  transform: none !important; overflow: visible;
}
.ll-page .category-card-large::before { display: none !important; }
.ll-page .category-card-large:hover { transform: none !important; border-color: var(--ll-ink); box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.08); }
.ll-page .category-card-large:hover .category-icon { transform: none !important; }
.ll-page .category-icon {
  width: 52px; height: 52px; min-width: 52px; margin: 0; border-radius: 14px; background: var(--ll-fill); color: var(--ll-ink);
  box-shadow: none; font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
}
.ll-page .category-card-large h3 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; color: var(--ll-ink); }
.ll-page .educator-card { text-align: left; background: var(--ll-surface); border: 1px solid var(--ll-hair); border-radius: 20px; padding: 20px; transition: none; }
.ll-page .educator-card:hover { transform: none; box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.08); border-radius: 20px; }
.ll-page .educator-avatar { width: 64px; height: 64px; min-width: 64px; margin: 0; border-radius: 50%; }
.ll-page .avatar-placeholder { background: var(--ll-fill); color: var(--ll-ink); font-size: 20px; }
.ll-page .educator-card h4 { margin: 0; font-size: 16px; font-weight: 700; color: var(--ll-ink); }
.ll-page .educators-section .educator-card { display: flex; align-items: center; gap: 14px; height: 100%; }
.ll-page .categories-section .row { margin-bottom: 40px; }
.ll-page .categories-section > .container-xxl > hr { display: none; }
@media (max-width: 575.98px) { .ll-page .categories-section .row { margin-bottom: 28px; } }

/* Space for the sticky header: the hero must start below it */
.ll-page .ll-hero { padding-top: var(--ll-header-space, 120px); }
@media (max-width: 991.98px) { .ll-page .ll-hero { padding-top: 104px; } }
@media (max-width: 575.98px) { .ll-page .ll-hero { padding-top: 92px; } }

/* ---------- Spacing: header, content and footer (final) ---------- */
.ll-page .section-1 { background: transparent !important; height: auto; padding: 0; }
.ll-page .include-header { padding-top: 0 !important; }
.ll-page .ll-hero { padding: 40px 64px 8px; }
.ll-page .categories-section, .ll-page .top-selling-section, .ll-page .educators-section { margin-top: 56px; }
.ll-page .educators-section { margin-bottom: 72px; }
.ll-page .start-plan-card, .ll-page .closing-card { margin-bottom: 72px; }
@media (max-width: 991.98px) { .ll-page .ll-hero { padding: 32px 32px 8px; } }
@media (max-width: 575.98px) { .ll-page .ll-hero { padding: 24px 16px 8px; } .ll-page .educators-section { margin-bottom: 48px; } }

/* ---------- Category cards and section subtitles (preview) ---------- */
.ll-page .section-sub { margin: -12px 0 22px; font-size: 15px; color: var(--ll-muted); }
.ll-page .category-card-large { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; row-gap: 0; align-items: center; }
.ll-page .category-card-large .category-icon { grid-column: 1; grid-row: 1 / span 3; align-self: center; }
.ll-page .category-card-large h3 { grid-column: 2; grid-row: 1; margin: 0; }
.ll-page .category-card-large .cat-meta { grid-column: 2; grid-row: 2; margin: 4px 0 0; font-size: 14px; color: var(--ll-muted); }
.ll-page .category-card-large .cat-link { grid-column: 2; grid-row: 3; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--ll-accent); }

/* ---------- Header: not sticky on this page, so it never covers the hero ---------- */
.ll-page .sticky-nav { position: relative !important; top: auto !important; }

/* ===== Landing only: show the whole poster (no side cut-off) ===== */
.ll-page .product-card-link .img-card {
  aspect-ratio: 4 / 5; background: #f1eeec; margin: 12px; border-radius: 14px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.ll-page .product-card-link .img-card img {
  position: static; width: 100%;  max-width: 100%; object-fit: contain; border-radius: 0;
}
