/* ============================================================
   SAMATVA ACADEMY – programme.css
   Covers: programmes listing page & programme detail page.
   All colours use CSS custom properties from site.css.
   Dark mode overrides at the bottom.
   ============================================================ */



/* ══════════════════════════════════════════════════════════════
   SHARED – sub-banner variant for programmes pages
   ══════════════════════════════════════════════════════════════ */

.sub-banner-programmes {
    background: url('../images/general/infrastucture-01.jpg') center center / cover no-repeat, linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.sub-banner-programme-detail {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2E6DA4 60%, var(--color-accent) 100%);
}


/* ══════════════════════════════════════════════════════════════
   PROGRAMMES LISTING PAGE
   ══════════════════════════════════════════════════════════════ */

/* ── Layout ─────────────────────────────────────────────────── */
.prog-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 16px 60px;
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.prog-sidebar {
    width: 248px;
    flex-shrink: 0;
}

.prog-main {
    flex: 1;
    min-width: 0;
}

.prog-card-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 6px 0 2px;
    font-size: 13px;
}

.rating-stars {
    color: #f59e0b; /* amber — filled stars */
    font-size: 13px;
    letter-spacing: 1px;
}

.rating-stars-empty {
    color: #d1d5db; /* grey — no reviews */
    font-size: 13px;
    letter-spacing: 1px;
}

.rating-avg {
    font-weight: 700;
    color: #1a3a52;
    font-size: 13px;
}

.rating-count {
    color: var(--lms-muted, #6b7280);
    font-size: 12px;
}

.prog-card-rating.no-rating .rating-count {
    font-style: italic;
}

/* ── Search bar ──────────────────────────────────────────────── */
.prog-search-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

    .prog-search-row .form-control,
    .prog-search-row input[type="text"] {
        flex: 1;
        padding: 10px 14px;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        font-family: var(--font-body);
        font-size: 14px;
        color: var(--color-text);
        background: var(--color-surface);
        outline: none;
        transition: border-color var(--transition), box-shadow var(--transition);
    }

        .prog-search-row .form-control:focus,
        .prog-search-row input[type="text"]:focus {
            border-color: var(--color-secondary);
            box-shadow: 0 0 0 3px rgba(46, 109, 164, 0.12);
        }

.prog-search-btn {
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 22px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    transition: background var(--transition);
    white-space: nowrap;
}

    .prog-search-btn:hover {
        background: var(--color-secondary);
        color: #fff;
    }

/* ── Active filter tags ──────────────────────────────────────── */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-orange-light);
    color: var(--color-accent);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(232, 119, 34, 0.25);
}

    .filter-tag a {
        color: var(--color-accent);
        text-decoration: none;
        font-size: 14px;
        line-height: 1;
        opacity: 0.75;
        transition: opacity var(--transition);
    }

        .filter-tag a:hover {
            opacity: 1;
            color: var(--color-accent);
        }

/* ── Results info bar ────────────────────────────────────────── */
.results-info {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-muted);
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sort-select {
    font-family: var(--font-body);
    font-size: 13px;
    padding: 6px 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-text);
    cursor: pointer;
}

/* ── Programme card grid ─────────────────────────────────────── */

.prog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
    gap: 22px;
    margin-top: 40px;
}

/* Large desktop and laptops*/
@media (min-width: 1200px) {
    .prog-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(288px, 1fr));
        gap: 22px;
    }
}

.prog-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
    display: flex;
    flex-direction: column;
}

    .prog-card:hover {
        box-shadow: var(--shadow-lg);
        transform: translateY(-3px);
    }

.prog-card-thumb {
    width: 100%;
    height: 165px;
    object-fit: cover;
    display: block;
    background: var(--color-bg);
}

.prog-card-thumb-placeholder {
    width: 100%;
    height: 165px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 42px;
}

.prog-card-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.prog-card-cat {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
}

.prog-card-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 6px;
    line-height: 1.4;
}

    .prog-card-title a {
        color: inherit;
        text-decoration: none;
        transition: color var(--transition);
    }

        .prog-card-title a:hover {
            color: var(--color-secondary);
        }

