* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Tiro Bangla", serif;
}

body {
    background-color: #fff;
    color: #1a1a1a;
    line-height: 1.4;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

hr {
    border: none;
    flex-shrink: 0;
    height: 0;
    min-height: 0;
    border-top: 1px solid #e0e0e0;
    margin: 15px 0;
}

.highlight-red {
    color: #ed1c24;
}

/* Header */
.top-header {
    border-bottom: 1px solid #e0e0e0;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}
.logo img {
    height: 40px;
}
.top-promos {
    display: flex;
    gap: 20px;
}
.promo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #333;
}
.promo-item img {
    width: 60px;
    height: 40px;
    object-fit: cover;
}

/* Navigation */
.sticky-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff; /* Ensure it blocks content underneath */
}
.navbar {
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
}



.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
}
.nav-links {
    display: flex;
    gap: 15px;
    list-style: none;
    overflow-x: auto;
    white-space: nowrap;
    flex: 1;
    -ms-overflow-style: none;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, black 0%, black calc(100% - 20px), transparent 100%);
    mask-image: linear-gradient(to right, black 0%, black calc(100% - 20px), transparent 100%);
    padding-right: 25px;
}
.nav-links::-webkit-scrollbar {
    display: none;
}
.nav-links a {
    font-size: 15px;
    font-weight: 600;
    color: #000;
}
.nav-links a:hover {
    color: #ed1c24;
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    font-weight: 600;
}


.date-text {
    white-space: nowrap;
}

/* Main Content */
.main-content {
    margin-top: 25px;
}

/* Top News Grid Desktop */
.news-grid-top {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    /* border-bottom: 1px solid #e0e0e0; */
}

.grid-col {
    display: block;
}


.article {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: justify;
}

.article img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.article-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}
.article-title:hover {
    color: #ed1c24;
}

.article-excerpt {
    font-size: 15px;
    color: #4a4a4a;
}

.article-meta {
    font-size: 13px;
    color: #757575;
}

.featured-article .article-title {
    font-size: 32px;
}
.featured-article .article-excerpt {
    font-size: 18px;
}
.featured-article img {
    margin-bottom: 10px;
}

.row-layout {
    flex-direction: row;
    justify-content: space-between;
}
.row-layout .article-content {
    flex: 1;
    padding-right: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.row-layout .article-title {
    font-size: 16px;
}
.row-layout img {
    width: 110px;
    height: 75px;
}

.news-grid-middle {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}


/* Split Layout for Featured Article */
.split-layout {
    flex-direction: row !important;
    gap: 20px;
    align-items: flex-start;
}
.split-layout img {
    flex: 1;
    width: 50% !important;
}
.split-layout .article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.split-layout .article-title {
    font-size: 26px;
    line-height: 1.2;
}

/* Sub Articles in Center */
.center-sub-articles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.sub-article {
    flex-direction: column !important;
    gap: 10px;
}

.sub-article .article-title {
    font-size: 16px;
}








/* Wrap Layout for Sub Articles */
.wrap-layout {
    display: block;
}
.wrap-layout p {
    text-align: justify;
    text-justify: inter-word;
    margin: 0;
}
.wrap-layout img {
    float: right;
    width: 50% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    margin-left: 10px;
    margin-bottom: 5px;
    object-fit: cover;
}
.wrap-layout .article-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    display: inline;
}
.wrap-layout .article-excerpt {
    font-size: 14px;
    color: #4a4a4a;
    display: inline;
}
.wrap-layout .article-meta {
    display: block;
    margin-top: 5px;
    clear: both;
}



.cat-wrap-left {
    display: block;
}
.cat-wrap-left p {
    text-align: justify;
    text-justify: inter-word;
    margin: 0;
}
.cat-wrap-left img {
    float: left;
    width: 50% !important;
    height: auto !important;
    aspect-ratio: 16 / 10;
    margin-right: 15px;
    margin-bottom: 8px;
    object-fit: cover;
}
.cat-wrap-left .article-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    display: inline;
    line-height: 1.2;
}
.news-grid-top .featured-article.cat-wrap-left .article-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
}
.cat-wrap-left .article-excerpt {
    font-size: 18px;
    color: #4a4a4a;
    display: inline;
}
.cat-wrap-left .article-meta {
    display: block;
    margin-top: 5px;
    clear: both;
}

