﻿/* ============================================================
   BOLNEWS — SITE.CSS
   Theme system using CSS custom properties
   4 themes: default | dark | editorial | bold
   ============================================================ */
/* ── Google Fonts ───────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Playfair+Display:wght@700;800&family=Source+Serif+4:ital,wght@0,300;0,400;0,600;1,400&family=DM+Sans:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
/* ── DEFAULT THEME (BBC-style clean white) ──────────────────── */
:root {
    --bn-bg: #f5f4f0;
    --bn-surface: #ffffff;
    --bn-surface-alt: #f0ede6;
    --bn-border: #e0dbd0;
    --bn-text-primary: #111111;
    --bn-text-body: #2d2d2d;
    --bn-text-muted: #767676;
    --bn-accent: #c0392b;
    --bn-accent-hover: #a93226;
    --bn-nav-bg: #111111;
    --bn-nav-text: rgba(255,255,255,0.78);
    --bn-nav-text-hover: #ffffff;
    --bn-nav-active: #c0392b;
    --bn-ticker-bg: #c0392b;
    --bn-ticker-text: #ffffff;
    --bn-hero-overlay: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.28) 55%, transparent 100%);
    --bn-shadow: 0 1px 3px rgba(0,0,0,0.07), 0 4px 12px rgba(0,0,0,0.05);
    --bn-shadow-hover: 0 4px 18px rgba(0,0,0,0.13), 0 1px 4px rgba(0,0,0,0.07);
    --bn-radius-sm: 4px;
    --bn-radius-md: 8px;
    --bn-radius-lg: 12px;
    --bn-font-display: 'Inter', sans-serif; /* was 'Playfair Display', Georgia, serif */
    --bn-font-body: 'Inter', sans-serif; /* was 'Source Serif 4', Georgia, serif */
    --bn-font-ui: 'Poppins', sans-serif; /* was 'DM Sans', system-ui, sans-serif */
    --bn-font-accent: 'Belleza', serif; /* NEW — for section-header labels only */
    /*--bn-font-display: 'Playfair Display', Georgia, serif;
    --bn-font-body: 'Source Serif 4', Georgia, serif;
    --bn-font-ui: 'DM Sans', system-ui, sans-serif;
    --bn-transition: 0.22s cubic-bezier(0.4,0,0.2,1);*/
}

/* ── DARK THEME ─────────────────────────────────────────────── */
[data-theme="dark"] {
    --bn-bg: #0d0d0d;
    --bn-surface: #1a1a1a;
    --bn-surface-alt: #141414;
    --bn-border: #2a2a2a;
    --bn-text-primary: #f0f0f0;
    --bn-text-body: #c8c8c8;
    --bn-text-muted: #767676;
    --bn-accent: #e05252;
    --bn-accent-hover: #d03838;
    --bn-nav-bg: #0a0a0a;
    --bn-nav-text: rgba(240,240,240,0.75);
    --bn-nav-text-hover: #f0f0f0;
    --bn-nav-active: #e05252;
    --bn-ticker-bg: #e05252;
    --bn-hero-overlay: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    --bn-shadow: 0 1px 4px rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.3);
    --bn-shadow-hover: 0 4px 24px rgba(0,0,0,0.6);
}

/* ── EDITORIAL THEME (warm newspaper) ──────────────────────── */
[data-theme="editorial"] {
    --bn-bg: #fdf6e3;
    --bn-surface: #fffef8;
    --bn-surface-alt: #f5eed6;
    --bn-border: #e8dfc2;
    --bn-text-primary: #1a1008;
    --bn-text-body: #2e2416;
    --bn-text-muted: #8a7a5a;
    --bn-accent: #8b5e3c;
    --bn-accent-hover: #6e4a2e;
    --bn-nav-bg: #1a1008;
    --bn-nav-text: rgba(253,246,227,0.75);
    --bn-nav-text-hover: #fdf6e3;
    --bn-nav-active: #c8874a;
    --bn-ticker-bg: #8b5e3c;
    --bn-hero-overlay: linear-gradient(to top, rgba(10,5,0,0.88) 0%, rgba(10,5,0,0.25) 55%, transparent 100%);
    --bn-font-display: 'Playfair Display', Georgia, serif;
}

/* ── BOLD THEME (Geo/ARY high-contrast) ────────────────────── */
[data-theme="bold"] {
    --bn-bg: #f0f0f0;
    --bn-surface: #ffffff;
    --bn-surface-alt: #e4e4e4;
    --bn-border: #d0d0d0;
    --bn-text-primary: #0a0a0a;
    --bn-text-body: #1a1a1a;
    --bn-text-muted: #666666;
    --bn-accent: #e63946;
    --bn-accent-hover: #c1121f;
    --bn-nav-bg: #e63946;
    --bn-nav-text: rgba(255,255,255,0.9);
    --bn-nav-text-hover: #ffffff;
    --bn-nav-active: #ffffff;
    --bn-ticker-bg: #0a0a0a;
    --bn-hero-overlay: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 55%, transparent 100%);
    --bn-shadow: 0 2px 6px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --bn-shadow-hover: 0 6px 20px rgba(230,57,70,0.18), 0 2px 6px rgba(0,0,0,0.1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--bn-font-body);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    /*background-color: var(--bn-bg);*/
    color: var(--bn-text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    margin-bottom: 0 !important; /* override Bootstrap default */
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Expand main container width across the layout */
.container,
.container-lg,
.container-xl,
.container-xxl {
    max-width: 1440px !important; /* Expands viewport width */
    padding-left: 15px;
    padding-right: 15px;
}
/* Ensure body or main content wrapper doesn't constrain width */
main.container,
.main-content {
    max-width: 1440px !important;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.bn-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ============================================================
   HEADER — top bar with logo/date
   ============================================================ */
#main-header {
    background: var(--bn-surface);
    border-bottom: 1px solid var(--bn-border);
}

.bn-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.bn-header-date {
    font-family: var(--bn-font-ui);
    font-size: 12px;
    color: var(--bn-text-muted);
    font-weight: 500;
}

.bn-header-logo img {
    height: 52px;
    width: auto;
}

.bn-header-live {
    font-family: var(--bn-font-ui);
    font-size: 12px;
    font-weight: 600;
    color: var(--bn-accent);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .bn-header-live::before {
        content: '';
        display: inline-block;
        width: 7px;
        height: 7px;
        background: var(--bn-accent);
        border-radius: 50%;
        animation: pulse-dot 1.4s ease infinite;
    }

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.75);
    }
}

/* ============================================================
   BREAKING NEWS TICKER
   ============================================================ */

.breaking-news-bar {
    display: flex;
    align-items: center;
    background: var(--bn-ticker-bg);
    /*color: var(--bn-ticker-text);*/
    overflow: hidden;
    height: 36px;
    font-family: var(--bn-font-ui);
    border: none;
}

    .breaking-news-bar .badge {
        /*background: rgba(0,0,0,0.25) !important;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: .1em;
        text-transform: uppercase;
        padding: 8px 12px;
        border-radius: 0;
        height: 36px;
        display: flex;
        align-items: center;
        flex-shrink: 0;
        white-space: nowrap;
        vertical-align:middle;*/
    }

.ticker-wrapper {
    position: relative;
    overflow: hidden;
    flex: 1;
}

.ticker {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding-left: 45%;
    animation: ticker-scroll 45s linear infinite;
    font-size: 12px;
    font-weight: 400;
}

    .ticker:hover {
        animation-play-state: paused;
    }

/* Individual ticker item */
.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 4px; /* Space between dot and text */
    margin-right: 20px; /* Space between two ticker items */
    white-space: nowrap;
}

/* Red dot */
.ticker-dot {
    width: 5px;
    height: 5px;
    min-width: 5px;
    background: #9b1c1c;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Ticker text */
.ticker-item a,
.ticker-item > span {
    display: inline-flex;
    align-items: center;
   /* color: var(--bn-ticker-text);*/
    text-decoration: none;
    font-weight: 500;
    line-height: 1;
    margin: 0;
    padding: 0;
    opacity: .9;
    transition: opacity var(--bn-transition);
}

    .ticker-item a:hover {
        opacity: 1;
        text-decoration: underline;
    }

@keyframes ticker-scroll {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.ticker-wrapper::before,
.ticker-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 30px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.ticker-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bn-ticker-bg), transparent);
}

