/***** =====================================================
           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
           ======================================================*/
/* Make both top bar + navbar sticky as a unit */
.sticky-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1050;
}

/* Top black bar styles with increased height and bold font */
.top-black-bar {
    background: var(--clr-black);
    color: var(--clr-white);
    padding: 0.65rem 0;
    /* increased height */
    font-size: 0.9rem;
    font-weight: 600;
}

/* 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: sticky;
    top: 0;
    z-index: 1000;
    padding: .65rem 0;
}

.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='%23ffffff' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
    color: var(--clr-black) !important;
    font-weight: 500;
    padding: .4rem .9rem !important;
    position: relative;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--clr-red-600) !important;
}

/* red underline on hover */
.nav-link::after {
    content: "";
    display: block;
    height: 3px;
    width: 0;
    background: var(--clr-gray-050);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width .25s ease-in-out;
}

.nav-link:hover::after,
.nav-link:focus::after {
    width: 80%;
}

.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);
}

/***** =====================================================
           Top Nav Bar
           ======================================================*/
/* Make both top bar + navbar sticky as a unit */
.sticky-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1050;
}

/* Top black bar styles with increased height and bold font */
.top-black-bar {
    background: var(--clr-black);
    color: var(--clr-white);
    padding: 0.65rem 0;
    /* increased height */
    font-size: 0.9rem;
    font-weight: 600;
}

/* 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;
}



/***** =====================================================
           LAYOUT
           ======================================================*/
.container-fluid.main-content {
    padding: 0 1rem;
}

.row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

[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;
    }
}

/* 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: 1fr 1fr;
    gap: 2.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 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.8rem;
    /* Increased from 1.5rem */
    line-height: 1.25;
    margin: 0.5rem 0 0.8rem 0;
    font-weight: 700;
    /* Bolder */
}

.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-width: 100%;
    height: 300px !important;
    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;
}

.news-wrap img:hover,
.hero-image:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

/* 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);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* 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;
}

.news-card img:hover,
.card-img:hover {
    transform: scale(1.02);
}

/* 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;
}

.infographic-card img:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* Content images in articles */
.content-block img,
article img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1rem 0;
}



.news-wrap img:hover {
    transform: scale(1.02);
    /* Subtle zoom on hover */
}