/* ==========================================================================
   LeadNews Wp - Master Theme Stylesheet
   Replicating Lead News by Techbari Design & UX
   ========================================================================== */

/* 1. Local Fonts */
@import url('../fonts/local-fonts.css');

:root {
    --primary-color: #B80000;
    --primary-dark: #8c1f22;
    --primary-light: #fef2f2;
    --primary-soft: #fff5f5;
    --font-primary: 'SolaimanLipi', 'Noto Sans Bengali', sans-serif;
    --font-heading: 'SolaimanLipi', 'Noto Sans Bengali', sans-serif;
    --font-base-size: 16px;
    --font-line-height: 1.6;
    --font-heading-weight: 700;
    --font-article-size: 18px;
    --font-article-line-height: 1.8;
}

html, body {
    max-width: 100%;
    overflow-x: clip;
    font-family: var(--font-primary) !important;
}

/* Universal Typography Overrides */
html, body, div, p, span, h1, h2, h3, h4, h5, h6, a, li, input, select, textarea, button, td, th, label, small, b, strong, article, section, header, nav, footer {
    font-family: var(--font-primary) !important;
}

h1, h2, h3, h4, h5, h6, .news-title, .lead-title, .heading-font {
    font-family: var(--font-heading) !important;
    font-weight: var(--font-heading-weight);
}

.news-content, .news-content p, .news-content div, .news-content span, .news-content blockquote {
    font-family: var(--font-primary) !important;
    font-size: var(--font-article-size) !important;
    line-height: var(--font-article-line-height) !important;
}

/* ==========================================================================
   Desktop Header & Sticky Navigation
   ========================================================================== */
#desktop-main-header {
    width: 100%;
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1), background-color 0.3s ease !important;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    position: sticky !important;
    top: 0 !important;
    background-color: #ffffff !important;
    z-index: 999;
}

html.dark #desktop-main-header {
    background-color: #18181b !important;
}

#desktop-main-header.smart-hide-top {
    transform: translate3d(0, var(--desktop-top-wrapper-height, -100px), 0) !important;
}

#desktop-main-header .main_bar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #cfcfcf !important;
    padding: 14px 0 !important;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

html.dark #desktop-main-header .main_bar {
    background-color: #18181b !important;
    border-bottom: 1px solid #27272a !important;
    color: #f4f4f5 !important;
}

#desktop-main-header .headerMenuBtn.hamburger,
#desktop-main-header #open_search {
    font-size: 21px !important;
    color: #222222 !important;
    cursor: pointer;
    transition: color 0.2s ease !important;
    text-decoration: none !important;
}

html.dark #desktop-main-header .headerMenuBtn.hamburger,
html.dark #desktop-main-header #open_search {
    color: #f4f4f5 !important;
}

#desktop-main-header .headerMenuBtn.hamburger:hover,
#desktop-main-header #open_search:hover {
    color: var(--primary-color) !important;
}

.pc_manubar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.12) !important;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

html.dark .pc_manubar {
    background-color: #09090b !important;
    border-bottom: 1px solid #18181b !important;
}

.pc_manubar .main-nav-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.pc_manubar .nav-link-item {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #111111 !important;
    padding: 8px 12px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    transition: color 0.2s ease, background-color 0.2s ease !important;
}

html.dark .pc_manubar .nav-link-item {
    color: #f4f4f5 !important;
}

.pc_manubar .nav-link-item:hover,
.pc_manubar .nav-link-item.active {
    color: var(--primary-color) !important;
}

.pc_manubar .dropdown-sub-item {
    font-size: 17px !important;
    font-weight: 550 !important;
    line-height: 1.35 !important;
    color: #1e293b !important;
    padding: 8px 16px !important;
    display: block !important;
    text-decoration: none !important;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease, color 0.2s ease !important;
}

html.dark .pc_manubar .dropdown-sub-item {
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}

.pc_manubar .dropdown-sub-item:hover {
    background-color: #f8fafc !important;
    color: var(--primary-color) !important;
}