.ticker-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bn-ticker-bg), transparent);
}
/* ============================================================
   UTILITY BAR
   ============================================================ */
.utility-bar {
    background: var(--bn-surface-alt) !important;
    border-bottom: 1px solid var(--bn-border);
    font-family: var(--bn-font-ui);
    font-size: 12px;
    color: var(--bn-text-muted);
    padding: 6px 16px !important;
}

/* ============================================================
   STICKY NAVBAR
   ============================================================ */
#sticky-navbar {
    background: var(--bn-nav-bg) !important;
    border-top: 1px solid;
    border-top-color: grey;
    border-bottom: 1px solid;
    border-bottom-color: grey;
    padding: 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    /* sits in normal flow by default — JS adds .fixed-nav after 150px scroll */
    position: relative;
    z-index: 1050;
    width: 100%;
}

    /* Applied by JS after scrolling past the header */
    #sticky-navbar.fixed-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1050;
        box-shadow: 0 3px 14px rgba(0,0,0,0.35);
        animation: bn-slide-down 0.22s ease;
    }

@keyframes bn-slide-down {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Prevent content jump when navbar goes fixed */
body.nav-fixed {
    padding-top: 58px; /* matches navbar height */
}

#sticky-navbar .navbar-toggler {
    border: none;
    color: var(--bn-nav-text-hover);
}

/* Override Bootstrap nav-link color */
#sticky-navbar .nav-link,
#sticky-navbar .navbar-nav .nav-link {
    font-family: var(--bn-font-ui) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--bn-nav-text) !important;
    text-transform: none !important;
    padding: 14px 13px !important;
    border-bottom: 2px solid transparent;
    transition: color var(--bn-transition), border-color var(--bn-transition), background-color var(--bn-transition);
}

    #sticky-navbar .nav-link:hover,
    #sticky-navbar .navbar-nav .nav-link:hover {
        color: var(--bn-nav-text-hover) !important;
        background-color: rgba(255,255,255,0.08);
        border-bottom-color: transparent;
    }

    #sticky-navbar .navbar-nav .nav-link.active,
    #sticky-navbar .active-red {
        color: var(--bn-nav-active) !important;
        background-color: transparent !important;
        border-bottom-color: var(--bn-nav-active) !important;
    }

/* Dropdown */
#sticky-navbar .dropdown-menu {
    background: var(--bn-surface);
    border: 1px solid var(--bn-border);
    border-radius: var(--bn-radius-md);
    box-shadow: var(--bn-shadow-hover);
    padding: 8px 0;
    margin-top: 0;
}

#sticky-navbar .dropdown-item {
    font-family: var(--bn-font-ui);
    font-size: 13px;
    color: var(--bn-text-body);
    padding: 8px 18px;
    transition: background var(--bn-transition);
}

    #sticky-navbar .dropdown-item:hover {
        background: var(--bn-surface-alt);
        color: var(--bn-accent);
    }

/* Nav search */
#sticky-navbar .form-control {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-family: var(--bn-font-ui);
    font-size: 13px;
    border-radius: var(--bn-radius-sm);
}

    #sticky-navbar .form-control::placeholder {
        color: rgba(255,255,255,0.45);
    }

    #sticky-navbar .form-control:focus {
        background: rgba(255,255,255,0.15);
        box-shadow: none;
        border-color: rgba(255,255,255,0.3);
    }

#sticky-navbar .btn-link {
    color: rgba(255,255,255,0.7) !important;
    transition: color var(--bn-transition);
}

    #sticky-navbar .btn-link:hover {
        color: #fff !important;
    }

/* Auth buttons */
#sticky-navbar .btn-outline-primary {
    font-family: var(--bn-font-ui);
    font-size: 12px;
    border-color: rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.8);
}

    #sticky-navbar .btn-outline-primary:hover {
        background: rgba(255,255,255,0.1);
        color: #fff;
    }

#sticky-navbar .btn-outline-danger {
    font-family: var(--bn-font-ui);
    font-size: 12px;
    border-color: var(--bn-accent);
    color: var(--bn-accent);
}

    #sticky-navbar .btn-outline-danger:hover {
        background: var(--bn-accent);
        color: #fff;
    }

#sticky-navbar > span {
    font-family: var(--bn-font-ui);
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

/* ============================================================
   THEME SWITCHER
   ============================================================ */
.bn-theme-switcher {
    display: flex;
    gap: 5px;
    align-items: center;
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 4px;
    margin-left: 10px;
}

.bn-theme-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color var(--bn-transition), transform var(--bn-transition);
    padding: 0;
    outline: none;
}

    .bn-theme-btn:hover {
        transform: scale(1.2);
    }

    .bn-theme-btn.active {
        border-color: #fff;
    }

    .bn-theme-btn[data-t="default"] {
        background: #f5f4f0;
    }

    .bn-theme-btn[data-t="dark"] {
        background: #1a1a1a;
    }

    .bn-theme-btn[data-t="editorial"] {
        background: #fdf6e3;
    }

    .bn-theme-btn[data-t="bold"] {
        background: #e63946;
    }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.bn-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bn-border);
    position: relative;
}

    .bn-section-header::before {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 48px;
        height: 2px;
        background: var(--bn-accent);
    }

.bn-section-title {
    font-family: var(--bn-font-ui);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bn-text-primary);
}

.bn-section-link {
    font-family: var(--bn-font-ui);
    font-size: 11px;
    font-weight: 600;
    color: var(--bn-accent);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color var(--bn-transition);
}

    .bn-section-link:hover {
        color: var(--bn-accent-hover);
    }

/* ============================================================
   ARTICLE TAG BADGE
   ============================================================ */
.bn-tag {
    display: inline-block;
    font-family: var(--bn-font-ui);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--bn-accent);
    color: #fff;
    padding: 2px 8px;
    border-radius: 2px;
}
/* ============================================================
   BREAD CRUMB
   ============================================================ */

.breadcrumb-item + .breadcrumb-item::before {
    content: "»";
    color: #000000;
    padding: 0 6px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.bn-hero {
    padding: 28px 0 0;
}

.bn-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 240px 240px;
    gap: 3px;
    border-radius: var(--bn-radius-lg);
    overflow: hidden;
    background: var(--bn-border);
}

.bn-hero-main {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.bn-hero-side-top {
    grid-column: 3;
    grid-row: 1;
}

.bn-hero-side-bottom {
    grid-column: 3;
    grid-row: 2;
}

.bn-hero-card {
    position: relative;
    overflow: hidden;
    display: block;
    height: 100%;
}

    .bn-hero-card img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
    }

    .bn-hero-card:hover img {
        transform: scale(1.04);
    }

.bn-hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--bn-hero-overlay);
    z-index: 1;
}

.bn-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
}

.bn-hero-main .bn-hero-content {
    padding: 28px 32px;
}

