/* assets/css/style.css */
:root {
    --primary-color: #0a4c6a;
    --text-dark: #333;
    --bg-light: #f4f6f9;
    --accent-red: #cc0000;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'SolaimanLipi', Arial, sans-serif; }

body { background: #fff; color: var(--text-dark); }

/* Header & Topbar */
.top-bar { background: var(--primary-color); color: #fff; padding: 10px 0; display: flex; justify-content: space-between; align-items: center; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* ==========================================================================
   NAVIGATION & DROPDOWN MENU (Desktop)
   ========================================================================== */
.main-menu ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.main-menu a {
    color: var(--white);
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-menu a:hover {
    color: #d1e7f5;
}

/* Dropdown Styles */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 99;
    display: flex;
    flex-direction: column;
    padding: 0;
    border-radius: 0 0 4px 4px;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ==========================================================================
   100% BUG FREE: Desktop Dropdown Huge Gap & Inheritance Fix
   ========================================================================== */

/* ফ্লেক্সবক্সের গ্যাপ ইনহেরিটেন্স রিমুভ করে স্ট্যান্ডার্ড ব্লক লেআউট করা হলো */
.main-menu ul .dropdown-menu {
    display: block !important; /* ফ্লেক্সবক্সের গ্যাপ বাগ দূর করতে এটি ব্লক করা হলো */
    min-width: 220px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
}

/* লিস্ট আইটেমের হাইট ও মার্জিন জিরো করা হলো */
.main-menu ul .dropdown-menu li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #f1f5f9 !important; /* হালকা বর্ডার */
    line-height: normal !important;
}

/* শেষের আইটেমের বর্ডার রিমুভ করা হলো */
.main-menu ul .dropdown-menu li:last-child {
    border-bottom: none !important;
}

/* সাবক্যাটাগরির লিংকগুলোর স্ট্যান্ডার্ড প্রফেশনাল প্যাডিং ও সাইজ */
.main-menu ul .dropdown-menu li a {
    display: block !important;
    padding: 12px 18px !important; /* একদম পারফেক্ট স্পেসিং */
    color: #334155 !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    height: auto !important;
    background: #ffffff !important;
    transition: all 0.3s ease !important;
    font-weight: 600 !important;
}

/* হোভার ইফেক্ট - স্ট্যান্ডার্ড নিউজ পোর্টালের মতো */
.main-menu ul .dropdown-menu li a:hover {
    background: #f8fafc !important;
    color: var(--primary-color, #094b69) !important;
    padding-left: 24px !important; /* হোভার করলে হালকা ডানে সরবে */
}

.main-menu ul .dropdown-menu li a i {
    margin-right: 6px;
    font-size: 13px;
    color: var(--primary-color, #094b69) !important;
}

.dropdown-menu a i {
    color: var(--primary-blue);
    font-size: 12px;
}

.dropdown-menu a:hover {
    background: var(--light-bg);
    color: var(--primary-blue) !important;
    padding-left: 20px; /* Slight indent on hover */
}

/* Hide Mobile Elements on Desktop */
.mobile-menu-header, .menu-overlay {
    display: none;
}

/* ==========================================================================
   OFFCANVAS MOBILE MENU (Tablet & Mobile)
   ========================================================================== */
@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: block;
    }

    /* Overlay */
    .menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile Sidebar */
    .main-menu {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100vh;
        background: var(--white);
        z-index: 999;
        flex-direction: column;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2);
    }

    .main-menu.active {
        left: 0;
    }

    /* Mobile Header & Close Button */
    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        background: var(--primary-blue);
        color: var(--white);
    }

    .mobile-menu-header h3 {
        font-size: 18px;
        margin: 0;
    }

    .close-menu-btn {
        background: transparent;
        border: none;
        color: var(--white);
        font-size: 24px;
        cursor: pointer;
    }

    /* Mobile Menu List Reset */
    .main-menu ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .main-menu > ul > li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .main-menu a {
        color: var(--text-dark) !important;
        padding: 15px 20px;
        display: flex;
        justify-content: space-between;
    }

    /* Differentiating Subcategories clearly in Mobile */
    .has-dropdown {
        display: flex;
        flex-direction: column;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--light-bg);
        width: 100%;
        display: block; /* Always show subcategories elegantly indented */
        border-top: 1px solid var(--border-color);
    }

    .dropdown-menu li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .dropdown-menu a {
        padding-left: 40px; /* Deep indentation for subcategory */
        font-size: 14px;
        font-weight: 400;
        border-left: 3px solid var(--primary-blue); /* Visual indicator */
        justify-content: flex-start;
    }
}

