/* ── WP LMS Public Styles ──────────────────────────────────────────── */

:root {
    --lms-primary:   #0072ff;
    --lms-success:   #22c55e;
    --lms-warning:   #f59e0b;
    --lms-danger:    #ef4444;
    --lms-info:      #3b82f6;
    --lms-dark:      #1e293b;
    --lms-gray:      #64748b;
    --lms-light:     #f1f5f9;
    --lms-border:    #e2e8f0;
    --lms-radius:    8px;
    --lms-shadow:    0 2px 12px rgba(0,0,0,0.08);
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.lms-btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: var(--lms-radius);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity .15s, transform .1s;
}
.lms-btn:hover { opacity: .88; transform: translateY(-1px); }
.lms-btn-primary  { background: var(--lms-primary);  color: #fff; }
.lms-btn-success  { background: var(--lms-success);  color: #fff; }
.lms-btn-sm  { padding: 6px 14px; font-size: 13px; }
.lms-btn-lg  { padding: 14px 32px; font-size: 16px; }

/* ── Badges ──────────────────────────────────────────────────────── */
.lms-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
}
.lms-badge--success { background: #dcfce7; color: #15803d; }
.lms-badge--warning { background: #fef9c3; color: #92400e; }
.lms-badge--error   { background: #fee2e2; color: #b91c1c; }
.lms-badge--info    { background: #dbeafe; color: #1d4ed8; }

/* ── Notices ─────────────────────────────────────────────────────── */
.lms-notice {
    padding: 14px 18px;
    border-radius: var(--lms-radius);
    margin: 16px 0;
    border-left: 4px solid;
}
.lms-notice--success { background: #f0fdf4; border-color: var(--lms-success); }
.lms-notice--warning { background: #fffbeb; border-color: var(--lms-warning); }
.lms-notice--error   { background: #fef2f2; border-color: var(--lms-danger);  }

/* ── Course Grid ─────────────────────────────────────────────────── */
.lms-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 24px 0;
}
.lms-course-card {
    background: #fff;
    border: 1px solid var(--lms-border);
    border-radius: var(--lms-radius);
    box-shadow: var(--lms-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s;
}
.lms-course-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.13); }
.lms-card-thumb img { width: 100%; height: 180px; object-fit: cover; display: block; }
.lms-card-body { padding: 16px; flex: 1; }
.lms-card-title { font-size: 16px; margin: 0 0 8px; }
.lms-card-title a { color: var(--lms-dark); text-decoration: none; }
.lms-card-title a:hover { color: var(--lms-primary); }
.lms-card-excerpt { color: var(--lms-gray); font-size: 13px; margin: 0 0 10px; }
.lms-card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.lms-tag { background: var(--lms-light); color: var(--lms-gray); padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.lms-card-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--lms-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.lms-card-price { font-size: 18px; font-weight: 700; color: var(--lms-primary); }

/* ── Single Course — Hero ─────────────────────────────────────────── */

/* Break out of any theme content wrapper so the hero spans full viewport */
body.single-lms_course,
body.single-lms_lesson {
    overflow-x: hidden;
}

.lms-sc-hero {
    position: relative;
    background-color: #1e293b !important;
    color: #fff !important;
    padding: 56px 0 44px;
    overflow: hidden;
    /* Full-viewport-width break-out technique */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    box-sizing: border-box;
}
.lms-sc-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(4px) brightness(.35);
    transform: scale(1.05);
}
.lms-sc-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15,23,42,.92) 55%, rgba(15,23,42,.55) 100%);
}
.lms-sc-hero__inner {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}
.lms-breadcrumb { font-size: 13px; opacity: .75; margin-bottom: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.lms-breadcrumb a { color: inherit; text-decoration: none; }
.lms-breadcrumb a:hover { text-decoration: underline; }
.lms-sc-hero__title { font-size: clamp(22px,4vw,34px); font-weight: 700; line-height: 1.25; margin: 0 0 14px; }
.lms-sc-hero__excerpt { font-size: 16px; opacity: .85; margin: 0 0 20px; max-width: 620px; }
.lms-sc-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 18px;
    font-size: 14px;
    opacity: .9;
}
.lms-sc-stat { display: flex; align-items: center; gap: 6px; }
.lms-sc-stat svg { flex-shrink: 0; }
.lms-sc-hero__author { display: flex; align-items: center; gap: 10px; font-size: 14px; opacity: .85; }
.lms-sc-hero__author img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

/* ── Single Course — Body layout ─────────────────────────────────── */
.lms-sc-body {
    background: #f8fafc !important;
    padding-bottom: 60px;
    /* Also break out of theme container */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    box-sizing: border-box;
}
.lms-sc-notice { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.lms-sc-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px 0;
    align-items: start;
}
@media (max-width: 960px) {
    .lms-sc-layout { grid-template-columns: 1fr; }
    .lms-sc-sidebar { order: -1; }
}

/* Related courses section also full-width */
.lms-sc-related {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    box-sizing: border-box;
    background: #fff;
    padding: 48px 0;
    border-top: 1px solid var(--lms-border);
}
.lms-sc-related__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Single Course — Progress banner ─────────────────────────────── */
.lms-sc-progress-banner {
    background: #fff;
    border: 1px solid var(--lms-border);
    border-left: 4px solid var(--lms-primary);
    border-radius: var(--lms-radius);
    padding: 16px 20px;
    margin-bottom: 20px;
}
.lms-sc-progress-banner__header { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.lms-sc-progress-banner__label  { font-size: 12px; color: var(--lms-gray); margin: 4px 0 0; }

/* ── Single Course — Tabs ────────────────────────────────────────── */
.lms-sc-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--lms-border);
    margin-bottom: 24px;
    background: #fff;
    border-radius: var(--lms-radius) var(--lms-radius) 0 0;
    overflow: hidden;
}
.lms-sc-tab {
    padding: 14px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-size: 15px;
    font-weight: 600;
    color: var(--lms-gray);
    cursor: pointer;
    transition: color .15s, border-color .15s;
    white-space: nowrap;
}
.lms-sc-tab:hover { color: var(--lms-primary); }
.lms-sc-tab--active { color: var(--lms-primary); border-bottom-color: var(--lms-primary); }

/* ── Single Course — Panel / Section ────────────────────────────── */
.lms-sc-panel {}
.lms-sc-section {
    background: #fff;
    border: 1px solid var(--lms-border);
    border-radius: var(--lms-radius);
    padding: 28px;
    margin-bottom: 20px;
}
.lms-sc-section h2 { font-size: 20px; margin: 0 0 18px; }
.lms-sc-sub-heading { font-size: 17px; margin: 24px 0 12px; }

/* ── What You'll Learn ───────────────────────────────────────────── */
.lms-sc-learn__grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px 24px;
}
.lms-sc-learn__grid li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
}
.lms-sc-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── Description expand ──────────────────────────────────────────── */
.lms-sc-clamp { max-height: 180px; overflow: hidden; position: relative; }
.lms-sc-clamp::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, #fff);
}
.lms-sc-read-more {
    background: none;
    border: none;
    color: var(--lms-primary);
    font-weight: 600;
    cursor: pointer;
    padding: 10px 0 0;
    font-size: 14px;
}
.lms-sc-read-more:hover { text-decoration: underline; }