.bn-hero-main .bn-hero-title {
    font-family: var(--bn-font-display);
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin: 8px 0 10px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.bn-hero-side-top .bn-hero-title,
.bn-hero-side-bottom .bn-hero-title {
    font-family: var(--bn-font-display);
    font-size: clamp(13px, 1.1vw, 16px);
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin: 7px 0 5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.bn-hero-meta {
    font-family: var(--bn-font-ui);
    font-size: 11px;
    color: rgba(255,255,255,0.72);
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ============================================================
   SECONDARY GRID (below hero)
   ============================================================ */
.bn-secondary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 16px;
    padding-bottom: 32px;
}

/* ============================================================
   CARD — Standard vertical
   ============================================================ */
.bn-card {
    /* background: var(--bn-surface);
    border-radius: var(--bn-radius-md);
    overflow: hidden;
    box-shadow: var(--bn-shadow);
    transition: box-shadow var(--bn-transition), transform var(--bn-transition);
    display: flex;
    flex-direction: column;
    height: 100%;*/
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    margin-bottom: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .bn-card:hover {
        box-shadow: var(--bn-shadow-hover);
        transform: translateY(-2px);
    }

.bn-card-img {
    aspect-ratio: 16/9;
    overflow: hidden;
    flex-shrink: 0;
}

    .bn-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.bn-card:hover .bn-card-img img {
    transform: scale(1.05);
}
.bn-card:hover .bn-card__image-wrap img {
    transform: scale(1.05);
    transition: transform 0.4s ease;
}
.bn-card-body {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
/*new code*/
.bn-card__image-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
    .bn-card__image-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }
/* Content & Text Alignment */
.bn-card__body {
    padding: 15px;
    text-align: center;
}
    .bn-card__body h3 {
        font-family: "inter", sans-serif !important;
        color: #C4161C !important;
        font-size: 16px;
       /* font-weight: 400;*/
        line-height: 22px;
    }
    .bn-card__body h4 {
        /*font-family: "inter" !important;*/
        color: #C4161C !important;
        font-size: 14px;
        font-weight: 600;
        line-height:18px;
    }
    .bn-card__body p {
        margin: 0;
        color: #333;
        font-size: 0.9rem;
        line-height: 1.4;
    }
.bn-remainingtop-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    
}
.email-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 6px; /* Spacing between icon and text */
}

/* Sizing and coloring the SVG icon */
.email-icon {
    width: 16px; /* Adjust icon size as needed */
    height: 16px; /* Matches height to maintain ratio */
    fill: currentColor; /* Makes the icon inherit the text color automatically */
    flex-shrink: 0; /* Prevents squeezing on small screens */
}

@media (max-width: 600px) {
    .bn-remainingtop-grid {
        grid-template-columns: 1fr;
    }
}

/* Container Spacing */
.bn-popular-section {
    margin-top: 25px;
    width: 100%;
}

/* Header with Lines on Both Sides */
.bn-popular-header {
    width: 100%;
    text-align: center;
    border-top: 1px solid #707070;
    border-bottom: 1px solid #707070;
    padding: 8px 0;
    margin-bottom: 20px;
    background: transparent !important; /* Clears any parent background */
}

    .bn-popular-header::before,
    .bn-popular-header::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid #dcdcdc;
    }

    .bn-popular-header h2 {
        margin: 0 !important;
        padding: 0 !important;
        background: none !important; /* Removes the red background bar */
        color: #000000 !important; /* Forces text back to black */
        font-size: 1.15rem;
        font-weight: 700;
        line-height: 1.2;
        display: block;
    }

/* 2-Column Grid Layout for 6 Cards */
.bn-popular-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* Individual Card Styling */
.bn-popular-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .bn-popular-card:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

/* Image Container & Styling */
.bn-popular-card__img {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #f5f5f5;
}

    .bn-popular-card__img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Card Body & Text Alignment */
.bn-popular-card__body {
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1;
}

    .bn-popular-card__body h3 {
        color: #b81c1c; /* Crimson Red matching the image */
        font-size: 0.95rem;
        font-weight: 700;
        line-height: 1.35;
        margin: 0 0 10px 0;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

.bn-popular-card__time {
    margin-top: auto;
    font-size: 0.78rem;
    color: #6c757d;
}

/* Responsive collapse for small screens */
@media (max-width: 576px) {
    .bn-popular-grid {
        grid-template-columns: 1fr;
    }
}


/*new code*/
.bn-card-tag {
    font-family: var(--bn-font-ui);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bn-accent);
    margin-bottom: 6px;
}

.bn-card-title {
    font-family: var(--bn-font-display);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--bn-text-primary);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--bn-transition);
    flex: 1;
}

.bn-card:hover .bn-card-title {
    color: var(--bn-accent);
}

.bn-card-meta {
    font-family: var(--bn-font-ui);
    font-size: 11px;
    color: var(--bn-text-muted);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--bn-border);
    display: flex;
    gap: 8px;
    align-items: center;
}

.bn-card-meta-dot {
    width: 3px;
    height: 3px;
    background: var(--bn-border);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ============================================================
   CARD — Horizontal (list style)
   ============================================================ */
.bn-card-h {
    display: flex;
    gap: 12px;
    padding: 10px 0 10px 0;
    border-bottom: 1px solid var(--bn-border);
    transition: opacity var(--bn-transition);
    text-decoration:none;
}

    .bn-card-h:last-child {
        border-bottom: none;
    }

    .bn-card-h:hover {
        opacity: 0.8;
    }

.bn-card-h-img {
    width: 90px;
    height: 66px;
    border-radius: var(--bn-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

    .bn-card-h-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.bn-card-h-body {
    flex: 1;
    min-width: 0;
}

.bn-card-h-tag {
    font-family: var(--bn-font-ui);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bn-accent);
    margin-bottom: 4px;
}

.bn-card-h-title {
    font-family: var(--bn-font-display);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--bn-text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bn-card-h-meta {
    font-family: var(--bn-font-ui);
    font-size: 11px;
    color: var(--bn-text-muted);
    margin-top: 4px;
}

/* ============================================================
   CARD — Featured (large, col-span)
   ============================================================ */
.bn-card-featured {
    background: var(--bn-surface);
    border-radius: var(--bn-radius-md);
    overflow: hidden;
    box-shadow: var(--bn-shadow);
    margin-bottom: 20px;
    transition: box-shadow var(--bn-transition);
    display: block;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

    .bn-card-featured:hover {
        box-shadow: var(--bn-shadow-hover);
    }

.bn-card-featured-img {
    aspect-ratio: 16/9;
    overflow: hidden;
}

    .bn-card-featured-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.bn-card-featured:hover .bn-card-featured-img img {
    transform: scale(1.04);
}

.bn-card-featured-body {
    padding: 18px 20px 20px;
}

.bn-card-featured-title {
    font-family: var(--bn-font-display);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--bn-text-primary);
    margin: 8px 0 10px;
    transition: color var(--bn-transition);
}

.bn-card-featured:hover .bn-card-featured-title {
    color: var(--bn-accent);
}

.bn-card-featured-excerpt {
    font-size: 13px;
    color: var(--bn-text-muted);
    line-height: 1.65;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   MAIN 3-COLUMN LAYOUT
   ============================================================ */
.bn-main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 290px;
    gap: 28px;
    padding: 32px 0 40px;
    border-top: 1px solid var(--bn-border);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.bn-widget {
    background: var(--bn-surface);
    border-radius: var(--bn-radius-md);
    padding: 18px;
    margin-bottom: 20px;
    box-shadow: var(--bn-shadow);
}

.bn-widget-title {
    font-family: var(--bn-font-ui);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bn-text-primary);
    border-bottom: 2px solid var(--bn-border);
    padding-bottom: 10px;
    margin-bottom: 14px;
    position: relative;
}

    .bn-widget-title::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 30px;
        height: 2px;
        background: var(--bn-accent);
    }

/* Trending */
.bn-trending-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 11px 0;
    border-bottom: 1px solid var(--bn-border);
    transition: opacity var(--bn-transition);
    text-decoration: none;
    color: inherit;
}

    .bn-trending-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .bn-trending-item:hover {
        opacity: 0.75;
    }

.bn-trending-num {
    font-family: var(--bn-font-display);
    font-size: 20px;
    font-weight: 800;
    color: var(--bn-border);
    line-height: 1;
    flex-shrink: 0;
    min-width: 24px;
}

.bn-trending-title {
    font-family: var(--bn-font-display);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--bn-text-primary);
}

.bn-trending-meta {
    font-family: var(--bn-font-ui);
    font-size: 11px;
    color: var(--bn-text-muted);
    margin-top: 2px;
}

/* Trending tabs */
.trending-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--bn-border);
}

    .trending-tabs a {
        font-family: var(--bn-font-ui);
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--bn-text-muted);
        padding: 6px 12px;
        text-decoration: none;
        border-bottom: 2px solid transparent;
        margin-bottom: -1px;
        transition: color var(--bn-transition), border-color var(--bn-transition);
    }

        .trending-tabs a:hover {
            color: var(--bn-text-primary);
        }

        .trending-tabs a.active {
            color: var(--bn-accent);
            border-bottom-color: var(--bn-accent);
        }

/* Tags cloud */
.bn-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bn-tag-pill {
    font-family: var(--bn-font-ui);
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--bn-surface-alt);
    color: var(--bn-text-body);
    border: 1px solid var(--bn-border);
    transition: all var(--bn-transition);
    text-decoration: none;
}

    .bn-tag-pill:hover {
        background: var(--bn-accent);
        color: #fff;
        border-color: var(--bn-accent);
    }

