:root {
    --prudent-red: #DD221B;
    --dark-bg: #111111;
    --text-gray: #7F919B;
    --font-main: 'Neue Haas Grotesk Display Pro', 'Inter', sans-serif;
    --radius: 5px;
}

body.debates-page { background-color: #fff; margin: 0; font-family: var(--font-main); color: #111; }
.main-container { width: 1400px; margin: 0 auto; }

/* HERO */
.debates-hero { background: var(--dark-bg); color: #fff; padding: 50px 0; }
.hero-flex { display: flex; justify-content: space-between; align-items: center; }
.hero-text h1 { font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.hero-text p { font-size: 14px; color: #F6F6F6; max-width: 600px; }
.hero-stats { display: flex; gap: 50px; }
.stat-item { text-align: center; }
.stat-item .num-red { display: block; font-size: 24px; font-weight: 800; color: #E9615C; }
.stat-item .num { display: block; font-size: 24px; font-weight: 800; }
.stat-item .label { font-size: 11px; color: #555; font-weight: 700; margin-top: 5px; }

/* GRIDS */
.debates-mt { padding-top: 40px; padding-bottom: 80px; }
.featured-debates-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 453px); /* Exact Figma Width */
    gap: 20px; 
}

.all-programmes-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 335px); /* Exact Figma Width */
    gap: 20px; 
}

/* CARDS COMMON */
img { border-radius: var(--radius) !important; width: 100%; height: 100%; object-fit: cover; }
.duration-tag { 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: 3px; }
.cat-tag { color: var(--prudent-red); font-weight: 700; font-size: 16px; display: block; margin-bottom: 8px; text-decoration: none; }
.f-info a, .m-info a { text-decoration: none; color: inherit; }
.f-info h3 a, .m-info h4 a { color: inherit; }

/* FEATURED CARD */
.f-debate-card { width: 453px; }
.f-thumb { width: 453px; height: 249px; position: relative; overflow: hidden; border-radius: var(--radius); background: #000; }
.play-btn-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 55px; height: 55px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #111; }
.f-info { padding: 15px 0; }
.f-info h3 { font-size: 20px; font-weight: 600; line-height: 100%; margin-bottom: 8px; }
.f-info .meta { font-size: 16px; color: var(--text-gray); }

/* MAIN CARD */
.m-debate-card { width: 335px; }
.m-thumb { width: 335px; height: 190px; position: relative; overflow: hidden; border-radius: var(--radius); background: #eee; }
.play-btn-sm { 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: #111; font-size: 12px; }
.live-label { position: absolute; top: 10px; right: 10px; background: var(--prudent-red); color: #fff; font-size: 10px; font-weight: 900; padding: 2px 6px; border-radius: 2px; }
.m-info { padding: 12px 0; }
.m-info h4 { font-size: 15px; font-weight: 800; line-height: 1.3; color: #111; }

/* UTILS */
.section-title { font-size: 16px; font-weight: 700; color: #fff;  }
.section-title.dark { color: #111; }
.section-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.count-tag { font-size: 13px; color: #999; }
.mt-60 { margin-top: 60px; }

/* MOBILE RESPONSIVE */
@media (max-width: 991px) {
    .main-container { width: 100% !important; padding: 0 20px; }
    .hero-flex { flex-direction: column; text-align: center; gap: 30px; }
    .featured-debates-grid, .all-programmes-grid { grid-template-columns: 1fr; gap: 30px; }
    .f-debate-card, .f-thumb, .m-debate-card, .m-thumb { width: 100% !important; }
    .f-thumb { height: 220px; }
    .m-thumb { height: 200px; }
}

/* Bottom Nav Component */
.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(--prudent-red); }
.nav-item.active .nav-icon { fill: var(--prudent-red); }:root {
    --prudent-red: #DD221B;
    --dark-bg: #111111;
    --text-gray: #777777;
    --font-main: 'Neue Haas Grotesk Display Pro', 'Inter', sans-serif;
    --radius: 5px;
}

body.debates-page { background-color: #fff; margin: 0; font-family: var(--font-main); color: #111; }
.main-container { width: 1400px; margin: 0 auto; }

/* HERO */
.debates-hero { background: var(--dark-bg); color: #fff; padding: 50px 0; }
.hero-flex { display: flex; justify-content: space-between; align-items: center; }
.hero-text h1 { font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.hero-text p { font-size: 15px; color: #F6F6F6; max-width: 600px; }
.hero-stats { display: flex; gap: 50px; }
.stat-item { text-align: center; }
.stat-item .num-red { display: block; font-size: 24px; font-weight: 800; color: var(--prudent-red); }
.stat-item .num { display: block; font-size: 24px; font-weight: 800; }
.stat-item .label { font-size: 11px; color: #555; font-weight: 700; margin-top: 5px; }

/* GRIDS */
.debates-mt { padding-top: 0px; padding-bottom: 80px; }
.featured-debates-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 453px); /* Exact Figma Width */
    gap: 20px; 
}

.all-programmes-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 335px); /* Exact Figma Width */
    gap: 20px; 
}

/* CARDS COMMON */
img { border-radius: var(--radius) !important; width: 100%; height: 100%; object-fit: cover; }
.duration-tag { 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: 3px; }
.cat-tag { color: var(--prudent-red); font-weight: 800; font-size: 12px; display: block; margin-bottom: 8px; }

/* FEATURED CARD */
.f-debate-card { width: 453px; }
.f-thumb { width: 453px; height: 249px; position: relative; overflow: hidden; border-radius: var(--radius); background: #000; }
.play-btn-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 55px; height: 55px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #111; }
.f-info { padding: 15px 0; }
.f-info h3 { font-size: 18px; font-weight: 800; line-height: 1.3; margin-bottom: 8px; }
.f-info .meta { font-size: 13px; color: var(--text-gray); }

/* MAIN CARD */
.m-debate-card { width: 335px; }
.m-thumb { width: 335px; height: 190px; position: relative; overflow: hidden; border-radius: var(--radius); background: #eee; }
.play-btn-sm { 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: #111; font-size: 12px; }
.live-label { position: absolute; top: 10px; right: 10px; background: var(--prudent-red); color: #fff; font-size: 10px; font-weight: 900; padding: 2px 6px; border-radius: 2px; }
.m-info { padding: 12px 0; }
.m-info h4 { font-size: 15px; font-weight: 800; line-height: 1.3; color: #111; }

/* UTILS */
.section-title { font-size: 14px; font-weight: 800; color: #fff; margin-bottom: 25px; }
.section-title.dark { color: #111; }
.section-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.count-tag { font-size: 13px; color: #999; }
.mt-60 { margin-top: 60px; }

/* MOBILE RESPONSIVE */
@media (max-width: 991px) {
    .main-container { width: 100% !important; padding: 0 20px; }
    .hero-flex { flex-direction: column; text-align: center; gap: 30px; }
    .featured-debates-grid, .all-programmes-grid { grid-template-columns: 1fr; gap: 30px; }
    .f-debate-card, .f-thumb, .m-debate-card, .m-thumb { width: 100% !important; }
    .f-thumb { height: 220px; }
    .m-thumb { height: 200px; }
}

/* Bottom Nav Component */
.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(--prudent-red); }
.nav-item.active .nav-icon { fill: var(--prudent-red); }

/* --- STRICT BLACK BACKGROUND FOR FEATURED DEBATES --- */

/* 1. Set the background of the section to black */
.section-block:first-of-type {
    background-color: #000000 !important;
    width: 100vw !important; /* Forces background to span full screen width */
    margin-left: calc(-50vw + 50%) !important; /* Centers full-width block */
    padding-top: 40px !important;
    padding-bottom: 40px !important;
}

/* 2. Ensure the text inside this section is white/readable */
.section-block:first-of-type .section-title {
    color: #FFFFFF !important;
    width: 1400px;
    margin: 0 auto 25px auto;
}

/* 3. Constrain the grid back to 1400px center within the black section */
.featured-debates-grid {
    width: 1400px !important;
    margin: 0 auto !important;
}

/* 4. Fix typography for the dark background */
.f-debate-card h3 {
    color: #FFFFFF !important;
}

.f-debate-card .meta {
    color: #888888 !important; /* Lighter gray for readability on black */
}

/* --- MOBILE RESPONSIVE RESET --- */
@media (max-width: 991px) {
    .section-block:first-of-type {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 30px 20px !important;
    }
    
    .section-block:first-of-type .section-title,
    .featured-debates-grid {
        width: 100% !important;
    }
}

/* --- FIX FOR SINGLE LINE SUBTITLE --- */

/* Desktop Fix */
.debates-hero .hero-text p {
    max-width: none !important;
    white-space: nowrap !important;
}

/* Mobile Responsive Reset (Ensures text wraps properly on phones) */
@media (max-width: 991px) {
    .debates-hero .hero-text p {
        white-space: normal !important;
        text-align: center;
    }
}