/***** =====================================================
           THEME TOKENS – CNN‑inspired palette
           ======================================================*/
:root {
    /* Core Palette */
    --clr-white: #ffffff;
    --clr-black: #000000;
    --clr-red-600: #cc0000;
    /* Primary brand (CNN red) */
    --clr-red-400: #e21414;
    /* Hover / lighter red */
    --clr-gray-050: #f5f5f5;
    /* Page background */
    --clr-gray-600: #414141;
    /* Secondary text */
    --clr-border: #e0e0e0;
    /* Neutral borders */

    /* Semantic roles */
    --bg-main: var(--clr-white);
    --bg-nav: #222222;
    --bg-card: var(--clr-white);
    --text-main: var(--clr-black);
    --text-secondary: var(--clr-gray-600);
}

/***** =====================================================
           BASE
           ======================================================*/
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-main);
    background: var(--bg-main);
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    color: var(--text-main);
    margin-top: 0;
}


/***** =====================================================
           Top Nav Bar
           ======================================================*/
/* Header Wrapper - Standard Scrollable Layout */
.sticky-header-wrapper {
    position: relative; /* Changed from sticky to relative for standard scrolling */
    z-index: 1050;
    background: var(--clr-white);
}

/* Top black bar styles with increased height and bold font */
.top-black-bar {
    background: var(--clr-black);
    color: var(--clr-white);
    padding: 0; /* removed padding so banner sits perfectly flush */
    font-size: 0.9rem;
    font-weight: 600;
}

.top-banner-link {
    display: inline-block;
    max-height: 45px;
    vertical-align: middle;
}

.top-banner-img {
    max-height: 45px;
    width: auto;
    object-fit: contain;
}

/* Top links */
.top-black-bar a {
    color: var(--clr-white);
    text-decoration: underline;
    margin: 0 0.5rem;
    font-weight: 600;
}

.top-black-bar a:hover {
    color: var(--clr-gray-050);
    text-decoration: none;
}



/***** =====================================================
           NAVIGATION – dark bar + white links + red hover
           ======================================================*/
.top-navbar {
    background: var(--clr-white);
    position: relative;
    z-index: 1000;
    padding: 0;
    border-bottom: 3px solid var(--clr-red-600);
}

/* New Logo Bar Styles */
.logo-bar {
    background: var(--clr-white);
    border-bottom: 1px solid var(--clr-border);
    padding: 1.5rem 0; /* Default padding for desktop */
    position: relative;
    z-index: 1010;
}

.navbar-brand-custom {
    display: block;
    text-align: center;
}

.navbar-brand-custom img {
    max-height: 90px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-text {
    font-family: 'Oswald', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--clr-black) !important;
    text-transform: none;
    letter-spacing: 0.5px;
    display: inline-block;
    text-decoration: none !important;
}

.logo-text span {
    color: var(--clr-red-600);
}




.navbar-brand {
    font-size: 2rem;
    font-weight: 700;
    color: var(--clr-black) !important;
}

.navbar-brand span {
    color: var(--clr-red-600);
}

.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23000000' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler {
    border: 1px solid var(--clr-border) !important;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 4px;
    margin: 10px 0;
}

.navbar-toggler span {
    font-size: 0.9rem;
    color: var(--clr-black);
    text-transform: uppercase;
}

.nav-link {
    color: var(--clr-black) !important;
    font-weight: 600;
    padding: .8rem 1rem !important;
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: var(--clr-red-600) !important;
}


.dropdown-menu {
    border: none;
    border-radius: 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    margin-top: .3rem;
}

.dropdown-item {
    color: var(--text-main);
    padding: .45rem 1.2rem;
}

.dropdown-item:hover {
    color: var(--clr-red-600);
    background: var(--clr-white);
}


/***** =====================================================
           LAYOUT
           ======================================================*/
.container-fluid {
    max-width: 1320px;
    margin: 0 auto;
}

[class^="col-"] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/***** =====================================================
           SIDEBARS
           ======================================================*/