/* ── Requirements list ───────────────────────────────────────────── */
.lms-sc-req-list { padding-left: 20px; margin: 0; }
.lms-sc-req-list li { margin-bottom: 6px; font-size: 14px; }

/* ── Curriculum lessons ──────────────────────────────────────────── */
.lms-sc-curriculum-meta { font-size: 13px; color: var(--lms-gray); margin-bottom: 14px; }
.lms-sc-lessons { list-style: none; padding: 0; margin: 0; }
.lms-sc-lesson {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--lms-border);
    border-radius: var(--lms-radius);
    margin-bottom: 6px;
    background: #fdfdfd;
    transition: background .12s;
}
.lms-sc-lesson:hover { background: var(--lms-light); }
.lms-sc-lesson--done { border-color: #bbf7d0; background: #f0fdf4; }
.lms-sc-lesson__num  { font-size: 12px; color: var(--lms-gray); min-width: 22px; text-align: center; font-weight: 600; }
.lms-sc-lesson__icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--lms-gray); }
.lms-sc-lesson__icon svg { width: 100%; height: 100%; }
.lms-sc-lesson--done .lms-sc-lesson__icon { color: var(--lms-success); }
.lms-icon-check { stroke: var(--lms-success) !important; }
.lms-sc-lesson__title { flex: 1; font-size: 14px; }
.lms-sc-lesson__title a { color: var(--lms-dark); text-decoration: none; font-weight: 500; }
.lms-sc-lesson__title a:hover { color: var(--lms-primary); }
.lms-sc-lesson__meta { display: flex; align-items: center; gap: 6px; }
.lms-sc-preview-badge { background: #dbeafe; color: #1d4ed8; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.lms-icon-lock { width: 15px; height: 15px; color: var(--lms-gray); }
.lms-sc-empty { color: var(--lms-gray); font-style: italic; }

/* ── Instructor ──────────────────────────────────────────────────── */
.lms-sc-instructor__card { display: flex; gap: 20px; align-items: flex-start; }
.lms-sc-instructor__avatar img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.lms-sc-instructor__info h3 { margin: 0 0 8px; }
.lms-sc-instructor__stats { display: flex; gap: 16px; font-size: 13px; color: var(--lms-gray); margin-bottom: 10px; }
.lms-sc-instructor__stats span { display: flex; align-items: center; gap: 6px; }
.lms-sc-instructor__stats svg { width: 14px; height: 14px; }
.lms-sc-instructor__bio { font-size: 14px; line-height: 1.65; color: var(--lms-gray); margin: 0; }
@media (max-width: 480px) { .lms-sc-instructor__card { flex-direction: column; } }

/* ── Sidebar card ────────────────────────────────────────────────── */
.lms-sc-sidebar {}
.lms-sc-card {
    background: #fff;
    border: 1px solid var(--lms-border);
    border-radius: var(--lms-radius);
    box-shadow: var(--lms-shadow);
    overflow: hidden;
}
.lms-sc-card__preview { position: relative; cursor: pointer; }
.lms-sc-card__preview img { width: 100%; display: block; max-height: 200px; object-fit: cover; }
.lms-sc-card__preview-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.35);
}
.lms-sc-card__preview-play svg { width: 52px; height: 52px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.lms-sc-card__body { padding: 20px; }
.lms-sc-card__price-row { margin-bottom: 14px; }
.lms-sc-price { font-size: 30px; font-weight: 700; color: var(--lms-dark); }
.lms-sc-price--free { color: var(--lms-success); }
.lms-btn-block { display: block; width: 100%; text-align: center; box-sizing: border-box; }
.lms-sc-card__login-note { font-size: 12px; color: var(--lms-gray); text-align: center; margin-top: 10px; }
.lms-sc-enrolled-badge {
    display: inline-block;
    background: #dcfce7;
    color: #15803d;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    margin-bottom: 4px;
}
.lms-sc-card__includes { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--lms-border); }
.lms-sc-card__includes strong { font-size: 13px; display: block; margin-bottom: 10px; }
.lms-sc-card__includes ul { list-style: none; padding: 0; margin: 0; }
.lms-sc-card__includes li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--lms-gray); margin-bottom: 8px; }
.lms-sc-card__includes svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--lms-primary); }
.lms-sc-card__share { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--lms-border); display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--lms-gray); }
.lms-share-link { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; text-decoration: none; transition: opacity .15s; }
.lms-share-link:hover { opacity: .8; }
.lms-share-link svg { width: 16px; height: 16px; }
.lms-share-link--twitter  { background: #1da1f2; color: #fff; }
.lms-share-link--facebook { background: #1877f2; color: #fff; }
.lms-share-link--linkedin { background: #0a66c2; color: #fff; }

.lms-sc-related__inner h2 { font-size: 22px; margin: 0 0 20px; }

/* legacy aliases kept for checkout / other pages */
.lms-price { display: block; font-size: 32px; font-weight: 700; color: var(--lms-primary); margin-bottom: 12px; }
.lms-price--free { color: var(--lms-success); }
.lms-meta-item { font-size: 14px; }

/* ── Progress bar ────────────────────────────────────────────────── */
.lms-progress-bar-wrap {
    background: var(--lms-border);
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
    margin: 10px 0 4px;
}
.lms-progress-bar {
    height: 100%;
    background: var(--lms-primary);
    border-radius: 999px;
    transition: width .4s ease;
    min-width: 4px;
}

/* ── Curriculum ──────────────────────────────────────────────────── */
.lms-curriculum { margin-top: 32px; }
.lms-lessons-list { list-style: none; padding: 0; margin: 0; }
.lms-lesson-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid var(--lms-border);
    border-radius: var(--lms-radius);
    margin-bottom: 8px;
    background: #fff;
    transition: background .15s;
}
.lms-lesson-item:hover { background: var(--lms-light); }
.lms-lesson-item--done { border-color: var(--lms-success); }
.lms-lesson-item--done .lms-lesson-icon { color: var(--lms-success); }
.lms-lesson-icon { margin-right: 10px; font-size: 16px; }
.lms-lesson-link { text-decoration: none; color: var(--lms-dark); flex: 1; }
.lms-lesson-link:hover { color: var(--lms-primary); }
.lms-lesson-locked { color: var(--lms-gray); flex: 1; cursor: not-allowed; }
.lms-preview-label { color: var(--lms-info); font-size: 12px; margin-left: 8px; }

/* ── Lesson single ───────────────────────────────────────────────── */
.lms-gate {
    background: var(--lms-light);
    border: 1px solid var(--lms-border);
    border-radius: var(--lms-radius);
    padding: 32px;
    text-align: center;
    margin: 24px 0;
}
.lms-lesson-video { margin: 0 0 24px; }
.lms-lesson-complete { margin: 24px 0; text-align: center; }

/* ── Checkout ────────────────────────────────────────────────────── */
.lms-checkout-wrap {
    max-width: 740px;
    margin: 0 auto;
    padding: 24px 16px;
}
.lms-checkout-summary {
    background: var(--lms-light);
    border-radius: var(--lms-radius);
    padding: 24px;
    margin-bottom: 28px;
}
.lms-checkout-summary img { border-radius: var(--lms-radius); max-width: 200px; float: right; margin-left: 16px; }
.lms-checkout-price { font-size: 28px; font-weight: 700; color: var(--lms-primary); }
.lms-payment-section { background: #fff; border: 1px solid var(--lms-border); border-radius: var(--lms-radius); padding: 24px; }
.lms-payment-tabs { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.lms-pay-tab {
    padding: 10px 20px;
    border: 2px solid var(--lms-border);
    border-radius: var(--lms-radius);
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: border-color .15s;
}
.lms-pay-tab--active { border-color: var(--lms-primary); color: var(--lms-primary); }
.lms-pay-tab img { height: 22px; }
#lms-card-element {
    border: 1px solid var(--lms-border);
    padding: 14px;
    border-radius: var(--lms-radius);
    background: #fafafa;
}

/* ── My Courses ──────────────────────────────────────────────────── */
.lms-my-courses { max-width: 960px; margin: 0 auto; padding: 24px 16px; }
.lms-progress-label { font-size: 12px; color: var(--lms-gray); margin: 4px 0 0; }
.lms-enroll-date { display: block; color: var(--lms-gray); font-size: 11px; margin-top: 6px; }
.lms-empty-state { text-align: center; padding: 48px 24px; }

/* ── Quiz ────────────────────────────────────────────────────────── */
.lms-single-quiz { max-width: 800px; margin: 0 auto; padding: 24px 16px; }
.lms-question { background: #fff; border: 1px solid var(--lms-border); border-radius: var(--lms-radius); padding: 20px; margin-bottom: 16px; }
.lms-question-text { margin: 0 0 14px; font-size: 16px; }
.lms-options-list { list-style: none; padding: 0; margin: 0; }
.lms-options-list li { margin-bottom: 10px; }
.lms-options-list label { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 8px; border-radius: 6px; transition: background .1s; }
.lms-options-list label:hover { background: var(--lms-light); }
.lms-quiz-submit { text-align: center; margin: 24px 0; }
.lms-timer { background: var(--lms-dark); color: #fff; padding: 10px 20px; border-radius: var(--lms-radius); display: inline-block; margin-bottom: 20px; font-weight: 700; }

/* ── Archive ─────────────────────────────────────────────────────── */
.lms-archive-courses { max-width: 1100px; margin: 0 auto; padding: 24px 16px; }
.lms-archive-title { font-size: 28px; margin-bottom: 24px; }

/* ── Elementor Widgets ───────────────────────────────────────────── */

/* Course Info Card */
.lms-el-info-card { border: 1px solid var(--lms-border); border-radius: var(--lms-radius); overflow: hidden; background: #fff; }
.lms-el-preview-video { position: relative; }
.lms-el-video-embed { width: 100%; display: block; }
.lms-el-price-row { padding: 16px 20px 0; }
.lms-el-price { font-size: 28px; font-weight: 700; color: var(--lms-primary); }
.lms-el-meta-list { list-style: none; padding: 12px 20px; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; }
.lms-el-meta-list li { font-size: 14px; color: var(--lms-gray); display: flex; align-items: center; gap: 6px; }
.lms-el-meta-icon { font-size: 15px; }
.lms-el-outcomes { padding: 16px 20px; border-top: 1px solid var(--lms-border); }
.lms-el-outcomes h4 { font-size: 15px; font-weight: 700; margin: 0 0 10px; color: var(--lms-dark); }
.lms-el-outcomes ul { list-style: none; padding: 0; margin: 0; }
.lms-el-outcomes ul li { font-size: 14px; padding: 4px 0 4px 20px; position: relative; }
.lms-el-outcomes ul li::before { content: '✓'; position: absolute; left: 0; color: var(--lms-success); font-weight: 700; }

/* Course Curriculum Widget */
.lms-el-curriculum { border: 1px solid var(--lms-border); border-radius: var(--lms-radius); overflow: hidden; }
.lms-el-section-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f0f4ff;
    font-weight: 700;
    font-size: 14px;
    color: var(--lms-dark);
}
.lms-el-section-title { flex: 1; }
.lms-el-curr-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-top: 1px solid var(--lms-border);
    background: #fff;
    font-size: 14px;
    transition: background .12s;
}
.lms-el-curr-item:hover { background: var(--lms-light); }
.lms-el-curr-icon { font-size: 16px; color: var(--lms-gray); flex-shrink: 0; }
.lms-el-curr-item--quiz .lms-el-curr-icon { color: #7c3aed; }
.lms-el-curr-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lms-el-curr-title a { color: inherit; text-decoration: none; }
.lms-el-curr-title a:hover { color: var(--lms-primary); }
.lms-el-curr-duration { font-size: 12px; color: var(--lms-gray); flex-shrink: 0; }
.lms-el-curr-type { font-size: 11px; font-weight: 600; color: var(--lms-gray); background: var(--lms-light); padding: 2px 8px; border-radius: 999px; flex-shrink: 0; }
.lms-el-badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; flex-shrink: 0; }
.lms-el-badge--preview { background: #dcfce7; color: #15803d; }
.lms-el-no-curriculum { color: var(--lms-gray); font-style: italic; padding: 16px 0; }

/* Enroll Button Widget */
.lms-el-enroll-wrap { text-align: center; }
.lms-el-enroll-btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--lms-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    transition: opacity .15s;
}
.lms-el-enroll-btn:hover { opacity: .88; color: #fff; }
.lms-el-enroll-btn--enrolled { background: var(--lms-success); }
.lms-el-enroll-btn--login { background: var(--lms-gray); }
.lms-el-btn-price { font-weight: 400; font-size: 14px; opacity: .85; }

/* Course Progress Widget */
.lms-el-progress-wrap { padding: 4px 0; }
.lms-el-progress-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--lms-dark); }
.lms-el-progress-percent { font-size: 16px; color: var(--lms-primary); }
.lms-el-progress-count { color: var(--lms-gray); font-weight: 400; }
.lms-el-progress-track { background: var(--lms-border); border-radius: 999px; height: 10px; overflow: hidden; }
.lms-el-progress-fill { height: 100%; background: var(--lms-primary); border-radius: 999px; transition: width .5s ease; min-width: 4px; }
.lms-el-progress-guest { color: var(--lms-gray); font-style: italic; }

/* ── Lesson page — full-width layout ────────────────────────────── */
.lms-lesson-topbar {
    background: #fff;
    border-bottom: 1px solid var(--lms-border);
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    box-sizing: border-box;
}
.lms-lesson-topbar__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.lms-lesson-topbar__back {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--lms-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}
.lms-lesson-topbar__back svg { width: 18px; height: 18px; }
.lms-lesson-topbar__back:hover { color: var(--lms-primary); }
.lms-lesson-topbar__progress {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--lms-gray);
}
.lms-progress-bar-wrap--slim { height: 6px; flex: 1; margin: 0; }
.lms-lesson-topbar__nav { display: flex; gap: 8px; flex-shrink: 0; }

.lms-lesson-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    min-height: calc(100vh - 52px);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    box-sizing: border-box;
    background: #f8fafc !important;
}
@media (max-width: 900px) {
    .lms-lesson-layout { grid-template-columns: 1fr; }
    .lms-lesson-sidebar { display: none; }
}

.lms-lesson-main {
    padding: 32px 40px;
    background: #fff;
    max-width: 860px;
    width: 100%;
}
.lms-lesson-title { font-size: clamp(20px, 3vw, 28px); font-weight: 700; margin: 0 0 24px; color: var(--lms-dark); }
.lms-lesson-video { margin: 0 0 28px; border-radius: var(--lms-radius); overflow: hidden; }
.lms-lesson-video iframe,
.lms-lesson-video video { width: 100%; display: block; border-radius: var(--lms-radius); }
.lms-lesson-body { font-size: 16px; line-height: 1.75; color: #334155; }
.lms-lesson-body h2, .lms-lesson-body h3 { color: var(--lms-dark); }
.lms-lesson-body img { max-width: 100%; height: auto; border-radius: 6px; }
.lms-lesson-body a { color: var(--lms-primary); }

/* Mark Complete footer */
.lms-lesson-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--lms-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.lms-lesson-footer__complete {}
.lms-lesson-footer__nav { display: flex; gap: 10px; flex-wrap: wrap; }
.lms-completed-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #dcfce7;
    color: #15803d;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: var(--lms-radius);
    font-size: 15px;
}
.lms-btn-outline {
    background: transparent;
    border: 2px solid var(--lms-border);
    color: var(--lms-dark);
}
.lms-btn-outline:hover { border-color: var(--lms-primary); color: var(--lms-primary); }

/* Lesson sidebar */
.lms-lesson-sidebar {
    background: #fff;
    border-left: 1px solid var(--lms-border);
    overflow-y: auto;
    height: calc(100vh - 52px);
    position: sticky;
    top: 52px;
}
.lms-lesson-sidebar__head {
    padding: 16px;
    border-bottom: 1px solid var(--lms-border);
    background: var(--lms-dark);
    color: #fff;
}
.lms-lesson-sidebar__head h3 { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: #fff; }
.lms-progress-txt { font-size: 12px; color: rgba(255,255,255,.7); }
.lms-lesson-sidebar__body { padding: 8px 0; }
.lms-lesson-nav-list { list-style: none; padding: 0; margin: 0; }
.lms-lnav-section { margin-top: 4px; }
.lms-lnav-section__title {
    display: block;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--lms-gray);
    background: var(--lms-light);
}
.lms-lnav-section__lessons { list-style: none; padding: 0; margin: 0; }
.lms-lnav-item {}
.lms-lnav-item__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--lms-dark);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background .1s, border-color .1s;
}
.lms-lnav-item__link:hover { background: var(--lms-light); }
.lms-lnav-item--active .lms-lnav-item__link { border-left-color: var(--lms-primary); background: #eff6ff; color: var(--lms-primary); font-weight: 600; }
.lms-lnav-item--done .lms-lnav-item__link { color: var(--lms-gray); }
.lms-lnav-item--locked .lms-lnav-item__link--disabled { cursor: default; color: var(--lms-gray); opacity: .6; }
.lms-lnav-item__status { width: 16px; height: 16px; flex-shrink: 0; }
.lms-lnav-item__status svg { width: 100%; height: 100%; }
.lms-lnav-item--done .lms-lnav-item__status { color: var(--lms-success); }
.lms-lnav-item__title { flex: 1; line-height: 1.4; }
.lms-lnav-item__dur { font-size: 11px; color: var(--lms-gray); flex-shrink: 0; }

/* Section heading in curriculum accordion */
.lms-sc-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--lms-light);
    border: 1px solid var(--lms-border);
    border-radius: var(--lms-radius);
    margin-bottom: 4px;
    margin-top: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}
.lms-sc-section-toggle { width: 16px; height: 16px; flex-shrink: 0; transition: transform .2s; }
.lms-sc-section-heading.lms-section-collapsed .lms-sc-section-toggle { transform: rotate(-90deg); }

/* Reset list styles on our curriculum lists */
.lms-sc-lessons {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 8px !important;
}
.lms-sc-lessons .lms-sc-lesson { list-style: none !important; }