/* Newsletter */
.bn-newsletter {
    background: var(--bn-accent);
    border-radius: var(--bn-radius-md);
    padding: 20px;
    margin-bottom: 20px;
    color: #fff;
}

    .bn-newsletter h5 {
        font-family: var(--bn-font-display);
        font-size: 17px;
        font-weight: 700;
        margin-bottom: 5px;
    }

    .bn-newsletter p {
        font-family: var(--bn-font-ui);
        font-size: 12px;
        opacity: 0.88;
        margin-bottom: 12px;
        line-height: 1.5;
    }

.bn-newsletter-form {
    display: flex;
}

.bn-newsletter-input {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: var(--bn-radius-sm) 0 0 var(--bn-radius-sm);
    font-family: var(--bn-font-ui);
    font-size: 13px;
    outline: none;
    background: #fff;
    color: #111;
}

.bn-newsletter-btn {
    padding: 8px 14px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 0 var(--bn-radius-sm) var(--bn-radius-sm) 0;
    font-family: var(--bn-font-ui);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--bn-transition);
    white-space: nowrap;
}

    .bn-newsletter-btn:hover {
        background: #333;
    }

/* ============================================================
   LATEST NEWS SIDEBAR (left col, ViewComponent)
   ============================================================ */
.bn-latest-header {
    font-family: var(--bn-font-ui);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bn-text-primary);
    background: var(--bn-surface);
    padding: 10px 0 10px;
    border-bottom: 2px solid var(--bn-border);
    margin-bottom: 4px;
    position: relative;
}

    .bn-latest-header::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 40px;
        height: 2px;
        background: var(--bn-accent);
    }

    


/* ============================================================
   CATEGORY STRIP
   ============================================================ */
.bn-cat-strip {
    background: var(--bn-surface-alt);
    border-top: 1px solid var(--bn-border);
    border-bottom: 1px solid var(--bn-border);
    padding: 32px 0;
    margin-top: 8px;
}

.bn-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.bn-footer {
    background: var(--bn-nav-bg);
    color: rgba(255,255,255,0.55);
    padding: 44px 0 20px;
    margin-top: 40px;
    font-family: var(--bn-font-ui);
}

.bn-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 32px;
}

.bn-footer-logo {
    font-family: var(--bn-font-display);
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    display: block;
    margin-bottom: 10px;
}

    .bn-footer-logo span {
        color: var(--bn-accent);
    }

.bn-footer-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    line-height: 1.65;
}

.bn-footer-col h4 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 14px;
}

.bn-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .bn-footer-col ul li a {
        font-size: 13px;
        color: rgba(255,255,255,0.45);
        transition: color var(--bn-transition);
        text-decoration: none;
    }

        .bn-footer-col ul li a:hover {
            color: #fff;
        }

.bn-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(255,255,255,0.3);
}


/* ============================================================
   Scroller for Latest News vertical component
   ============================================================ */

.bn-scroll-container {
    max-height: 450px; /* Adjust this height to match your layout needs */
    overflow-y: auto; /* Adds a vertical scrollbar only when items overflow */
    overflow-x: hidden; /* Prevents any horizontal shift or breaking */
    padding-right: 5px; /* Gives breathing room between the content and scrollbar */
}

    /* OPTIONAL: Style the scrollbar to make it look modern and sleek */
    .bn-scroll-container::-webkit-scrollbar {
        width: 6px; /* Makes the scrollbar narrow and modern */
    }

    .bn-scroll-container::-webkit-scrollbar-track {
        background: #f1f1f1; /* Track background color */
        border-radius: 4px;
    }

    .bn-scroll-container::-webkit-scrollbar-thumb {
        background: #ccc; /* Scrollbar handle color */
        border-radius: 4px;
    }

        .bn-scroll-container::-webkit-scrollbar-thumb:hover {
            background: #999; /* Handle color on hover */
        }
/* ============================================================
   Grammar and Typography for Article Content
   ============================================================ */
.grammar-review-panel {
    position: sticky;
    top: 20px;
    max-height: 650px;
    overflow-y: auto;
    padding: 20px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
}

.grammar-suggestion {
    padding: 15px;
    margin-bottom: 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.grammar-suggestion-original {
    text-decoration: line-through;
}

.grammar-suggestion-replacement {
    font-weight: 600;
}

.ql-editor .grammar-highlight-error {
    background-color: #fff3cd;
    border-bottom: 2px solid #dc3545;
    border-radius: 2px;
}

/* ============================================================
   Quill Editor Styles (for article content)
   ============================================================ */
#editor.ql-container {
    height: 500px;
    min-height: 0;
    overflow: hidden;
}

#editor .ql-editor {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    font-size: 18px;
    line-height: 1.8;
}

    #editor .ql-editor .ql-align-center img {
        display: block;
        margin: 20px auto;
        max-width: 100%;
    }

    #editor .ql-editor .ql-align-right img {
        float: right;
        max-width: 350px;
        margin: 0 0 20px 20px;
    }

    #editor .ql-editor .ql-align-left img {
        float: left;
        max-width: 350px;
        margin: 0 20px 20px 0;
    }

.selected-image {
    outline: 3px solid #0d6efd;
}
/* Override Quill's default image resizing handles */
.ql-editor img[data-size="small"] {
    max-width: 250px;
}

.ql-editor img[data-size="medium"] {
    max-width: 450px;
}

.ql-editor img[data-size="large"] {
    max-width: 700px;
}

.ql-editor img[data-size="full"] {
    width: 100%;
    max-width: 100%;
}
/*for public display*/
.bn-article-body .ql-align-center img {
    display: block;
    margin: 20px auto;
    max-width: 100%;
}

.bn-article-body .ql-align-right img {
    float: right;
    max-width: 350px;
    margin: 0 0 20px 20px;
}

.bn-article-body .ql-align-left img {
    float: left;
    max-width: 350px;
    margin: 0 20px 20px 0;
}
.bn-article-body img[data-size="small"] {
    max-width: 250px;
}

.bn-article-body img[data-size="medium"] {
    max-width: 450px;
}

.bn-article-body img[data-size="large"] {
    max-width: 700px;
}

.bn-article-body img[data-size="full"] {
    width: 100%;
    max-width: 100%;
}
.img-small img {
    max-width: 250px;
}

.img-medium img {
    max-width: 450px;
}

.img-large img {
    max-width: 700px;
}

.img-full img {
    width: 100%;
}
/*Social Media platform embedding*/
.quill-social-embed, .bn-article-body .quill-social-embed {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 25px auto;
    width: 100%;
    max-width: 550px; /* Standard constraint optimized for reels/posts/tweets */
    overflow: hidden;
    background: #fdfdfd;
    border-radius: 8px;
}

    /* Ensure embedded iframes scale fluidly */
    .quill-social-embed iframe {
        max-width: 100% !important;
        margin: 0 auto;
    }

/* Visual cue for the user in the editor */
.ql-editor .quill-social-embed {
    border: 2px dashed #9ca3af;
    padding: 10px;
    position: relative;
}

    .ql-editor .quill-social-embed::before {
        content: "Social Media Widget";
        position: absolute;
        top: 2px;
        left: 5px;
        font-size: 11px;
        color: #9ca3af;
        background: #fff;
        padding: 0 4px;
    }

/* Optimized CSS for a beautiful, aligned editor placeholder box */
.embed-placeholder-box {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    width: 100%;
    max-width: 550px;
    margin: 15px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Perfectly spaces the icon, title, and subtitle */
    pointer-events: none; /* Prevents cursor interference */
}

    .embed-placeholder-box .embed-icon {
        font-size: 28px;
        line-height: 1;
        margin: 0;
    }

    .embed-placeholder-box .embed-title {
        font-weight: 600;
        font-size: 16px;
        color: #334155;
        margin: 0 !important; /* Removes default paragraph spacing */
    }

    .embed-placeholder-box .embed-subtitle {
        color: #64748b;
        font-size: 13px;
        margin: 0 !important;
    }

/* ============================================================
   PAGE LOAD ANIMATIONS
   ============================================================ */
