.lms-cd-hero {
    background: var(--lms-dark);
    color: #fff;
    padding: clamp(20px, 3vw, 28px) 0 clamp(36px, 5vw, 56px);
}
.lms-cd-hero .lms-breadcrumb__list { color: rgba(255, 255, 255, .5); }
.lms-cd-hero .lms-breadcrumb__item a { color: rgba(255, 255, 255, .72); }
.lms-cd-hero .lms-breadcrumb__item a:hover { color: #fff; }
.lms-cd-hero .lms-breadcrumb__item + .lms-breadcrumb__item::before { color: rgba(255, 255, 255, .3); }
.lms-cd-hero .lms-breadcrumb__item[aria-current="page"] span { color: rgba(255, 255, 255, .55); }

.lms-cd-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    gap: clamp(1.75rem, 4vw, 3rem);
    align-items: center;
    margin-top: clamp(1.25rem, 3vw, 1.75rem);
}
.lms-cd-hero__body { min-width: 0; }
.lms-cd-hero__tag {
    display: inline-block; margin-bottom: 1rem;
    padding: .3rem .8rem; border-radius: var(--lms-radius-pill);
    background: var(--theme-accent); color: #fff;
    font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
    text-decoration: none;
}
.lms-cd-hero__tag:hover { color: #fff; text-decoration: none; opacity: .9; }
.lms-cd-hero__title { margin: 0 0 .85rem; font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 700; line-height: 1.18; }
.lms-cd-hero__lead { margin: 0; color: #c7cfdd; font-size: 1.02rem; line-height: 1.6; }

.lms-cd-hero__meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.5rem;
    list-style: none; margin: 1.5rem 0 0; padding: 0;
    font-size: .88rem; color: #aeb7c9;
}
.lms-cd-hero__meta li { display: inline-flex; align-items: center; gap: .4rem; }
.lms-cd-hero__meta b { color: #fff; }
.lms-cd-hero__meta i { color: var(--theme-accent); }
.lms-cd-hero__meta .lms-cd-stars i { color: var(--lms-star); }
.lms-cd-stars { color: var(--lms-star); letter-spacing: 1px; }

.lms-cd { background: var(--lms-bg); color: var(--lms-ink); font-family: var(--lms-font); padding: clamp(32px, 5vw, 56px) 0 clamp(48px, 7vw, 80px); }
.lms-cd__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }

.lms-cd-preview {
    position: relative; display: block; overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: var(--lms-radius);
    background: var(--lms-dark-2);
    border: 1px solid color-mix(in srgb, #fff 12%, transparent);
}
.lms-cd-preview img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.lms-cd-preview:hover img { transform: scale(1.04); }
.lms-cd-preview__overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem;
    background: rgba(8, 12, 20, .45);
    transition: background .2s ease;
}
.lms-cd-preview:hover .lms-cd-preview__overlay { background: rgba(8, 12, 20, .58); }
.lms-cd-preview__play {
    width: 68px; height: 68px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; color: var(--theme-primary); font-size: 2rem;
    box-shadow: var(--lms-shadow-lg);
    transition: transform .2s ease;
}
.lms-cd-preview:hover .lms-cd-preview__play { transform: scale(1.08); }
.lms-cd-preview__label { color: #fff; font-weight: 700; font-size: .95rem; }

.lms-cd-tabs { margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.lms-cd-tabs__nav {
    display: flex; flex-wrap: wrap; gap: .35rem;
    list-style: none; margin: 0 0 1.5rem; padding: 0 0 .35rem;
    border-bottom: 1px solid var(--lms-border);
}
.lms-cd-tabs__link {
    display: inline-block;
    padding: .6rem 1rem;
    border-radius: var(--lms-radius-sm);
    color: var(--lms-ink-soft); font-weight: 700; font-size: .92rem;
    text-decoration: none;
    transition: color .16s ease, background .16s ease;
}
.lms-cd-tabs__link:hover { color: var(--theme-primary); text-decoration: none; }
.lms-cd-tabs__link.active { color: var(--theme-primary); background: var(--theme-primary-softer); }
.lms-cd-tabs__content { color: var(--lms-ink-soft); line-height: 1.75; }
.lms-cd-tabs__content h1, .lms-cd-tabs__content h2, .lms-cd-tabs__content h3,
.lms-cd-tabs__content h4, .lms-cd-tabs__content h5 { color: var(--lms-ink); font-weight: 700; }
.lms-cd-tabs__content img { max-width: 100%; height: auto; }

.lms-curriculum__summary {
    display: flex; flex-wrap: wrap; gap: .4rem;
    margin: 0 0 1rem; font-size: .88rem; font-weight: 600; color: var(--lms-ink-soft);
}
.lms-curriculum__summary span { color: var(--lms-ink-faint); }

.lms-curriculum__section {
    border: 1px solid var(--lms-border);
    border-radius: var(--lms-radius-sm);
    margin-bottom: .6rem;
    background: #fff;
    overflow: hidden;
}
.lms-curriculum__section[open] { border-color: color-mix(in srgb, var(--theme-primary) 30%, var(--lms-border)); }

.lms-curriculum__head {
    display: flex; align-items: center; gap: .85rem;
    padding: .95rem 1.1rem;
    background: var(--lms-surface);
    cursor: pointer;
    list-style: none;
}
.lms-curriculum__head::-webkit-details-marker { display: none; }
.lms-curriculum__head::marker { content: ""; }
.lms-curriculum__head:hover .lms-curriculum__title { color: var(--theme-primary); }

.lms-curriculum__chevron { color: var(--lms-ink-faint); font-size: .9rem; transition: transform .2s ease; flex: 0 0 auto; }
.lms-curriculum__section[open] .lms-curriculum__chevron { transform: rotate(180deg); }

.lms-curriculum__head-text { display: flex; flex-direction: column; gap: .15rem; min-width: 0; margin-right: auto; }
.lms-curriculum__title { font-weight: 700; font-size: .96rem; color: var(--lms-ink); line-height: 1.35; transition: color .16s ease; }
.lms-curriculum__note { font-size: .84rem; font-weight: 500; color: var(--lms-ink-soft); }
.lms-curriculum__count { flex: 0 0 auto; font-size: .8rem; font-weight: 600; color: var(--lms-ink-faint); white-space: nowrap; }

.lms-curriculum__list { list-style: none; margin: 0; padding: .35rem 0; }
.lms-curriculum__item + .lms-curriculum__item { border-top: 1px solid var(--lms-border); }

.lms-curriculum__row {
    display: flex; align-items: center; gap: .75rem; width: 100%;
    padding: .8rem 1.1rem;
    background: none; border: none; text-align: left;
    color: var(--lms-ink-soft); font-size: .92rem; font-family: inherit;
    text-decoration: none; cursor: pointer;
    transition: background .16s ease, color .16s ease;
}
.lms-curriculum__row:hover { background: var(--theme-primary-softer); color: var(--lms-ink); text-decoration: none; }
.lms-curriculum__icon { font-size: 1rem; flex: 0 0 auto; }
.lms-curriculum__icon--play { color: #16a34a; }
.lms-curriculum__icon--lock { color: var(--lms-ink-faint); }
.lms-curriculum__label { margin-right: auto; min-width: 0; }
.lms-curriculum__time { flex: 0 0 auto; font-size: .82rem; color: var(--lms-ink-faint); font-variant-numeric: tabular-nums; }
.lms-curriculum__chip {
    flex: 0 0 auto;
    padding: .16rem .55rem; border-radius: var(--lms-radius-pill);
    background: color-mix(in srgb, #16a34a 12%, #ffffff); color: #16a34a;
    font-size: .7rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
}
.lms-curriculum__item.is-locked .lms-curriculum__label { color: var(--lms-ink-faint); }

.lms-curriculum__answer { padding: 1rem 1.1rem; border-top: 1px solid var(--lms-border); }
.lms-curriculum__answer > :last-child { margin-bottom: 0; }
.lms-curriculum__empty { padding: 1rem 1.1rem; color: var(--lms-ink-faint); font-size: .9rem; }

.lms-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.lms-checklist li { display: flex; align-items: flex-start; gap: .65rem; }
.lms-checklist i { color: #16a34a; font-size: 1rem; line-height: 1.6; flex: 0 0 auto; }

.lms-swal-actions { gap: .6rem; }

.lms-cd__side { position: sticky; top: calc(var(--lms-header-h) + 16px); }
.lms-cd-buy {
    background: #fff;
    border: 1px solid var(--lms-border);
    border-radius: var(--lms-radius);
    box-shadow: var(--lms-shadow-sm);
    padding: 1.5rem;
}
.lms-cd-buy__price { display: flex; align-items: baseline; justify-content: center; gap: .55rem; margin-bottom: 1.25rem; }
.lms-cd-buy__now { font-size: 1.6rem; font-weight: 700; color: var(--lms-price); line-height: 1; }
.lms-cd-buy__now--free { color: #16a34a; }
.lms-cd-buy__was { font-size: .95rem; font-weight: 500; color: var(--lms-ink-faint); text-decoration: line-through; }
.lms-cd-buy__actions { display: grid; gap: .55rem; }
.lms-cd-buy__actions .btn-lms { box-shadow: none; }
.lms-cd-buy__actions .btn-lms:hover { transform: none; }
.lms-cd-buy__actions .btn-lms-primary:hover { box-shadow: none; background: var(--theme-primary-dark); }
.lms-cd-buy__actions .btn-lms-light { border-color: var(--lms-border); }
.lms-cd-buy__actions .add-to-favorite.is-saved { color: var(--theme-accent); border-color: color-mix(in srgb, var(--theme-accent) 40%, transparent); background: color-mix(in srgb, var(--theme-accent) 7%, #fff); }
.lms-cd-buy__facts { list-style: none; margin: 1.5rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--lms-border); }
.lms-cd-buy__facts li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .45rem 0; font-size: .9rem; color: var(--lms-ink-soft); }
.lms-cd-buy__facts li span { display: inline-flex; align-items: center; gap: .55rem; }
.lms-cd-buy__facts li i { color: var(--theme-primary); }
.lms-cd-buy__facts li b { color: var(--lms-ink); font-weight: 700; }

.lms-cd-related { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--lms-border); }

@media (max-width: 991.98px) {
    .lms-cd-hero__grid { grid-template-columns: 1fr; gap: 1.75rem; }
    .lms-cd__grid { grid-template-columns: 1fr; }
    .lms-cd__side { position: static; order: -1; }
}
@media (max-width: 575.98px) {
    .lms-cd-hero__meta { gap: .5rem 1rem; font-size: .82rem; }
    .lms-cd-preview__play { width: 54px; height: 54px; font-size: 1.6rem; }
    .lms-cd-tabs__link { padding: .5rem .75rem; font-size: .86rem; }
}

/* ── Instructor card ────────────────────────────────────────────── */
.lms-instructor { margin-top: clamp(2rem, 4vw, 3rem); }
.lms-instructor__heading { margin: 0 0 1.1rem; font-size: 1.35rem; font-weight: 700; color: var(--lms-ink); }
.lms-instructor__card {
    display: flex; align-items: flex-start; gap: clamp(1rem, 3vw, 1.75rem);
    padding: clamp(1.25rem, 3vw, 2rem);
    background: #fff;
    border: 1px solid var(--lms-border);
    border-radius: var(--lms-radius);
    box-shadow: var(--lms-shadow-sm);
}
.lms-instructor__avatar {
    display: flex; align-items: center; justify-content: center;
    width: 92px; height: 92px; flex: 0 0 auto;
    border-radius: 50%; overflow: hidden;
    background: var(--theme-primary-soft);
    color: var(--theme-primary); font-size: 2rem; font-weight: 800;
}
.lms-instructor__avatar img { width: 100%; height: 100%; object-fit: cover; }
.lms-instructor__body { min-width: 0; }
.lms-instructor__name { margin: 0 0 .2rem; font-size: 1.15rem; font-weight: 700; color: var(--lms-ink); }
.lms-instructor__headline { margin: 0 0 .85rem; font-size: .92rem; font-weight: 600; color: var(--theme-primary); }
.lms-instructor__bio { margin: 0; font-size: .95rem; line-height: 1.75; color: var(--lms-ink-soft); white-space: pre-line; }
.lms-instructor__links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.lms-instructor__link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border: 1px solid var(--lms-border); border-radius: 50%;
    color: var(--lms-ink-soft); text-decoration: none;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.lms-instructor__link:hover { background: var(--theme-primary); border-color: var(--theme-primary); color: #fff; }

@media (max-width: 575.98px) {
    .lms-instructor__card { flex-direction: column; }
}