html.dark .pc_manubar .dropdown-sub-item:hover {
    background-color: #334155 !important;
    color: var(--primary-color) !important;
}

/* ==========================================================================
   Header Social Icons
   ========================================================================== */
.header-social-links {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
}

.header-social-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 4px !important;
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    line-height: 1 !important;
    padding: 0 !important;
}

html.dark .header-social-icon {
    background-color: #27272a !important;
    border-color: #3f3f46 !important;
}

.header-social-icon:hover {
    border-color: #cbd5e1 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08) !important;
}

/* ==========================================================================
   Breaking News Ticker
   ========================================================================== */
.techbari-ticker-container {
    height: 38px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

html.dark .techbari-ticker-container {
    background: #1e293b;
    border-color: #334155;
}

.techbari-ticker-title {
    background-color: var(--primary-color);
    color: #ffffff;
    font-weight: 800;
    font-size: 15px;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 28px;
    white-space: nowrap;
    text-decoration: none;
}

/* ==========================================================================
   Jugantor Style Section Headers
   ========================================================================== */
.techbari_secHed {
    position: relative;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 14px;
    padding-bottom: 2px;
}

.tt_secH2 {
    margin: 0;
    padding: 0;
    display: inline-block;
}

.tt_secH2 a,
.tt_secH2 span {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    text-decoration: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

html.dark .tt_secH2 a,
html.dark .tt_secH2 span {
    color: #f9fafb;
}

.tt_secH2 a:hover {
    color: var(--primary-color);
}

.tt_secH2 .long-line {
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

/* ==========================================================================
   Tabbed Sidebar Widget (সর্বশেষ / সর্বাধিক পঠিত)
   ========================================================================== */
.tabNews {
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

html.dark .tabNews {
    background-color: #1e293b;
    border-color: #334155;
}

.sidebar-tab-btn {
    display: block;
    padding: 10px 8px;
    font-size: 20px !important;
    font-weight: 900 !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-tab-btn.active {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Video Gallery Section
   ========================================================================== */
.jugantor_video_item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background-color: #000;
}

.pvIconLarge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 10;
}

.jugantor_video_item:hover .pvIconLarge {
    background: var(--primary-color);
    color: #ffffff;
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 4px 18px rgba(184, 0, 0, 0.7);
}

.pvIconMedium {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 10;
}

.jugantor_video_item:hover .pvIconMedium {
    background: var(--primary-color);
    color: #ffffff;
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 4px 14px rgba(184, 0, 0, 0.7);
}

/* ==========================================================================
   Photo Gallery Section
   ========================================================================== */
.jugantor-carousel-box {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #0f172a;
}

@media (max-width: 768px) {
    .jugantor-carousel-box {
        height: 280px;
    }
}

.jugantor-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.jugantor-caption-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.75);
    padding: 14px 18px;
    color: #ffffff;
    z-index: 20;
}

.jugantor-side-img-box {
    position: relative;
    width: 100%;
    height: 130px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #f1f5f9;
}

.jugantor-photo-fullwidth {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: #eaedf2 !important;
    box-sizing: border-box;
}

html.dark .jugantor-photo-fullwidth {
    background-color: #0f172a !important;
}

/* ==========================================================================
   Single News Article Details
   ========================================================================== */
.share_icon_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    color: #374151;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

html.dark .share_icon_btn {
    background-color: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

.share_icon_btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================================================
   Follow Channel Bar (WhatsApp & Messenger - Exact Laravel Parity)
   ========================================================================== */
.jugantor_follow_bar {
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: stretch !important;
    background-color: #ffffff !important;
    margin-bottom: 1.25rem !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
}

html.dark .jugantor_follow_bar {
    border-color: #334155 !important;
    background-color: #1e293b !important;
}

/* Mobile specific styling (Matching 2-row layout) */
@media (max-width: 767px) {
    .jugantor_follow_bar .follow_badge {
        background-color: #ffffff !important;
        color: #222222 !important;
        font-weight: 700 !important;
        font-size: 17px !important;
        padding: 8px 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        border-right: 1px solid #e5e7eb !important;
        border-top: none !important;
        border-bottom: none !important;
        width: 32% !important;
        min-width: 95px !important;
    }

    html.dark .jugantor_follow_bar .follow_badge {
        background-color: #1e293b !important;
        color: #f1f5f9 !important;
        border-right-color: #334155 !important;
    }

    .jugantor_follow_bar .follow_links_group {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }

    .jugantor_follow_bar .follow_link {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        padding: 7px 12px !important;
        font-size: 15.5px !important;
        font-weight: 600 !important;
        text-decoration: none !important;
    }

    .jugantor_follow_bar .follow_link:first-of-type {
        border-right: none !important;
        border-bottom: 1px solid #e5e7eb !important;
    }

    html.dark .jugantor_follow_bar .follow_link:first-of-type {
        border-bottom-color: #334155 !important;
    }
}

/* Desktop specific styling (Matching Laravel 100%) */
@media (min-width: 768px) {
    .jugantor_follow_bar .follow_badge {
        background-color: #b91c1c !important;
        color: #ffffff !important;
        font-weight: 800 !important;
        font-size: 16px !important;
        padding: 10px 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        border-right: 3px solid #25d366 !important;
    }

    .jugantor_follow_bar .follow_links_group {
        flex: 1 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
    }

    .jugantor_follow_bar .follow_link {
        flex: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        padding: 10px 14px !important;
        font-size: 16px !important;
        font-weight: 800 !important;
        text-decoration: none !important;
        transition: background-color 0.2s ease !important;
    }

    .jugantor_follow_bar .follow_link:first-of-type {
        border-right: 1px solid #e5e7eb !important;
    }

    html.dark .jugantor_follow_bar .follow_link:first-of-type {
        border-right-color: #334155 !important;
    }
}

.jugantor_follow_bar .follow_link:hover {
    background-color: #f9fafb !important;
}

html.dark .jugantor_follow_bar .follow_link:hover {
    background-color: #334155 !important;
}

.jugantor_follow_bar .follow_wa {
    color: #16a34a !important;
}

.jugantor_follow_bar .follow_msg {
    color: #0284c7 !important;
}


/* ==========================================================================
   Footer Styles
   ========================================================================== */
.site-footer-wrapper {
    width: 100%;
    background-color: #f8f9fa;
    border-top: 1px solid #e5e7eb;
    color: #1f2937;
    margin-top: 28px;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

html.dark .site-footer-wrapper {
    background-color: #0f1117;
    border-top: 1px solid #1f2430;
    color: #e5e7eb;
}

.footer-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    padding: 7px 16px;
    font-size: 15.5px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
}

html.dark .footer-nav-btn {
    background-color: #1a1f2c;
    border-color: #323b4e;
    color: #d1d5db;
}

.footer-nav-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

html.dark .footer-nav-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

html.dark .footer-social-btn {
    background-color: #1e2433;
    border-color: #333d52;
}

.footer-social-btn:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

/* Back to Top */
#back-to-top {
    position: fixed;
    right: 20px;
    bottom: 30px;
    width: 40px;
    height: 40px;
    background: var(--primary-color) !important;
    color: #ffffff;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#back-to-top.show {
    opacity: 0.95;
    pointer-events: auto;
}

#back-to-top:hover {
    opacity: 1;
    transform: translateY(-3px);
}

/* ==========================================================================
   Footer Logo Size & Placement
   ========================================================================== */
.site-footer-logo-img {
    max-height: 48px !important;
    max-width: 220px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: inline-block !important;
}

/* ==========================================================================
   Single News Page Layout & Article Body Architecture
   ========================================================================== */
.single_post_wrapper_block {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    align-items: start !important;
}

@media (min-width: 1024px) {
    .single_post_wrapper_block {
        grid-template-columns: minmax(0, 1fr) 335px !important;
    }
}

@media (min-width: 1280px) {
    .single_post_wrapper_block {
        grid-template-columns: minmax(0, 1fr) 350px !important;
    }
}

.article_body_layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    align-items: flex-start !important;
    margin-bottom: 1.5rem !important;
}