.prog-card-trainer {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--color-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.prog-card-desc {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-btn-text);
    margin-bottom: 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.prog-card-meta {
    display: flex;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--color-muted);
    margin-bottom: 14px;
    flex-wrap: wrap;
}

    .prog-card-meta span {
        display: flex;
        align-items: center;
        gap: 4px;
    }

.prog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--color-border);
    padding-top: 12px;
    margin-top: auto;
}

.prog-card-price {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary);
}

    .prog-card-price.free {
        color: var(--color-success);
        font-size: 15px;
        font-weight: 700;
    }

.prog-card-btn {
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 7px 16px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition);
    display: inline-block;
}

    .prog-card-btn:hover {
        background: var(--color-secondary);
        color: #fff;
    }

/* ══════════════════════════════════════════════════════
   Review / Rating Section — programme-detail.aspx
   ══════════════════════════════════════════════════════ */

.review-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 0px 60px;
    border-top: 2px solid var(--color-border, #e5e7eb);
}

.review-section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .review-section-title .fa {
        color: #f59e0b;
    }

/* ── Aggregate rating bar ── */
.review-aggregate {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    background: var(--color-card-bg, #fff);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.review-agg-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 100px;
}

.agg-number {
    font-size: 52px;
    font-weight: 900;
    color: #1a3a52;
    line-height: 1;
}

.agg-stars {
    font-size: 18px;
    color: #f59e0b;
}

.agg-count {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
}

.review-agg-bars {
    flex: 1;
    min-width: 200px;
}

.agg-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 12px;
}

.agg-bar-label {
    width: 38px;
    color: #f59e0b;
    text-align: right;
    font-size: 12px;
}

.agg-bar-track {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.agg-bar-fill {
    height: 100%;
    background: #f59e0b;
    border-radius: 4px;
    transition: width .4s;
}

.agg-bar-pct {
    width: 24px;
    color: #6b7280;
    font-size: 11px;
    text-align: right;
}

/* ── No reviews ── */
.review-no-reviews {
    padding: 20px 0;
    color: #6b7280;
    font-style: italic;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Write a review ── */
.review-write-section {
    margin-bottom: 32px;
}

.review-write-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a3a52;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.review-write-card {
    background: var(--color-card-bg, #fff);
    border: 1.5px solid var(--color-border, #e5e7eb);
    border-radius: 10px;
    padding: 22px 24px;
}

.review-edit-card {
    border-color: #3b82f6;
}

.review-already-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e8f8f0;
    color: #1a7a4a;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 14px;
}

/* Star picker */
.star-picker {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.star-picker-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-right: 8px;
}

.star-pick-input {
    display: none;
}

.star-pick-lbl {
    font-size: 28px;
    color: #d1d5db;
    cursor: pointer;
    transition: color .15s, transform .1s;
    line-height: 1;
}

    .star-pick-lbl:hover,
    .star-pick-lbl.active {
        color: #f59e0b;
        transform: scale(1.15);
    }

/* Review textarea */
.review-text-wrap {
    position: relative;
    margin-bottom: 14px;
}

.review-textarea {
    width: 100%;
    min-height: 96px;
    padding: 12px 14px;
    border: 1.5px solid var(--color-border, #e5e7eb);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    color: #1a3a52;
    background: #fafafa;
    transition: border-color .15s;
    box-sizing: border-box;
}

    .review-textarea:focus {
        outline: none;
        border-color: #3b82f6;
        background: #fff;
    }

.review-char-count {
    text-align: right;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 3px;
}

.review-submit-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ── Review cards list ── */
.review-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.review-card {
    background: var(--color-card-bg, #fff);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 10px;
    padding: 18px 20px;
}

.review-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1a3a52;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.review-card-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.review-name {
    font-size: 14px;
    font-weight: 700;
    color: #1a3a52;
}

.review-date {
    font-size: 11px;
    color: #9ca3af;
}

.review-card-stars {
    font-size: 14px;
    color: #f59e0b;
    margin-left: auto;
}

.review-card-text {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
    margin: 0;
}

.review-no-text {
    color: #9ca3af;
    font-style: italic;
}

/* Login nudge */
.review-login-nudge {
    padding: 16px 0;
    font-size: 14px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    display: none;
}

    .review-login-nudge a {
        color: #3b82f6;
        font-weight: 600;
    }

/* ── Rating stars on programme cards (default.aspx) ── */
.prog-card-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 6px 0 2px;
    font-size: 13px;
}

.rating-stars {
    color: #f59e0b;
    font-size: 13px;
    letter-spacing: 1px;
}

.rating-stars-empty {
    color: #d1d5db;
    font-size: 13px;
    letter-spacing: 1px;
}

.rating-avg {
    font-weight: 700;
    color: #1a3a52;
    font-size: 13px;
}

.rating-count {
    color: #6b7280;
    font-size: 12px;
}

.prog-card-rating.no-rating .rating-count {
    font-style: italic;
}


/* ── Sidebar filter cards ────────────────────────────────────── */
.filter-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.filter-card-title {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
    cursor: pointer;
}

    .filter-option input[type="radio"],
    .filter-option input[type="checkbox"] {
        accent-color: var(--color-primary);
        cursor: pointer;
    }

    .filter-option label {
        font-family: var(--font-body);
        font-size: 13px;
        color: var(--color-text);
        cursor: pointer;
        line-height: 1.4;
    }

.filter-clear-btn {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--color-muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    margin-top: 4px;
    transition: color var(--transition);
}

    .filter-clear-btn:hover {
        color: var(--color-danger);
    }

/* ── Empty state ─────────────────────────────────────────────── */
.prog-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-muted);
}

    .prog-empty i {
        font-size: 48px;
        margin-bottom: 16px;
        opacity: 0.25;
        display: block;
    }

    .prog-empty p {
        font-family: var(--font-body);
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 16px;
    }


/* ══════════════════════════════════════════════════════════════
   PROGRAMME DETAIL PAGE
   ══════════════════════════════════════════════════════════════ */

/* ── Hero section ────────────────────────────────────────────── */
.prog-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1d4e89 55%, var(--color-secondary) 100%);
    color: #fff;
    padding: 25px 0 0;
}