.sidebar,
.right-sidebar {
    padding: 1rem;
}

.sidebar {
    background: var(--bg-card);
    border: 1px solid var(--clr-border);
}

.right-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--clr-border);
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--clr-red-600);
    border-bottom: 2px solid var(--clr-red-600);
    margin-bottom: .9rem;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list a {
    color: var(--text-main);
    display: block;
    /* padding: .10rem 0; */
    transition: color .2s;
}

.sidebar-list a:hover {
    color: var(--clr-red-600);
}


.sidebar-section {
    padding-top: 24px;
}

/***** =====================================================
           CONTENT CARDS
           ======================================================*/
.news-card {
    background: var(--bg-card);
    border: 1px solid var(--clr-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: transform .25s, box-shadow .25s;
}

/* .news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
} */

.news-category {
    display: inline-block;
    font-size: .95rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .1px;
    padding: .15rem .15rem;
    color: var(--clr-red-600);
    background: var(--clr-white);
    border-radius: 2px;
    margin-bottom: .4rem;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: .4rem 0;
}

.news-title a {
    color: var(--text-main);
    text-decoration: none;
}

.news-title a:hover {
    color: var(--clr-red-600);
}

.card-text {
    font-size: .9rem;
    color: var(--text-secondary);
}


/* ================================
   CONTENT-BLOCK – responsive polish
   ================================*/
.content-section {
    /* already 3-col on large screens */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 40px;
}

/* 2 columns on md (≤ 991 px) */
@media (max-width:991.98px) {
    .content-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* single column on sm (≤ 575 px) */
@media (max-width:575.98px) {
    .content-section {
        grid-template-columns: 1fr;
    }
}

.content-block {
    background: var(--bg-card);
    padding: 20px;
    border-left: 4px solid var(--clr-red-600);
    /* use theme var */
    box-shadow: 0 2px 6px rgba(0, 0, 0, .05);
    transition: transform .25s ease;
}

/* .content-block:hover {
    transform: translateY(-4px);
} */

.content-block h3 {
    margin-top: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--clr-red-600);
}

.content-block ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.content-block li {
    padding: .25rem 0;
    border-bottom: 1px solid var(--clr-border);
    font-size: .9rem;
    color: var(--text-secondary);
}

.content-block li:last-child {
    border-bottom: none;
}


/***** =====================================================
           MARKETING & ADS
           ======================================================*/
.ad-card,
.marketing-banner {
    background: var(--bg-card);
    border: 1px solid var(--clr-border);
    text-align: center;
    padding: 1rem;
    margin-bottom: 1.25rem;
    transition: transform .2s, box-shadow .2s;
}

/* .ad-card:hover,
.marketing-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
} */

/***** =====================================================
           BUTTONS – red solid & outline
           ======================================================*/
.btn {
    font-size: .85rem;
    border-radius: 0;
}

.btn-danger {
    background: var(--clr-red-600);
    border-color: var(--clr-red-600);
    color: var(--clr-white);
}

.btn-danger:hover {
    background: var(--clr-red-400);
    border-color: var(--clr-red-400);
}

/* .btn-outline-danger {
            border-color: var(--clr-red-600);
            color: var(--clr-red-600);
        } */

/* .btn-outline-danger:hover {
            background: var(--clr-red-600);
            color: var(--clr-white);
        } */

.btn-outline-danger:hover {
    background-color: transparent !important;
    /* No red fill */
    color: #dc3545 !important;
    /* Keep the red text */
    border-color: #dc3545 !important;
}


/***** =====================================================
           FOOTER
           ======================================================*/
.footer {
    background: var(--bg-nav);
    color: var(--clr-white);
    padding: 2.5rem 0 1rem;
    border-top: 6px solid var(--clr-red-600);
}

.footer-logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--clr-white);
    text-decoration: none;
}

.footer-logo span {
    color: var(--clr-red-600);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
    color: #ffffff !important;
}


.footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--clr-red-600);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links a {
    color: #bbbbbb;
    font-size: .9rem;
    transition: color .2s;
}