@media (min-width: 768px) {
    .article_body_layout {
        flex-direction: row !important;
    }
}

.article_readmore_col {
    width: 195px !important;
    min-width: 195px !important;
    max-width: 195px !important;
    flex-shrink: 0 !important;
    background-color: #f8f9fa !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.375rem !important;
    padding: 0.875rem !important;
}

html.dark .article_readmore_col {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

.article_readmore_col .readmore_header span {
    color: #111827 !important;
    border-color: #b91c1c !important;
}

html.dark .article_readmore_col .readmore_header span {
    color: #f1f5f9 !important;
}

.article_readmore_col .readmore_item a {
    color: #1f2937 !important;
    transition: color 0.2s ease !important;
}

.article_readmore_col .readmore_item a:hover {
    color: #b91c1c !important;
}

html.dark .article_readmore_col .readmore_item a {
    color: #e2e8f0 !important;
}

html.dark .article_readmore_col .readmore_item a:hover {
    color: #f87171 !important;
}

.article_main_text_col {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    width: 100% !important;
}

.the_post_banner img {
    width: 100% !important;
    max-height: 480px !important;
    object-fit: cover !important;
    display: block !important;
}

/* Sidebar Tab Widget News List */
.tabNews .tab-content .overflow-y-auto {
    max-height: 520px !important;
}

/* ==========================================================================
   Jugantor Follow Bar (WhatsApp & Messenger matching Laravel)
   ========================================================================== */
.jugantor_follow_bar {
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: stretch !important;
    background-color: #ffffff !important;
    margin-bottom: 1.25rem !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
}

html.dark .jugantor_follow_bar {
    border-color: #334155 !important;
    background-color: #1e293b !important;
}

@media (max-width: 767px) {
    .jugantor_follow_bar .follow_badge {
        background-color: #ffffff !important;
        color: #222222 !important;
        font-weight: 700 !important;
        font-size: 17px !important;
        padding: 8px 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        border-right: 1px solid #e5e7eb !important;
        width: 32% !important;
        min-width: 95px !important;
    }

    html.dark .jugantor_follow_bar .follow_badge {
        background-color: #1e293b !important;
        color: #f1f5f9 !important;
        border-right-color: #334155 !important;
    }

    .jugantor_follow_bar .follow_links_group {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }

    .jugantor_follow_bar .follow_link {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        padding: 7px 12px !important;
        font-size: 15.5px !important;
        font-weight: 600 !important;
        text-decoration: none !important;
    }

    .jugantor_follow_bar .follow_link:first-of-type {
        border-right: none !important;
        border-bottom: 1px solid #e5e7eb !important;
    }

    html.dark .jugantor_follow_bar .follow_link:first-of-type {
        border-bottom-color: #334155 !important;
    }
}

@media (min-width: 768px) {
    .jugantor_follow_bar .follow_badge {
        background-color: #b91c1c !important;
        color: #ffffff !important;
        font-weight: 800 !important;
        font-size: 16px !important;
        padding: 10px 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        border-right: 3px solid #25d366 !important;
    }

    .jugantor_follow_bar .follow_links_group {
        flex: 1 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
    }

    .jugantor_follow_bar .follow_link {
        flex: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        padding: 10px 14px !important;
        font-size: 16px !important;
        font-weight: 800 !important;
        text-decoration: none !important;
        transition: background-color 0.2s ease !important;
    }

    .jugantor_follow_bar .follow_link:first-of-type {
        border-right: 1px solid #e5e7eb !important;
    }

    html.dark .jugantor_follow_bar .follow_link:first-of-type {
        border-right-color: #334155 !important;
    }
}

.jugantor_follow_bar .follow_link:hover {
    background-color: #f9fafb !important;
}

html.dark .jugantor_follow_bar .follow_link:hover {
    background-color: #334155 !important;
}

.jugantor_follow_bar .follow_wa {
    color: #16a34a !important;
}

.jugantor_follow_bar .follow_msg {
    color: #0284c7 !important;
}

.jugantor_follow_bar .follow_gnews {
    color: #dc2626 !important;
}

/* ==========================================================================
   Single News Related Posts 3 Columns Grid
   ========================================================================== */
.related-posts-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
}