.prog-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 44px;
    align-items: flex-start;
}

.prog-hero-text {
    flex: 1;
    min-width: 0;
}

.prog-hero-cat {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    opacity: 0.72;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.prog-hero-code {
    display: inline-block;
    background: var(--color-accent);
    border: 1px solid var(--color-accent);
    padding: 4px 12px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    border-radius: 20px;
}

.prog-hero-title {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 10px;
    line-height: 1.2;
    text-shadow: 2px 2px #000;
}

.prog-hero-subtitle {
    font-family: var(--font-body);
    font-size: 14px;
    opacity: 0.85;
    margin: 0 0 15px;
    line-height: 1.65;
}

.prog-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-family: var(--font-body);
    font-size: 13px;
    opacity: 0.82;
    margin-bottom: 24px;
}

    .prog-hero-meta span {
        display: flex;
        align-items: center;
        gap: 6px;
    }

        .prog-hero-meta span i {
            color: var(--color-accent);
        }
/* ── Hero tabs ───────────────────────────────────────────────── */
.prog-hero-tabs {
    display: flex;
    gap: 0;
    margin-top: 28px;
}

.prog-hero-tab {
    padding: 8px 16px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.70);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: color var(--transition), border-color var(--transition);
    user-select: none;
    background-color: var(--btn-info-bg);
    border-radius: var(--radius-sm);
    margin: 0px 10px 0px 0px;
}

    .prog-hero-tab:hover {
        color: rgba(255,255,255,0.88);
    }

    .prog-hero-tab.active {
        color: #fff;
        background-color: var(--color-accent);
    }

/* ── Hero thumbnail ──────────────────────────────────────────── */
.prog-hero-thumb {
    width: 280px;
    flex-shrink: 0;
    padding: 20px 0px;
}

    .prog-hero-thumb img {
        width: 95%;
        border-radius: var(--radius-lg);
        box-shadow: 0 16px 48px rgba(0,0,0,0.35);
        display: block;
    }

