/* ================================================================
   CSB News USA — Main Stylesheet  v2.0
   ================================================================
   Sections:
   01. Custom Fonts
   02. Base / Reset
   03. Utility Classes (existing — keep for all pages)
   04. Header: Top Bar
   05. Header: Main Navbar
   06. Header: More Dropdown
   07. Header: Right Actions & Watch TV
   08. Header: Mobile Offcanvas
   09. Main Content — News Cards
   10. Homepage Sections
   11. Footer Upper
   12. Footer Social
   13. Footer Lower / Legal
   14. Legacy Classes (detail, category, other pages)
   15. Responsive Media Queries
   ================================================================ */


/* ── 01. Custom Fonts ──────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&family=Roboto+Slab:wght@400;700;900&display=swap');
@import url('https://fonts.maateen.me/charu-chandan-3d/font.css');

@font-face {
    font-family: "Publico Headline";
    src: url("./PublicoHeadline-Bold-Web.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
}


/* ── 02. Base / Reset ──────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-x: clip;   /* fix mobile horizontal shift */
    scroll-behavior: smooth;
}

body {
    overflow-x: clip;
    font-family: "Publico Headline", "Roboto Slab", Georgia, serif;
    color: #1a1a2e;
    line-height: 1.55;
    background: #fff;
}

img {
    max-width: 100%;
    display: block;
}


/* ── 03. Utility Classes ───────────────────────────────────────── */
.bg-blue   { background-color: #05225e; }
.bg-footer { background-color: #093184; }

/* Sports / featured section gradient — richer than original */
.bg-color {
    background: linear-gradient(135deg, #0a2960 0%, #0d3a85 45%, #092152 100%);
}

.bg-color1 { background-color: #183f7f; }

.text-color  { color: #074072; }
.text-gray   { color: #a1a0a0; }

.section-width { width: 92%; }

.hovera:hover { text-decoration: underline !important; }

.roboto-bold {
    font-family: "Roboto", Arial, sans-serif;
    font-weight: 700;
}

.text-font {
    font-family: "Publico Headline", serif;
    font-weight: normal;
}


/* ── 04. Header: Top Bar ───────────────────────────────────────── */
.csb-header {
    position: relative;
    z-index: 1000;
}

.csb-topbar {
    background: #0a0a0a;
    height: 40px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.csb-topbar .section-width {
    height: 100%;
}

.csb-topbar-link {
    color: #9aaec4;
    text-decoration: none;
    font-family: "Roboto", sans-serif;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: .03em;
    padding: 2px 0;
    border-bottom: 2px solid transparent;
    transition: color .2s ease, border-color .2s ease;
    white-space: nowrap;
}

.csb-topbar-link:hover {
    color: #fff;
    border-bottom-color: #dc3545;
}

.csb-topbar-btn {
    color: #adbdd4;
    text-decoration: none;
    font-family: "Roboto", sans-serif;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 10px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 3px;
    transition: background .2s, color .2s, border-color .2s;
    white-space: nowrap;
}

.csb-topbar-btn:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
    border-color: rgba(255,255,255,.3);
}

.csb-topbar-btn--bangla {
    background: rgba(220,53,69,.12);
    border-color: rgba(220,53,69,.35);
    color: #f0a0aa;
}

.csb-topbar-btn--bangla:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}


/* ── 05. Header: Main Navbar ───────────────────────────────────── */
.csb-mainbar {
    padding: 10px 0;
}

/* Logo */
.csb-logo-link {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.csb-logo {
    height: 74px;
    width: auto;
    max-width: 148px;
    object-fit: contain;
    transition: opacity .2s;
}

.csb-logo:hover {
    opacity: .88;
}

/* Desktop nav container */
.csb-mainnav {
    gap: 0;
    flex: 1;
    padding: 0 10px;
    flex-wrap: wrap;
}

.csb-nav-link {
    color: rgba(255,255,255,.85);
    text-decoration: none;
    font-family: "Roboto", sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .025em;
    padding: 8px 9px;
    border-bottom: 2px solid transparent;
    display: inline-block;
    white-space: nowrap;
    transition: color .2s, border-color .2s;
}

.csb-nav-link:hover,
.csb-nav-link:focus {
    color: #fff;
    border-bottom-color: #dc3545;
}


/* ── 06. Header: More Mega-Dropdown ───────────────────────────── */
.csb-more-menu {
    border-radius: 0 !important;
    border-top: 2px solid #dc3545 !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    box-shadow: 0 12px 32px rgba(0,0,0,.45) !important;
    padding: 0 !important;
    /* sits below entire header */
    z-index: 999;
}

.csb-search-bar .form-control {
    border-right: none;
    font-family: "Roboto", sans-serif;
    font-size: 14px;
}

.csb-search-bar .form-control:focus {
    box-shadow: none;
    border-color: #ced4da;
}

.csb-more-item {
    color: rgba(255,255,255,.78);
    text-decoration: none;
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .01em;
    display: block;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
    transition: color .2s, padding-left .2s;
}

.csb-more-item:hover {
    color: #fff;
    padding-left: 6px;
}


/* ── 07. Header: Right Actions ─────────────────────────────────── */
.csb-search-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-decoration: none;
    transition: background .2s;
}

.csb-search-icon:hover {
    background: rgba(255,255,255,.12);
}

/* Watch TV button */
.csb-watchtv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #dc3545;
    color: #fff;
    text-decoration: none;
    font-family: "Roboto", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: 4px;
    white-space: nowrap;
    line-height: 1;
    vertical-align: middle;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 2px 10px rgba(220,53,69,.4);
}

.csb-watchtv-btn:hover {
    background: #b02a37;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(220,53,69,.5);
}

/* Pulsing live dot */
.csb-live-pulse {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,.9);
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    animation: csbLivePulse 1.4s ease-in-out infinite;
}

@keyframes csbLivePulse {
    0%   { opacity: 1;   transform: scale(1); }
    50%  { opacity: .35; transform: scale(1.35); }
    100% { opacity: 1;   transform: scale(1); }
}

/* Mobile hamburger */
.csb-hamburger {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: background .2s;
    padding: 0;
}

.csb-hamburger:hover {
    background: rgba(255,255,255,.12);
}


/* ── 08. Header: Mobile Offcanvas ──────────────────────────────── */
.csb-offcanvas {
    width: 285px !important;
    border-left: 2px solid rgba(255,255,255,.08) !important;
    z-index: 1110 !important; /* Ensure it covers the header */
}

.csb-offcanvas-header {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.csb-offcanvas-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.csb-offcanvas-close {
    background: transparent;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 4px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s, border-color .2s;
    flex-shrink: 0;
}

.csb-offcanvas-close:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.4);
}

.csb-offcanvas-body {
    padding: 16px 18px;
    flex-grow: 1;
    overflow-y: auto;
}

.csb-offcanvas-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 4px;
}

.csb-offcanvas-link {
    display: block;
    color: rgba(255,255,255,.8);
    text-decoration: none;
    font-family: "Roboto", sans-serif;
    font-size: 15px;
    font-weight: 500;
    padding: 11px 2px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    transition: color .2s, padding-left .2s;
}

.csb-offcanvas-link:hover {
    color: #fff;
    padding-left: 8px;
}

.csb-offcanvas-divider {
    height: 1px;
    background: rgba(255,255,255,.1);
    margin: 18px 0 14px;
}

.csb-offcanvas-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.csb-offcanvas-btn {
    display: block;
    color: #c8d4e8;
    text-decoration: none;
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 9px 14px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,.14);
    text-align: center;
    transition: background .2s, color .2s, border-color .2s;
}