@media (min-width: 640px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 768px) {
    .related-posts-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* ==========================================================================
   Desktop Navigation Dropdown Menus (Fix for Issue 1)
   ========================================================================== */
.pc_manubar .relative {
    position: relative !important;
}

.pc_manubar li {
    position: relative;
    display: inline-block;
}

.pc_manubar .sub-menu,
.pc_manubar .dropdown-menu {
    position: absolute !important;
    left: 0 !important;
    top: 100% !important;
    display: none !important;
    min-width: 210px !important;
    max-width: 280px !important;
    background-color: #ffffff !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0 0 8px 8px !important;
    padding: 6px 0 !important;
    margin: 0 !important;
    list-style: none !important;
    z-index: 9999 !important;
    text-align: left !important;
}

html.dark .pc_manubar .sub-menu,
html.dark .pc_manubar .dropdown-menu {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5) !important;
}

.pc_manubar li:hover > .sub-menu,
.pc_manubar li:hover > .dropdown-menu,
.pc_manubar .group:hover > .sub-menu,
.pc_manubar .group:hover > .dropdown-menu {
    display: block !important;
}

.pc_manubar .sub-menu li,
.pc_manubar .dropdown-menu li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pc_manubar .sub-menu li a,
.pc_manubar .dropdown-menu li a,
.pc_manubar .dropdown-sub-item {
    display: block !important;
    padding: 8px 16px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
}

