/* 1. Force the Desktop Logo to stay small */
.nav-logo-img { 
    height: 60px !important; 
    width: auto !important; 
    display: block !important; 
    max-width: 250px !important; 
}

/* 2. Give the Video Player (iframe) its size back so it can play */
iframe {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 350px !important; /* Gives the live video enough height to show */
    border: none !important;
}

/* Just in case the mobile logo is also misbehaving */
nav.navbar .navbar-brand img.logo {
    max-height: 42px !important;
    width: auto !important;
}

/* Restores the white background overriding Bootstrap's navbar-inverse */
nav.navbar.nav-color { 
    background-color: white !important; 
}

/* Restores the missing icon colors */
.color-black { color: black !important; }
.color-ccc { color: #ccc !important; }

/* Hides the Google Translate widget placeholder */
.hidden-element { display: none !important; }
.VIpgJd-ZVi9od-l4eHX-hSRGPd { display: none !important; }
.goog-te-gadget  { color: transparent !important; }
.skiptranslate   { visibility: hidden !important; position: absolute !important; top: -9999px !important; z-index: 0; height: 0; width: 0; overflow: hidden; }
body             { top: 0 !important; }
 
/* ENSURES MOBILE LOGO IS HIDDEN ON DESKTOP */
.ndexktop { display: none !important; }
 
/* ══ TOP LOGO BAR ══ */
.nav-logo { position: relative; display: flex; align-items: center; border-bottom: 1px solid #e7e1e1; min-height: 84px; padding: 12px 24px; background-repeat: no-repeat; background-size: cover; }
.nav-date-time-left { flex: 1; display: flex; align-items: center; justify-content: flex-start; }
.date-time-info { display: flex; flex-direction: column; line-height: 1.1; background: transparent; padding: 0; border-radius: 0; border: none; }
.current-date { font-size: 16px; font-weight: 400; color: #000; }
.location-weather { display: flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 700; color: #000; transition: transform 0.3s ease-in-out; }
.city-name { font-weight: 700; }
.weather-icon { font-size: 22px; }
.temperature { font-weight: 700; font-size: 17px; }
.flip-animation { animation: flip 0.5s ease-in-out; }
@keyframes flip {
    0% { transform: perspective(400px) rotateX(0deg); opacity: 1; }
    50% { transform: perspective(400px) rotateX(90deg); opacity: 0.5; }
    100% { transform: perspective(400px) rotateX(0deg); opacity: 1; }
}
.nav-logo-center { position: absolute; left: calc(50% + 100px); top: 50%; transform: translate(-50%, -50%); z-index: 1; }
.nav-social-right { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.social-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; text-decoration: none; flex-shrink: 0; transition: transform .2s, opacity .2s; }
.social-btn:hover { transform: scale(1.13); opacity: .88; }
.social-btn .fa,
.social-btn .fab  { color: white !important; font-size: 17px; }
@media (max-width: 992px) { 
    .nav-social-right { display: none; } 
    .nav-date-time-left { display: none; }
}
 
/* ══ NAVBAR attr-nav ══ */
nav.navbar.bootsnav .attr-nav,
nav.navbar.bootsnav.menu-center .attr-nav {
    position: absolute !important;
    right: 15px !important;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 99999 !important; /* Kept same as before */
}
nav.navbar.bootsnav .attr-nav > ul { display: flex !important; flex-direction: row !important; align-items: center; margin: 0; padding: 0; gap: 8px; }
nav.navbar.bootsnav .attr-nav > ul > li.user-item  { order: 1; }
nav.navbar.bootsnav .attr-nav > ul > li.search-item { order: 2; position: static !important; display: flex !important; align-items: center; }
 
@media (min-width: 993px) {
    .container > .navbar-collapse { padding: 0; position: relative; left: 0; padding-right: 60px; }
    nav.navbar.bootsnav ul.nav.navbar-nav { flex-wrap: nowrap !important; white-space: nowrap; }
    nav.navbar.navbar-inverse ul.nav > li > a { padding: 28px 3px; color: black; font-size: 11px; white-space: nowrap; }
    .top-socia-share li { display: none; }
}
 
/* Action Icon Buttons */
.action-icon-btn { display: flex !important; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: transparent; transition: background 0.2s; cursor: pointer; text-decoration: none !important; border: none; padding: 0; }
.action-icon-btn:hover { background: rgba(255, 36, 36, 0.1); }
.action-icon-btn i { font-size: 17px; color: #333 !important; transition: color 0.2s; margin: 0; }
.action-icon-btn:hover i { color: #ff2424 !important; }
 
/* Dropdown Reset */
.user-item .dd-button { margin: 0; }
li.search-item { position: static !important; display: flex !important; align-items: center; }
#btn-search2 { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: transparent; transition: background 0.2s; cursor: pointer; }
#btn-search2:hover { background: rgba(255, 36, 36, 0.1); }
#btn-search2 .fa-search { font-size: 16px; color: #333 !important; transition: color 0.2s; }
#btn-search2:hover .fa-search { color: #ff2424 !important; }
 
/* ══ SEARCH OVERLAY ══
   z-index set BELOW popup (2147483647) but above everything else */
#search-overlay  { position: fixed; top: 0; left: 0; right: 0; z-index: 1000000; opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity 0.25s ease, transform 0.25s ease; }
#search-overlay.open { opacity: 1; pointer-events: all; transform: translateY(0); }
#search-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 999999; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
#search-backdrop.open { opacity: 1; pointer-events: all; }
#search-panel { position: relative; z-index: 1000001; background: #fff; box-shadow: 0 8px 40px rgba(0,0,0,0.22); padding: 0; border-bottom: 3px solid #ff2424; }
#search-panel-inner { max-width: 780px; margin: 0 auto; padding: 22px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
#search-panel-label { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #ff2424; margin-bottom: 2px; }
#search-input-row { display: flex; align-items: center; gap: 0; border: 2px solid #e0e0e0; border-radius: 10px; overflow: hidden; background: #fafafa; transition: border-color 0.2s, box-shadow 0.2s; }
#search-input-row:focus-within { border-color: #ff2424; box-shadow: 0 0 0 3px rgba(255,36,36,0.12); background: #fff; }
#search-input-icon { padding: 0 14px; display: flex; align-items: center; color: #bbb; font-size: 16px; flex-shrink: 0; pointer-events: none; }
#search-panel-input { flex: 1; border: none; outline: none; background: transparent; font-size: 17px; font-weight: 400; color: #222; padding: 14px 8px 14px 0; min-width: 0; letter-spacing: 0.01em; }
#search-panel-input::placeholder { color: #bbb; font-weight: 300; }
#search-panel-submit { background: #ff2424; border: none; color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 0.5px; padding: 0 28px; height: 52px; cursor: pointer; flex-shrink: 0; transition: background 0.2s; white-space: nowrap; }
#search-panel-submit:hover { background: #cc0000; }
#search-close-row { display: flex; align-items: center; justify-content: space-between; }
#search-hint { font-size: 12px; color: #aaa; }
#search-panel-close { display: inline-flex; align-items: center; gap: 5px; background: none; border: 1px solid #e0e0e0; border-radius: 6px; color: #666; font-size: 12px; font-weight: 600; padding: 5px 12px; cursor: pointer; transition: all 0.2s; }
#search-panel-close:hover { background: #ff2424; border-color: #ff2424; color: #fff; }
 
@media (max-width: 768px) {
    #search-panel-inner { padding: 16px 15px 14px; }
    #search-panel-input { font-size: 15px; padding: 12px 6px 12px 0; }
    #search-panel-submit { padding: 0 18px; height: 46px; font-size: 13px; }
}
 
/* ══ RESTRUCTURED USER DROPDOWN ══ */
.user-item .dd-menu {
    min-width: 220px !important;
    padding: 10px 0 !important;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    background: #fff;
}
.user-item .dd-menu .dd-header {
    padding: 12px 20px 14px;
    text-align: left;
    line-height: 1.4;
}
.user-item .dd-menu .welcome-text {
    display: block;
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.user-item .dd-menu .user-name {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-item .dd-menu .dd-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 0;
    padding: 0;
}
.user-item .dd-menu li {
    margin-bottom: 0 !important;
    padding: 0;
}
.user-item .dd-menu .dd-link {
    display: flex !important;
    align-items: center;
    padding: 12px 20px !important;
    color: #555 !important;
    font-size: 14.5px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.user-item .dd-menu .dd-link i {
    margin-right: 12px;
    font-size: 18px;
    color: #aaa;
    transition: color 0.2s;
}
.user-item .dd-menu .dd-link:hover {
    background: #f8f9fa !important;
    color: #ff2424 !important;
}
.user-item .dd-menu .dd-link:hover i {
    color: #ff2424;
}
.user-item .dd-menu .dd-logout-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 12px 20px 6px;
    padding: 10px 15px !important;
    background: #fff0f0 !important;
    color: #ff2424 !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14.5px;
    transition: all 0.2s;
}
.user-item .dd-menu .dd-logout-btn i {
    margin-right: 8px;
}
.user-item .dd-menu .dd-logout-btn:hover {
    background: #ff2424 !important;
    color: #fff !important;
}
 
/* ══ STATE BAR ══ */
.state-bar { background: #ff2424; border-bottom: 2px solid #c00; padding: 0; overflow: hidden; white-space: nowrap; position: relative; }
.state-bar-inner { display: flex; align-items: center; }
.state-bar-label { background: #1a1a2e; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 9px 16px; white-space: nowrap; flex-shrink: 0; z-index: 2; display: flex; align-items: center; gap: 6px; }
.state-scroll-track { overflow: hidden; flex: 1; }
.state-scroll-list { display: inline-flex; align-items: center; animation: stateScroll 40s linear infinite; white-space: nowrap; }
.state-scroll-list:hover { animation-play-state: paused; }
@keyframes stateScroll { 0%   { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.state-link { display: inline-flex; align-items: center; gap: 5px; padding: 8px 16px; color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .2s; border-right: 1px solid rgba(255,255,255,.2); }
.state-link:hover { background: rgba(0,0,0,.25); color: #fff; text-decoration: none; }
.state-link .state-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.7); flex-shrink: 0; }
.state-pause-btn { background: rgba(0,0,0,.3); border: none; color: #fff; font-size: 13px; padding: 0 12px; height: 100%; cursor: pointer; flex-shrink: 0; align-self: stretch; display: flex; align-items: center; }
.state-pause-btn:hover { background: rgba(0,0,0,.5); }
 
/* ══ LANGUAGE BAR ══ */
.lang-bar { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); border-bottom: 2px solid #ff2424; padding: 7px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; cursor: grab; user-select: none; -webkit-user-select: none; position: relative; z-index: 1; }
.lang-bar::-webkit-scrollbar { display: none; }
.lang-bar.is-dragging { cursor: grabbing; }
.lang-bar.is-dragging .lang-btn { pointer-events: none; }
.lang-bar-inner { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 15px; flex-wrap: nowrap; min-width: max-content; margin: 0 auto; }
.lang-label { color: #aaa; font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-right: 4px; white-space: nowrap; flex-shrink: 0; }
.lang-btn { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 20px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.07); color: #e8e8e8; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: all .2s; text-decoration: none; font-family: inherit; line-height: 1.4; opacity: 1 !important; pointer-events: auto !important; }
.lang-btn:hover, .lang-btn.active { background: #ff2424; border-color: #ff2424; color: #fff; transform: translateY(-1px); box-shadow: 0 3px 10px rgba(255,36,36,.4); text-decoration: none; }
.lang-btn .lang-native  { font-size: 13px; }
.lang-btn .lang-english { font-size: 10px; color: rgba(255,255,255,.5); }
.lang-btn:hover .lang-english, .lang-btn.active .lang-english { color: rgba(255,255,255,.85); }
.lang-divider { width: 1px; height: 18px; background: rgba(255,255,255,.12); flex-shrink: 0; }
 
@media (max-width: 768px) {
    .lang-bar-inner { justify-content: flex-start; }
    .lang-btn { font-size: 12px; padding: 4px 9px; }
    .lang-label { font-size: 10px; }
    .state-link { font-size: 12px; padding: 7px 12px; }
    .state-bar-label { font-size: 11px; padding: 7px 10px; }
}
@media (max-width: 767px) { nav.navbar.bootsnav .navbar-header { padding-left:15px; padding-right:15px; height:62px; } }
 
.top-head select { height:37px; margin:0 5px; outline:none; border:none; border-radius:10px; margin-top:-10px; font-size:14px; background-color:#ff2424; color:white; box-shadow:0 4px 20px -5px rgba(0,0,0,1); }
#nav-adds  { width: 100%; }
#nav-hidden { margin-top: 0; }
.top-socia-share { margin: 3px; }
.footer-black p, .footer-black .textwidget, .footer-black .tweet-text, .footer-black .footer-cat li a, .footer-black .media-heading a, .footer-black .twitter-widget li .icon, .footer-black .sub-footer { color: black; }
.title-white { color: black; }
.fa { color: black; }
.btn-plush { background-color: #ff2424; }
.link-btn  { border:none; background-color:#ff2424; }
.link-btn:hover { border:none; background-color:#ff2424; }
 
@media (max-width: 992px) {
    nav.navbar.bootsnav.navbar-mobile ul.nav > li > a { padding:10px 0; margin-bottom:-1px; border:0; color:black; font-weight:700; font-size:18px; }
    .vspace { display: none; }
 
    /* SHOW AND PERFECTLY CENTER MOBILE LOGO */
    .navbar-header {
        display: flex;
        align-items: center;
        height: 62px;
        padding: 0 15px;
    }
    .navbar-toggle {
        z-index: 10;
        position: relative;
        margin: 0;
        float: none;
    }
    .ndexktop {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        height: 62px;
        z-index: 1;
        padding: 0;
    }
    nav.navbar .navbar-brand img.logo {
        max-height: 42px;
        width: auto;
        margin: 0;
        object-fit: contain;
    }
 
    .top-socia-share li { width:100%; margin-top:20px; }
    .fa { color: white; }
}
@media(max-width:986px) { #nav-hidden { margin-top:125px; } }
.ad-item { width: 100%; }
.ad-item img { width:100%; display:block; }
 
/* ══ STICKY NAVBAR — z-index kept below popup ══ */
.n1 {
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 9000;          /* Lowered from 99999 — popup sits above this */
}
 
nav.custom-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 79px;
    width: 100%;
    z-index: 8999;          /* Lowered from 99998 — popup sits above this */
}
 
@media(max-width:768px) {
    .n1 { display:none; }
    nav.custom-sticky {
        top: 0;
    }
 
    .nav-color { background-color:#ffdb58; background-image:none; }
    .mob-ico a { background-color:#6c757d !important; font-size:20px; border-radius:25%; padding:10px !important; margin:2px; }
    .mob-ico a .fa,
    .mob-ico a .fab,
    .mob-ico a svg { color: white !important; fill: white !important; }
    .top-socia-share { position:relative; right:10px; }
    .fa-user,.fa-search { color:black; }
}
 
nav.navbar.bootsnav .attr-nav { z-index: 9999 !important; }
nav.navbar.bootsnav .attr-nav ul li a { pointer-events: auto !important; }
nav.navbar.bootsnav .navbar-collapse { position: relative; z-index: 1; }
.read-more { color: #007bff !important; font-weight: 500 !important; text-decoration: none !important; transition: color 0.3s ease; }
.read-more:hover { color: #0056b3 !important; text-decoration: underline !important; }
 
div.search { display: none !important; }
body.search-open { overflow: hidden; }

/* REPLACEMENTS FOR INLINE STYLES */
.btn-facebook { background-color: #6c757d !important; }
.btn-instagram { background-color: #6c757d !important; }
.btn-xtwitter { background-color: #6c757d !important; }
.btn-threads { background-color: #6c757d !important; }
.btn-linkedin { background-color: #6c757d !important; }
.btn-youtube { background-color: #6c757d !important; }

.svg-white-17 { width: 17px; fill: white; }
.svg-white-15 { width: 15px; fill: white; }

.search-hint-kbd { background: #f0f0f0; border: 1px solid #ddd; border-radius: 4px; padding: 1px 6px; font-size: 11px; }

.nav-logo-img { height: 60px; width: auto; display: block; }

.dd-dropdown-label { margin-bottom: 0; }
.dd-link-danger { color: #d93025 !important; }

.search-form-flex { display: flex; flex: 1; align-items: center; }

.no-articles-msg { padding: 20px; color: #888; }
.subscribe-li { background-color:#ff2424; }
.dropdown-row { padding: 10px 5px; }
/* --- AD CAROUSEL STYLES (CSP COMPLIANT) --- */
.ad-img-leaderboard {
    width: 50% !important;
    height: 90px !important;
    object-fit: fill !important;
    display: block !important;
    margin: 0 auto !important;
    background: transparent !important;
}

.ad-img-standard {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
}

.ad-img-default-theme3 {
    width: 100% !important;
    max-width: 728px !important;
    height: 90px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
    background: #fff !important;
}
/* =========================================
   Banner & Carousel Elements
   ========================================= */
.leader { height: 180px; }

#img-banner { width: 270px; height: 200px; background-color: black; }
#img-banner img { width: 315px; height: 200px; object-fit: cover; }

#img-banner1 { margin-top: 10px; width: 270px; height: 200px; background-color: black; margin-bottom: 20px; }
#img-banner1 img { width: 315px; height: 200px; object-fit: cover; }

#mid-banner { width: 100%; height: 160px; margin-top: 30px; background-color: black; }

#carousel-container-cat-square-bottom { max-width: 320px; }
#carousel-container-cat-square-bottom .carousel-inner img { 
    width: 100% !important; 
    height: 250px; 
    object-fit: contain; 
    background: #fff; 
}

.cat-img { width: 42%; }

@media (max-width: 786px) {
    .marquee-wrapper { width: 92.5%; }
    .leader { height: 100px; }
    #carousel-container-cat-square-bottom { max-width: 100%; }
    #carousel-container-cat-square-bottom .carousel-inner img { height: auto; }
    .cat-img { width: 100%; }
}

/* =========================================
   Utility Classes & Structural Elements
   ========================================= */
.no-transform { transform: none; }
.mt-neg-34 { margin-top: -34px; }
.pl-10 { padding-left: 10px; }
.banner-margin { margin-top: 20px; margin-bottom: 30px; }
.flex-media { display: flex; }
.tab-widget-custom { width: 315px; }

/* =========================================
   Typography & Descriptions
   ========================================= */
.short-desc-cat { font-size: 12px; color: #666; margin-top: 5px; line-height: 1.4; }
.tab-desc { font-size: 11px; color: #666; margin-top: 3px; margin-bottom: 3px; line-height: 1.3; }
.empty-cat-msg { text-align: center; color: #999; padding: 20px; }

/* =========================================
   Buttons & Loaders
   ========================================= */
.btn-load-more {
    display: none; /* Toggled by jQuery */
    background-color: black;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}
.spin-container { display: flex; } /* Toggled by jQuery */

/* =========================================
   AJAX Rendered Elements
   ========================================= */
.ajax-media { margin-bottom: 15px; display: flex; }
.ajax-media-img { width: 100px; height: 70px; object-fit: cover; border-radius: 6px; }
.ajax-media-body { padding-left: 15px; }
.ajax-post-cat-link { font-size: 11px; font-weight: bold; color: #ff2424; text-transform: uppercase; }
.ajax-media-heading { margin-top: 5px; line-height: 1.4; }
.ajax-media-heading-link { color: #222; font-weight: 600; }
.ajax-desc { font-size: 12px; color: #666; margin-top: 5px; }
.ajax-hr { width: 100%; margin: 10px 0; border-color: #eee; }

/* ============================================================
   STRICT CUSTOM SPACING FOR NEWS ITEMS
   ============================================================ */
.news-list-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
}

.news-list-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.news-img-wrap {
    flex: 0 0 140px;
    max-width: 140px;
}

.news-card-img {
    width: 100%;
    height: 95px;
    object-fit: cover;
    border-radius: 4px;
    background-color: #f8f9fa;
    display: block;
}

.news-text-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 95px;
}

.news-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 8px 0;
}
.news-title a { color: #222; text-decoration: none; transition: color 0.2s; }
.news-title a:hover { color: #ff2424; }

.news-meta {
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
}

.news-read-btn {
    align-self: flex-start;
    padding: 4px 12px;
    font-size: 12px;
    color: #fff !important;
    background-color: #337ab7; 
    border-radius: 3px;
    text-decoration: none;
    transition: background-color 0.2s;
}
.news-read-btn:hover { background-color: #286090; text-decoration: none; }

.news-desc {
    font-size: 12px;
    color: #666;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 767px) {
    .news-list-item {
        flex-direction: column;
        gap: 10px;
        background: #fff;
        border: 1px solid #eaeaea;
        border-radius: 8px;
        padding: 12px;
        margin-bottom: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }
    .news-img-wrap {
        flex: none;
        width: 100%;
        max-width: 100%;
    }
    .news-card-img {
        height: auto;
        max-height: 220px;
        object-fit: contain;
        border-bottom: 1px solid #f4f4f4;
    }
    .news-text-wrap { min-height: auto; }
    .news-read-btn { width: auto; text-align: center; }
}

/* --- General UI Layout Fixes --- */
#async-livestream-box {
    display: none;
    width: 100%;
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
#async-livestream-box.livestream-visible { display: block; }
#async-livestream-box iframe, 
#async-livestream-box video {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    border: none;
    display: block;
}

.left-sidebar, .right-sidebar { padding: 10px; background-color: #f4f4f4; margin-top: 0px; }
.sidebar-ad { border: 1px solid #ccc; padding: 10px; background-color: #e9ecef; text-align: center; margin-bottom: 20px; }
.horizontal-ad { text-align: center; margin: 20px 0; }
.ad-item img { display: block; object-fit: fill; width: 100%; }

@media (max-width: 767px) { .nm { display: none; } }

/* --- Extracted Inline Styles --- */
.title-holder-home { margin-bottom: 15px; }
.title-shape-wide { width: 314px; }
.top-news-card { border: none; background: transparent; box-shadow: none; }
.top-news-card-header { background: transparent; padding: 0 0 15px 0; border-bottom: 2px solid #ff2424; margin-bottom: 15px; }
.top-news-heading { margin: 0; font-weight: bold; }
.top-news-card-body { padding: 0; }
.trending-posts-wrap { margin-top: 0; }
.trending-post-col { margin-bottom: 15px; }

/* --- Chatbot Elements --- */
#chatbot-icon-fixed { 
    position: fixed; bottom: 20px; right: 20px; background: #0f6a5f; color: white; 
    font-size: 28px; width: 60px; height: 60px; display: flex; align-items: center; 
    justify-content: center; border-radius: 50%; cursor: pointer; z-index: 2147483647; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); transition: transform 0.2s; 
}
#chatbot-box-fixed { 
    position: fixed; bottom: 90px; right: 20px; width: 350px; height: 500px; 
    display: none; /* Hidden by default */
    z-index: 2147483647; border-radius: 12px; overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); background: white; border: 1px solid #ddd; 
}
/* Class used by JS to safely toggle the chatbot without CSP errors */
#chatbot-box-fixed.chatbot-visible {
    display: block;
}
#chatbot-box-fixed iframe { width: 100%; height: 100%; border: none; background: white; }
.hidden-element { display: none !important; }

/* ============================================================
   FOOTER STYLES (Extracted for strict CSP)
   ============================================================ */
.footer-white-bg { background-color: white !important; }
.text-black { color: black !important; }
.text-red { color: #ff2424 !important; }
.mr-15 { margin-right: 15px; }
.sub-footer-white { color: white !important;
border-top: none !important;
    margin-top: 0 !important;
    
}

/* Force footer logo to match header size & apply blend mode */
.footer-logo img {
    width: 161px !important;
    height: 62px !important;
    display: block !important;
    mix-blend-mode: multiply;
}

/* Override Bootstrap btn-info to be black */
.btn-info { 
    color: white !important; 
    background-color: black !important; 
    border-color: black !important; 
}
.btn-info:hover { 
    color: white !important; 
    background-color: #333 !important; 
    border-color: #333 !important; 
}