.csb-offcanvas-btn:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
    border-color: rgba(255,255,255,.28);
}

.csb-offcanvas-btn--primary {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
    font-weight: 700;
    letter-spacing: .03em;
}

.csb-offcanvas-btn--primary:hover {
    background: #b02a37;
    border-color: #b02a37;
    color: #fff;
}


/* ── 09. Main Content — News Cards ─────────────────────────────── */
main {
    min-height: 60vh;
}

/* Image container — consistent look across all card types */
main .img {
    overflow: hidden;
    border-radius: 4px;
    background: #d8e4f0; /* visible placeholder when image fails */
    position: relative;
}

/* Broken image alt text styling */
main .img img[alt]::after {
    content: attr(alt);
    display: block;
    position: absolute;
    inset: 0;
    background: #d8e4f0;
    color: #6a8aaa;
    font-size: 12px;
    font-family: "Roboto", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    text-align: center;
}

main .img img {
    width: 100%;
    height: 185px;
    object-fit: cover;
    object-position: center top;
    transition: transform .42s ease;
    display: block;
}

main .img:hover img {
    transform: scale(1.05);
}

/* Taller images for 2-col layout rows */
.col-md-6.col-6 .img img {
    height: 215px;
}

/* World News — 6-col grid images */
.col-md-2 .img img {
    height: 130px;
}

/* Breaking news sidebar small images */
.card .col-md-5 img,
.card .col-5 img {
    height: 68px;
    width: 100%;
    object-fit: cover;
    border-radius: 3px;
}

/* Politics / Science / Crime / US small thumb images */
.col-md-3.border-end .col-md-5 img,
.col-md-3.border-end .col-5 img {
    height: 64px;
    width: 100%;
    object-fit: cover;
    border-radius: 3px;
}

/* Sports section card images */
.bg-color .col-md-5 img,
.bg-color .col-5 img {
    height: 75px;
    width: 100%;
    object-fit: cover;
    border-radius: 3px;
}

/* Headline hover colour */
h5.text-color a,
h6.text-color a,
h4.text-color a {
    transition: color .2s;
}

h5.text-color a:hover,
h6.text-color a:hover,
h4.text-color a:hover {
    color: #dc3545 !important;
}

/* Sidebar card shadows */
.card.card-body.shadow-lg {
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 22px rgba(5,34,94,.09) !important;
}

/* Published date formatting */
small.text-muted {
    font-family: "Roboto", sans-serif;
    font-size: 11.5px;
    color: #7a90aa !important;
    letter-spacing: .01em;
}

/* HR separators */
main hr {
    border: none;
    border-top: 1px solid #e0e8f4;
    margin: 12px 0;
    opacity: 1;
}


/* ── 10. Homepage Sections ─────────────────────────────────────── */

/* Category card row */
.bg-primary-subtle .card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow .25s, transform .25s;
}

.bg-primary-subtle .card:hover {
    box-shadow: 0 6px 22px rgba(5,34,94,.14) !important;
    transform: translateY(-2px);
}

/* Category card images */
.bg-primary-subtle .card img {
    object-fit: cover;
    border-radius: 3px;
}

/* Sports section cards */
.bg-color .card {
    border: none;
    border-radius: 6px;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}

.bg-color .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,.25) !important;
}

/* Section headings (World News, Politics News, etc.) */
.text-color.fw-bold {
    letter-spacing: -.01em;
}

/* World News 6-col grid headline clamp */
.col-md-2 h6.text-color {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.45;
}

/* Category section sub-headings */
.col-md-3.border-end h6.text-color {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12.5px;
    line-height: 1.4;
}


/* ── 11. Footer Upper ──────────────────────────────────────────── */
.csb-footer {
    background: #050d1f;
    margin-top: 52px;
    color: #c0cfe0;
}

.csb-footer-upper {
    padding: 54px 0 44px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.csb-footer-logo {
    width: 115px;
    height: auto;
    object-fit: contain;
    border-radius: 3px;
}

.csb-footer-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7a90aa;
    text-decoration: none;
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    font-weight: 400;
    transition: color .2s;
}

.csb-footer-email:hover {
    color: #fff;
}

/* Footer category headings */
.csb-footer-cat-heading {
    color: #fff;
    font-family: "Roboto", sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dc3545;
    display: block;
}

/* Footer category subcategory list */
.csb-footer-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.csb-footer-cat-list li {
    color: #5e7490;
    font-family: "Roboto", sans-serif;
    font-size: 13px;
    font-weight: 400;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,.04);
    transition: color .2s, padding-left .2s;
    cursor: default;
    line-height: 1.4;
}

.csb-footer-cat-list li:last-child {
    border-bottom: none;
}

.csb-footer-cat-list li:hover {
    color: #b0c4d8;
    padding-left: 4px;
}


/* ── 12. Footer Social ─────────────────────────────────────────── */
.csb-social-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.csb-social-btn {
    width: 40px;
    height: 40px;
    background: #0c2d70;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d0dcf0;
    text-decoration: none;       /* removes the underline from the original */
    font-size: 16px;
    border: 1px solid rgba(255,255,255,.06);
    transition: background .22s, transform .22s, box-shadow .22s, color .22s;
}

.csb-social-btn:hover {
    background: #1848aa;
    color: #fff;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 7px 18px rgba(0,0,0,.4);
}


/* ── 13. Footer Lower / Legal ──────────────────────────────────── */
.csb-footer-lower {
    background: #030912;
    padding: 22px 0;
}

.csb-footer-policy-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 14px;
    gap: 2px 0;
}

.csb-footer-policy-links a {
    color: #5e7490;
    text-decoration: none;
    font-family: "Roboto", sans-serif;
    font-size: 12px;
    font-weight: 400;
    padding: 4px 12px;
    border-right: 1px solid rgba(255,255,255,.1);
    line-height: 1.5;
    transition: color .2s;
}

.csb-footer-policy-links a:first-child {
    padding-left: 0;
}

.csb-footer-policy-links a:last-child {
    border-right: none;
}

.csb-footer-policy-links a:hover {
    color: #c0d0e4;
}