.pc_manubar .sub-menu li:last-child a,
.pc_manubar .dropdown-menu li:last-child a {
    border-bottom: none !important;
}

html.dark .pc_manubar .sub-menu li a,
html.dark .pc_manubar .dropdown-menu li a,
html.dark .pc_manubar .dropdown-sub-item {
    color: #e2e8f0 !important;
    border-color: #1e293b !important;
}

.pc_manubar .sub-menu li a:hover,
.pc_manubar .dropdown-menu li a:hover,
.pc_manubar .dropdown-sub-item:hover {
    background-color: #f8fafc !important;
    color: var(--primary-color, #124b65) !important;
    padding-left: 20px !important;
}

html.dark .pc_manubar .sub-menu li a:hover,
html.dark .pc_manubar .dropdown-menu li a:hover,
html.dark .pc_manubar .dropdown-sub-item:hover {
    background-color: #1e293b !important;
    color: #38bdf8 !important;
}

/* ==========================================================================
   Single News Post Content Links (Fix for Issue 5)
   ========================================================================== */
.the_content_single a,
.entry-content a,
.article_main_text_col .the_content_single a {
    color: var(--primary-color, #124b65) !important;
    text-decoration: underline !important;
    text-decoration-thickness: 1.5px !important;
    text-underline-offset: 3px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: color 0.15s ease, text-decoration-color 0.15s ease !important;
}

.the_content_single a:hover,
.entry-content a:hover,
.article_main_text_col .the_content_single a:hover {
    color: #dc2626 !important;
    text-decoration-color: #dc2626 !important;
}

html.dark .the_content_single a,
html.dark .entry-content a,
html.dark .article_main_text_col .the_content_single a {
    color: #38bdf8 !important;
    text-decoration-color: #38bdf8 !important;
}

html.dark .the_content_single a:hover,
html.dark .entry-content a:hover,
html.dark .article_main_text_col .the_content_single a:hover {
    color: #7dd3fc !important;
    text-decoration-color: #7dd3fc !important;
}

/* ==========================================================================
   Category & Archive Robust Grid Layout (Fix for Issue 3)
   ========================================================================== */
.category-layout-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px;
    align-items: flex-start;
}

.category-main-col {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
}

.category-sidebar-col {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
    margin-top: 1.5rem;
}

@media (min-width: 1024px) {
    .category-main-col {
        width: 66.666667% !important;
    }
    .category-sidebar-col {
        width: 33.333333% !important;
        margin-top: 0 !important;
    }
}

/* Featured Top 2 Category Posts Grid */
.category-featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

@media (min-width: 640px) {
    .category-featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.category-featured-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

html.dark .category-featured-card {
    background-color: #1e293b;
    border-color: #334155;
}

.category-featured-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.category-featured-img-wrap {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
    background-color: #f1f5f9;
}

@media (min-width: 768px) {
    .category-featured-img-wrap {
        height: 200px;
    }
}

.category-featured-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.3s ease;
}

.category-featured-card:hover .category-featured-img-wrap img {
    transform: scale(1.05);
}

/* Remaining Category Posts Grid (2 columns on tablet/desktop) */
.category-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .category-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.category-post-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 12px;
    align-items: stretch;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    text-decoration: none !important;
}