/* Breaking News Ticker */
.breaking-news { border: 1px solid #ddd; padding: 10px; margin: 15px 0; background: var(--bg-light); border-radius: 4px; display: flex; align-items: center; }
.breaking-badge { background: var(--primary-color); color: #fff; padding: 4px 8px; border-radius: 3px; margin-right: 15px; }

/* Main Layout Grid */
.main-wrapper { display: grid; grid-template-columns: 70% 30%; gap: 20px; margin-top: 20px; }

/* Lead News */
.lead-news { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; border: 1px solid #eee; padding: 15px; }
.lead-news img { width: 100%; border-radius: 4px; }
.lead-title { color: var(--accent-red); font-size: 24px; margin-bottom: 10px; }

/* Right Sidebar Tabs */
.sidebar-tabs { border: 1px solid #ddd; }
.tab-headers { display: flex; background: #f9f9f9; border-bottom: 1px solid #ddd; }
.tab-headers div { padding: 10px; cursor: pointer; flex: 1; text-align: center; font-weight: bold; }

/* Responsive */
@media (max-width: 768px) {
    .main-wrapper, .lead-news { grid-template-columns: 1fr; }
    .navbar { flex-wrap: wrap; }
}

/* File: assets/css/style.css
    Description: 100% Responsive and Clean CSS
*/

/* Base Reset & Variables */
:root {
    --primary-blue: #094b69;
    --light-bg: #f5f6f8;
    --white: #ffffff;
    --text-dark: #222222;
    --text-muted: #666666;
    --border-color: #e5e5e5;
    --pill-bg: #e9ecef;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Bengali', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ================= HEADER & NAV ================= */
.main-header {
    background: var(--white);
    /* Replacing border-bottom with box-shadow as requested */
    box-shadow: 0 1px 0 0 var(--border-color); 
}

.top-nav {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
}

.main-menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-menu a {
    color: var(--white);
    font-weight: 600;
    font-size: 16px;
}

.main-menu a:hover {
    color: #d1e7f5;
}

.nav-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    background: transparent;
    border: 0;
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
}

.mobile-menu-toggle {
    display: none;
}

/* ================= TICKER SECTION ================= */
.ticker-section {
    padding: 12px 0;
    background: var(--light-bg);
}

.ticker-container {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 5px;
}

.ticker-badge {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 3px;
    font-weight: 700;
    white-space: nowrap;
    margin-right: 15px;
}

.ticker-content {
    flex-grow: 1;
    overflow: hidden;
}

.ticker-item {
    margin-right: 30px;
    font-weight: 600;
}

.ticker-icon {
    color: #00b0f0;
    font-size: 12px;
    margin-right: 5px;
}

/* ================= TRENDING TAGS ================= */
.trending-section {
    padding: 10px 0 15px 0;
    background: var(--light-bg);
}

.trending-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.trending-badge {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.trending-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-pill {
    background-color: var(--pill-bg);
    color: var(--text-dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
}

.tag-pill:hover {
    border: 1px solid var(--primary-blue);
    background-color: var(--white);
}

/* ==========================================
   ADVANCED PROFESSIONAL FOOTER (COMPACT & SLEEK)
========================================== */
.main-footer {
    background-color: var(--primary-color, #094b69); /* আপনার থিমের ডিফল্ট ব্লু কালার */
    color: var(--white, #ffffff);
    margin-top: 40px; /* স্পেস কিছুটা কমানো হলো */
    font-size: 14px; /* প্রফেশনাল লুকের জন্য ফন্ট সাইজ স্লিক করা হলো */
}
.footer-top {
    padding: 40px 0 20px; /* ওপর-নিচের প্যাডিং কমানো হলো */
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr; 
    gap: 20px; /* কলামের মাঝের গ্যাপ কমানো হলো */
}

/* Widget Styling */
.footer-widget h3 {
    color: var(--white, #ffffff);
    font-size: 16px; /* টাইটেলের সাইজ স্লিক করা হলো */
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}
.footer-widget h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px; /* আন্ডারলাইন ছোট করা হলো */
    height: 2px; /* আন্ডারলাইন চিকন করা হলো */
    background: rgba(255, 255, 255, 0.4); 
    border-radius: 2px;
}

/* About & Logo Section */
.footer-logo-wrap {
    background: var(--white, #ffffff);
    padding: 8px 12px; /* লোগোর ব্যাকগ্রাউন্ড প্যাডিং কমানো হলো */
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 12px;
}
.footer-logo-wrap img {
    max-width: 150px; /* লোগোর সাইজ কম্প্যাক্ট করা হলো */
    display: block;
}
.footer-about-text {
    line-height: 1.5; /* লাইনের উচ্চতা কমানো হলো */
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

/* Social Icons */
.footer-socials {
    display: flex;
    gap: 10px;
}
.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; /* আইকন সাইজ ছোট করা হলো */
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white, #ffffff);
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 14px;
}
.footer-socials a:hover {
    background: var(--white, #ffffff);
    color: var(--primary-color, #094b69);
    transform: translateY(-2px);
}

/* Links Section */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 8px; /* লিস্টের মাঝের ফাঁকা কমানো হলো */
}
.footer-links li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}
.footer-links li a i {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    transition: 0.3s;
}
.footer-links li a:hover {
    color: var(--white, #ffffff);
    transform: translateX(4px); 
}
.footer-links li a:hover i {
    color: var(--white, #ffffff);
}

/* Contact Info Section */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    line-height: 1.4;
}
.footer-contact li i {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px; /* আইকন ছোট করা হলো */
    margin-top: 3px;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2); 
    padding: 12px 0; /* প্যাডিং কমানো হলো */
    text-align: center;
}
.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px; /* টেক্সট সাইজ স্লিক করা হলো */
}

/* ==========================================
   FOOTER RESPONSIVE FIXES
========================================== */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr; 
        text-align: center; 
        gap: 25px;
    }
    .footer-top {
        padding: 30px 0 10px;
    }
    /* সেন্টার অ্যালাইনমেন্টের জন্য ফিক্স */
    .footer-widget h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-socials {
        justify-content: center;
    }
    .footer-links li a {
        justify-content: center;
    }
    .footer-contact li {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 4px;
    }
    .footer-contact li i {
        margin-bottom: 4px;
    }
}

/* ==========================================================================
   SIDEBAR & WIDGET STYLES (100% Responsive)
   ========================================================================== */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: var(--white, #ffffff);
    border: 1px solid #eeeeee;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.widget-title {
    background: var(--primary-color, #0a4c6a);
    color: #ffffff;
    padding: 12px 15px;
    font-size: 16px;
    margin: 0;
    text-align: center;
}

/* --- Tabs Widget Styling --- */
.tab-headers {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #eeeeee;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: #555555;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--primary-color, #0a4c6a);
}

.tab-btn.active {
    background: #ffffff;
    color: var(--primary-color, #0a4c6a);
    box-shadow: inset 0 -3px 0 0 var(--accent-red, #cc0000); /* Sleek bottom highlight */
}

/* --- News List Styling --- */
.sidebar-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-news-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f1f1f1;
    transition: background 0.3s ease;
}

.sidebar-news-item:last-child {
    border-bottom: none;
}

.sidebar-news-item:hover {
    background: #fafafa;
}

.sidebar-thumb {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    margin-right: 12px;
    border-radius: 4px;
    overflow: hidden;
}

.sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.sidebar-thumb:hover img {
    transform: scale(1.1);
}

.sidebar-info {
    flex-grow: 1;
}

.sidebar-title {
    font-size: 15px;
    color: var(--text-dark, #333333);
    line-height: 1.4;
    font-weight: 600;
    transition: color 0.3s;
}

.sidebar-title:hover {
    color: var(--accent-red, #cc0000);
}

.popular-rank {
    font-size: 28px;
    font-weight: 700;
    color: #e0e0e0;
    min-width: 35px;
    text-align: center;
    line-height: 1;
}

/* --- Social Follow Widget --- */
.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #eeeeee; /* Creates thin borders between grid items */
}

.social-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    background: #ffffff;
    color: #555555;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.social-box i {
    font-size: 24px;
    margin-bottom: 8px;
}

.social-box.fb:hover { background: #1877F2; color: #fff; }
.social-box.tw:hover { background: #1DA1F2; color: #fff; }
.social-box.yt:hover { background: #FF0000; color: #fff; }
.social-box.in:hover { background: #E4405F; color: #fff; }

/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
    /* Stack main content and sidebar on tablets and mobiles */
    .main-wrapper {
        display: flex;
        flex-direction: column;
    }
    
    .sidebar {
        margin-top: 30px;
    }
}

/* ==========================================================================
   CATEGORY PAGE & SMART PAGINATION STYLES
   ========================================================================== */

/* Category Header styling */
.category-page-header {
    background: var(--light-bg, #f4f6f9);
    padding: 25px 30px;
    border-radius: 6px;
    margin: 20px 0 30px 0;
    border: 1px solid var(--border-color, #e0e0e0);
}

.breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumb a {
    color: var(--primary-blue, #094b69);
    font-weight: 600;
}

.breadcrumb a:hover {
    color: var(--accent-red, #cc0000);
}

.breadcrumb .separator {
    font-size: 10px;
    color: #999;
}

.category-main-title {
    font-size: 32px;
    color: var(--text-dark, #333);
    margin: 0 0 5px 0;
}

.category-meta {
    font-size: 14px;
    color: #777;
    margin: 0;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1; /* Spans across all grid columns */
    text-align: center;
    padding: 60px 20px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 6px;
    color: #666;
}

/* Frontend Smart Pagination */
.frontend-pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color, #e0e0e0); /* Clean shorthand */
}

.frontend-pagination {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.frontend-pagination li a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--white, #fff);
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 4px;
    color: var(--text-dark, #333);
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.frontend-pagination li a:hover,
.frontend-pagination li a.active {
    background: var(--primary-blue, #094b69);
    color: var(--white, #fff);
    border-color: var(--primary-blue, #094b69);
    box-shadow: 0 4px 10px rgba(9, 75, 105, 0.2);
}

/* Responsive category header */
@media (max-width: 768px) {
    .category-page-header {
        padding: 20px;
        text-align: center;
    }
    .breadcrumb {
        justify-content: center;
    }
    .category-main-title {
        font-size: 26px;
    }
}

/* ==========================================================================
   SINGLE POST PAGE STYLES (100% Responsive & Clean)
   ========================================================================== */

.single-post-wrapper {
    background: var(--white, #ffffff);
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color, #eeeeee);
    margin-bottom: 30px;
}

/* Post Header */
.post-header {
    margin-bottom: 25px;
}

.post-title {
    font-size: 34px;
    line-height: 1.4;
    color: var(--text-dark, #222222);
    margin-bottom: 15px;
    font-weight: 700;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eeeeee;
    color: #666666;
    font-size: 14px;
}

.meta-left, .meta-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.meta-item i {
    color: var(--primary-blue, #094b69);
    margin-right: 5px;
}

.meta-item.author {
    font-weight: 600;
    color: var(--text-dark);
}

/* Social Share Bar */
.social-share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.share-text {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-dark);
    margin-right: 5px;
}

.share-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: #ffffff !important;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.share-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.share-btn.fb { background: #1877F2; }
.share-btn.tw { background: #1DA1F2; }
.share-btn.wa { background: #25D366; }
.share-btn.cp { background: #6c757d; }

/* Featured Image */
.post-featured-image {
    margin-bottom: 25px;
    border-radius: 6px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px; /* Prevents overly tall images */
}

/* Post Content Formatting */
.post-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333333;
}

.post-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.post-content img {
    max-width: 100%;
    height: auto !important;
    border-radius: 4px;
    margin: 15px 0;
}

.post-content h2, .post-content h3, .post-content h4 {
    margin: 25px 0 15px 0;
    color: var(--text-dark);
}

.post-content ul, .post-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content blockquote {
    background: #f9f9f9;
    border-left: 4px solid var(--primary-blue, #094b69); /* Using border-left here is standard for quotes */
    padding: 15px 20px;
    margin: 20px 0;
    font-style: italic;
    color: #555;
}

/* Related Posts */
.related-posts-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eeeeee; /* Clean shorthand */
}

.section-title {
    font-size: 20px;
    color: var(--primary-blue, #094b69);
    margin-bottom: 20px;
    display: inline-block;
    padding-bottom: 5px;
    box-shadow: 0 2px 0 0 var(--accent-red, #cc0000); /* Replacing border-bottom for sleek look */
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .single-post-wrapper {
        padding: 15px;
    }
    
    .post-title {
        font-size: 26px;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .post-content {
        font-size: 17px;
    }
}

/* ==========================================================================
   FRONTEND NEWS GRID & CARD STYLES (100% FIXED)
   ========================================================================== */

/* News Grid Layout */
.news-grid {
    display: grid;
    /* auto-fill ensures a single item doesn't stretch to fill the whole screen */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 20px;
    margin-top: 20px;
}

/* Individual News Card */
.news-card {
    background: var(--white, #fff);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* STRICT IMAGE HEIGHT FIX */
.card-img-link {
    display: block;
    width: 100%;
    height: 190px; /* Fixed height to prevent breaking */
    overflow: hidden;
    position: relative;
    background-color: #f4f4f4; /* Placeholder color while loading */
}

.card-img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents image stretching */
    transition: transform 0.5s ease;
}

.news-card:hover .card-img-link img {
    transform: scale(1.05);
}

.news-card-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-category {
    font-size: 12px;
    color: var(--primary-color, #0a4c6a);
    font-weight: 700;
    margin-bottom: 8px;
    display: inline-block;
}

.card-title {
    font-size: 18px;
    line-height: 1.4;
    color: var(--text-dark, #333);
    margin-bottom: 12px;
    transition: color 0.3s;
}

.card-title:hover {
    color: var(--accent-red, #cc0000);
}

.news-card-content .text-muted {
    margin-top: auto; 
    font-size: 13px;
    color: #777;
}

/* Responsive adjustment for extra small screens */
@media (max-width: 480px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    .card-img-link {
        height: 220px;
    }
}

/* ==========================================================================
   HEADER SEARCH BAR & SEARCH PAGE STYLES
   ========================================================================== */

/* Header Floating Search Form */
.nav-container {
    position: relative; /* Crucial for absolute positioning of search bar */
}

.header-search-form {
    position: absolute;
    top: 120%;
    right: 0;
    width: 300px;
    background: var(--white, #ffffff);
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border: 1px solid var(--border-color, #eeeeee);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
}

.header-search-form.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-search-form form {
    display: flex;
    border: 1px solid var(--primary-blue, #094b69);
    border-radius: 4px;
    overflow: hidden;
}

.header-search-form input {
    flex-grow: 1;
    border: none;
    padding: 10px 15px;
    outline: none;
    font-size: 15px;
}

.header-search-form button {
    background: var(--primary-blue, #094b69);
    color: var(--white, #ffffff);
    border: none;
    padding: 0 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.header-search-form button:hover {
    background: var(--accent-red, #cc0000);
}

/* Search Page Header Specific */
.search-page-header {
    background: #eef5f9; /* Slightly different tint for search pages */
    border-left: 4px solid var(--primary-blue, #094b69); /* Minimalist accent */
}

/* Responsive adjustments for mobile search bar */
@media (max-width: 768px) {
    .header-search-form {
        width: 100%;
        right: 0;
        top: 100%; /* Push down slightly more on mobile */
        border-radius: 0;
    }
}

/* ==========================================================================
   DYNAMIC PAGE & FOOTER STYLES
   ========================================================================== */

/* Dynamic Page Container */
.dynamic-page-wrapper {
    background: var(--white, #ffffff);
    padding: 35px 40px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color, #eeeeee);
    margin-bottom: 30px;
}

.page-header {
    margin: 15px 0 25px 0;
}

.page-title {
    font-size: 32px;
    color: var(--text-dark, #222);
    margin: 0;
}

.page-divider {
    height: 3px;
    width: 60px;
    background: var(--accent-red, #cc0000);
    margin-top: 10px;
    border-radius: 2px;
}

/* Footer Links Enhancement */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a i {
    font-size: 12px;
    margin-right: 5px;
    color: var(--primary-blue, #094b69);
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.footer-links a:hover i {
    color: var(--accent-red, #cc0000);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .dynamic-page-wrapper {
        padding: 20px;
    }
    .page-title {
        font-size: 26px;
    }
}

/* ==========================================================================
   TAG PAGE & PAGINATION STYLES (FRONTEND)
   ========================================================================== */

/* Tag Header Box */
.tag-header-box {
    background: #fdfdfd;
    border-left: 4px solid var(--primary-color, #cc0000);
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-title {
    font-size: 24px;
    color: var(--text-dark, #333);
    margin: 0;
    font-weight: 700;
}

.tag-title i {
    color: var(--primary-color, #cc0000);
    margin-right: 5px;
}

.tag-count {
    background: var(--primary-blue, #094b69);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Smart Pagination (Frontend) */
.front-pagination {
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
}

.front-pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.front-pagination .page-link {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.front-pagination .page-link:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: var(--primary-blue, #094b69);
}

.front-pagination .page-link.active {
    background: var(--primary-color, #cc0000);
    color: #fff;
    border-color: var(--primary-color, #cc0000);
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .tag-title {
        font-size: 20px;
    }
    .front-pagination .page-link {
        padding: 6px 12px;
        font-size: 14px;
    }
}

/* ==========================================================================
   DATE ARCHIVE PAGE STYLES (FRONTEND)
   ========================================================================== */

/* Archive Header Box */
.archive-header-box {
    background: linear-gradient(135deg, #094b69, #126b91); /* Brand color theme */
    padding: 25px 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(9, 75, 105, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    color: #ffffff;
}

.archive-icon {
    font-size: 40px;
    color: rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
}

.archive-info {
    flex-grow: 1;
}

.archive-title {
    font-size: 24px;
    margin: 0 0 5px 0;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.archive-date {
    font-size: 16px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.archive-count-badge {
    background: #ffffff;
    color: var(--primary-blue, #094b69);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

/* Empty State / No Data Found (Overriding specifically for Calendar) */
.no-data-found .fa-calendar-times {
    font-size: 60px;
    color: #cbd5e1;
    margin-bottom: 20px;
    display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .archive-header-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .archive-info {
        margin-bottom: 10px;
    }
    
    .archive-icon {
        margin-bottom: 10px;
    }
}

/* ==========================================================================
   SIDEBAR CALENDAR WIDGET STYLES
   ========================================================================== */
.calendar-widget {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

..calendar-widget {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.calendar-widget .widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff; /* FIXED: Changed to white to match your theme */
    background: var(--primary-color, #cc0000); /* Optional: Added background if you want a boxed title style */
    padding: 8px 15px; /* Adjusted padding */
    border-radius: 4px; /* Added border radius */
    display: inline-block;
    border-bottom: none; /* Removed the bottom border as it's now boxed */
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
}

.cal-nav-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--primary-blue, #094b69);
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
}

.cal-nav-btn:hover {
    background: var(--primary-blue, #094b69);
    color: #ffffff;
    border-color: var(--primary-blue, #094b69);
}

.cal-month-year {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-dark, #333);
}

.news-calendar {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.news-calendar th {
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
    padding: 8px 5px;
    font-size: 13px;
    border: 1px solid #e2e8f0;
}

.news-calendar td {
    padding: 5px;
    border: 1px solid #f1f5f9;
    height: 40px;
    width: 14.28%;
    vertical-align: middle;
}

.news-calendar td span {
    color: #94a3b8;
    font-size: 14px;
    display: block;
}

.news-calendar td.has-post a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    margin: 0 auto;
    background: rgba(9, 75, 105, 0.1);
    color: var(--primary-blue, #094b69);
    font-weight: 700;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.news-calendar td.has-post a:hover {
    background: var(--primary-color, #cc0000);
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(204,0,0,0.3);
    transform: translateY(-2px);
}

.news-calendar td.today {
    background: #fffbeb;
}

.news-calendar td.today span,
.news-calendar td.today a {
    border: 2px solid #f59e0b;
}

.empty-day {
    background: #f8fafc;
}

/* ==========================================================================
   DYNAMIC TRENDING SECTION STYLES
   ========================================================================== */
.trending-section {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 0;
}

.trending-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.trending-badge {
    background: var(--primary-color, #cc0000);
    color: #fff;
    padding: 5px 15px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
}

/* Horizontal Scroll for Tags */
.trending-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE 10+ */
    padding-bottom: 2px;
}

.trending-tags::-webkit-scrollbar { 
    display: none; /* Chrome/Safari */
}

.tag-pill {
    background: #ffffff;
    color: #334155;
    border: 1px solid #cbd5e1;
    padding: 5px 16px;
    font-size: 13px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.tag-pill:hover {
    background: var(--primary-blue, #094b69);
    color: #ffffff;
    border-color: var(--primary-blue, #094b69);
}

.tag-pill:hover i {
    color: #ffffff !important;
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .trending-container {
        gap: 10px;
    }
    .trending-badge {
        padding: 4px 10px;
        font-size: 12px;
    }
    .tag-pill {
        padding: 4px 12px;
        font-size: 12px;
    }
}

/* ==========================================================================
   HOMEPAGE DYNAMIC CATEGORY BLOCKS (NEWSPAPER STYLE)
   ========================================================================== */
.home-category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #f1f5f9;
}

.news-category-block {
    background: #fff;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.cat-sec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary-blue, #094b69);
    margin-bottom: 15px;
    padding-bottom: 6px;
    position: relative;
}

.cat-sec-title {
    font-size: 20px;
    color: var(--text-dark, #333);
    margin: 0;
    font-weight: 700;
}

/* Red accent line under title */
.cat-sec-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary-color, #cc0000);
}

.cat-sec-more {
    font-size: 13px;
    color: var(--primary-color, #cc0000);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.cat-sec-more:hover {
    color: var(--primary-blue, #094b69);
}

/* Content: Lead Post (Big Image) */
.cat-lead-post {
    margin-bottom: 15px;
}

.cat-lead-img-link {
    display: block;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.cat-lead-post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cat-lead-post:hover img {
    transform: scale(1.03);
}

.cat-lead-post h3 {
    font-size: 18px;
    line-height: 1.4;
    margin: 0 0 5px 0;
}

.cat-lead-post h3 a {
    color: var(--text-dark, #1e293b);
    text-decoration: none;
    transition: color 0.3s;
}

.cat-lead-post h3 a:hover {
    color: var(--primary-color, #cc0000);
}

/* Content: List Posts (Small Image + Title) */
.cat-list-posts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cat-list-item {
    display: flex;
    gap: 12px;
    align-items: center;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 12px;
}

.cat-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cat-list-img {
    width: 90px;
    height: 65px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.cat-list-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cat-list-item:hover .cat-list-img img {
    transform: scale(1.05);
}

.cat-list-info h4 {
    font-size: 14.5px;
    margin: 0;
    line-height: 1.4;
    font-weight: 600;
}

.cat-list-info h4 a {
    color: #334155;
    text-decoration: none;
    transition: color 0.3s;
}

.cat-list-info h4 a:hover {
    color: var(--primary-color, #cc0000);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .home-category-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
        gap: 40px;
    }
}

/* ==========================================================================
   PREMIUM NEWSPAPER CATEGORY BLOCKS (3-COLUMN LAYOUT & LARGER FONTS)
   ========================================================================== */
.premium-category-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 100% FIXED: 3 Columns now */
    gap: 30px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.premium-category-block {
    background: #ffffff;
    width: 100%;
}

/* Header Styles with Pipe `|` */
.premium-block-header {
    border-bottom: 1px solid var(--primary-blue, #094b69);
    margin-bottom: 20px;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
}

.premium-block-title {
    font-size: 22px; /* Increased font size for better readability */
    color: var(--text-dark, #333);
    margin: 0;
    font-weight: 700;
    position: relative;
    padding-left: 14px;
}

.premium-block-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 3px;
    background-color: var(--primary-blue, #094b69);
}

/* Inner Content Grid (Lead Top, List Bottom because of 3 columns) */
.premium-block-content {
    display: flex;
    flex-direction: column; /* Stacked layout for 3 columns */
    gap: 20px;
}

/* Top: Lead Post */
.premium-lead-img {
    display: block;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    margin-bottom: 12px;
    border-radius: 4px;
}

.premium-lead-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.premium-lead-img:hover img {
    transform: scale(1.03);
}

.premium-lead-title {
    font-size: 19px; /* Increased font size */
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.premium-lead-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s;
}

.premium-lead-title a:hover {
    color: var(--primary-color, #cc0000);
}

.premium-lead-excerpt {
    font-size: 15px; /* Increased font size for readability */
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* Bottom: List Posts */
.premium-list-posts {
    display: flex;
    flex-direction: column;
}

.premium-list-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px dashed #cbd5e1;
}

/* Remove padding from the first item and border from the last */
.premium-list-item:first-child {
    padding-top: 0;
}

.premium-list-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.premium-list-info {
    flex: 1;
}

.premium-list-info h4 {
    font-size: 16px; /* Increased font size */
    font-weight: 600;
    margin: 0;
    line-height: 1.5;
}

.premium-list-info h4 a {
    color: #334155;
    text-decoration: none;
    transition: color 0.3s;
}

.premium-list-info h4 a:hover {
    color: var(--primary-color, #cc0000);
}

/* Small thumbnail on the right */
.premium-list-img {
    width: 100px; /* Slightly larger image for better visibility */
    height: 65px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
}

.premium-list-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.premium-list-img:hover img {
    transform: scale(1.05);
}

/* Mobile Responsive Adjustments */
@media (max-width: 1200px) {
    .premium-category-wrapper {
        grid-template-columns: repeat(2, 1fr); /* Fallback to 2 columns on tablets */
    }
}

@media (max-width: 768px) {
    .premium-category-wrapper {
        grid-template-columns: 1fr; /* Stack categories on mobile */
    }
    
    .premium-list-item:first-child {
        padding-top: 15px;
        border-top: 1px solid #e2e8f0;
    }
}/* ==========================================================================
   PREMIUM NEWSPAPER CATEGORY BLOCKS (SIDE-BY-SIDE EXACT MATCH)
   ========================================================================== */
.premium-category-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* পাশাপাশি ২টি ক্যাটাগরি */
    gap: 30px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.premium-category-block {
    background: #ffffff;
    width: 100%;
}

/* Header Styles with Pipe `|` */
.premium-block-header {
    border-bottom: 1px solid var(--primary-blue, #094b69);
    margin-bottom: 15px;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
}

.premium-block-title {
    font-size: 25px; /* Font size adjusted for 2-column fit */
    color: var(--text-dark, #333);
    margin: 0;
    font-weight: 700;
    position: relative;
    padding-left: 12px;
}

.premium-block-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 3px;
    background-color: var(--primary-blue, #094b69);
}

/* Inner Content Grid (Lead Left, List Right) */
.premium-block-content {
    display: grid;
    grid-template-columns: 1.1fr 1fr; /* Lead takes slightly more space */
    gap: 15px;
    align-items: flex-start;
}

/* Left: Lead Post */
.premium-lead-img {
    display: block;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    margin-bottom: 10px;
    border-radius: 2px;
}

.premium-lead-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.premium-lead-img:hover img {
    transform: scale(1.03);
}

.premium-lead-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.premium-lead-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s;
}

.premium-lead-title a:hover {
    color: var(--primary-color, #cc0000);
}

.premium-lead-excerpt {
    font-size: 15px;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}

/* Right: List Posts */
.premium-list-posts {
    display: flex;
    flex-direction: column;
}

.premium-list-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed #cbd5e1;
}

/* Remove padding from the first item and border from the last */
.premium-list-item:first-child {
    padding-top: 0;
}

.premium-list-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.premium-list-info {
    flex: 1;
}

.premium-list-info h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.premium-list-info h4 a {
    color: #334155;
    text-decoration: none;
    transition: color 0.3s;
}

.premium-list-info h4 a:hover {
    color: var(--primary-color, #cc0000);
}

/* Small thumbnail on the right */
.premium-list-img {
    width: 85px;
    height: 55px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 2px;
}

.premium-list-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.premium-list-img:hover img {
    transform: scale(1.05);
}

/* ==========================================
   PREMIUM MOBILE HAMBURGER MENU (ULTRA COMPACT)
========================================== */
/* Hide Mobile Header & Toggle by default on Desktop */
.mobile-menu-header, .mobile-toggle-btn { display: none; }

@media (max-width: 992px) {
    /* Overlay Style */
    .menu-overlay {
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0, 0, 0, 0.6);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        backdrop-filter: blur(3px); 
    }
    .menu-overlay.active {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Sidebar Menu Layout */
    .main-menu {
        position: fixed;
        top: 0; 
        left: -320px;
        width: 260px; /* মেনু আরও স্লিম এবং কম্প্যাক্ট করা হয়েছে */
        height: 100vh;
        background: #ffffff;
        z-index: 9999;
        overflow-y: auto;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 5px 0 15px rgba(0,0,0,0.1);
        display: block !important;
    }
    
    .main-menu.active {
        left: 0 !important;
    }

    /* Compact Header Box (নীল ডিভের সাইজ ও প্যাডিং কমানো হয়েছে) */
    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px; 
        background: var(--primary-color, #094b69);
        color: #fff;
        border-bottom: 2px solid rgba(255,255,255,0.1);
    }
    
    /* Reduced Logo Size (লোগো পারফেক্ট সাইজ করা হয়েছে) */
    .mobile-menu-logo {
        max-height: 20px; 
        width: auto;
        max-width: 140px;
        object-fit: contain;
        display: block;
    }
    
    .close-menu-btn {
        background: rgba(255,255,255,0.2);
        border: none;
        color: #fff;
        width: 28px; height: 28px; /* ক্লোজ বাটন ছোট করা হয়েছে */
        border-radius: 50%;
        font-size: 13px;
        cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        transition: 0.3s;
    }

    /* Menu Items (ক্যাটাগরির মাঝের স্পেস কমানো হয়েছে) */
    .main-menu ul {
        list-style: none; padding: 0; margin: 0;
        display: block !important;
    }
    .main-menu ul li {
        border-bottom: 1px solid #f1f5f9;
        position: relative;
        display: block !important;
    }
    .main-menu ul li a {
        display: block;
        padding: 10px 15px; /* স্পেস অনেক কমানো হয়েছে */
        color: #1e293b;
        text-decoration: none;
        font-weight: 600;
        font-size: 16px; /* ফন্ট সাইজ মানানসই করা হয়েছে */
        transition: 0.2s;
    }
    
    /* Dropdown Toggle Button (+ / -) */
    .desktop-caret { display: none; } 
    .mobile-toggle-btn {
        display: flex;
        position: absolute;
        top: 0; right: 0;
        width: 40px; height: 40px; /* বাটনের হাইট কমানো হয়েছে */
        background: none; border: none;
        border-left: 1px solid #f1f5f9;
        align-items: center; justify-content: center;
        cursor: pointer;
        color: #64748b;
        font-size: 14px;
        transition: 0.3s;
        z-index: 2;
    }
    .mobile-toggle-btn.open i { transform: rotate(180deg); } 

    /* Subcategories */
    .main-menu ul .dropdown-menu {
        display: none !important; 
        background: #f8fafc;
        border-top: 1px solid #e2e8f0;
        position: static !important;
        width: 100% !important;
        box-shadow: none !important;
    }
    .main-menu ul .dropdown-menu.show {
        display: block !important;
    }
    .main-menu ul .dropdown-menu li a {
        padding: 8px 15px 8px 35px; /* সাব-ক্যাটাগরির স্পেস আরও কমানো হয়েছে */
        font-size: 13px;
        color: #475569;
        font-weight: 500;
        border-bottom: 1px dashed #e2e8f0;
    }
    .sub-icon { margin-right: 6px; color: var(--primary-color, #094b69); font-size: 11px; }
    
    /* Show toggle button in mobile */
    .action-btn.mobile-menu-toggle { display: inline-block; }
}

/* ==========================================================================
   DYNAMIC HOME CATEGORY BLOCKS (ADMIN CONTROLLABLE & ACCESSIBLE)
   ========================================================================== */
.dynamic-category-wrapper {
    display: flex;
    flex-wrap: wrap; /* Allows blocks to wrap seamlessly based on width */
    gap: 30px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.dynamic-category-block {
    background: #ffffff;
    box-sizing: border-box;
}

/* Width Definitions set by Admin Panel */
.dynamic-category-block.design_3_col { width: calc(33.333% - 20px); }
.dynamic-category-block.design_2_col { width: calc(50% - 15px); }
.dynamic-category-block.design_1_col { width: 100%; }

/* Header Styles */
.premium-block-header {
    border-bottom: 1px solid var(--primary-blue, #094b69);
    margin-bottom: 20px;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
}

.premium-block-title {
    font-size: 22px; /* Large, easy to read */
    color: var(--text-dark, #333);
    margin: 0;
    font-weight: 700;
    position: relative;
    padding-left: 14px;
}

.premium-block-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 3px;
    background-color: var(--primary-blue, #094b69);
}

/* Layout Specific Behaviours */
.design_3_col .premium-block-content {
    display: flex;
    flex-direction: column; /* Lead Top, List Bottom */
    gap: 20px;
}

.design_2_col .premium-block-content {
    display: grid;
    grid-template-columns: 1.1fr 1fr; /* Lead Left, List Right */
    gap: 20px;
    align-items: flex-start;
}

.design_1_col .premium-block-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Large Lead Left, Grid List Right */
    gap: 30px;
    align-items: flex-start;
}

/* Components Styling */
.premium-lead-img {
    display: block;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    margin-bottom: 12px;
    border-radius: 4px;
}

.premium-lead-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.premium-lead-img:hover img {
    transform: scale(1.03);
}

.premium-lead-title {
    font-size: 20px; /* Big, accessible font */
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.premium-lead-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s;
}

.premium-lead-title a:hover {
    color: var(--primary-color, #cc0000);
}

.premium-lead-excerpt {
    font-size: 15px; /* Eyesight friendly */
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

.premium-list-posts {
    display: flex;
    flex-direction: column;
}

.premium-list-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px dashed #cbd5e1;
}

.premium-list-item:first-child { padding-top: 0; }
.premium-list-item:last-child { padding-bottom: 0; border-bottom: none; }

.premium-list-info { flex: 1; }

.premium-list-info h4 {
    font-size: 16px; /* Accessible list titles */
    font-weight: 600;
    margin: 0;
    line-height: 1.5;
}

.premium-list-info h4 a {
    color: #334155;
    text-decoration: none;
    transition: color 0.3s;
}

.premium-list-info h4 a:hover {
    color: var(--primary-color, #cc0000);
}

.premium-list-img {
    width: 100px;
    height: 65px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
}

.premium-list-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.premium-list-img:hover img {
    transform: scale(1.05);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .dynamic-category-block.design_3_col { width: calc(50% - 15px); }
}

@media (max-width: 768px) {
    .dynamic-category-block.design_3_col,
    .dynamic-category-block.design_2_col,
    .dynamic-category-block.design_1_col {
        width: 100%;
    }
    
    .design_2_col .premium-block-content,
    .design_1_col .premium-block-content {
        grid-template-columns: 1fr;
    }
    
    .premium-list-item:first-child {
        padding-top: 15px;
        border-top: 1px solid #e2e8f0;
    }
}

/* ==========================================
   TICKER SECTION (সর্বশেষ সংবাদ) - MOBILE OVERLAP FIX
========================================== */
@media (max-width: 768px) {
    .ticker-section {
        padding: 6px 0;
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
    }
    .ticker-container {
        display: flex !important;
        flex-direction: row !important; /* এটি ব্যাজ এবং নিউজকে এক লাইনে রাখবে */
        flex-wrap: nowrap !important;   /* এটি কোনোভাবেই নিচে ভাঙতে দেবে না */
        align-items: center;
        position: relative;
        padding: 0 10px;
        overflow: hidden;
        width: 100%;
    }
    .ticker-badge {
        background: var(--primary-color, #094b69) !important;
        color: #ffffff !important;
        padding: 4px 12px;
        font-size: 13px;
        font-weight: 700;
        white-space: nowrap;
        position: relative;
        z-index: 10; 
        flex-shrink: 0;
        width: auto !important; /* এটি ব্যাজটিকে ফুল স্ক্রিন হওয়া থেকে আটকাবে */
        display: inline-block !important;
        box-shadow: 4px 0 8px -2px rgba(0,0,0,0.3); 
    }
    .ticker-content {
        flex-grow: 1;
        position: relative;
        z-index: 1; 
        margin-left: -15px; 
        padding-left: 25px; 
        overflow: hidden;
    }
    .ticker-content marquee {
        display: block;
        width: 100%;
    }
    .ticker-item {
        font-size: 14px;
        color: #1e293b;
        font-weight: 500;
        display: inline-block;
        margin-right: 25px !important;
    }
}

/* ==========================================
   ULTRA COMPACT SIDEBAR POLL WIDGET
========================================== */
.sidebar-poll-widget {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.sidebar-poll-widget .widget-title {
    margin: 0;
    padding: 10px 12px; /* প্যাডিং কমানো হয়েছে */
    background: var(--primary-color, #094b69);
    color: #fff;
    font-size: 14px; /* টাইটেলের সাইজ ছোট করা হয়েছে */
    font-weight: 700;
}
.sidebar-poll-img img {
    width: 100%;
    height: 110px; /* ছবির উচ্চতা ১৫০px থেকে ১১০px করা হয়েছে */
    object-fit: cover;
    border-bottom: 1px solid #e2e8f0;
}
.sidebar-poll-content {
    padding: 12px; /* ভেতরের প্যাডিং কমানো হয়েছে */
}
.sidebar-poll-question {
    font-size: 14px; /* ফন্ট সাইজ কমানো হয়েছে */
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.3; /* লেখা যেন পারফেক্টলি শো করে তাই অ্যাডজাস্ট করা হয়েছে */
}
.sidebar-poll-options {
    display: flex;
    flex-direction: column;
    gap: 6px; /* বাটনগুলোর মাঝের ফাঁকা কমানো হয়েছে */
}
.sidebar-poll-btn {
    width: 100%;
    padding: 8px; /* বাটনের প্যাডিং কমানো হয়েছে */
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px; /* বাটনের লেখার সাইজ কমানো হয়েছে */
    font-weight: 600;
    color: #475569;
    transition: all 0.3s ease;
    text-align: center;
}
.sidebar-poll-btn:hover {
    background: var(--primary-color, #094b69);
    color: #fff;
    border-color: var(--primary-color, #094b69);
    transform: translateY(-2px);
}
.sidebar-poll-results {
    margin-top: 8px;
}
.sidebar-poll-item {
    margin-bottom: 8px; /* রেজাল্টের আইটেমগুলোর মাঝের ফাঁকা কমানো হয়েছে */
}
.sidebar-poll-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px; /* লেখার সাইজ ছোট করা হয়েছে */
    font-weight: 600;
    margin-bottom: 4px;
    color: #334155;
}
.sidebar-poll-bar {
    width: 100%;
    height: 6px; /* প্রোগ্রেস বার আরও চিকন করা হয়েছে */
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}
.sidebar-poll-fill {
    height: 100%;
    border-radius: 10px;
    width: 0%; /* JS Animation */
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.sb-fill-yes { background: #10b981; }
.sb-fill-no { background: #ef4444; }
.sb-fill-none { background: #f59e0b; }
.sidebar-poll-thanks {
    text-align: center;
    color: #10b981;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 12px;
}

/* ==========================================
   ADVANCED AUTHOR PROFILE & NEWS GRID
========================================== */
.author-profile-wrapper {
    background: linear-gradient(135deg, var(--primary-color, #094b69) 0%, #1e293b 100%);
    border-radius: 12px;
    padding: 40px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

/* Background decorative circles */
.author-profile-wrapper::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.author-profile-wrapper::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: 100px;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.author-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--primary-color, #094b69);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 50px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.author-info {
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.author-name {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.author-role {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 20px;
}

.author-stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #38bdf8;
}

.stat-label {
    font-size: 13px;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Author News Grid */
.author-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.author-news-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.author-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.anc-thumb {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.anc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.author-news-card:hover .anc-thumb img {
    transform: scale(1.05);
}

.anc-cat-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--primary-color, #094b69);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.anc-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.anc-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

.anc-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s;
}

.anc-title a:hover {
    color: var(--primary-color, #094b69);
}

.anc-meta {
    display: flex;
    justify-content: space-between;
    color: #64748b;
    font-size: 13px;
    border-top: 1px dashed #e2e8f0;
    padding-top: 12px;
}

/* Modern Smart Pagination */
.smart-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 40px 0;
}

.smart-pagination a, .smart-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.smart-pagination a:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.smart-pagination .active {
    background: var(--primary-color, #094b69);
    color: #ffffff;
    border-color: var(--primary-color, #094b69);
}

.smart-pagination .disabled {
    color: #cbd5e1;
    background: #f8fafc;
    cursor: not-allowed;
}

/* Responsive Author Page */
@media (max-width: 768px) {
    .author-profile-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 20px;
    }
    .author-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* ডিফল্ট লাইট মোড (যদি আগে থেকে না থাকে তবে বসাতে পারেন) */
:root {
    --bg-color: #ffffff;
    --text-color: #1e293b;
    --card-bg: #f8fafc;
    --border-color: #e2e8f0;
}

/* ডার্ক মোড কালার প্যালেট */
html.dark-mode body {
    background-color: #0f172a;
    color: #f1f5f9;
}

html.dark-mode .main-header, 
html.dark-mode .top-nav, 
html.dark-mode .news-card,
html.dark-mode .dynamic-category-block,
html.dark-mode .sidebar-widget,
html.dark-mode .header-ad-section {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

html.dark-mode a {
    color: #e2e8f0;
}

html.dark-mode a:hover {
    color: #38bdf8; /* একটি সুন্দর নীল হোভার কালার */
}

html.dark-mode .text-muted {
    color: #94a3b8 !important;
}

html.dark-mode .mobile-menu-header,
html.dark-mode .dropdown-menu {
    background-color: #1e293b !important;
}