@keyframes bn-fade-up {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bn-hero-grid {
    animation: bn-fade-up 0.45s ease both;
}

.bn-secondary-grid .bn-card:nth-child(1) {
    animation: bn-fade-up 0.4s 0.05s ease both;
}

.bn-secondary-grid .bn-card:nth-child(2) {
    animation: bn-fade-up 0.4s 0.10s ease both;
}

.bn-secondary-grid .bn-card:nth-child(3) {
    animation: bn-fade-up 0.4s 0.15s ease both;
}

.bn-secondary-grid .bn-card:nth-child(4) {
    animation: bn-fade-up 0.4s 0.20s ease both;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .bn-main-layout {
        grid-template-columns: 1fr 1fr;
    }

    .bn-sidebar {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .bn-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .bn-cat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .bn-hero-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 280px 180px;
    }

    .bn-hero-main {
        grid-column: 1 / 3;
        grid-row: 1;
    }

    .bn-hero-side-top {
        grid-column: 1;
        grid-row: 2;
    }

    .bn-hero-side-bottom {
        grid-column: 2;
        grid-row: 2;
    }

    .bn-secondary-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .bn-hero-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 280px 180px 180px;
    }

    .bn-hero-main {
        grid-column: 1;
        grid-row: 1;
    }

    .bn-hero-side-top {
        grid-column: 1;
        grid-row: 2;
    }

    .bn-hero-side-bottom {
        grid-column: 1;
        grid-row: 3;
    }

    .bn-main-layout {
        grid-template-columns: 1fr;
    }

    .bn-sidebar {
        grid-template-columns: 1fr;
    }

    .bn-cat-grid {
        grid-template-columns: 1fr;
    }

    .bn-footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bn-footer-bottom {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .bn-secondary-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .bn-secondary-grid {
        grid-template-columns: 1fr;
    }
}
/* --- DESKTOP VIEW (Screens wider than 768px) --- */
@media (min-width: 769px) {
    .bn-popular-scroll-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 1rem;
    }
}

/* --- MOBILE & TABLET VIEW (Screens 768px and smaller) --- */
@media (max-width: 768px) {
    .bn-popular-scroll-grid {
        display: flex;
        overflow-x: auto; /* Enables native horizontal swiping */
        overflow-y: hidden; /* Completely blocks vertical layout shifts */
        scroll-snap-type: x mandatory; /* Makes sliding lock smoothly onto items */
        scroll-behavior: smooth;
        gap: 1rem;
        padding-bottom: 15px; /* Keeps scrollbar away from the card boundaries */
        padding-left: 5px; /* Prevents card shadows from clipping on edges */
        /* Hides default bulky scrollbars on mobile browsers for a clean look */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }

        /* Hides default scrollbars for Chrome, Safari, and Opera */
        .bn-popular-scroll-grid::-webkit-scrollbar {
            display: none;
        }

        /* Sets a fixed readable width for cards while swiping on mobile */
        .bn-popular-scroll-grid .bn-card {
            flex: 0 0 75%; /* Shows one full card + 25% of next card as a swipe hint */
            max-width: 280px; /* Keeps it from looking giant on small tablets */
            scroll-snap-align: start; /* Aligns card to the left screen lip when snapped */
        }
}
.bn-sidebar-scroll {
    /* Modern standard scrollbar options for Firefox */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

    /* Webkit browsers (Chrome, Safari, Edge, Opera) custom styles */
    .bn-sidebar-scroll::-webkit-scrollbar {
        width: 6px; /* Makes the scrollbar track thin and elegant */
    }

    .bn-sidebar-scroll::-webkit-scrollbar-track {
        background: transparent; /* Seamless blend with the dark container background */
    }

    .bn-sidebar-scroll::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.25); /* The grey pill thumb */
        border-radius: 10px; /* Fully rounded edges */
    }

        .bn-sidebar-scroll::-webkit-scrollbar-thumb:hover {
            background-color: rgba(255, 255, 255, 0.4); /* Highlights slightly on interaction */
        }


/* ============================================================
   RESPONSIVE OPTIMIZATION FOR MULTI-CARD CAROUSEL (MOBILE)
   ============================================================ */
@media (max-width: 768px) {
    /* 1. Prevent vertical stacking: Force internal rows to stay flat */
    #multiCardCarousel .row {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        padding-bottom: 12px;
        /* Hide native scrollbars while preserving functionality */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }

        #multiCardCarousel .row::-webkit-scrollbar {
            display: none; /* Safari / Chrome */
        }

        /* 2. Style items to snap cleanly as the user swipes horizontally */
        #multiCardCarousel .row > [class*="col-"] {
            flex: 0 0 auto;
            scroll-snap-align: start;
        }

    /* 3. UPDATED: Keep arrows on mobile but make them smaller and elegant */
    #multiCardCarousel .carousel-control-prev,
    #multiCardCarousel .carousel-control-next {
        display: flex !important; /* Forces them to show up */
        width: 40px;
        height: 40px;
        top: 50%;
        transform: translateY(-50%);
    }

    /* Shrink the inner icon wrapper so it doesn't overlap text */
    #multiCardCarousel .carousel-control-prev-icon,
    #multiCardCarousel .carousel-control-next-icon {
        padding: 1rem !important; /* Smaller background circle */
        background-size: 50%; /* Smaller internal arrow chevron */
    }

    /* Shift them slightly outward so they sit neatly on the screen edges */
    #multiCardCarousel .carousel-control-prev {
        left: -5px;
    }

    #multiCardCarousel .carousel-control-next {
        right: -5px;
    }

    /* 4. Ensure equal structural height for swipeable card elements */
    #multiCardCarousel .bn-card {
        height: 100% !important;
    }
}



/* ============================================================
   LEGACY BOOTSTRAP OVERRIDES (keep Bootstrap working alongside)
   ============================================================ */
.bg-dark-red {
    background-color: #950606 !important;
}

/* Override Bootstrap card to not conflict */
.card {
    border-color: var(--bn-border);
}

    .card:hover {
        transform: translateY(-2px);
        transition: transform var(--bn-transition), box-shadow var(--bn-transition);
    }
/*Flipping Utility bar carousal*/
.weather-flipper-container {
    height: 30px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
}

.weather-flipper {
    display: flex;
    flex-direction: column;
    /* 16 seconds total = 4 seconds per slide frame */
    animation: flipWeatherNative 16s cubic-bezier(0.645, 0.045, 0.355, 1) infinite;
}

.weather-item {
    height: 30px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-size: 0.9rem;
    color: #333;
}

@keyframes flipWeatherNative {
    0%, 20% {
        transform: translateY(0);
    }

    25%, 45% {
        transform: translateY(-30px);
    }

    50%, 70% {
        transform: translateY(-60px);
    }

    75%, 95% {
        transform: translateY(-90px);
    }

    100% {
        transform: translateY(-120px);
    }
    /* Slides smoothly to clone, then snaps back to 0 */
}

.forex-flipper-container {
    height: 30px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
}

.forex-flipper {
    display: flex;
    flex-direction: column;
    /* 32 seconds total = 4 seconds per slide frame for 8 elements */
    animation: flipForexNative 32s cubic-bezier(0.645, 0.045, 0.355, 1) infinite;
}

.forex-item {
    height: 30px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-size: 0.9rem;
    color: #333;
}

/* 8-SLIDE MATHEMATICAL PERCENTAGE BREAKDOWN */
@keyframes flipForexNative {
    0%, 10% {
        transform: translateY(0);
    }

    12.5%, 22.5% {
        transform: translateY(-30px);
    }

    25%, 35% {
        transform: translateY(-60px);
    }

    37.5%, 47.5% {
        transform: translateY(-90px);
    }

    50%, 60% {
        transform: translateY(-120px);
    }

    62.5%, 72.5% {
        transform: translateY(-150px);
    }

    75%, 85% {
        transform: translateY(-180px);
    }

    87.5%, 97.5% {
        transform: translateY(-210px);
    }

    100% {
        transform: translateY(-240px);
    }
    /* Slides smoothly to clone, then snaps back to 0 */
}

/*Flipping Utility bar carousal*/

/* RedesignFrontend step 1: BOL sample header, ticker, navigation, and homepage hero */