.csb-footer-legal-text {
    color: #3a4a5e;
    font-family: "Roboto", sans-serif;
    font-size: 11.5px;
    line-height: 1.7;
    margin: 0;
    max-width: 1100px;
}

.csb-footer-legal-text a {
    color: #4e6480;
    text-decoration: none;
    transition: color .2s;
}

.csb-footer-legal-text a:hover {
    color: #90a8c0;
}


/* ── 14. Legacy Classes (detail, category & other pages) ───────── */
/* Keep these — they are used across pages not provided here */

.logo { width: 7%; }

.headnav li a { font-size: 15px; }

.navbar li a:hover {
    padding: 5px;
    background-color: #92b1d0;
    transition: background .3s;
}

/* Detail page */
.detaillogo img {
    width: 5%;
    height: 60px;
    border-radius: 50%;
}

.dpara { font-size: 30px; }

/* Social share icons on detail page */
.social-media1 {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 10px;
    background-color: #09357f;
    display: inline-block;
}

.csb-detail-share a {
    text-decoration: none !important;
    margin: 0 6px;
}

.csb-detail-header {
    background: #f5f7fb;
}
.csb-detail-title {
    font-size: 30px;
    line-height: 1.25;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.csb-detail-subtitle {
    font-size: 16px;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}
.csb-detail-meta img {
    box-shadow: 0 3px 10px rgba(5,34,94,.35);
}

.csb-detail-main {
    background: #ffffff;
}
.csb-detail-maincol {
    border-right: 1px solid #e0e7f5;
}

@media screen and (max-width: 991.98px) {
    .csb-detail-title {
        font-size: 24px;
    }
    .csb-detail-subtitle {
        font-size: 14px;
    }
    .csb-detail-maincol {
        border-right: none;
        margin-bottom: 24px;
    }
}

@media screen and (min-width: 1400px) {
    .csb-detail-title {
        font-size: 34px;
    }
}

/* Old footer SVG social icons (not used in new footer but kept for safety) */
.social-media {
    width: 40px;
    height: 40px;
    padding: 10px;
    background-color: #0d2f79;
    display: inline-block;
}

.footerlogo { width: 40%; }

.link a  { font-size: 13px; }
.link p  { font-size: 13px; }
.link span { font-size: 10px; }

.nav-link { font-size: 12px; }

.avatar {
    width: 10%;
    height: 40px;
}

/* Helper from master inline styles */
.mv-width { width: 100% !important; }

/* TV/video embed */
@media screen and (max-width: 899px)  { .tv-responsive { width: 100%; height: 400px; } }
@media screen and (min-width: 900px)  { .tv-responsive { width: 100%; height: 500px; } }


/* ── 15. Responsive Media Queries ──────────────────────────────── */

/* ── Mobile ≤ 576px ─────────────────────────────────────────── */
@media screen and (max-width: 576px) {

    /* New header */
    .csb-logo           { height: 48px; max-width: 100px; }
    .csb-mainbar        { padding: 8px 0; }
    .csb-watchtv-btn    { font-size: 11px; padding: 6px 10px; gap: 5px; }
    .csb-topbar         { height: 36px; }

    /* Slightly wider content on very small screens */
    .section-width      { width: 96%; }

    /* News card images — shorter on mobile */
    main .img img           { height: 145px; }
    .col-md-6.col-6 .img img { height: 155px; }
    .col-md-2 .img img      { height: 110px; }

    /* Footer */
    .csb-footer-upper   { padding: 36px 0 28px; }
    .csb-footer-logo    { width: 90px; }
    .csb-footer-policy-links a { font-size: 11px; padding: 3px 7px; }

    /* Legacy */
    .logo               { width: 17%; }
    h1                  { font-size: 22px; }
    h5                  { font-size: 14px; }
    .detaillogo img     { width: 10%; height: 40px; }
    .navbar-toggler     { font-size: 20px; }
    .navbar-toggler:focus { box-shadow: none; }
    .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='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    .icon               { width: 20%; }
    .avatar             { width: 10%; height: 40px; }
    .footerlogo         { width: 30%; }
}

/* ── Tablet 577–768px ───────────────────────────────────────── */
@media screen and (min-width: 577px) and (max-width: 768px) {

    .csb-logo { height: 52px; }

    /* Legacy */
    .logo               { width: 10%; }
    .headnav li a       { font-size: 11px; }
    h5                  { font-size: 17px; }
    h1                  { font-size: 22px; }
    h4                  { font-size: 15px; }
    h6                  { font-size: 10px; }
    p                   { font-size: 10px; }
    small               { font-size: 7px; }
    .navbar-toggler:focus { box-shadow: none; }
    .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='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    .footerlogo         { width: 15%; }
    .nav-link           { font-size: 12px; }
    .avatar             { width: 10%; height: 40px; }
}

/* ── MD 769–992px ───────────────────────────────────────────── */
@media screen and (min-width: 769px) and (max-width: 992px) {

    .csb-logo       { height: 62px; }
    .csb-nav-link   { font-size: 11.5px; padding: 6px 7px; }

    /* Legacy */
    .logo               { width: 9%; }
    .headnav li a       { font-size: 11px; }
    h1                  { font-size: 24px; }
    h4                  { font-size: 16px; }
    h6                  { font-size: 12px; }
    p                   { font-size: 10px; }
    .detaillogo img     { width: 5%; height: 40px; }
    .avatar             { width: 10%; height: 40px; }
    .footerlogo         { width: 15%; }
}

/* ── LG 993–1200px ──────────────────────────────────────────── */
@media screen and (min-width: 993px) and (max-width: 1200px) {

    .csb-logo     { height: 68px; }
    .csb-nav-link { font-size: 12px; padding: 6px 8px; }

    /* Legacy */
    .logo           { width: 9%; }
    .headnav li a   { font-size: 14px; }
    h1              { font-size: 28px; }
    .dpara          { font-size: 24px; }
    .detaillogo img { width: 5%; height: 50px; }
}

/* ── XL 1201–1400px ─────────────────────────────────────────── */
@media screen and (min-width: 1201px) and (max-width: 1400px) {

    .csb-logo { height: 72px; }

    /* Legacy */
    .logo           { width: 8%; }
    .dpara          { font-size: 30px; }
    .detaillogo img { width: 5%; height: 60px; }
    .avatar         { width: 10%; height: 50px; }
    .nav-link       { font-size: 14px; }
    .footerlogo     { width: 30%; }

    .title-news-size a { font-size: 38px !important; }
}

/* ── XXL ≥ 1401px ───────────────────────────────────────────── */
@media screen and (min-width: 1401px) {

    .csb-logo { height: 76px; }

    /* Legacy */
    .logo       { width: 7%; }
    .dpara      { font-size: 30px; }
    .nav-link   { font-size: 18px; }
    .footerlogo { width: 30%; }
}

/* ── Large screens ≥ 1600px ─────────────────────────────────── */
@media screen and (min-width: 1600px) {
    .title-news-size a { font-size: 48px !important; }
}

/* ── Ultra-wide ≥ 1920px ────────────────────────────────────── */
@media screen and (min-width: 1920px) {
    .section-width { width: 86%; }
    .csb-logo      { height: 82px; }

    main .img img            { height: 220px; }
    .col-md-6.col-6 .img img { height: 260px; }
}


/* ================================================================
   HOMEPAGE — index.blade.php specific styles
   ================================================================ */


/* ── Section 1: Hero ───────────────────────────────────────────── */
.csb-hero-section {
    padding: 44px 0 18px;
}

.csb-hero-card {
    border: 1px solid #e4eaf5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(5,34,94,.08);
    transition: box-shadow .25s;
}

.csb-hero-card:hover {
    box-shadow: 0 8px 32px rgba(5,34,94,.14);
}

.csb-hero-img-link {
    display: block;
    overflow: hidden;
}

.csb-hero-img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    max-height: 360px;
    object-fit: cover;
    object-position: center top;
    transition: transform .45s ease;
    display: block;
}