html.dark .category-post-card {
    background-color: #1e293b;
    border-color: #334155;
}

.category-post-card:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color, #124b65);
}

.category-post-thumb {
    width: 110px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background-color: #f1f5f9;
    position: relative;
}

@media (min-width: 640px) {
    .category-post-thumb {
        width: 125px;
        height: 88px;
    }
}

.category-post-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.3s ease;
}

.category-post-card:hover .category-post-thumb img {
    transform: scale(1.05);
}

.category-post-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ==========================================================================
   OFF-CANVAS DRAWER NAVIGATION (DESKTOP & MOBILE)
   Ensures drawer is fixed to viewport top: 0 and on top of all layers
   ========================================================================== */
#mobile-drawer-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background-color: rgba(0, 0, 0, 0.65) !important;
    -webkit-backdrop-filter: blur(3px) !important;
    backdrop-filter: blur(3px) !important;
    z-index: 9999998 !important;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s !important;
}

#mobile-drawer-backdrop.hidden {
    display: none !important;
    visibility: hidden !important;
}

#mobile-drawer-backdrop.opacity-0 {
    opacity: 0 !important;
    pointer-events: none !important;
}

#mobile-drawer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 320px !important;
    max-width: 85vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background-color: #ffffff !important;
    z-index: 9999999 !important; /* Topmost layer on the entire window */
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.35) !important;
    transform: translateX(-100%) !important;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    overflow: hidden !important;
}

html.dark #mobile-drawer {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    border-right: 1px solid #1e293b !important;
}

#mobile-drawer.drawer-open {
    transform: translateX(0) !important;
}

body.drawer-locked,
html.drawer-locked {
    overflow: hidden !important;
    touch-action: none !important;
}

/* ==========================================================================
   Mobile Horizontal Scroll Menu & Submenu Dropdown Panel
   ========================================================================== */
.no-scrollbar::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}
.no-scrollbar {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

.scrollmenu {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.mobile-sub-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 22px !important;
    min-height: 22px !important;
    outline: none !important;
}

.mobile-sub-toggle i {
    transition: transform 0.22s ease-in-out !important;
}

#mobile-scroll-submenu-panel {
    animation: lnSubmenuSlideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lnSubmenuSlideDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Inline "বিশেষ সংবাদ" (In-Article Related News)
   ========================================================================== */
.inline-special-news-box {
    position: relative;
    font-family: var(--font-primary, 'SolaimanLipi', sans-serif);
    transition: all 0.25s ease;
}

.inline-special-news-box:hover {
    box-shadow: 0 4px 15px -3px rgba(220, 38, 38, 0.12), 0 2px 6px -2px rgba(220, 38, 38, 0.08);
}

html.dark .inline-special-news-box:hover {
    box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Author Box (লেখক পরিচিতি)
   ========================================================================== */
.leadnews-author-box {
    font-family: var(--font-primary, 'SolaimanLipi', sans-serif);
}

.leadnews-author-box img {
    aspect-ratio: 1 / 1;
}