.bn-home-shell {
    max-width: 1920px !important; /* Expands section width */
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

.bn-main {
    background: #fff;
}

.bn-header {
    background: #fff;
    border-bottom: 1px solid #cfcfcf;
}

.bn-brand {
    padding: 28px 0 22px;
}

.bn-brand .row {
    min-height: 58px;
}

.bn-brand-date {
    color: #000;
    font-size: 14px;
    font-weight: 700;
}

.bn-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bn-brand-logo img {
    width: min(360px, 100%);
    height: auto;
    display: block;
}

.bn-watch-live {
    color: #d71920;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.bn-watch-live:hover {
    color: #a90000;
}

.bn-header__breaking {
    padding-bottom: 16px;
}

.breaking-news-bar {
    height: 38px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #cfcfcf;
    border-radius: 3px;
    background: #fafafa;
    box-shadow: none;
}

    .breaking-news-bar .badge {
        display: inline-flex;
        align-items: center;
        border-radius: 0;
        background: #C4161C !important;
        color: #fff;
        padding: 0 15px;
        margin: 0 !important;
        font-size: 14px;
        font-weight: 600;
        text-transform: none;
    }

.breaking-news-bar .badge::after {
    content: ":";
}

.breaking-news-bar .ticker-wrapper {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.breaking-news-bar .ticker {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
}

.breaking-news-bar .ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #333;
    font-size: 13px;
    font-weight: 600;
}

.breaking-news-bar .ticker-item a {
    color: #333;
    text-decoration: none;
}

.breaking-news-bar .ticker-dot {
    width: 5px;
    height: 5px;
    flex: 0 0 5px;
    border-radius: 999px;
    background: #d60000;
}

#sticky-navbar.bn-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff !important;
    border-top: 1px solid #cfcfcf;
    border-bottom: 1px solid #cfcfcf;
    box-shadow: none !important;
    transition: none;
}

.bn-nav-wrapper {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.bn-nav-toggle {
    width: 25px;
    height: 25px;
    padding: 0;
    border: 0;
    background: transparent;
    display: inline-grid;
    gap: 4px;
    align-content: center;
    flex: 0 0 auto;
}

.bn-nav-toggle span {
    display: block;
    height: 3px;
    border-radius: 1px;
    background: #111;
}

.bn-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    /*overflow-y: visible; for drop down menus*/
    scrollbar-width: none;
}
.bn-nav-toggle {
    display: none;
}
.bn-menu-caret {
    display: none;
}
.bn-nav-wrapper {
    position: relative;
}
@media (max-width: 991.98px) {
    .bn-nav-toggle {
        display: inline-grid;
    }

    .bn-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        border-top: 1px solid #cfcfcf;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        z-index: 1040;
    }

    #sticky-navbar.bn-nav-open .bn-menu {
        display: flex;
    }

    .bn-menu-item,
    .bn-menu-link {
        width: 100%;
    }

    .bn-menu .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-top: 1px solid #eee;
        margin-left: 12px;
    }

    .bn-menu-item.dropdown {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

        .bn-menu-item.dropdown .bn-menu-link {
            flex: 1;
        }

    .bn-menu-caret {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 0;
        background: transparent;
        color: inherit;
        flex: 0 0 auto;
        transition: transform 0.2s ease;
    }

        .bn-menu-caret.is-open {
            transform: rotate(180deg);
        }

    /* Sub-menu collapsed by default on mobile, expanded via JS-toggled class */
    .bn-menu-item.dropdown .dropdown-menu {
        display: none;
        width: 100%;
    }

    .bn-menu-item.dropdown.is-open .dropdown-menu {
        display: block;
    }

    /* Disable the old hover-to-open behavior on mobile — tap-only now */
    .bn-menu-item.dropdown:hover .dropdown-menu {
        display: none;
    }

    .bn-menu-item.dropdown.is-open:hover .dropdown-menu {
        display: block;
    }
}



    


@media (min-width: 992px) {
    .bn-menu {
        overflow-x: visible; /* desktop nav fits without scrolling — let dropdowns escape */
    }
}
.bn-menu::-webkit-scrollbar {
    display: none;
}

.bn-menu-item {
    flex: 0 0 auto;
    position: relative;
}

.bn-menu-link {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    color: #d71920;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
}

.bn-menu-link:hover,
.bn-menu-link.active {
    color: #fff;
    background: #d71920;
}

.bn-menu-item.dropdown:hover .dropdown-menu {
    display: block;
}

.bn-menu .dropdown-menu {
    display: none; /* hidden by default — no reliance on Bootstrap */
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    z-index: 1050;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: var(--bn-surface, #fff);
    border: 1px solid #d9d9d9;
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.bn-menu-item.dropdown:hover .dropdown-menu {
    display: block;
}
.bn-menu .dropdown-item {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    color: #2d2d2d;
    white-space: nowrap;
    text-decoration: none;
}
    .bn-menu .dropdown-item:hover {
        background: #f0ede6;
        color: #d71920;
    }
.bn-search-btn {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #111;
    position: relative;
}

.bn-search-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    display: block;
}

/*.bn-home-shell {
    padding-top: 34px;
}*/

.bn-ad-placeholder {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 26px;
    border: 1px dashed #d3d3d3;
    background: #fafafa;
    color: #9a9a9a;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.bn-home-hero {
    display: grid;
    grid-template-columns: minmax(0, 2.45fr) minmax(280px, 0.95fr);
    gap: 26px;
    align-items: start;
}

.bn-feature-story {
    display: block;
    overflow: hidden;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    background: #fff;
    color: #111;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.bn-feature-story img {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: cover;
}

.bn-feature-story__body {
    padding: 12px 14px 18px;
}

.bn-feature-story h1 {
    margin: 0 0 8px;
    color: #d71920;
    font-size: clamp(18px, 2.2vw, 23px);
    font-weight: 800;
    line-height: 1.25;
}

.bn-feature-story p {
    margin: 0;
    color: #222;
    font-size: 14px;
    line-height: 1.55;
}

.bn-latest-panel h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 22px 0 12px;
    color: #111;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
}

.bn-latest-panel h2::before,
.bn-latest-panel h2::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #777;
}

.bn-latest-list {
    display: grid;
    gap: 12px;


}

.bn-latest-item {
    display: grid;
    grid-template-columns: 125px minmax(0, 1fr);
    gap: 12px;
    padding: 8px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background: #fff;
    color: #111;
    text-decoration: none;
}

.bn-latest-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    border-radius: 4px;
    object-fit: cover;
}

/*.bn-latest-item strong {
    display: -webkit-box;
    overflow: hidden;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}*/

    .bn-latest-item span strong {
        display: block !important;
        white-space: normal !important; /* Allows text to wrap to multiple lines */
        overflow: visible !important; /* Shows full text without cutting off */
        text-overflow: clip !important; /* Removes the trailing '...' */
        -webkit-line-clamp: unset !important; /* Removes line clamping limits */
        max-height: none !important; /* Ensures height expands to fit text */
        font-size: 12px;
        font-weight:500;
        line-height: 1.35;
        margin-bottom: 4px;
    }
    .bn-latest-item span small {
        display: block;
        color: #6c757d;
        font-size: 0.65rem;
        margin-top: 4px;
    }
.bn-home-carousel {
    margin-top: 44px;
    padding-top: 34px;
    border-top: 1px solid #cfcfcf;
}

@media (max-width: 991.98px) {
    .bn-brand {
        padding: 18px 0;
    }

    .bn-home-hero {
        grid-template-columns: 1fr;
    }

    .bn-latest-panel h2 {
        margin-top: 6px;
    }
}

@media (max-width: 767.98px) {
    .bn-container,
    .bn-home-shell {
        width: min(100% - 20px, 1120px);
    }

    .bn-brand-logo img {
        width: min(260px, 100%);
    }

    .bn-watch-live {
        font-size: 12px;
    }

    .bn-header__breaking {
        padding-bottom: 10px;
    }

    .breaking-news-bar {
        height: 36px;
    }

    .breaking-news-bar .badge {
        padding: 0 10px;
        font-size: 12px;
    }

    .bn-nav-wrapper {
        gap: 12px;
    }

    .bn-menu-link {
        padding: 6px 9px;
        font-size: 12px;
    }

    .bn-home-shell {
        padding-top: 20px;
    }

    .bn-ad-placeholder {
        min-height: 72px;
        margin-bottom: 18px;
    }

    .bn-latest-item {
        grid-template-columns: 104px minmax(0, 1fr);
        height: auto !important; /* Grows vertically when titles are long */
        align-items: flex-start;
    }
}

/* RedesignFrontend step 2: exact home sample layout with Latest / Top Stories / Featured */
body {
    font-family: "Poppins", Arial, sans-serif;
}