/* Category Side Columns: Float Right Text Wrap */
.cat-wrap-right {
    display: block;
}
.cat-wrap-right .cat-wrap-content {
    text-align: justify;
    text-justify: inter-word;
    margin: 0;
}
.cat-wrap-right .cat-thumb-right {
    float: right;
    margin-left: 12px;
    margin-bottom: 6px;
    display: block;
}
.cat-wrap-right .cat-thumb-right img {
    width: 110px !important;
    height: 75px !important;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}
.cat-wrap-right .article-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    display: inline;
    line-height: 1.35;
}
.cat-wrap-right .article-excerpt {
    font-size: 14px;
    color: #4a4a4a;
    line-height: 1.4;
    display: inline;
}
.cat-wrap-right .article-meta {
    display: block;
    margin-top: 6px;
    clear: both;
    font-size: 13px;
    color: #757575;
}

/* Category Section */
.category-section {
    border-top: 3px solid #666;
    padding-top: 15px;
    margin-top: 40px;
    margin-bottom: 40px;
}
.category-header {
    margin-bottom: 20px;
}
.category-header h2 {
    font-size: 22px;
    font-weight: bold;
    color: #1a1a1a;
}
.category-header h2 .highlight-red {
    font-size: 20px;
}
.category-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
}
.category-col {
    display: block;
}
.category-col.center-col {
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    padding: 0 20px;
}


/* News Ticker */
.news-ticker {
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    padding: 8px 0;
}
.ticker-container {
    display: flex;
    align-items: center;
}
.ticker-marquee {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    mask-image: linear-gradient(to right, transparent 0, black 15px, black calc(100% - 15px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 15px, black calc(100% - 15px), transparent 100%);
}
.ticker-track {
    display: inline-flex;
    white-space: nowrap;
    font-size: 15px;
    padding-top: 3px;
    will-change: transform;
}
.ticker-content {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}
.ticker-marquee a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.15s ease;
}
.ticker-marquee a:hover {
    color: #0056b3;
}
.ticker-label-box {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 2px solid #ff0000;
    flex-shrink: 0;
    z-index: 2;
}
.ticker-label {
    color: #ff0000;
    font-weight: bold;
    font-size: 16px;
}
@keyframes tickerSeamlessScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}


/* Footer */
.site-footer {
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 45px 0 25px 0;
    margin-top: 50px;
}
.footer-menus {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
    margin-bottom: 35px;
}

/* Universal Heading Typography for all 4 columns */
.footer-column h1,
.footer-column h2,
.footer-column h3,
.footer-column h4,
.footer-column h5,
.footer-column h6,
.footer-column p:first-child strong,
.footer-column > strong:first-child {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 16px 0 !important;
    padding: 0 0 8px 0 !important;
    border-bottom: 2px solid #e2e8f0;
    line-height: 1.4 !important;
    display: block;
    letter-spacing: -0.2px;
}

/* Strict List & Bullet/Number Reset */
.footer-column ul,
.footer-column ol {
    list-style: none !important;
    list-style-type: none !important;
    padding-left: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}
.footer-column ul li,
.footer-column ol li {
    list-style: none !important;
    list-style-type: none !important;
    padding-left: 0 !important;
    margin: 0 0 10px 0 !important;
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
}
.footer-column ul li::marker,
.footer-column ol li::marker,
.footer-column li::before,
.footer-column li::after {
    display: none !important;
    content: none !important;
}
.footer-column .ql-ui {
    display: none !important;
}

/* Navigation Links */
.footer-column a {
    color: #475569 !important;
    text-decoration: none !important;
    font-size: 14px;
    display: inline-block;
    transition: all 0.2s ease-in-out;
}
.footer-column a:hover {
    color: #ed1c24 !important;
    text-decoration: none !important;
    transform: translateX(3px);
}
.footer-column p {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
}