.footer-links a:hover {
    color: var(--clr-red-600);
}

.social-icons a {
    color: var(--clr-white);
    margin-right: .9rem;
    font-size: 1.1rem;
    transition: color .2s;
}

.social-icons a:hover {
    color: var(--clr-red-600);
}

/***** =====================================================
           UTILITIES & RESPONSIVE
           ======================================================*/
.small {
    font-size: .8rem !important;
}

@media (max-width: 991.98px) {

    .sidebar,
    .right-sidebar {
        margin-top: 1rem;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    .logo-bar {
        padding: 0.5rem 0 !important;
    }

    .logo-bar img {
        max-height: 55px !important;
    }

    .top-black-bar {
        font-size: 0.75rem;
        padding: 8px 0;
    }

    .hero-section-wrapper {
        padding: 1rem;
    }

    .news h2 {
        font-size: 1.25rem;
    }
}

/* Remove default link colour states */
a,
a:visited,
a:active,
a:focus {
    color: inherit;
    text-decoration: none !important;
}

/* a:focus {
            outline: none;
            box-shadow: 0 0 0 2px var(--clr-red-600);
        } */

/* Kill every FA icon (all styles) */
.fa,
.fas,
.far,
.fal,
.fab {
    display: none !important;
}

/* =====================================================
   NEW HERO SECTION STYLES
   ===================================================== */
/* Hero Section Wrapper */
.hero-section-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--clr-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.news-main-wrap {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

/* Left Column: News List */
.news-main-wrap .other-news.main-news {
    border-right: 1px solid var(--clr-border);
    padding-right: 2rem;
}

/* Right Column: Featured Story */
.news-main-wrap .other-news:not(.main-news) {
    padding-left: 1rem;
}

/* Responsive: Stack columns on smaller screens */
@media (max-width: 991px) {
    .news-main-wrap {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .news-main-wrap .other-news.main-news {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid var(--clr-border);
        padding-bottom: 2rem;
    }

    .news-main-wrap .other-news:not(.main-news) {
        padding-left: 0;
    }
}

.news {
    margin-bottom: 2rem;
}

.news p,
.heading p {
    margin-bottom: 0.3rem;
}

.news p a,
.heading p a {
    color: var(--clr-red-600);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.news h2,
.heading h2 {
    font-size: 1.5rem;
    line-height: 1.3;
    margin: 0.3rem 0 0.6rem 0;
    font-weight: 700;
}

.news h2 a,
.heading h2 a {
    color: var(--clr-black);
    text-decoration: none;
    transition: color 0.2s;
}

.news h2 a:hover,
.heading h2 a:hover {
    color: var(--clr-red-600);
}

.news h5,
.details p {
    font-size: 1.05rem;
    /* Slight bump */
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.details a {
    color: var(--clr-red-600);
    font-weight: 600;
    margin-left: 5px;
}

/* Hero Section Image Styling */
.news-wrap img,
.hero-image {
    width: 100%;
    max-height: 300px;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
    margin-bottom: 1.2rem;
    display: block;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}



/* Sidebar Partner Logo Styling */
.right-sidebar>a {
    display: block;
    margin-bottom: 1rem;
}

.partner-logo {
    margin: 0 auto;
    display: block;
    width: 100%;
    max-width: 100%;
    height: 90px !important;
    /* Increased from 70px */
    object-fit: contain;
    transition: all 0.3s ease;
    padding: 15px;
    background: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 6px;
}

.partner-logo:hover {
    border-color: var(--clr-red-600);
}

/* General sidebar images */
.right-sidebar .row.text-center img:not(.partner-logo) {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* News Card Images */
.news-card img,
.card-img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease;
}



/* Infographic and Chart Images */
.infographic-card img {
    width: 100%;
    min-height: 250px;
    /* Ensure minimum display size */
    height: auto;
    border-radius: 6px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1rem;
}



/* Content images in articles */
.content-block img,
article img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1rem 0;
}