.bn-container,
.bn-home-shell {
    width: min(100% - 32px, 1170px);
}

.bn-brand {
    padding: 30px 0 24px;
}

.bn-brand-logo img {
    width: min(390px, 100%);
}

.bn-brand-date,
.bn-watch-live {
    
    font-size: 14px;
    font-weight: 600;
}

.bn-header__breaking {
    padding-bottom: 18px;
}

.breaking-news-bar {
    height: 36px;
    border-radius: 3px;
    font-family: "Poppins", Arial, sans-serif;
}

.breaking-news-bar .badge {
    padding: 0 13px;
    font-size: 14px;
    font-weight: 800;
}

.breaking-news-bar .ticker-item,
.breaking-news-bar .ticker-item a {
    color: #4b4b4b;
    font-size: 13px;
    font-weight: 700;
}

#sticky-navbar.bn-nav {
    position: sticky;
    border-color: #bfbfbf;
}

.bn-nav-wrapper {
    min-height: 45px;
}

.bn-nav-toggle {
    width: 22px;
}

.bn-nav-toggle span {
    height: 4px;
    border-radius: 0;
}

.bn-menu-link {
    min-height: 33px;
    padding: 9px 12px;
    color: #d71920;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
}

.bn-menu-link.active,
.bn-menu-link:hover {
    background: #c9151b;
}

.bn-search-btn {
    width: 31px;
    height: 31px;
}

.bn-search-icon {
    width: 18px;
    height: 18px;
}

/*.bn-home-shell {
    padding-top: 44px;
}*/

.bn-home-hero--three {
    display: grid;
    grid-template-columns: 280px 1fr 280px; /* Left sidebar | Center panel | Right sidebar */
    gap: 0; /* Removed default gap to place exact borders */
    align-items: stretch;
}
    /* 3. Left Sidebar ("Latest") - Border on the Right */
    .bn-home-hero--three > .bn-story-rail:first-child {
        border-right: 1px solid #e0e0e0;
        padding-right: 20px;
    }
    /* 5. Right Sidebar ("Featured") - Border on the Left */
    .bn-home-hero--three > .bn-story-rail:last-child {
        border-left: 1px solid #e0e0e0;
        padding-left: 20px;
    }
.bn-story-rail {
    min-width: 0;
    padding-bottom: 10px;
}

.bn-story-rail h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0 0 10px;
    padding: 8px 0 9px;
    border-top: 1px solid #777;
    border-bottom: 1px solid #777;
    color: #111;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}
/* 4. Center Panel ("Top Stories" + "SmartTrending") */
.bn-top-stories-panel {
    padding-left: 20px;
    padding-right: 20px;
}

    .bn-top-stories-panel h2 {
        background-color: #b81c1c;
        color: #fff;
        margin: 0 0 15px 0;
        padding: 8px 12px;
        font-size: 1.1rem;
        font-weight: bold;
    }
/*.bn-top-stories-panel > h2 {
    margin: 0 0 13px;
    padding: 9px 12px;
    background: #c9151b;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}*/

.bn-feature-story {
    border-color: #d4d4d4;
    border-radius: 6px;
    box-shadow: none;
}

.bn-feature-story img {
    aspect-ratio: 16 / 9;
}

.bn-feature-story__body {
    padding: 15px 20px 18px;
    text-align: center;
}

.bn-feature-story h1 {
    margin-bottom: 8px;
    color: #df121b;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
}

.bn-feature-story p {
    color: #111;
    font-size: 14px;
    line-height: 1.65;
}

.bn-latest-list {
    gap: 14px;
    padding-bottom:20px;
}

.bn-latest-item {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    min-height: 108px;
    padding: 7px;
    border-color: #d8d8d8;
    border-radius: 6px;
    box-shadow: none;
}

/*.bn-latest-item img {
    aspect-ratio: 16 / 9;
}
*/
/*.bn-latest-item strong {
    color: #333;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.48;
    -webkit-line-clamp: 4;
}*/

.bn-latest-item small {
    margin-top: 2px;
    color: #111;
    font-size: 11px;
    font-weight: 400;
}

.bn-home-carousel {
    margin-top: 18px;
    padding-top: 18px;
}

@media (max-width: 1199.98px) {
    .bn-home-hero--three {
        grid-template-columns: 245px minmax(0, 1fr) 245px;
        gap: 18px;
    }

    .bn-latest-item {
        grid-template-columns: 96px minmax(0, 1fr);
    }
}

@media (max-width: 991.98px) {
    .bn-home-hero--three {
        grid-template-columns: 1fr;
    }
        .bn-home-hero--three > .bn-story-rail:first-child,
        .bn-home-hero--three > .bn-story-rail:last-child {
            border-right: none;
            border-left: none;
            padding-left: 0;
            padding-right: 0;
        }

    .bn-top-stories-panel {
        order: -1;
    }

    .bn-story-rail h2 {
        margin-top: 10px;
    }

    .bn-latest-item {
        grid-template-columns: 132px minmax(0, 1fr);
    }
}

@media (max-width: 767.98px) {
    .bn-container,
    .bn-home-shell {
        width: min(100% - 20px, 1170px);
    }

    .bn-brand-logo img {
        width: min(275px, 100%);
    }

    .bn-home-shell {
        padding-top: 24px;
    }

    .bn-latest-item {
        grid-template-columns: 108px minmax(0, 1fr);
    }
}

/* RedesignFrontend step 3: ticker edge cleanup and sample-style menu icon */
.breaking-news-bar .ticker-wrapper::before,
.breaking-news-bar .ticker-wrapper::after {
    content: none;
    display: none;
}

#sticky-navbar.bn-nav {
    border-top: 1px solid #bfbfbf;
    border-bottom: 1px solid #bfbfbf;
}

.bn-nav-wrapper {
    gap: 15px;
}

.bn-nav-toggle {
    width: 21px;
    height: 20px;
    gap: 3px;
}

.bn-nav-toggle span {
    height: 3px;
}

/* RedesignFrontend step 4: sample category grid, footer, ad slots, and valid sticky nav */
.bn-ad-code-block {
    margin: 20px auto;
    clear: both;
    text-align: center;
}

.bn-ad-code-block > div {
    min-height: 0;
}

.bn-ad-code-block--top > div {
    width: min(100%, 920px);
    margin: 0 auto;
}

.bn-ad-code-block--bottom > div {
    width: min(100%, 920px);
    margin: 0 auto;
}

#sticky-navbar.fixed-nav,
#sticky-navbar.bn-nav.fixed-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1050;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
}

body.nav-fixed {
    padding-top: 45px;
}

.bn-category-section {
    width: min(100% - 32px, 1300px);
    margin: 32px auto 44px;
    padding-top: 44px;
    border-top: 3px solid #d71920;
}

.bn-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 16px;
}

.bn-category-column {
    min-width: 0;
}

.bn-category-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 12px 0 13px;
    border-top: 1px solid #555;
    border-bottom: 1px solid #555;
}

.bn-category-heading h2 {
    margin: 0;
    color: #d71920;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.bn-category-heading a {
    color: #111;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
}

.bn-category-list {
    display: grid;
    gap: 14px;
}
.bn-category-list a:hover {
    transform: scale(1.05);
    transition: transform 0.4s ease;
}
.bn-category-item {
    display: grid;
    grid-template-columns: 125px minmax(0, 1fr);
    gap: 14px;
    min-height: 120px;
    padding: 7px;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    background: #fff;
    color: #111;
    text-decoration: none;
}

.bn-category-item img {
    width: 100%;
    aspect-ratio: 1.18 / 1;
    display: block;
    border-radius: 5px;
    object-fit: cover;
}