.prog-hero-thumb-placeholder {
    width: 280px;
    height: 185px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: rgba(255,255,255,0.3);
}

/* ── Body layout below hero ──────────────────────────────────── */
.prog-body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 0px 60px;
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.prog-body-main {
    flex: 1;
    min-width: 0;
}

.prog-body-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* ── Tab sections ────────────────────────────────────────────── */
.tab-section {
    display: none;
}

    .tab-section.active {
        display: block;
    }

/* ── Content cards ───────────────────────────────────────────── */
.content-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 26px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

    .content-card h2 {
        font-family: var(--font-heading);
        font-size: 17px;
        font-weight: 700;
        color: var(--color-primary);
        margin: 0 0 16px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .content-card h3 {
        font-family: var(--font-heading);
        font-size: 15px;
        font-weight: 700;
        color: var(--color-accent);
        margin: 0 0 10px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .content-card p {
        font-family: var(--font-body);
        font-size: 14px;
        color: var(--color-text);
        line-height: 1.7;
        margin-bottom: 10px;
    }

    .content-card ul li {
        font-size: 14px;
        padding: 3px 0px;
    }
/* ── Curriculum accordion ────────────────────────────────────── */
.curriculum-unit {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    overflow: hidden;
}

.curriculum-unit-header {
    background: var(--color-bg);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 13px;
    color: var(--color-text);
    transition: background var(--transition);
}

    .curriculum-unit-header:hover {
        background: #eef3f8;
    }

    .curriculum-unit-header .unit-num {
        background: var(--color-primary);
        color: #fff;
        width: 26px;
        height: 26px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: 700;
        flex-shrink: 0;
    }

    .curriculum-unit-header .unit-chevron {
        margin-left: auto;
        font-size: 12px;
        font-weight: 400;
        color: var(--color-muted);
        display: flex;
        align-items: center;
        gap: 6px;
    }

.curriculum-unit-slides {
    padding: 0;
}

.curriculum-slide {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-top: 1px solid var(--color-bg);
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-text);
    transition: background var(--transition);
}

    .curriculum-slide:hover {
        background: var(--color-bg);
    }

    .curriculum-slide .slide-icon {
        width: 28px;
        text-align: center;
        color: var(--color-muted);
        flex-shrink: 0;
    }

    .curriculum-slide .slide-title {
        flex: 1;
    }

    .curriculum-slide .slide-duration {
        color: var(--color-muted);
        font-size: 12px;
        flex-shrink: 0;
    }

    .curriculum-slide.locked .slide-title {
        color: var(--color-muted);
        opacity: 0.65;
    }

    .curriculum-slide.preview-badge::after {
        content: "Preview";
        background: #dcfce7;
        color: #166534;
        font-family: var(--font-heading);
        font-size: 10px;
        font-weight: 700;
        padding: 2px 8px;
        border-radius: 10px;
        margin-left: 6px;
        flex-shrink: 0;
    }

/* ── Learning objectives ─────────────────────────────────────── */
.objectives-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .objectives-list li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 9px 0;
        border-bottom: 1px dashed var(--color-border);
        font-family: var(--font-body);
        font-size: 14px;
        color: var(--color-text);
        line-height: 1.55;
    }

        .objectives-list li:last-child {
            border-bottom: none;
        }

        .objectives-list li::before {
            content: "✓";
            color: var(--color-success);
            font-weight: 700;
            flex-shrink: 0;
            margin-top: 1px;
        }

/* ── Purchase / enrol card ───────────────────────────────────── */
.purchase-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 26px;
    position: sticky;
    top: 76px;
    box-shadow: var(--shadow-md);
}

.purchase-price {
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 800;
    color: var(--color-text);
    margin: 0 0 4px;
}

    .purchase-price.free {
        color: var(--color-success);
        font-size: 26px;
    }

.purchase-price-note {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--color-muted);
    margin-bottom: 16px;
}