.csb-hero-img-link:hover .csb-hero-img {
    transform: scale(1.04);
}

.csb-cat-badge {
    display: inline-block;
    background: #dc3545;
    color: #fff;
    font-family: "Roboto", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    padding: 3px 9px;
    border-radius: 2px;
}

.csb-hero-title {
    font-size: 24px;
    line-height: 1.3;
    font-weight: 900;
    margin: 0;
    letter-spacing: -.02em;
}

.csb-hero-title-link {
    color: #074072;
    transition: color .2s;
}

.csb-hero-title-link:hover {
    color: #dc3545;
}

.csb-hero-excerpt {
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    line-height: 1.65;
    color: #4a5a70;
    font-weight: 400;
    margin: 0;
}

.csb-read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #dc3545;
    text-decoration: none;
    font-family: "Roboto", sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-bottom: 2px solid #dc3545;
    padding-bottom: 1px;
    width: fit-content;
    transition: color .2s, border-color .2s;
}

.csb-read-more:hover {
    color: #a01525;
    border-color: #a01525;
}

/* Divider */
.csb-divider {
    height: 1px;
    background: #e4eaf5;
    margin: 14px 0;
}


/* ── Card image wrappers ───────────────────────────────────────── */
.csb-card-img-wrap {
    overflow: hidden;
    border-radius: 5px;
    background: #d4e0ee;
    display: block;
    position: relative;
}

.csb-card-img-wrap--wide {
    border-radius: 6px;
}

.csb-card-img {
    width: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform .42s ease;
}

.csb-card-img-wrap:hover .csb-card-img {
    transform: scale(1.05);
}

/* Image height variants */
.csb-card-img--sm  { height: 180px; }
.csb-card-img--md  { height: 220px; }
.csb-card-img--wide { height: 260px; }

/* Wide card overlay */
.csb-wide-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(5,14,40,.88) 0%, transparent 100%);
    padding: 28px 16px 14px;
}

.csb-wide-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card headlines */
.csb-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.csb-card-title--sm {
    font-size: 13.5px;
    -webkit-line-clamp: 3;
}

.csb-card-title-link {
    color: #074072;
    transition: color .2s;
}

.csb-card-title-link:hover {
    color: #dc3545;
}


/* ── Live Player ───────────────────────────────────────────────── */
.csb-player-wrap {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(5,34,94,.18);
}

.csb-player-ratio {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #040e22;
}

.csb-player-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    z-index: 2;
}

.csb-player-dom {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.csb-player-label {
    background: #05225e;
    color: rgba(255,255,255,.75);
    font-family: "Roboto", sans-serif;
    font-size: 12px;
    font-weight: 500;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 7px;
    letter-spacing: .04em;
}

.csb-live-dot {
    width: 8px;
    height: 8px;
    background: #dc3545;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    animation: csbLivePulse 1.4s ease-in-out infinite;
}


/* ── Sidebar Breaking News ─────────────────────────────────────── */
.csb-sidebar-card {
    border: 1px solid #e4eaf5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(5,34,94,.07);
}

.csb-sidebar-heading {
    background: #05225e;
    color: #fff;
    font-family: "Roboto", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 10px 14px;
    border-bottom: 2px solid #dc3545;
}

.csb-sidebar-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border-bottom: 1px solid #edf2f9;
    text-decoration: none;
    transition: background .2s;
}

.csb-sidebar-item:last-child {
    border-bottom: none;
}

.csb-sidebar-item:hover {
    background: #f5f8fd;
}

.csb-sidebar-thumb {
    flex-shrink: 0;
    width: 76px;
    height: 56px;
    border-radius: 4px;
    overflow: hidden;
    background: #d4e0ee;
}

.csb-sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.csb-sidebar-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.csb-sidebar-title {
    color: #074072;
    font-family: "Publico Headline", serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.38;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}

.csb-sidebar-item:hover .csb-sidebar-title {
    color: #dc3545;
}

.csb-sidebar-time {
    color: #7a90aa;
    font-family: "Roboto", sans-serif;
    font-size: 11px;
    font-weight: 400;
}

/* Ad blocks */
.csb-ad-block {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e4eaf5;
}

.csb-ad-block img { display: block; }


/* ── Section 2: Category Pills ─────────────────────────────────── */
.csb-cats-section {
    background: linear-gradient(135deg, #eef3fb 0%, #f5f8ff 100%);
    border-top: 1px solid #dce8f8;
    border-bottom: 1px solid #dce8f8;
    padding: 28px 0;
}

.csb-cat-pill {
    display: flex;
    align-items: center;
    gap: 13px;
    background: #fff;
    border: 1px solid #dce8f8;
    border-radius: 8px;
    padding: 12px 14px;
    transition: box-shadow .22s, transform .22s, border-color .22s;
    position: relative;
    overflow: hidden;
}

.csb-cat-pill::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: #dc3545;
    border-radius: 8px 0 0 8px;
    transform: scaleY(0);
    transition: transform .22s ease;
}

.csb-cat-pill:hover {
    box-shadow: 0 6px 22px rgba(5,34,94,.12);
    transform: translateY(-2px);
    border-color: #b8ccee;
}

.csb-cat-pill:hover::before {
    transform: scaleY(1);
}

.csb-cat-pill-img {
    width: 54px;
    height: 54px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #d4e0ee;
}

.csb-cat-pill-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.csb-cat-pill-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.csb-cat-pill-name {
    color: #dc3545;
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1.2;
    display: block;
}

