/* Media Enrichment Programmes Page - Redesign */

body.programmes-page {
    padding-top: var(--header-height);
    overflow-x: hidden;
    background-color: #fff;
}

.programmes-intro .display-4 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #000;
    letter-spacing: -1px;
}

.programmes-intro .text-serif {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    /* color: var(--primary-color); */
}

.programmes-grid-section {
    padding-bottom: 100px;
}

.programmes-row-section {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 60px;
    padding: 60px 0;
}

@media (max-width: 1199px) {
    .programmes-row-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-sidebar {
        padding-bottom: 20px;
        border-bottom: 1px solid #eee;
    }
}

/* Sidebar Sticky Wrapper */
.sidebar-sticky-wrapper {
    position: sticky;
    top: 140px;
    /* Adjust based on header height + spacing */
}

.section-sidebar-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    color: #222;
    margin: 0;
}

.section-sidebar-line {
    width: 60px;
    height: 5px;
    background: var(--primary-color, #C0FF00);
    margin-top: 15px;
    border-radius: 2px;
}

/* Grid View */
.programmes-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
}

.prog-grid-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.prog-grid-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: #e0e0e0;
}

.prog-card-img-wrapper {
    position: relative;
    height: 200px;
}

.prog-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prog-type-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #111;
    color: var(--primary-color, #C0FF00);
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prog-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.prog-card-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}

.prog-card-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.prog-card-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color, #C0FF00);
    font-weight: 700;
    font-size: 14px;
    background: #111;
    padding: 12px 20px;
    border-radius: 6px;
    width: fit-content;
    transition: all 0.3s ease;
}

.prog-grid-card:hover .prog-card-footer {
    padding-right: 25px;
}

.view-text {
    margin-right: 5px;
}

.section-divider {
    margin: 40px 0;
    border: 0;
    border-top: 1px solid #eee;
}

/* Detail Page Styles - Preserved/Adapted */
body.programme-detail-page {
    padding-top: var(--header-height);
    background-color: #fff;
}

.detail-header {
    padding: 100px 0 50px;
    background: #f9f9f9;
}

.detail-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 60px;
    margin: 60px 0 100px;
}

@media (max-width: 991px) {

    .programmes-row-section,
    .detail-header {
        padding: 33px 0;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }
}

.highlight-box {
    background: #111;
    color: #fff;
    padding: 40px;
    border-radius: 12px;
    margin: 40px 0;
}

.highlight-box h3 {
    color: var(--primary-color, #C0FF00);
}

.highlight-label {
    font-weight: 700;
    color: #ccc;
    min-width: 160px;
}

.highlight-value {
    color: #fff;
}

.btn-nac-link {
    display: block;
    background: var(--primary-color, #C0FF00);
    color: #111;
    padding: 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    text-align: center;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.btn-nac-link:hover {
    background: var(--primary-hover, #b0e600);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(192, 255, 0, 0.3);
}

/* Info Lists on Detail Page */
.info-list-section {
    background: #fdfdfd;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    line-height: 1.6;
    color: #444;
}

.info-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--primary-color, #C0FF00);
}