.purchase-btn {
    display: block;
    text-align: center;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 10px;
    width: 100%;
    text-decoration: none;
    transition: background var(--transition);
}

    .purchase-btn:hover {
        background: #CF661A;
        color: #fff;
    }

    .purchase-btn.secondary {
        background: var(--color-bg);
        color: var(--color-text);
        border: 1px solid var(--color-border);
    }

        .purchase-btn.secondary:hover {
            background: var(--color-border);
            color: var(--color-text);
        }

.purchase-meta {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-muted);
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

    .purchase-meta div {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 9px;
    }

/* ── Not found panel ─────────────────────────────────────────── */
.prog-not-found {
    text-align: center;
    padding: 80px 20px;
    color: var(--color-muted);
}

    .prog-not-found i {
        font-size: 52px;
        opacity: 0.22;
        margin-bottom: 16px;
        display: block;
    }

    .prog-not-found h2 {
        font-family: var(--font-heading);
        font-size: 22px;
        color: var(--color-text);
        margin-bottom: 8px;
    }

    .prog-not-found p {
        font-family: var(--font-body);
        font-size: 14px;
        margin-bottom: 20px;
    }


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 992px) {
    .prog-hero-title {
        font-size: 26px;
    }

    .prog-hero-thumb {
        width: 220px;
    }

    .prog-hero-thumb-placeholder {
        width: 220px;
        height: 150px;
    }

    .prog-hero {
        padding: 25px 25px 0;
    }

    .prog-body {
        padding: 30px 20px 60px;
    }

    .agg-number {
        font-size: 35px;
    }
}

@media (max-width: 768px) {
    /* Listing page */
    .prog-layout {
        flex-direction: column;
        padding: 20px 12px 40px;
    }

    .prog-sidebar {
        width: 100%;
    }

    .prog-grid {
        grid-template-columns: 1fr;
        margin-top: 20px;
    }

    /* Detail page hero */
    .prog-hero {
        padding: 32px 0 0;
    }

    .prog-hero-inner {
        flex-direction: column-reverse;
        gap: 20px;
        padding: 0 16px;
    }

    .prog-hero-thumb,
    .prog-hero-thumb-placeholder {
        width: 100%;
        height: 200px;
        border-radius: var(--radius-md);
    }

    .prog-hero-title {
        font-size: 22px;
    }

    .prog-hero-tab {
        padding: 10px 14px;
        font-size: 13px;
    }

    /* Detail page body */
    .prog-body {
        flex-direction: column;
        padding: 20px 12px 40px;
        gap: 20px;
    }

    .prog-body-sidebar {
        width: 100%;
    }

    .purchase-card {
        position: static;
    }

    .review-section {
        margin: 0 15px;
    }

    .agg-number {
        font-size: 30px;
    }
}

/* ══════════════════════════════════════════════════════════════
   DARK MODE OVERRIDES
   ══════════════════════════════════════════════════════════════ */

.dark-mode .prog-card {
    background: var(--color-surface);
    border-color: var(--color-border);
}

    .dark-mode .prog-card:hover {
        box-shadow: 0 8px 28px rgba(0,0,0,0.4);
    }

.dark-mode .filter-card,
.dark-mode .content-card,
.dark-mode .purchase-card {
    background: var(--color-surface);
    border-color: var(--color-border);
}

.dark-mode .curriculum-unit {
    border-color: var(--color-border);
}

.dark-mode .curriculum-unit-header {
    background: rgba(255,255,255,0.04);
}

    .dark-mode .curriculum-unit-header:hover {
        background: rgba(255,255,255,0.08);
    }

.dark-mode .curriculum-slide:hover {
    background: rgba(255,255,255,0.04);
}

.dark-mode .prog-card-thumb-placeholder,
.dark-mode .prog-hero-thumb-placeholder {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.2);
}

.dark-mode .purchase-btn.secondary {
    background: rgba(255,255,255,0.06);
    color: var(--color-text);
    border-color: var(--color-border);
}

    .dark-mode .purchase-btn.secondary:hover {
        background: rgba(255,255,255,0.10);
    }

.dark-mode .objectives-list li {
    border-bottom-color: var(--color-border);
}