.bn-category-item strong {
    display: -webkit-box;
    overflow: hidden;
    color: #333;
    font-family: 'inter';
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.bn-category-item small {
    display: block;
    margin-top: 4px;
    color: #111;
    font-family: 'inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
}

.bn-footer {
    margin-top: 18px;
    border-top: 3px solid #d71920;
    background: #fff;
    color: #111;
    font-family: "Poppins", Arial, sans-serif;
}

.bn-footer__top {
    width: min(100% - 32px, 1140px);
    margin: 0 auto;
    padding: 0 0 20px;
}

.bn-footer__logo {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.bn-footer__logo img {
    width: min(420px, 70vw);
    height: auto;
    display: block;
}

.bn-footer__links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 80px;
}

.bn-footer__links ul {
    display: grid;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bn-footer__links a {
    color: #111;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
    text-transform: uppercase;
}

.bn-footer__links a:hover {
    color: #d71920;
}

.bn-footer__social {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px 16px;
    border-top: 2px solid #d71920;
}

    .bn-footer__social a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background-color: #C4161C; /* Matching red background */
        color: #FFFFFF; /* White icon color */
        border-radius: 4px; /* Smooth rounded corners */
        font-size: 18px; /* Icon size */
        text-decoration: none;
        transition: background-color 0.2s ease, transform 0.2s ease
    }

.bn-footer__social a:hover {
    background: #111;
}

.bn-footer__copyright {
    padding: 12px 16px;
    background: #d71920;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
}
.bn-carousel-img {
    max-width: 280px;
    height: 280px;
    object-fit: cover;
    margin: 0 auto;
    border-radius: 8px;
}
@media (max-width: 1199.98px) {
    .bn-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .bn-category-section {
        width: min(100% - 20px, 1300px);
        margin-top: 24px;
        padding-top: 24px;
    }

    .bn-category-grid {
        grid-template-columns: 1fr;
    }

    .bn-category-item {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .bn-footer__top {
        width: min(100% - 32px, 1140px);
        padding: 34px 0 30px;
    }

    .bn-footer__links {
        grid-template-columns: 1fr;
        gap: 22px;
        text-align: center;
    }

    .bn-footer__copyright {
        font-size: 14px;
    }
}

/* RedesignFrontend step 5: live BOL viewport and typography alignment */
body,
.bn-header,
.bn-main,
.bn-footer,
.bn-menu-link,
.breaking-news-bar,
.bn-home-shell,
.bn-category-section {
    font-family: "Poppins", Arial, sans-serif;
}

.bn-container,
.bn-home-shell,
.bn-category-section {
    width: min(100% - 32px, 1300px);
    max-width: 1300px;
}

.bn-container {
    padding-left: 0;
    padding-right: 0;
}

.bn-brand {
    padding: 31px 0 22px;
}

.bn-brand-logo img {
    width: min(405px, 100%);
}

.bn-brand-date,
.bn-watch-live {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    line-height: 25px;
}

.breaking-news-bar {
    height: 34px;
}

.breaking-news-bar .badge {
    font-size: 14px;
    font-weight: 600;
}

.breaking-news-bar .ticker-item,
.breaking-news-bar .ticker-item a {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.bn-nav-wrapper {
    min-height: 45px;
}

.bn-menu-link {
    font-family: "Inter", sans-serif;
    min-height: 31px;
    padding: 8px 12px;
    font-size: 15px;
    font-weight: 500;
    line-height: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #C4161C;
}

/*.bn-home-shell {
    padding-top: 42px;
}*/

.bn-home-hero--three {
    grid-template-columns: 292px minmax(0, 1fr) 292px;
}

.bn-top-stories-panel {
    padding-left: 20px;
    padding-right: 20px;
}

    .bn-top-stories-panel > h2 {
        font-family: "Belleza", Sans-serif;
        margin-bottom: 15px;
        padding: 8px 10px;
        font-size: 20px;
        font-weight: 600;
        line-height: 1;
    }

.bn-story-rail h2,
.bn-popular-header h2 {
    font-size : 20px;
    font-weight: 600;
    line-height: 1;
    font-family: "Belleza", sans-serif;
    letter-spacing: 1px;
}

.bn-latest-list {
    gap: 14px;
}
    .bn-latest-list a:hover {
        transform: scale(1.05);
        transition: transform 0.4s ease;
    }
.bn-latest-item {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    min-height: 108px;
    padding: 7px;
}

.bn-latest-item strong {
    display: -webkit-box;
    overflow: hidden;
    color: #333;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.bn-latest-item small {
    font-size: 12px;
    line-height: 1.35;
}

.bn-card--featured .bn-card__body {
    padding: 15px 20px 17px;
    text-align: center;
}

    .bn-card--featured .bn-card__body h3 {
        font-family: "inter", sans-serif !important;
        color: #C4161C !important;
        font-size: 18px;
        font-weight: 600;
        line-height: 30px;
        margin: 10px 0 5px;
        line-height: 1.3;
        padding: 0px 10px !important;
    }
        
        .bn-card--featured .bn-card__body h3:hover {
            color: #000000 !important;
            transition: color 0.2s ease-in-out; /* Smooth color transition */
        }    
        .bn-card--featured .bn-card__body p {
            color: #000000 !important;
            font-family: 'Inter' !important;
            font-size: 15px !important;
            font-weight: 500;
            line-height: 28px;
            padding: 0px 15px;
        }

.bn-remainingtop-grid {
    gap: 20px;
    margin-top: 18px;
}

.bn-remainingtop-grid .bn-card__body {
    padding: 11px 8px 12px;
    text-align: center;
}

    .bn-remainingtop-grid .bn-card__body h4 {
        color: #C4161C !important;
        font-family: 'inter' !important;
        font-size: 14px;
        font-weight: 600;
        line-height: 26px;
    }
        .bn-remainingtop-grid .bn-card__body h4:hover {
            color: #000000 !important;
            transition: color 0.2s ease-in-out; /* Smooth color transition */
        }
    .bn-remainingtop-grid .bn-card__body p {
        color: #000000 !important;
        font-family: 'Inter' !important;
        font-size: 15px !important;
        font-weight: 500;
        line-height: 28px;
        padding: 0px 15px;
    }

.bn-popular-section {
    margin-top: 28px;
}

.bn-popular-grid {
    gap: 18px 20px;
}

.bn-popular-card {
    border-radius: 6px;
    box-shadow: none;
}

.bn-popular-card__body {
    padding: 12px 10px 14px;
}

    .bn-popular-card__body h3 {
        color: #C4161C !important;
        font-family: "inter" !important;
        font-size: 14px;
        font-weight: 600;
        line-height: 26px;
    }
.bn-popular-card:hover .bn-popular-card__body h3 {
    color: #000000 !important;
    transition: color 0.2s ease-in-out;
}
.bn-popular-card__time {
    font-size: 10px;
    line-height: 1.35;
}

.bn-category-section {
    margin-top: 34px;
}

.bn-category-heading h2 {
    font-family: 'inter' !important;
    font-size: 16px;
    font-weight: 600;

}
.bn-category-item:hover strong {
    color: #C4161C;
    transition: color 0.2s ease-in-out;
}
.bn-category-heading a {
    font-size: 16px;
    font-weight: 600;
}

.bn-category-item strong {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.bn-category-item small {
    font-size: 12px;
}

.bn-footer__links a {
    font-size: 14px;
    font-weight: 500;
}

.bn-footer__copyright {
    font-size: 14px;
}

@media (max-width: 1399.98px) {
    .bn-home-hero--three {
        grid-template-columns: 280px minmax(0, 1fr) 280px;
    }

    .bn-category-item {
        grid-template-columns: 118px minmax(0, 1fr);
    }
}

@media (max-width: 1199.98px) {
    .bn-container,
    .bn-home-shell,
    .bn-category-section {
        width: min(100% - 28px, 1300px);
    }

    .bn-home-hero--three {
        grid-template-columns: 245px minmax(0, 1fr) 245px;
    }
}

@media (max-width: 991.98px) {
    .bn-home-hero--three {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .bn-container,
    .bn-home-shell,
    .bn-category-section {
        width: min(100% - 20px, 1300px);
    }

    .bn-brand-logo img {
        width: min(275px, 100%);
    }

    .bn-menu-link {
        font-size: 13px;
    }
}

/* Public navbar hardening: SVG controls and keyboard focus */
.bn-nav-toggle,
.bn-search-btn,
.bn-menu-caret {
    color: #111;
}

.bn-nav-toggle svg,
.bn-search-btn svg,
.bn-menu-caret svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: currentColor;
}

.bn-nav-toggle:focus-visible,
.bn-search-btn:focus-visible,
.bn-menu-link:focus-visible,
.bn-menu-caret:focus-visible,
.bn-menu .dropdown-item:focus-visible {
    outline: 2px solid #d71920;
    outline-offset: 3px;
}

#sticky-navbar.bn-nav-open {
    z-index: 1060;
}