.csb-cat-pill-desc {
    color: #074072;
    font-family: "Roboto", sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.csb-cat-pill-arrow {
    color: #9aaec4;
    font-size: 11px;
    flex-shrink: 0;
    transition: color .2s, transform .2s;
}

.csb-cat-pill:hover .csb-cat-pill-arrow {
    color: #dc3545;
    transform: translateX(3px);
}


/* ── Section labels ────────────────────────────────────────────── */
.csb-section-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.csb-section-label span {
    color: #074072;
    font-family: "Roboto", sans-serif;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -.01em;
    position: relative;
    padding-left: 14px;
}

.csb-section-label span::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 80%;
    background: #dc3545;
    border-radius: 2px;
}

.csb-section { padding: 28px 0; }

/* Four-column section separators */
.csb-four-cols {
    border-top: 1px solid #e4eaf5;
}

.csb-col-label {
    color: #074072;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -.01em;
    padding-bottom: 10px;
    border-bottom: 3px solid #dc3545;
    display: block;
}

/* List items in four-col section */
.csb-list-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #edf2f9;
    transition: background .2s;
}

.csb-list-item:last-child { border-bottom: none; }

.csb-list-item:hover { text-decoration: none; }

.csb-list-info { flex: 1; min-width: 0; }

.csb-list-title {
    color: #074072;
    font-family: "Publico Headline", serif;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
    display: block;
}

.csb-list-item:hover .csb-list-title { color: #dc3545; }

.csb-list-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 52px;
    border-radius: 4px;
    overflow: hidden;
    background: #d4e0ee;
}

.csb-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Category Page (news-category) ─────────────────────────────── */
.csb-category-hero-inner {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 26px rgba(5,34,94,.35);
    position: relative;
}
.csb-category-hero-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.03);
}
.csb-category-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5,16,40,.92) 0%, rgba(5,34,94,.86) 55%, rgba(0,0,0,.7) 100%);
    color: #fff;
    padding: 28px 18px;
}
.csb-category-kicker {
    font-family: "Roboto", sans-serif;
    font-size: 11px;
    letter-spacing: .15em;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255,255,255,.7);
}
.csb-category-title {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -.02em;
}
.csb-category-subtitle {
    max-width: 620px;
    margin: 0 auto;
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    color: rgba(232,238,250,.86);
}

.csb-category-main {
    background: #f5f7fb;
}
.csb-category-main-col {
    border-right: 1px solid #dde4f2;
}
.csb-category-feature-img img {
    border-radius: 8px;
    max-height: 380px;
    object-fit: cover;
}
.csb-category-feature-title {
    font-size: 24px;
}

.csb-category-grid {
    padding-top: 8px;
}
.csb-category-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #dde4f2;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(5,34,94,.06);
    transition: box-shadow .22s, transform .22s;
}
.csb-category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5,34,94,.18);
}
.csb-category-card-img {
    border-radius: 6px;
    overflow: hidden;
}
.csb-category-card-img img {
    height: 190px;
    object-fit: cover;
}
.csb-category-card-title {
    font-size: 15px;
    line-height: 1.5;
}

.csb-category-rightcol {
    padding-left: 20px;
}

@media screen and (max-width: 991.98px) {
    .csb-category-main-col {
        border-right: none;
        margin-bottom: 24px;
    }
    .csb-category-rightcol {
        padding-left: 0;
    }
    .csb-category-hero-img {
        height: 180px;
    }
    .csb-category-title {
        font-size: 24px;
    }
}

@media screen and (min-width: 1400px) {
    .csb-category-hero-img {
        height: 260px;
    }
    .csb-category-feature-img img {
        max-height: 420px;
    }
}


/* ── Sports Section ────────────────────────────────────────────── */
.csb-sports-section {
    padding: 28px 0;
}

.csb-sports-inner {
    background: linear-gradient(135deg, #051830 0%, #0a2960 50%, #071e44 100%);
    border-radius: 10px;
    padding: 24px 28px 28px;
    box-shadow: 0 8px 32px rgba(5,34,94,.25);
}

.csb-sports-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.csb-sports-title {
    color: #fff;
    font-family: "Roboto", sans-serif;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: .02em;
}

.csb-sports-viewall {
    color: rgba(255,255,255,.65);
    text-decoration: none;
    font-family: "Roboto", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: color .2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.csb-sports-viewall:hover { color: #fff; text-decoration: none; }

.csb-sport-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 7px;
    padding: 10px;
    transition: background .22s, transform .22s, box-shadow .22s;
}

.csb-sport-card:hover {
    background: rgba(255,255,255,.11);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,.3);
}

.csb-sport-thumb {
    width: 80px;
    height: 62px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
    background: #1a3660;
}

.csb-sport-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.csb-sport-headline {
    color: rgba(255,255,255,.88);
    font-family: "Roboto", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── News card article wrapper ─────────────────────────────────── */
.csb-news-card {
    display: flex;
    flex-direction: column;
}

.csb-news-card .csb-card-title {
    flex: 1;
}

/* ── Homepage responsive overrides ─────────────────────────────── */
@media screen and (max-width: 576px) {
    .csb-hero-img        { min-height: 200px; max-height: 220px; }
    .csb-card-img--sm    { height: 140px; }
    .csb-card-img--md    { height: 165px; }
    .csb-card-img--wide  { height: 185px; }
    .csb-hero-title      { font-size: 18px; }
    .csb-hero-excerpt    { display: none; }
    .csb-sports-inner    { padding: 16px; }
    .csb-cat-pill        { padding: 9px 10px; gap: 9px; }
    .csb-cat-pill-img    { width: 42px; height: 42px; }
    .csb-cat-pill-name   { font-size: 12px; }
    .csb-cat-pill-desc   { display: none; }
    .csb-sidebar-thumb   { width: 62px; height: 46px; }
}

@media screen and (min-width: 577px) and (max-width: 768px) {
    .csb-card-img--sm  { height: 155px; }
    .csb-card-img--md  { height: 185px; }
    .csb-hero-img      { min-height: 210px; }
}

@media screen and (min-width: 1920px) {
    .csb-card-img--sm  { height: 210px; }
    .csb-card-img--md  { height: 260px; }
    .csb-card-img--wide { height: 320px; }
    .csb-hero-img      { max-height: 420px; min-height: 320px; }
    .csb-sports-inner  { padding: 32px 38px 38px; }
}

/* ================================================================
   CSB HEADER V3 — Premium Redesign
   All new csb-hdr__ classes. Replaces csb-old-header-pro entirely.
   ================================================================ */

/* ── Root ─────────────────────────────────────────────────────── */
.csb-hdr {
    position: relative;
    z-index: 1050;
}

/* ── Tier 1: Top Utility Bar ──────────────────────────────────── */
.csb-hdr__topbar {
    background: #080c14;
    border-bottom: 1px solid rgba(255,255,255,.06);
    height: 38px;
}
.csb-hdr__topbar-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Category nav links */
.csb-hdr__topnav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    overflow: hidden;
}
.csb-hdr__topnav-link {
    color: #8aa0bc;
    text-decoration: none;
    font-family: "Roboto", sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .02em;
    padding: 3px 9px;
    border-radius: 3px;
    white-space: nowrap;
    transition: color .18s, background .18s;
}
.csb-hdr__topnav-link:hover,
.csb-hdr__topnav-link.active {
    color: #fff;
    background: rgba(255,255,255,.07);
}

/* Auth + utility buttons — flex row, no stacking */
.csb-hdr__topactions {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}
.csb-hdr__topbtn {
    color: #8aa0bc;
    text-decoration: none;
    font-family: "Roboto", sans-serif;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,.1);
    white-space: nowrap;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    transition: color .18s, background .18s, border-color .18s;
}
.csb-hdr__topbtn:hover {
    color: #fff;
    border-color: rgba(255,255,255,.28);
    background: rgba(255,255,255,.07);
}
.csb-hdr__topbtn--primary {
    background: rgba(220,53,69,.15);
    border-color: rgba(220,53,69,.35);
    color: #f08090;
}
.csb-hdr__topbtn--primary:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}
.csb-hdr__topbtn--bangla {
    background: rgba(220,53,69,.1);
    border-color: rgba(220,53,69,.28);
    color: #f08090;
    font-size: 13px;
}
.csb-hdr__topbtn--bangla:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}
.csb-hdr__topdivider {
    width: 1px;
    height: 16px;
    background: rgba(255,255,255,.12);
    flex-shrink: 0;
    display: inline-block;
}

