/* ===========================
   Course Pages — Arsha style
   =========================== */

/* ---------- Listing page ---------- */
.courses-hero {
    background: linear-gradient(135deg, #1c6d3a 0%, #2fb362 100%);
    padding: 80px 0 60px;
    margin-top: 70px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.courses-hero::before {
    content: '';
    position: absolute;
    top: -40%; right: -10%;
    width: 500px; height: 500px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}
.courses-hero-inner { text-align: center; position: relative; z-index: 1; }
.courses-hero h1 { font-size: 2.4rem; font-weight: 700; margin-bottom: 10px; color: #fff; }
.courses-hero p  { font-size: 1.05rem; opacity: .85; margin-bottom: 32px; color: #fff; }

.courses-hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    padding: 12px 32px;
    backdrop-filter: blur(8px);
}
.hero-stat { text-align: center; padding: 0 20px; }
.hero-stat-num { display: block; font-size: 1.6rem; font-weight: 800; line-height: 1; }
.hero-stat-label { font-size: .78rem; opacity: .8; text-transform: uppercase; letter-spacing: .05em; }
.hero-stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.3); }

/* Filter */
.courses-filter {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 16px 0;
    position: sticky;
    top: 70px;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.courses-filter-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.filter-field { position: relative; flex: 1; min-width: 160px; }
.filter-keyword { flex: 2; }
.filter-icon {
    position: absolute;
    left: 12px; top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 1.1rem;
    pointer-events: none;
}
.filter-keyword input { padding-left: 36px; }
.courses-filter .form-control,
.courses-filter .form-select {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-size: .9rem;
    height: 42px;
    transition: border-color .2s;
}
.courses-filter .form-control:focus,
.courses-filter .form-select:focus { border-color: #2fb362; box-shadow: 0 0 0 3px rgba(47,179,98,.12); }

/* Custom select dropdown */
.custom-select-wrap {
    position: relative;
    flex: 1;
    min-width: 160px;
}
.custom-select-wrap select { display: none; }
.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    font-size: .9rem;
    color: #333;
    cursor: pointer;
    user-select: none;
    transition: border-color .2s, box-shadow .2s;
    gap: 8px;
}
.custom-select-trigger:hover,
.custom-select-wrap.open .custom-select-trigger {
    border-color: #2fb362;
    box-shadow: 0 0 0 3px rgba(47,179,98,.12);
}
.custom-select-trigger .cs-arrow {
    font-size: .75rem;
    color: #888;
    transition: transform .2s;
    flex-shrink: 0;
}
.custom-select-wrap.open .cs-arrow { transform: rotate(180deg); }
.custom-select-options {
    display: none;
    position: fixed;
    background: #fff !important;
    color: #333 !important;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 9999;
    overflow: hidden;
    padding: 4px 0;
}
.custom-select-wrap.open .custom-select-options { display: block; }
.custom-select-option {
    padding: 10px 16px;
    font-size: .9rem;
    color: #333 !important;
    background: #fff !important;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.custom-select-option:hover { background: #f0faf4 !important; color: #2fb362 !important; }
.custom-select-option.selected {
    background: #e8f7ee !important;
    color: #1c6d3a !important;
    font-weight: 600;
}
.courses-filter .btn-search {
    background: #2fb362;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 24px;
    height: 42px;
    font-weight: 600;
    font-size: .9rem;
    white-space: nowrap;
    transition: background .2s;
    flex-shrink: 0;
}
.courses-filter .btn-search:hover { background: #1c6d3a; }

/* Grid section */
.courses-grid-section {
    padding: 48px 0 60px;
    background: #f7faf8;
}
.courses-result-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: .9rem;
    color: #555;
}
.courses-clear-filter {
    color: #e53935;
    font-size: .85rem;
    text-decoration: none;
    display: flex;
    align-items: center;
}
.courses-clear-filter:hover { color: #c62828; }

/* Empty state */
.courses-empty {
    text-align: center;
    padding: 80px 0;
    color: #aaa;
}
.courses-empty i { font-size: 4rem; display: block; margin-bottom: 16px; }
.courses-empty h4 { color: #666; }
.btn-enroll-outline {
    display: inline-block;
    margin-top: 16px;
    padding: 9px 24px;
    border: 2px solid #2fb362;
    color: #2fb362;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all .2s;
}
.btn-enroll-outline:hover { background: #2fb362; color: #fff; }

/* Course card */
.course-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .25s, transform .25s;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    border-top: 4px solid transparent;
}
.course-card:hover {
    box-shadow: 0 10px 32px rgba(47,179,98,.18);
    transform: translateY(-5px);
    border-top-color: #2fb362;
}
.course-card .card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 185px;
}
.course-card .card-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .35s;
}
.course-card:hover .card-img-wrap img { transform: scale(1.06); }

.course-card .badge-level {
    position: absolute;
    top: 10px; left: 10px;
    font-size: .72rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: .03em;
}
.level-beginner  { background: #e8f7ee; color: #1c6d3a; }
.level-intermediate { background: #fff8e1; color: #b45309; }
.level-advanced  { background: #fdecea; color: #c62828; }

.badge-free-tag {
    position: absolute;
    top: 10px; right: 10px;
    background: #2fb362;
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.course-card .card-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.course-card .card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a2e22;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.course-card .card-desc {
    font-size: .83rem;
    color: #777;
    margin-bottom: 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.course-card .card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .8rem;
    color: #999;
    margin-bottom: 14px;
    padding-top: 10px;
    border-top: 1px dashed #f0f0f0;
}
.course-card .card-meta i { color: #2fb362; }
.card-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.course-card .card-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1c6d3a;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.price-free { color: #2fb362; }
.price-old {
    font-size: .8rem;
    color: #bbb;
    text-decoration: line-through;
    font-weight: 400;
}
.course-card .btn-enroll {
    background: #2fb362;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 7px 16px;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background .2s;
    white-space: nowrap;
}
.course-card .btn-enroll:hover { background: #1c6d3a; color: #fff; }

/* Pagination */
.courses-pagination .page-link {
    border-radius: 8px !important;
    margin: 0 2px;
    color: #2fb362;
    border-color: #e0e0e0;
}
.courses-pagination .page-item.active .page-link {
    background: #2fb362;
    border-color: #2fb362;
    color: #fff;
}

/* Trust section */
.courses-trust-section {
    background-image: linear-gradient(rgba(10,28,16,.75), rgba(10,28,16,.75)),
        url("/Webmain/assets/img/cta-bg.jpg");
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    padding: 80px 0;
}
.courses-trust-title {
    text-align: center;
    margin-bottom: 40px;
}
.courses-trust-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 12px;
}
.courses-trust-title h2::before {
    content: '';
    position: absolute;
    bottom: 1px; left: 50%;
    transform: translateX(-50%);
    width: 120px; height: 1px;
    background: rgba(255,255,255,.25);
}
.courses-trust-title h2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 40px; height: 3px;
    background: #2fb362;
}
.courses-trust-title p { color: rgba(255,255,255,.8); }

.trust-item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    transition: background .25s, transform .25s;
}
.trust-item:hover { background: rgba(255,255,255,.11); transform: translateY(-4px); }
.trust-item i {
    font-size: 2.4rem;
    color: #2fb362;
    display: block;
    margin-bottom: 14px;
}
.trust-item h5 { color: #fff; font-weight: 700; margin-bottom: 8px; font-size: 1rem; }
.trust-item p  { color: rgba(255,255,255,.7); font-size: .87rem; margin: 0; }

/* ---------- Detail page ---------- */
.course-hero {
    background: linear-gradient(135deg, #1c6d3a 0%, #2fb362 100%);
    padding: 70px 0 50px;
    color: #fff;
}
.course-hero h1 { font-size: 2rem; font-weight: 700; margin-bottom: 14px; }
.course-hero .course-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: .9rem;
    opacity: .9;
    margin-top: 16px;
}
.course-hero .course-meta-row i { margin-right: 4px; }

.course-enroll-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    position: sticky;
    top: 80px;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
}
.course-enroll-card .enroll-thumb {
    width: 100%; height: 200px;
    object-fit: cover;
}
.course-enroll-card .enroll-body { padding: 20px; }
.course-enroll-card .enroll-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2fb362;
}
.course-enroll-card .enroll-price-old {
    font-size: 1rem;
    color: #aaa;
    text-decoration: line-through;
    margin-left: 8px;
}
.course-enroll-card .btn-enroll-big {
    display: block;
    width: 100%;
    background: #2fb362;
    color: #fff;
    text-align: center;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s;
    margin-top: 14px;
}
.course-enroll-card .btn-enroll-big:hover { background: #1c6d3a; color: #fff; }
.course-enroll-card .enroll-includes {
    margin-top: 16px;
    font-size: .85rem;
    color: #555;
}
.course-enroll-card .enroll-includes li {
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.course-enroll-card .enroll-includes i { color: #2fb362; }

/* Curriculum */
.curriculum-accordion .accordion-button {
    font-weight: 600;
    background: #f4faf6;
    color: #1c6d3a;
}
.curriculum-accordion .accordion-button:not(.collapsed) {
    background: #e8f7ee;
    color: #1c6d3a;
    box-shadow: none;
}
.curriculum-accordion .lesson-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    font-size: .9rem;
    color: #444;
    gap: 10px;
}
.curriculum-accordion .lesson-item:last-child { border-bottom: none; }
.curriculum-accordion .lesson-item i { color: #2fb362; font-size: 1.1rem; flex-shrink: 0; }
.curriculum-accordion .lesson-item .lesson-title { flex: 1; }
.curriculum-accordion .lesson-item .badge-free {
    background: #e8f7ee;
    color: #2fb362;
    font-size: .72rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
}
.curriculum-accordion .lesson-item .lesson-dur {
    font-size: .78rem;
    color: #aaa;
}

/* ========================================
   Course Detail Page — v2
   ======================================== */

/* Hero */
.cd-hero {
    background: linear-gradient(135deg, #0b2618 0%, #1c6d3a 60%, #27a355 100%);
    padding: 60px 0 60px;
    margin-top: 70px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cd-hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    pointer-events: none;
}
.cd-breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: .82rem;
}
.cd-breadcrumb .breadcrumb-item a { color: rgba(255,255,255,.7); text-decoration: none; }
.cd-breadcrumb .breadcrumb-item a:hover { color: #fff; }
.cd-breadcrumb .breadcrumb-item.active { color: rgba(255,255,255,.9); }
.cd-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

.cd-hero-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 14px;
    color: #fff;
}
.cd-hero-desc {
    font-size: .97rem;
    color: rgba(255,255,255,.85);
    margin-bottom: 20px;
    line-height: 1.6;
}
.cd-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: .85rem;
    color: rgba(255,255,255,.8);
}
.cd-meta-row i { margin-right: 4px; vertical-align: middle; }

/* Hero card (right column) */
.cd-hero-card {
    width: 340px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.cd-hero-thumb-wrap {
    position: relative;
    height: 190px;
    background: #111;
}
.cd-hero-thumb-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: .85;
}
.cd-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.3);
    transition: background .2s;
    text-decoration: none;
}
.cd-play-btn:hover { background: rgba(0,0,0,.5); }
.cd-play-btn i {
    font-size: 3.2rem;
    color: #fff;
    background: rgba(47,179,98,.9);
    border-radius: 50%;
    width: 64px; height: 64px;
    display: flex; align-items: center; justify-content: center;
    transition: transform .2s;
}
.cd-play-btn:hover i { transform: scale(1.08); }

.cd-hero-card-body { padding: 20px; }
.cd-card-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 14px;
}
.price-free-big { font-size: 1.6rem; font-weight: 800; color: #2fb362; }
.price-main { font-size: 1.6rem; font-weight: 800; color: #1c6d3a; }
.price-old { font-size: .95rem; color: #bbb; text-decoration: line-through; }

.btn-enroll-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 11px 16px;
    border-radius: 9px;
    background: #e8f7ee;
    color: #1c6d3a;
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    border: 2px solid #2fb362;
    transition: all .2s;
    margin-bottom: 10px;
}
.btn-enroll-hero:hover { background: #2fb362; color: #fff; }
.btn-buy-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 11px 16px;
    border-radius: 9px;
    background: #2fb362;
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    transition: background .2s;
}
.btn-buy-hero:hover { background: #1c6d3a; color: #fff; }

.cd-includes {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    border-top: 1px solid #f0f0f0;
    padding-top: 14px;
}
.cd-includes li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .82rem;
    color: #555;
    padding: 4px 0;
}
.cd-includes i { color: #2fb362; font-size: 1rem; }

/* Mobile enroll bar */
.cd-mobile-enroll {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 14px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.cd-mobile-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}

/* Main section */
.cd-main-section {
    padding: 48px 0 60px;
    background: #f7faf8;
}

/* Tabs */
.cd-tabs {
    border-bottom: 2px solid #e0e0e0 !important;
    gap: 0;
    margin-bottom: 0;
    /* override Bootstrap nav-tabs */
    border-top: none;
    border-left: none;
    border-right: none;
}
.cd-tabs .nav-item { margin: 0; }
/* kill Bootstrap's .nav link color on buttons */
.cd-tabs .nav-item button,
.cd-tabs button.cd-tab-btn { color: #777 !important; }
.cd-tab-btn {
    background: none !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    border-radius: 0 !important;
    margin-bottom: -2px;
    padding: 12px 22px;
    font-size: .92rem;
    font-weight: 600;
    color: #777 !important;
    cursor: pointer;
    transition: color .2s, border-color .2s;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    outline: none;
    box-shadow: none !important;
    text-decoration: none !important;
}
.cd-tab-btn:hover { color: #2fb362 !important; }
.cd-tab-btn.active,
.cd-tab-btn[aria-selected="true"] { color: #1c6d3a !important; border-bottom-color: #2fb362 !important; }
.cd-tab-badge {
    background: #e8f7ee;
    color: #2fb362;
    font-size: .72rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 20px;
}
.cd-tab-content {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 28px;
}

/* Description */
.cd-description { font-size: .93rem; color: #333; line-height: 1.75; }
.cd-description h1, .cd-description h2, .cd-description h3 {
    font-size: 1.15rem; font-weight: 700; color: #1a2e22; margin-top: 1.4em;
}

/* Curriculum */
.cd-curriculum-summary {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .88rem;
    color: #666;
    padding: 10px 0 18px;
}
.cd-curriculum-summary i { color: #2fb362; font-size: 1.1rem; }

.cd-accordion { border: 1px solid #e5e5e5; border-radius: 10px; overflow: hidden; }
.cd-accordion-item { border: none; border-bottom: 1px solid #ececec; }
.cd-accordion-item:last-child { border-bottom: none; }

.cd-acc-btn {
    background: #f8fdf9 !important;
    color: #1c3a24 !important;
    font-weight: 600 !important;
    font-size: .9rem;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    box-shadow: none !important;
}
.cd-acc-btn:not(.collapsed) {
    background: #eaf7f0 !important;
    border-bottom: 1px solid #d4eedd;
}
.cd-acc-btn .cd-acc-title { flex: 1; display: flex; align-items: center; }
.cd-acc-count {
    font-size: .78rem;
    font-weight: 500;
    color: #888;
    background: #f0f0f0;
    border-radius: 20px;
    padding: 2px 10px;
    flex-shrink: 0;
}

.cd-lesson-row {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    border-bottom: 1px solid #f5f5f5;
    gap: 12px;
    font-size: .87rem;
    transition: background .15s;
}
.cd-lesson-row:last-child { border-bottom: none; }
.cd-lesson-row:hover { background: #f9fffe; }

.cd-lesson-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}
.cd-lesson-icon.icon-video { background: #e8f7ee; color: #2fb362; }
.cd-lesson-icon.icon-doc  { background: #fff3e0; color: #f57c00; }

.cd-lesson-title { flex: 1; color: #333; }
.cd-lesson-title a { color: #1c6d3a; text-decoration: none; }
.cd-lesson-title a:hover { text-decoration: underline; }

.cd-lesson-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.badge-preview {
    background: #e8f7ee;
    color: #2fb362;
    font-size: .7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid #c3e8d0;
}
.cd-lesson-dur {
    font-size: .76rem;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Info sidebar */
.cd-info-sidebar {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px;
    position: sticky;
    top: 80px;
}
.cd-sidebar-heading {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #aaa;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}
.cd-info-list { list-style: none; padding: 0; margin: 0; }
.cd-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: .88rem;
    color: #333;
}
.cd-info-list li:last-child { border-bottom: none; }
.cd-info-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: #e8f7ee;
    color: #2fb362;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.cd-info-label { font-size: .75rem; color: #aaa; display: block; margin-bottom: 2px; }

/* Empty state */
.cd-empty-state {
    text-align: center;
    padding: 40px 0;
    color: #ccc;
}
.cd-empty-state i { font-size: 3rem; display: block; margin-bottom: 10px; }
.cd-empty-state p { color: #aaa; margin: 0; }

/* ── Stats bar ───────────────────────────── */
.cd-stats-bar {
    background: #fff;
    border-bottom: 1px solid #e8f0eb;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.cd-stats-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 8px;
}
.cd-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    flex: 1;
    min-width: 120px;
}
.cd-stat-icon {
    width: 40px; height: 40px;
    background: #e8f7ee;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #2fb362;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.cd-stat-num { font-size: 1rem; font-weight: 700; color: #1a2e22; line-height: 1.2; }
.cd-stat-label { font-size: .72rem; color: #999; text-transform: uppercase; letter-spacing: .04em; }
.cd-stat-divider { width: 1px; height: 40px; background: #ececec; flex-shrink: 0; }

/* ── Enroll card (sticky sidebar) ───────── */
.cd-enroll-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    border: 1px solid #e8f5ee;
    position: sticky;
    top: 80px;
}
.cd-enroll-card-header {
    background: linear-gradient(135deg, #1c6d3a 0%, #2fb362 100%);
    padding: 18px 22px 14px;
}
.cd-enroll-card-header .price-free-big {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
}
.cd-enroll-card-header .price-main {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
}
.cd-enroll-card-header .price-old {
    font-size: .95rem;
    color: rgba(255,255,255,.65);
    text-decoration: line-through;
}
.cd-enroll-card-header .price-pct {
    font-size: .75rem;
    font-weight: 700;
    background: rgba(255,255,255,.2);
    color: #fff;
    padding: 3px 9px;
    border-radius: 20px;
}

.cd-enroll-thumb {
    position: relative;
    height: 190px;
    background: #111;
    overflow: hidden;
}
.cd-enroll-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: .9;
    transition: opacity .2s;
}
.cd-enroll-thumb:hover img { opacity: .75; }
.cd-enroll-body { padding: 20px 22px 22px; }

.cd-enroll-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.price-pct {
    font-size: .78rem;
    font-weight: 700;
    background: #fff3e0;
    color: #e65100;
    padding: 2px 8px;
    border-radius: 20px;
}

.btn-preview-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px;
    border-radius: 10px;
    background: #f0faf4;
    color: #1c6d3a;
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    border: 2px solid #2fb362;
    transition: all .2s;
    margin-bottom: 10px;
}
.btn-preview-card:hover { background: #2fb362; color: #fff; }

.btn-enroll-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    border-radius: 10px;
    background: #2fb362;
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    border: none;
    transition: background .2s, transform .15s;
    box-shadow: 0 4px 12px rgba(47,179,98,.3);
}
.btn-enroll-card:hover { background: #1c6d3a; color: #fff; transform: translateY(-1px); }

.cd-enroll-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #aaa;
    margin: 18px 0 12px;
}
.cd-enroll-divider::before,
.cd-enroll-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ececec;
}

.cd-includes-list {
    list-style: none;
    padding: 0; margin: 0;
}
.cd-includes-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: .87rem;
    color: #444;
    border-bottom: 1px solid #f5f5f5;
}
.cd-includes-list li:last-child { border-bottom: none; }
.cd-includes-list i {
    color: #2fb362;
    font-size: 1rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

/* ── Sale badge ──────────────────────────── */
.cd-badge-sale {
    background: #fff3e0;
    color: #e65100;
    font-size: .75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
}

/* ── Lock icon ───────────────────────────── */
.cd-lock-icon { color: #ccc; font-size: .95rem; }

/* ── Lesson row free highlight ───────────── */
.cd-lesson-row.is-free .cd-lesson-title a { color: #1c6d3a; }

/* ---------- Learn page ---------- */
.learn-layout {
    display: flex;
    height: calc(100vh - 60px);
    overflow: hidden;
}
.learn-sidebar {
    width: 320px;
    min-width: 260px;
    background: #1a1a2e;
    color: #e0e0e0;
    overflow-y: auto;
    border-right: 1px solid #2a2a4a;
    flex-shrink: 0;
}
.learn-sidebar .sidebar-header {
    padding: 16px;
    background: #16213e;
    border-bottom: 1px solid #2a2a4a;
    font-weight: 700;
    font-size: .95rem;
}
.learn-sidebar .sidebar-header a {
    color: #2fb362;
    text-decoration: none;
    font-size: .82rem;
    float: right;
    margin-top: 2px;
}
.learn-sidebar .section-header {
    padding: 10px 16px;
    background: #0f3460;
    font-size: .85rem;
    font-weight: 600;
    color: #9db3cc;
    border-bottom: 1px solid #2a2a4a;
}
.learn-sidebar .lesson-link {
    display: flex;
    align-items: center;
    padding: 9px 16px 9px 26px;
    font-size: .84rem;
    color: #ccc;
    text-decoration: none;
    gap: 8px;
    border-bottom: 1px solid #1e1e3a;
    transition: background .15s;
}
.learn-sidebar .lesson-link:hover { background: #1e1e3a; color: #fff; }
.learn-sidebar .lesson-link.active { background: #2fb362; color: #fff; }
.learn-sidebar .lesson-link i { font-size: 1rem; flex-shrink: 0; }
.learn-sidebar .lesson-link .ll-title { flex: 1; }
.learn-sidebar .lesson-link .ll-dur { font-size: .75rem; opacity: .7; }

.learn-main {
    flex: 1;
    overflow-y: auto;
    background: #f5f5f5;
}
.learn-main .video-wrap {
    background: #000;
    position: relative;
}
.learn-main .video-wrap iframe,
.learn-main .video-wrap video {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
    border: none;
}
.learn-main .lesson-content-wrap {
    background: #fff;
    padding: 30px 40px;
}
.learn-main .lesson-content-wrap h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 18px;
}

/* Learn header bar */
.learn-header {
    height: 60px;
    background: #16213e;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 16px;
    color: #e0e0e0;
    border-bottom: 1px solid #2a2a4a;
    position: sticky;
    top: 0;
    z-index: 200;
}
.learn-header .logo-text {
    font-weight: 800;
    font-size: 1.1rem;
    color: #2fb362;
    text-decoration: none;
}
.learn-header .course-name {
    font-size: .88rem;
    color: #aaa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive */
@media (max-width: 768px) {
    .learn-layout { flex-direction: column; height: auto; }
    .learn-sidebar { width: 100%; max-height: 260px; }
    .course-enroll-card { position: static; }
    .courses-hero h1 { font-size: 1.7rem; }
}
