:root {
    --bg-dark: #111111;
    --red: #DD221B;
    --text-gray: #777777;
    --font-primary: 'Neue Haas Grotesk Display Pro', 'Inter', sans-serif;
}

body.programmes-page {
    background-color: #000;
    margin: 0;
    font-family: var(--font-primary);
}

.main-container {
    width: 1400px;
    margin: 0 auto;
}

/* HERO SECTION */
.prog-hero {
    background-color: #242424;
    padding: 20px 0;
    color: #fff;
    border-bottom: 1px solid #222;
}

.hero-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-text h1 { font-size: 24px; margin-bottom: 10px; font-weight: 600; }
.hero-text p { color:#F6F6F6; max-width: 500px; font-size: 14px; line-height: 1.5;  max-width: none !important;
    white-space: nowrap }

.hero-stats { display: flex; gap: 50px; }
.stat-item { text-align: center; }
.stat-item .num { display: block; font-size: 24px; font-weight: 800; color: #fff; }
.stat-item .num-red { display: block; font-size: 24px; font-weight: 800; color: var(--red); }
.stat-item .label { font-size: 12px; color: var(--text-gray); font-weight: 700; margin-top: 5px; }

/* FEATURED SECTION */
.featured-section { padding: 40px 0; }
.section-heading { font-size: 14px; color: #fff; margin-bottom: 25px; font-weight: 800; letter-spacing: 0.5px; }

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 453px);
    gap: 20px;
}

.feat-card { width: 453px; }
.thumb-wrap { width: 453px; height: 255px; border-radius: 4px; overflow: hidden; position: relative; background: #222; }
.thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }

.play-overlay {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 50px; height: 50px; background: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: #000;
}

.duration { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,0.8); color: #fff; font-size: 11px; padding: 3px 6px; border-radius: 2px; }

.card-info { padding: 15px 0; }
.cat-red { color: var(--red); font-weight: 800; font-size: 13px; text-transform: uppercase; }
.card-info a { text-decoration: none; color: inherit; }
.card-info h3 { color: #fff; font-size: 18px; margin: 8px 0; font-weight: 600; line-height: 1.3; }
.meta { color: var(--text-gray); font-size: 13px; }

/* ALL PROGRAMMES SECTION */
.all-prog-section { background: #fff; padding: 50px 0; width: 100vw; margin-left: calc(-50vw + 50%); }
.all-prog-section .main-container { padding: 0 15px; } /* Correction for centering inside full width */

.section-header-flex { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 30px; width: 1400px; margin: 0 auto 30px auto; }
.section-heading-dark { font-size: 16px; font-weight: 700; color: #111; }
.show-count { color: var(--text-gray); font-size: 13px; }

.all-prog-grid {
    display: grid;
    grid-template-columns: repeat(4, 335px);
    gap: 20px;
    width: 1400px;
    margin: 0 auto;
}

.prog-item { width: 335px; display: block; text-decoration: none; color: inherit; }
.prog-thumb { width: 335px; height: 190px; border-radius: 4px; overflow: hidden; position: relative; background: #eee; }
.prog-thumb img { width: 100%; height: 100%; object-fit: cover; }

.list-overlay {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 40px; height: 40px; background: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: #000;
}

.ep-badge { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,0.8); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 6px; border-radius: 2px; }

.prog-details { padding: 15px 0; }
.time-meta { color: var(--text-gray); font-size: 12px; display: block; margin-bottom: 5px; }
.prog-details h4 { font-size: 16px; font-weight: 700; margin: 0 0 8px 0; color: #111; }
.prog-details p { font-size: 13px; color: #666; line-height: 1.4; margin: 0; }

/* MOBILE RESPONSIVE */
@media (max-width: 991px) {
    .main-container, .section-header-flex, .all-prog-grid { width: 100% !important; padding: 0 20px; }
    .hero-flex { flex-direction: column; text-align: center; gap: 30px; }
    .featured-grid, .all-prog-grid { grid-template-columns: 1fr; gap: 30px; }
    .feat-card, .feat-card .thumb-wrap, .prog-item, .prog-thumb { width: 100% !important; }
}

/* Bottom Nav Styling (Reused) */
.mobile-bottom-nav {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; height: 75px; background: #000;
    border-radius: 30px 30px 0 0; justify-content: space-around; align-items: center; z-index: 1000;
}
@media (max-width: 768px) { .mobile-bottom-nav { display: flex; } body { padding-bottom: 80px; } }
.nav-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #fff; font-size: 11px; }
.nav-icon { width: 22px; height: 22px; fill: #fff; margin-bottom: 5px; }
.nav-item.active { color: var(--red); }
.nav-item.active .nav-icon { fill: var(--red); }


@media (max-width: 991px) {
    .hero-text p {
        white-space: normal !important;
        max-width: 100% !important;
        text-align: center; /* Optional: centers the text on mobile for better looks */
    }
}