/* ── Tier 2: Main Branded Navbar ──────────────────────────────── */
.csb-hdr__mainbar {
    background: #05225e;
    box-shadow: 0 4px 24px rgba(0,0,0,.38);
    position: relative;
    z-index: 2;
    overflow: visible;
}
.csb-hdr__mainbar-inner {
    display: flex;
    align-items: center;
    height: 59px;
    gap: 0;
    position: relative;
}

/* ── Logo — absolute, overlapping below navbar ────────────────── */
.csb-hdr__logo-link {
    position: absolute;
    left: 0;
    top: 15px;          /* pushed down slightly for better visual balance */
    z-index: 5;
    display: inline-flex;
    align-items: flex-start;
    text-decoration: none;
    flex-shrink: 0;
}
.csb-hdr__logo {
    height: 100px;       /* increased +4px for slightly larger visual presence */
    width: auto;
    max-width: 136px;
    object-fit: contain;
    border: 3px solid #fff;
    border-radius: 0;
    transition: opacity .22s;
    display: block;
}
.csb-logo-clearance {
    height: 50px;
    background: #fff;
}


/* ── Desktop Nav — centered ───────────────────────────────────── */
.csb-hdr__nav {
    display: flex;
    align-items: stretch;
    flex: 1;
    gap: 0;
    list-style: none;
    margin: 0;
    /* push nav to centre — offset by half the logo width so it looks truly centred */
    padding: 0 0 0 145px;
    justify-content: center;
    height: 100%;
    overflow: visible;
}
.csb-hdr__navlink {
    color: rgba(255,255,255,.8);
    text-decoration: none;
    font-family: "Roboto", sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: .02em;
    padding: 0 11px;
    height: 100%;
    display: inline-flex;
    align-items: center;
    position: relative;
    white-space: nowrap;
    background: none;
    border: none;
    cursor: pointer;
    transition: color .2s, background .2s;
}
.csb-hdr__navlink::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 11px;
    right: 11px;
    height: 3px;
    background: #dc3545;
    border-radius: 2px 2px 0 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .22s cubic-bezier(.4,0,.2,1);
}
.csb-hdr__navlink:hover,
.csb-hdr__navlink.active {
    color: #fff;
    background: rgba(255,255,255,.05);
}
.csb-hdr__navlink:hover::after,
.csb-hdr__navlink.active::after {
    transform: scaleX(1);
}
.csb-hdr__navlink--more {
    gap: 6px;
}
.csb-hdr__more-chevron {
    font-size: 10px;
    transition: transform .22s ease;
    pointer-events: none;
}
.csb-hdr__more-wrap {
    position: static;
    height: 100%;
    display: flex;
    align-items: center;
}
.csb-hdr__more-wrap.open .csb-hdr__navlink--more {
    color: #fff;
    background: rgba(255,255,255,.05);
}
.csb-hdr__more-wrap.open .csb-hdr__navlink--more::after {
    transform: scaleX(1);
}
.csb-hdr__more-wrap.open .csb-hdr__more-chevron {
    transform: rotate(180deg);
}

/* ── Mega Menu ────────────────────────────────────────────────── */
.csb-hdr__mega {
    position: absolute;
    top: 100%;
    left: 150px;
    right: 150px;
    background: linear-gradient(180deg, #062470 0%, #05225e 100%);
    border-top: 2px solid #dc3545;
    border-bottom: 1px solid rgba(255,255,255,.06);
    border-radius: 0 0 6px 6px;
    box-shadow: 0 20px 56px rgba(0,0,0,.55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
    z-index: 100;
}
.csb-hdr__mega--open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.csb-hdr__mega-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 2px 4px;
}
.csb-hdr__mega-item {
    color: rgba(255,255,255,.7);
    text-decoration: none;
    font-family: "Roboto", sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 9px 12px;
    border-radius: 4px;
    border-left: 2px solid transparent;
    display: block;
    transition: color .18s, background .18s, border-color .18s, padding-left .18s;
}
.csb-hdr__mega-item:hover,
.csb-hdr__mega-item.active {
    color: #fff;
    background: rgba(255,255,255,.08);
    border-left-color: #dc3545;
    padding-left: 16px;
}

/* ── Right Actions ────────────────────────────────────────────── */
.csb-hdr__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}
.csb-hdr__search-btn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,.72);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    flex-shrink: 0;
    transition: color .2s, background .2s;
}
.csb-hdr__search-btn:hover,
.csb-hdr__search-btn[aria-expanded="true"] {
    color: #fff;
    background: rgba(255,255,255,.12);
}

/* Hamburger */
.csb-hdr__hamburger {
    background: transparent;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 5px;
    width: 38px;
    height: 38px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background .2s, border-color .2s;
}
.csb-hdr__hamburger:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.4);
}
.csb-hdr__hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