/* Footer Bottom & Copyright */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2e8f0;
    padding-top: 22px;
}
.footer-bottom-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.footer-logo {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.3px;
}
.copyright {
    color: #64748b;
    font-size: 13.5px;
}
.copyright p {
    margin: 0 !important;
    display: inline !important;
}

/* Premium Social Media Icons */
.footer-bottom-right {
    display: flex;
    align-items: center;
}
.footer-bottom-right .social-icons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.footer-bottom-right .social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}
.footer-bottom-right .social-icons a:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}


/* Single Page Layout */
.single-page-layout {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 40px;
    margin-top: 20px;
    margin-bottom: 40px;
}

/* Main Article */
.breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}
.breadcrumb a {
    color: #0056b3;
    text-decoration: none;
}
.article-headline {
    font-size: 36px;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #1a1a1a;
}
.article-author-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
    margin-bottom: 20px;
    color: #555;
    font-size: 14px;
}
.social-share {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.share-btn {
    padding: 5px 15px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    border-radius: 3px;
}
.share-btn.fb { background-color: #3b5998; }
.share-btn.tw { background-color: #1da1f2; }
.share-btn.wa { background-color: #25d366; }

.article-main-image {
    margin-bottom: 30px;
}
.article-main-image img {
    width: 100%;
    height: auto;
}
.image-caption {
    display: block;
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}
.article-body {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}
.article-body p {
    margin-bottom: 20px;
    text-align: justify;
}
.ad-native-article-p {
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    text-align: justify;
    margin-bottom: 20px;
    font-family: inherit;
}
.ad-native-article-p a {
    color: #0b57d0;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color 0.15s ease-in-out;
}
.ad-native-article-p a:hover {
    color: #0842a0;
}
.article-body h2 {
    font-size: 24px;
    margin: 30px 0 15px 0;
}
.article-body h1, .article-body h3, .article-body h4, .article-body h5, .article-body h6 {
    margin: 24px 0 12px 0;
    color: #0f172a;
    font-weight: 700;
}
.article-body blockquote {
    border-left: 4px solid #0284c7;
    background: #f8fafc;
    margin: 20px 0;
    padding: 14px 20px;
    font-style: italic;
    color: #334155;
    border-radius: 0 6px 6px 0;
}
.article-body hr {
    border: 0;
    border-top: 2px dashed #cbd5e1;
    margin: 30px 0;
}
.article-body table {
    border-collapse: collapse;
    width: 100%;
    margin: 25px 0;
    font-size: 16px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border-radius: 6px;
    overflow: hidden;
}
.article-body table th,
.article-body table td {
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    text-align: left;
}
.article-body table th {
    background: #f1f5f9;
    font-weight: 700;
    color: #0f172a;
}
.article-body table tr:nth-child(even) td {
    background: #f8fafc;
}
.article-body table tr:hover td {
    background: #f0f9ff;
}
.article-body pre {
    background: #0f172a;
    color: #f8fafc;
    padding: 14px 18px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 14px;
    margin: 20px 0;
}
.article-body code {
    background: #f1f5f9;
    color: #0284c7;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 90%;
}
.article-body pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 15px 0;
}

/* Sidebar */
.single-sidebar {
    padding-left: 20px;
    border-left: 1px solid #e0e0e0;
}
.sidebar-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sidebar-title {
    font-size: 20px;
    font-weight: bold;
    color: #1a1a1a;
    text-decoration: none;
    line-height: 1.3;
}
.sidebar-title.highlight-red {
    color: #ff0000;
}
.sidebar-title:hover {
    color: #0056b3;
}
.sidebar-item img {
    width: 100%;
    height: auto;
}
.sidebar-excerpt {
    font-size: 16px;
    color: #444;
    margin: 0;
    line-height: 1.4;
}
.sidebar-meta {
    font-size: 13px;
    color: #777;
}



/* Clean Full-Width Dynamic Ads */
.ee-spotlight-unit,
.dynamic-ad-slot {
    width: 100%;
    margin: 12px 0;
    overflow: hidden;
    position: relative;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
}

.ee-spotlight-unit a,
.dynamic-ad-slot a {
    display: block;
    width: 100%;
    text-decoration: none;
}

.ee-spotlight-unit img,
.dynamic-ad-slot img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.header-right-desktop .ee-spotlight-unit,
.header-right-desktop .dynamic-ad-slot {
    max-width: 728px;
    margin: 0 0 0 auto;
}

/* Banner Ribbon Units */
.ee-ribbon-top,
.ad-banner-top {
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}
.ee-ribbon-top .ee-spotlight-unit,
.ee-ribbon-top .dynamic-ad-slot {
    margin: 0 !important;
}
.ee-content-box,
.ad-placeholder {
    width: 100%;
    height: 90px;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
@media (max-width: 834px) {
    .ee-content-box,
    .ad-placeholder {
        height: 70px;
    }
}
@media (max-width: 600px) {
    .ee-content-box,
    .ad-placeholder {
        height: 50px;
        font-size: 12px;
    }
}


.ee-box-sq,
.ad-placeholder-square {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 15px 0;
}


.header-partner-box,
.header-ad-placeholder {
    width: 728px;
    height: 90px;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}


.ee-box-std,
.ad-placeholder-4-3 {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0px; 
}


.ee-box-wide,
.ad-placeholder-16-9 {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}


.ee-ribbon-bottom,
.ad-banner-bottom {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 20px;
    margin-bottom: 30px;
}
.ee-ribbon-bottom .ee-box-wide,
.ee-ribbon-bottom .ad-placeholder-16-9,
.ad-banner-bottom .ad-placeholder-16-9 {
    grid-column: 2;
}
@media (max-width: 834px) {
    .ee-ribbon-bottom,
    .ad-banner-bottom {
        grid-template-columns: 1fr;
    }
    .ee-ribbon-bottom .ee-box-wide,
    .ee-ribbon-bottom .ad-placeholder-16-9,
    .ad-banner-bottom .ad-placeholder-16-9 {
        grid-column: 1;
    }
}


.category-center-box,
.category-center-ad {
    width: 100%;
    height: 90px;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
}
@media (max-width: 834px) {
    .category-center-box,
    .category-center-ad {
        height: 70px;
    }
}
@media (max-width: 600px) {
    .category-center-box,
    .category-center-ad {
        height: 50px;
        font-size: 12px;
    }
}

/* Media Queries */

/* Tablet Landscape (< 1280px) */
@media (max-width: 1280px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-areas: 
            "left center center"
            "right right right";
    }
    .category-col.side-col:first-child {
        grid-area: left;
    }
    .category-col.center-col {
        grid-area: center;
        border-right: none;
    }
    .category-col.side-col:last-child {
        grid-area: right;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .category-col.side-col:last-child hr {
        display: none;
    }
    .category-col.side-col:last-child .row-layout {
        flex-direction: column !important;
    }
    .category-col.side-col:last-child .row-layout img {
        width: 100% !important;
        height: auto !important;
        margin-top: 10px;
        aspect-ratio: 16 / 9;
    }
    .category-col.side-col:last-child .cat-wrap-right .cat-thumb-right {
        float: none;
        margin-left: 0;
        margin-bottom: 8px;
    }
    .category-col.side-col:last-child .cat-wrap-right .cat-thumb-right img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
    }

    .top-promos, .header-partner-box, .header-ad-placeholder {
        display: none;
    }
    
    .news-grid-top {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-areas: 
            "left center center"
            "right right right";
        gap: 20px;
    }
    
    .grid-left {
        grid-area: left;
    }
    
    .grid-center {
        grid-area: center;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 25px;
        margin-bottom: 0;
    }
    
    .grid-right {
        grid-area: right;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .grid-right hr {
        display: none;
    }
    
    .news-grid-middle {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .center-sub-articles {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Make row-layout articles in grid-right stack vertically since columns are narrower */
    .grid-right .row-layout {
        flex-direction: column !important;
    }
    .grid-right .row-layout img {
        width: 100% !important;
        height: auto !important;
        margin-top: 10px;
        aspect-ratio: 16 / 9;
    }
    .grid-right .cat-wrap-right .cat-thumb-right {
        float: none;
        margin-left: 0;
        margin-bottom: 8px;
    }
    .grid-right .cat-wrap-right .cat-thumb-right img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
    }
}

/* Tablet Portrait (< 834px) */
@media (max-width: 834px) {

    .single-page-layout {
        grid-template-columns: 1fr;
    }
    .single-sidebar {
        padding-left: 0;
        border-left: none;
        border-top: 2px solid #000;
        padding-top: 30px;
        margin-top: 20px;
    }
    .article-headline {
        font-size: 28px;
    }
    .article-author-time {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .footer-menus {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
    .category-grid {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "center"
            "left"
            "right";
    }
    .category-col.center-col {
        border-left: none;
        border-right: none;
        padding: 0;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 15px; /* Matches hr margin */
        margin-bottom: -5px; /* Adjust for grid gap to total 15px */
    }
    .category-col.side-col:first-child {
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 15px;
        margin-bottom: -5px;
    }
    .category-col.side-col:last-child {
        gap: 0px;
        grid-template-columns: repeat(2, 1fr);
    }
    .nav-actions .date-text {
        display: none;
    }
    .grid-left, .grid-right {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-grid-middle {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (< 600px) */
@media (max-width: 600px) {

    .wrap-layout img {
        width: 100% !important;
    }

    .grid-right {
        display: block !important;
    }
    .grid-right hr {
        display: block;
    }
    .grid-right .row-layout {
        flex-direction: row !important;
    }
    .grid-right .row-layout img {
        width: 110px !important;
        height: 80px !important;
        aspect-ratio: 4/3 !important;
        margin-top: 0;
    }

    .category-col.side-col:last-child {
        gap: 0px;
        display: flex;
        flex-direction: column;
    }
    .category-col.side-col:last-child hr {
        display: block;
    }
    .category-col.side-col:last-child .row-layout {
        flex-direction: row !important;
    }
    .category-col.side-col:last-child .row-layout img {
        width: 110px !important;
        height: 80px !important;
        aspect-ratio: 4/3;
        margin-top: 0;
    }
    .category-col.side-col .cat-wrap-right .cat-thumb-right img,
    .grid-right .cat-wrap-right .cat-thumb-right img {
        width: 105px !important;
        height: 72px !important;
    }
    .category-col.side-col:first-child hr {
        display: block;
    }

    .footer-menus {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px 15px;
    }
    .footer-column h4, .footer-column h3 {
        margin-bottom: 12px;
        font-size: 15px;
    }
    .footer-column ul li {
        margin-bottom: 8px;
    }
    .site-footer {
        padding: 30px 0 20px 0;
    }
    
    
    .news-grid-middle {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 834px) {
    .split-layout {
        flex-direction: column !important;
    }
    .split-layout img {
        width: 100% !important;
    }
    .center-sub-articles {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Ad Grid */
.ad-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}
.ad-grid .article img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border: 1px solid #ddd;
}

@media (max-width: 834px) {
    .grid-left, .grid-right {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .grid-left, .grid-right {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 834px) {
    .news-grid-top {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "center"
            "left"
            "right";
    }
    .grid-center {
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 15px;
        margin-bottom: -5px;
    }
    .grid-left {
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 15px;
        margin-bottom: -5px;
    }
    .grid-left {
        display: block !important;
        height: auto;
        min-height: auto;
        overflow: visible;
    }
    .grid-left hr {
        display: block;
    }
}

/* ==========================================================================
   MOBILE-FIRST PRIORITY ENHANCEMENTS & INTERACTIVE PORTAL COMPONENTS
   ========================================================================== */

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Reading Progress Bar */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: #ed1c24;
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* Top Header Mobile-First Layout */
.header-left-action {
    display: none;
}
.header-mobile-actions {
    display: none;
}
.mobile-ticker-date-bar {
    display: none;
}
.logo {
    display: flex;
    flex-direction: column;
}
.mobile-date-sub {
    display: none;
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}
.mobile-menu-btn,
.search-toggle-btn {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    color: #1a1a1a;
    border-radius: 4px;
    min-width: 40px;
    min-height: 40px;
    padding: 6px 12px;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.15s, color 0.15s;
}
.mobile-menu-btn:hover,
.search-toggle-btn:hover {
    background: #ed1c24;
    color: #fff;
    border-color: #ed1c24;
}
.header-mobile-actions {
    display: none;
}
.desktop-search-btn span {
    font-size: 14px;
    font-weight: 600;
}

/* Active Category Pill Indicator */
.nav-links a.active {
    color: #ed1c24;
    border-bottom: 2px solid #ed1c24;
    padding-bottom: 4px;
}

/* Slide-Down Search Drawer */
.header-search-drawer {
    display: none;
    background: #fafafa;
    border-top: 1px solid #e0e0e0;
    padding: 12px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.header-search-drawer.open {
    display: block;
}
.header-search-form {
    display: flex;
    gap: 8px;
    align-items: center;
}
.header-search-form input[type="search"] {
    flex: 1;
    padding: 10px 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
}
.header-search-form input[type="search"]:focus {
    border-color: #ed1c24;
}
.search-submit-btn {
    background: #ed1c24;
    color: #fff;
    border: none;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}
.search-close-btn {
    background: transparent;
    border: 1px solid #ccc;
    color: #555;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
}

/* Mobile Off-Canvas Navigation Drawer */
.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.mobile-drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    background: #fff;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 16px rgba(0,0,0,0.15);
}
.mobile-nav-drawer.open {
    transform: translateX(0);
}
.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
}
.mobile-drawer-title {
    font-size: 20px;
    font-weight: 700;
    color: #ed1c24;
}
.mobile-drawer-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #333;
    width: 36px;
    height: 36px;
    cursor: pointer;
}
.mobile-drawer-body {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}
.mobile-drawer-search {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
}
.mobile-drawer-search input {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
}
.mobile-drawer-search button {
    background: #ed1c24;
    color: #fff;
    border: none;
    padding: 0 14px;
    border-radius: 4px;
    cursor: pointer;
}
.mobile-drawer-section-label {
    font-size: 13px;
    color: #888;
    font-weight: 700;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}
.mobile-drawer-links {
    list-style: none;
}
.mobile-drawer-links li {
    border-bottom: 1px solid #f2f2f2;
}
.mobile-drawer-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 4px;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}
.mobile-drawer-links a:hover {
    color: #ed1c24;
}

/* Image Link Wrappers inside Split & Row Layouts */
.split-layout .lead-img-link {
    flex: 1;
    width: 50%;
    display: block;
}
.split-layout .lead-img-link img {
    width: 100% !important;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    margin-bottom: 0;
}
.row-layout .row-thumb-link {
    flex-shrink: 0;
    display: block;
}
.row-layout .row-thumb-link img {
    width: 110px;
    height: 75px;
    object-fit: cover;
}

/* Single Article Enhancements & Reader Toolbar */
.article-kicker {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}
.reader-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.share-btn,
.reader-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
}
.reader-tool-btn {
    background: #f5f5f5;
    color: #222;
    border-color: #ddd;
    font-weight: 600;
}
.reader-tool-btn:hover {
    background: #e9e9e9;
}
.font-resize-group {
    display: inline-flex;
    gap: 4px;
    margin-left: auto;
}
.ai-editorial-box {
    background: #fff8f8;
    border-left: 4px solid #ed1c24;
    padding: 18px 20px;
    margin: 25px 0;
    border-radius: 4px;
}
.related-news-section {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 2px solid #1a1a1a;
}
.related-heading {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 18px;
}
.static-page-card {
    max-width: 900px;
    margin: 20px auto 50px auto;
}

/* Category & Search Components */
.category-desc-text {
    color: #666;
    font-size: 15px;
    margin-top: 4px;
}
.pagination-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 35px 0 15px 0;
}
.page-btn {
    min-width: 40px;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid #ddd;
    background: #fff;
    color: #1a1a1a;
    font-weight: 600;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.page-btn.active,
.page-btn:hover {
    background: #ed1c24;
    color: #fff;
    border-color: #ed1c24;
}
.search-page-box {
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 25px;
}
.search-page-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.search-page-input {
    flex: 2;
    min-width: 200px;
    padding: 10px 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.search-page-select {
    flex: 1;
    min-width: 140px;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
}
.search-page-btn {
    background: #ed1c24;
    color: #fff;
    border: none;
    padding: 10px 22px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
}
.search-summary-text {
    margin-top: 12px;
    font-size: 15px;
    color: #555;
}
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.search-result-card {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 15px;
}
.empty-state-box {
    text-align: center;
    padding: 50px 20px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 6px;
    margin: 25px 0;
}

/* Back to Top Floating Button */
.back-to-top-btn {
    position: fixed;
    bottom: 24px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ed1c24;
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    font-size: 18px;
    cursor: pointer;
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
}
.back-to-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile-First Responsive Breakpoints (< 834px and < 600px) */
@media (max-width: 834px) {
    .header-container {
        display: grid;
        grid-template-columns: 44px 1fr 44px;
        align-items: center;
        padding: 10px 15px;
        gap: 8px;
    }
    .header-left-action {
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    .header-left-action .mobile-menu-btn {
        display: inline-flex;
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        padding: 0;
        background: transparent;
        border: 0;
        font-size: 20px;
        color: #1a1a1a;
    }
    .logo {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin: 0 auto;
        width: 100%;
    }
    .logo a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .logo img {
        height: 38px;
        max-width: 100%;
        object-fit: contain;
    }
    .header-right-desktop {
        display: none !important;
    }
    .header-mobile-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
    .header-mobile-actions .search-toggle-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        padding: 0;
        background: transparent;
        border: 0;
        font-size: 19px;
        color: #1a1a1a;
    }
    .header-left-action .mobile-menu-btn:hover,
    .header-left-action .mobile-menu-btn:active,
    .header-mobile-actions .search-toggle-btn:hover,
    .header-mobile-actions .search-toggle-btn:active {
        background: transparent !important;
        color: #ed1c24 !important;
        border: 0 !important;
    }
    .mobile-date-sub {
        display: none !important;
    }
    .desktop-search-btn {
        display: none;
    }

    /* Category Navigation: Increased Vertical Padding on Mobile */
    .nav-container {
        padding: 12px 15px;
    }
    .nav-links {
        gap: 18px;
    }
    .nav-links a {
        font-size: 15px;
        padding: 4px 0;
        display: inline-block;
    }
    .nav-links a.active {
        padding-bottom: 4px;
    }

    /* Mobile Date Bar below Latest Ticker Scrollbar */
    .mobile-ticker-date-bar {
        display: block;
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
        padding: 6px 15px;
        font-size: 13px;
        color: #64748b;
        font-weight: 500;
        text-align: left;
    }
    .mobile-ticker-date-bar .container {
        display: flex;
        align-items: center;
        padding: 0;
    }
    .mobile-ticker-date-bar i {
        color: #ed1c24;
        margin-right: 6px;
        font-size: 12px;
    }
    .split-layout .lead-img-link {
        width: 100% !important;
    }
    .featured-article .article-title {
        font-size: clamp(22px, 5vw, 28px);
    }
    .cat-wrap-left img {
        float: none !important;
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 10px !important;
        display: block;
    }
    .cat-wrap-left .article-title {
        font-size: 22px;
        display: block;
        margin-bottom: 6px;
    }
    .search-results-grid {
        grid-template-columns: 1fr;
    }
    .ee-ribbon-top,
    .ad-banner-top {
        margin-top: 10px !important;
        margin-bottom: 10px !important;
    }
    .container.ee-ribbon-top {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    .main-content {
        margin-top: 10px !important;
    }
    .single-page-layout {
        margin-top: 0 !important;
    }
    .mobile-hide-extra {
        display: none !important;
    }
}

@media (max-width: 600px) {
    .header-container {
        grid-template-columns: 42px 1fr 42px;
        padding: 10px 12px;
        gap: 6px;
    }
    .logo img {
        height: 34px;
    }
    .nav-container {
        padding: 12px 12px;
    }
    .nav-links {
        gap: 16px;
    }
    .nav-links a {
        font-size: 14.5px;
        padding: 3px 0;
    }
    .mobile-ticker-date-bar {
        padding: 5px 12px;
        font-size: 12.5px;
    }
    .center-sub-articles {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    .wrap-layout img {
        float: right !important;
        width: 110px !important;
        height: 75px !important;
        aspect-ratio: 4 / 3 !important;
        margin-left: 12px !important;
    }
    .ee-ribbon-top,
    .ad-banner-top {
        margin-top: 6px !important;
        margin-bottom: 6px !important;
    }
    .container.ee-ribbon-top {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    .container.main-content {
        padding-top: 4px !important;
    }
    .reader-tool-btn.print-btn {
        display: none !important;
    }
    .main-content {
        margin-top: 0 !important;
    }
    .single-page-layout {
        margin-top: 0 !important;
        margin-bottom: 20px !important;
    }
    .breadcrumb {
        margin-top: 0 !important;
        margin-bottom: 8px !important;
    }
}

/* ==========================================================================
   COMPREHENSIVE MOBILE RESPONSIVENESS ENHANCEMENTS (320px - 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Prevent horizontal overflow across the entire viewport */
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }

    /* 2. Make multi-column data tables inside articles horizontally scrollable on mobile */
    .article-body table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        white-space: nowrap !important;
    }
    .article-body table th,
    .article-body table td {
        padding: 8px 10px !important;
        font-size: 14px !important;
        white-space: normal !important;
        min-width: 110px !important;
    }

    /* 3. Reader Share & Font Resize Toolbar clean mobile layout */
    .reader-toolbar {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 8px 0 !important;
        margin-bottom: 20px !important;
        flex-wrap: wrap !important;
    }
    .share-btn,
    .reader-tool-btn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 15px !important;
        border-radius: 6px !important;
        flex-shrink: 0 !important;
        overflow: hidden !important;
    }
    .share-btn span,
    .reader-tool-btn span {
        display: none !important;
    }
    .font-resize-group {
        display: inline-flex !important;
        gap: 5px !important;
        margin-left: auto !important;
    }
    .font-resize-group .reader-tool-btn {
        font-size: 14px !important;
        font-weight: 700 !important;
    }

    /* 4. Header Search Drawer fit on narrow 320px-375px phones */
    .header-search-form {
        gap: 6px !important;
    }
    .header-search-input {
        padding: 8px 12px !important;
        font-size: 14px !important;
        min-width: 0 !important;
    }
    .search-submit-btn {
        padding: 8px 12px !important;
        font-size: 13px !important;
        white-space: nowrap !important;
    }
    .search-close-btn {
        width: 36px !important;
        height: 36px !important;
        flex-shrink: 0 !important;
    }

    /* 5. B2B Ad Preview Box mobile responsiveness */
    .b2b-ad-preview-box {
        padding: 12px !important;
    }
    .b2b-ad-preview-box .b2b-preview-badge {
        position: static !important;
        display: inline-block !important;
        margin-bottom: 8px !important;
        border-radius: 4px !important;
    }
    .b2b-ad-preview-box .b2b-preview-header-row {
        padding-right: 0 !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px 12px !important;
    }
    .container.ee-ribbon-top {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    .container.main-content {
        padding-top: 4px !important;
    }
    .reader-tool-btn.print-btn {
        display: none !important;
    }
    .lead-title {
        font-size: 21px !important;
    }
    .article-main-title {
        font-size: 22px !important;
        line-height: 1.35 !important;
    }
    .cat-header-title {
        font-size: 22px !important;
    }
    .back-to-top-btn {
        bottom: 18px !important;
        right: 16px !important;
        width: 40px !important;
        height: 40px !important;
    }
    .footer-bottom {
        text-align: center;
        justify-content: center;
    }
    .footer-bottom-left {
        flex-direction: column;
        gap: 6px;
    }
    .social-icons {
        justify-content: center;
    }
}

/* Print Friendly Mode */
@media print {
    .top-header, .sticky-wrapper, .ee-ribbon-top, .ad-banner-top, .single-sidebar, .reader-toolbar, .related-news-section, .site-footer, .back-to-top-btn, .ee-content-box, .ad-placeholder, .ee-box-wide, .ad-placeholder-16-9, .ee-box-std, .ad-placeholder-4-3, .ee-spotlight-unit, .dynamic-ad-slot {
        display: none !important;
    }
    .single-page-layout {
        display: block !important;
    }
}