/* ── Search Overlay ───────────────────────────────────────────── */
.csb-search-overlay {
    background: #041d52;
    border-top: 1px solid rgba(255,255,255,.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s cubic-bezier(.4,0,.2,1);
    position: relative;
    z-index: 1;          /* sits below the logo (z-index 5) */
}
.csb-search-overlay--open {
    max-height: 56px;    /* reduced from 72px — smaller, cleaner bar */
    display: flex;
    align-items: center;
}
.csb-search-overlay .section-width {
    padding-left: 0; /* offset past the logo area so overlay doesn't go under it */
}
.csb-search-overlay-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 5px;
    padding: 6px 14px;   /* reduced padding for a slimmer bar */
    max-width: 600px;    /* constrain width for a standard look */
    margin: 0 auto;
}
.csb-search-overlay-icon {
    color: rgba(255,255,255,.45);
    font-size: 13px;
    flex-shrink: 0;
}
.csb-search-overlay-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: "Roboto", sans-serif;
    font-size: 13.5px;   /* reduced from 16px */
    font-weight: 400;
}
.csb-search-overlay-input::placeholder {
    color: rgba(255,255,255,.35);
}
.csb-search-overlay-close {
    background: transparent;
    border: none;
    color: rgba(255,255,255,.5);
    font-size: 15px;     /* reduced from 18px */
    line-height: 1;
    cursor: pointer;
    padding: 2px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color .2s;
    border-radius: 3px;
}
.csb-search-overlay-close:hover { color: #fff; }

/* ── Responsive: Tablet 768–991px ────────────────────────────── */
@media (max-width: 991.98px) {
    .csb-hdr {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        will-change: transform;
    }
    .csb-hdr__mainbar-inner  { height: 60px; }
    .csb-hdr__logo-link      { position: relative; top: auto; left: auto; }
    .csb-hdr__logo           { height: 48px; border-width: 2px; }
    .csb-hdr__nav            { padding-left: 0; }
    .csb-watchtv-btn         { font-size: 12px; padding: 6px 13px; }
    .csb-search-overlay .section-width { padding-left: 0; }
    .csb-hero-section        { padding-top: 38px; }
}

/* ── Responsive: Mobile ≤767px — logo inline, no hang ────────── */
@media (max-width: 767.98px) {
    .csb-hdr__mainbar-inner  { height: 56px; }
    .csb-hdr__logo-link      { position: relative; top: auto; left: auto; }
    .csb-hdr__logo           { height: 44px; border-width: 2px; }
    .csb-watchtv-btn         { font-size: 11px; padding: 6px 11px; letter-spacing: .03em; }
    .csb-hdr__actions        { gap: 8px; }
    .csb-search-overlay .section-width { padding-left: 0; }
    .csb-search-overlay--open { max-height: 48px; }
    .csb-search-overlay-form { max-width: 100%; }
    .csb-hero-section        { padding-top: 28px; }
}

/* ── Responsive: Small mobile ≤480px ─────────────────────────── */
@media (max-width: 480px) {
    .csb-hdr__mainbar-inner  { height: 52px; }
    .csb-hdr__logo           { height: 36px; border-width: 2px; }
    .csb-watchtv-btn         { font-size: 10px; padding: 5px 9px; gap: 4px; }
    .csb-hdr__actions        { gap: 6px; }
    .csb-hdr__hamburger      { width: 34px; height: 34px; }
    .csb-search-overlay--open { max-height: 44px; }
    .csb-search-overlay-form  { padding: 5px 10px; }
    .csb-search-overlay-input { font-size: 12px; }
    .csb-hero-section        { padding-top: 22px; }
}

/* ── Responsive: Wide ≥1400px ────────────────────────────────── */
@media (min-width: 1400px) {
    .csb-hdr__mainbar-inner  { height: 74px; }
    .csb-hdr__logo           { height: 108px; }
    .csb-hdr__logo-link      { top: 12px; }
    .csb-hdr__nav            { padding-left: 160px; }
    .csb-hdr__navlink        { font-size: 14px; padding: 0 13px; }
    .csb-search-overlay .section-width { padding-left: 170px; }
    .csb-hero-section        { padding-top: 50px; }
}

/* ── Responsive: Ultra-wide ≥1920px ──────────────────────────── */
@media (min-width: 1920px) {
    .csb-hdr__navlink        { font-size: 14.5px; padding: 0 15px; }
    .csb-hdr__logo           { height: 116px; }
    .csb-hero-section        { padding-top: 56px; }
}

/* ================================================================
   Auth Pages — Login & Register
   Centered card on dark navy background, no sidebar.
   Both pages share the same class system.
   ================================================================ */

/* ── Page shell: full remaining viewport, dark branded bg ─────── */
.csb-auth-page {
    min-height: calc(100vh - 106px); /* subtract topbar + mainbar */
    background: #f4f7fb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

/* ── Card wrapper: centers & constrains card width ────────────── */
.csb-auth-container {
    width: 100%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
}
.csb-auth-container--wide { max-width: 500px; } /* register only */

/* ── Card itself ──────────────────────────────────────────────── */
.csb-auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0,0,0,.5), 0 2px 8px rgba(0,0,0,.18);
    overflow: hidden;
    width: 100%;
}

/* ── Card header: logo area ───────────────────────────────────── */
.csb-auth-card__head {
    background: linear-gradient(135deg, #041d52 0%, #05225e 60%, #0a2f75 100%);
    padding: 28px 40px 24px;
    text-align: center;
}
.csb-auth-card__head::after {
    content: '';
    display: block;
    width: 44px;
    height: 3px;
    background: #dc3545;
    border-radius: 2px;
    margin: 14px auto 0;
}
.csb-auth-logo {
    height: 62px;
    width: auto;
    object-fit: contain;
    border: 2px solid rgba(255,255,255,.22);
    border-radius: 6px;
    display: inline-block;
    transition: border-color .22s;
}
.csb-auth-logo-link:hover .csb-auth-logo {
    border-color: rgba(255,255,255,.5);
}

/* ── Card body: form area ─────────────────────────────────────── */
.csb-auth-card__body {
    padding: 32px 40px 38px;
}
.csb-auth-card__title {
    font-size: 22px;
    font-weight: 700;
    color: #05225e;
    font-family: "Publico Headline", serif;
    letter-spacing: -.02em;
    margin-bottom: 4px;
}
.csb-auth-card__subtitle {
    font-size: 13.5px;
    color: #7a90aa;
    margin-bottom: 26px;
}

/* ── Form labels ──────────────────────────────────────────────── */
.csb-auth-form .form-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    letter-spacing: .01em;
}

/* ── Form inputs ──────────────────────────────────────────────── */
.csb-auth-form .form-control {
    border: 1.5px solid #dce4ec;
    border-radius: 8px;
    padding: 11px 16px;
    font-size: 14.5px;
    font-family: "Roboto", sans-serif;
    background-color: #f9fbfd;
    color: #1a1a2e;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.csb-auth-form .form-control:focus {
    border-color: #05225e;
    box-shadow: 0 0 0 3px rgba(5,34,94,.1);
    background-color: #fff;
    outline: none;
}
.csb-auth-form .form-control::placeholder { color: #aabdd0; }

/* ── Forgot password link ─────────────────────────────────────── */
.csb-auth-forgot {
    font-size: 12.5px;
    color: #dc3545;
    text-decoration: none;
    font-weight: 500;
    transition: opacity .2s;
}
.csb-auth-forgot:hover { opacity: .72; color: #dc3545; }

/* ── Terms checkbox label ─────────────────────────────────────── */
.csb-auth-form .form-check-label {
    font-size: 13px;
    color: #4b5563;
}

/* ── Submit button ────────────────────────────────────────────── */
.csb-auth-btn {
    display: block;
    width: 100%;
    padding: 13px 20px;
    background: #dc3545;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
    transition: background .2s, transform .15s, box-shadow .2s !important;
    box-shadow: 0 4px 14px rgba(220,53,69,.38);
    line-height: 1.4 !important;
    height: auto !important;
}
.csb-auth-btn:hover {
    background: #b02a37!important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(220,53,69,.48) !important;
}
.csb-auth-btn:active { transform: translateY(0) !important; }
.csb-auth-btn:focus  { box-shadow: 0 0 0 3px rgba(220,53,69,.3) !important; }

/* ── Links ────────────────────────────────────────────────────── */
.csb-auth-link {
    color: #05225e;
    text-decoration: none;
    font-weight: 600;
    transition: color .2s;
}
.csb-auth-link:hover { color: #dc3545; text-decoration: underline; }

/* ── Footer text below button ─────────────────────────────────── */
.csb-auth-footer {
    font-size: 13.5px;
    color: #6b7280;
}

/* ── Alert / error messages ───────────────────────────────────── */
.csb-auth-page .alert-danger {
    background: #fff5f5;
    border: 1px solid rgba(220,53,69,.25);
    border-radius: 8px;
    color: #b91c1c;
    font-size: 13.5px;
    padding: 10px 16px;
}

/* ── Back to site link ────────────────────────────────────────── */
.csb-auth-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    color: #7a90aa;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color .2s;
}
.csb-auth-back:hover { color: #05225e; }

/* ── 2-col grid for register name+email ───────────────────────── */
.csb-auth-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 540px) {
    .csb-auth-page           { padding: 24px 12px; }
    .csb-auth-card__head     { padding: 22px 24px 18px; }
    .csb-auth-card__body     { padding: 24px 22px 28px; }
    .csb-auth-logo           { height: 50px; }
    .csb-auth-card__title    { font-size: 19px; }
    .csb-auth-grid-2         { grid-template-columns: 1fr; }
    .csb-auth-form .form-control { font-size: 14px; padding: 10px 14px; }
}

/* ── Scroll-aware header ──────────────────────────────────────── */
.csb-hdr__topbar {
    max-height: 38px;
    overflow: hidden;
    transition: max-height .28s ease;
}
.csb-hdr--scrolled .csb-hdr__topbar {
    max-height: 0 !important;
    overflow: hidden !important;
}
.csb-hdr__mainbar {
    transition: box-shadow .28s ease;
}
.csb-hdr--scrolled .csb-hdr__mainbar {
    box-shadow: 0 6px 24px rgba(0,0,0,.5) !important;
}

/* ================================================================
   Static / Policy Pages
   Shared by: Terms, Privacy Policy, Privacy Choices, Caption Policy,
   Help, Contact, About Us, Accessibility Statement
   ================================================================ */

/* ── Page shell ───────────────────────────────────────────────── */
.csb-static-page {
    background: #f4f7fb;
    min-height: 60vh;
    padding: 48px 0 64px;
}

/* ── Content card ─────────────────────────────────────────────── */
.csb-static-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(5,34,94,.07);
    overflow: hidden;
    max-width: 860px;
    margin: 0 auto;
}

/* ── Card header bar ──────────────────────────────────────────── */
.csb-static-card__head {
    background: linear-gradient(135deg, #041d52 0%, #05225e 60%, #0a2f75 100%);
    padding: 28px 40px 24px;
    border-bottom: 3px solid #dc3545;
    display: flex;
    align-items: center;
    gap: 14px;
}
.csb-static-card__icon {
    width: 42px;
    height: 42px;
    background: rgba(220,53,69,.18);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #f08090;
    font-size: 18px;
}
.csb-static-card__title {
    font-family: "Publico Headline", serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: -.01em;
}
.csb-static-card__updated {
    font-family: "Roboto", sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,.45);
    margin: 3px 0 0;
    display: block;
}

/* ── Card body: rich text from DB ────────────────────────────── */
.csb-static-card__body {
    padding: 36px 40px 44px;
}
.csb-static-content {
    font-family: "Roboto", sans-serif;
    font-size: 15.5px;
    line-height: 1.82;
    color: #374151;
    text-align: left !important;
}
/* Force-override any inline styles saved by the rich text editor */
.csb-static-content *,
.csb-static-content p,
.csb-static-content h1,
.csb-static-content h2,
.csb-static-content h3,
.csb-static-content h4,
.csb-static-content li,
.csb-static-content td {
    text-align: left !important;
    float: none !important;
    width: auto !important;
    column-count: unset !important;
}
.csb-static-content h1,
.csb-static-content h2,
.csb-static-content h3,
.csb-static-content h4 {
    font-family: "Publico Headline", serif;
    color: #05225e;
    margin-top: 2em;
    margin-bottom: .6em;
    font-weight: 700;
    line-height: 1.3;
}
.csb-static-content h1 { font-size: 26px; }
.csb-static-content h2 { font-size: 21px; }
.csb-static-content h3 { font-size: 18px; }
.csb-static-content h4 { font-size: 16px; }
.csb-static-content p  { margin-bottom: 1.2em; }
.csb-static-content ul,
.csb-static-content ol {
    padding-left: 1.6em;
    margin-bottom: 1.2em;
}
.csb-static-content li { margin-bottom: .45em; }
.csb-static-content a  {
    color: #dc3545;
    text-decoration: underline;
    transition: opacity .2s;
}
.csb-static-content a:hover { opacity: .72; }
.csb-static-content strong { color: #1a1a2e; }
.csb-static-content blockquote {
    border-left: 3px solid #dc3545;
    margin: 1.6em 0;
    padding: 12px 20px;
    background: #f8f9ff;
    border-radius: 0 6px 6px 0;
    color: #4b5563;
    font-style: italic;
}
.csb-static-content hr {
    border: none;
    border-top: 1px solid #e4eaf5;
    margin: 2em 0;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .csb-static-page             { padding: 28px 0 44px; }
    .csb-static-card__head       { padding: 20px 24px 18px; }
    .csb-static-card__title      { font-size: 18px; }
    .csb-static-card__body       { padding: 24px 22px 32px; }
    .csb-static-content          { font-size: 14.5px; }
}
@media (max-width: 480px) {
    .csb-static-card__head       { padding: 16px 18px 14px; gap: 10px; }
    .csb-static-card__icon       { width: 34px; height: 34px; font-size: 15px; }
    .csb-static-card__title      { font-size: 16px; }
    .csb-static-card__body       { padding: 20px 16px 28px; }
}