/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   Cross-Browser Font Standardization
   -------------------------------------------------------------------------
   1. html font-size is fixed at 100% (= 16px in every desktop/mobile
      browser). All font-size values below were converted from px to rem
      (1rem = 16px), so every element scales from this single root value.
   2. text-size-adjust is disabled so mobile Safari/Chrome cannot silently
      "auto-inflate" text after rotation, keeping sizes identical across
      devices.
   3. Font smoothing + a full cross-platform font stack are added so
      Bengali/Latin text renders with the same weight and sharpness on
      Windows, macOS, Android and iOS.
   ========================================================================== */
html {
    font-size: 100%; /* 1rem = 16px baseline, same on every browser */
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Arial', 'Segoe UI', 'Noto Sans Bengali', 'Hind Siliguri', sans-serif;
    background-color: #f0f4f8; /* Soft blue-tinted white for a cleaner look */
    color: #333333;
    font-size: 1rem; /* 16px standard base size for all browsers */
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==========================================================================
   Updated Header Layout (Logo Centered)
   ========================================================================== */

/* Main Header Container */
.header-middle {
    background-color: #ffffff;
    padding: 25px 0;
    /* Optional: A subtle bottom shadow to separate from nav */
    box-shadow: 0 1px 3px rgba(0, 86, 179, 0.05);
}

.logo-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* Left Side: Location & Date */
.header-location-date {
    flex: 1;
    font-size: 0.9375rem;
    color: #555555;
    font-weight: 700;
}

/* Center: Logo */
.header-logo-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.logo-img {
    max-width: 280px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.02);
}

/* Right Side: Social Icons */
.header-social {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.header-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 0.875rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-social a:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Social Colors */
.fb-bg { background-color: #1877F2; }
.yt-bg { background-color: #FF0000; }
.tw-bg { background-color: #1DA1F2; }
.ig-bg { background-color: #E1306C; }
.in-bg { background-color: #0077B5; }

/* Responsive Header */
@media (max-width: 992px) {
    .logo-area {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 20px;
    }
    
    .header-location-date, 
    .header-logo-center, 
    .header-social {
        flex: unset;
        justify-content: center;
    }
}


/* ==========================================================================
   Header Top Bar
   ========================================================================== */
.top-bar {
    background-color: #ffffff;
    padding: 10px 0;
    font-size: 0.9375rem;
    color: #555555;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 0.75rem;
}

.fb-bg { background-color: #3b5998; }
.yt-bg { background-color: #ff0000; }
.tw-bg { background-color: #1da1f2; }
.ig-bg { background-color: #e1306c; }
.in-bg { background-color: #0077b5; }

/* ==========================================================================
   Main Header & Logo Area
   ========================================================================== */
.header-middle {
    background-color: #ffffff;
    padding: 5px 0;
}

.logo-area {
    display: flex;
    align-items: center;
}

.logo-img {
    max-width: 250px;
    height: auto;
}

/* ==========================================================================
   Blue Navigation Bar
   ========================================================================== */
.main-nav {
    background-color: #0056b3; /* Professional Primary Blue */
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 86, 179, 0.15);
}

.main-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav ul {
    display: flex;
    flex-wrap: wrap;
}

.main-nav a {
    color: #ffffff;
    padding: 14px 20px;
    display: block;
    font-weight: bold;
    font-size: 0.9375rem;
}

.main-nav a:hover, .main-nav a.active {
    background-color: #004494; /* Darker Blue for hover state */
}

.search-icon {
    color: #ffffff;
    padding: 14px 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.search-icon:hover {
    background-color: #004494;
}

/* ==========================================================================
   Breaking News Ticker
   ========================================================================== */
.breaking-news-wrapper {
    background-color: #ffffff;
    margin-top: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.breaking-badge {
    background-color: #0056b3; /* Matching Blue */
    color: #ffffff;
    padding: 10px 18px;
    font-weight: bold;
    font-size: 0.875rem;
    white-space: nowrap;
}

.ticker-content {
    flex-grow: 1;
    overflow: hidden;
    padding: 0 15px;
}

.ticker-content a {
    color: #0056b3;
    font-weight: bold;
    margin-right: 30px;
}

.ticker-content a:hover {
    color: #003d82;
}

/* ==========================================================================
   Main Content Layout (Grid + Sidebar)
   ========================================================================== */
.main-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 25px auto 40px;
}

.content-area {
    flex: 0 0 calc(75% - 10px);
    max-width: calc(75% - 10px);
}

.sidebar-area {
    flex: 0 0 calc(25% - 10px);
    max-width: calc(25% - 10px);
}

/* ==========================================================================
   News Grids & Cards
   ========================================================================== */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.news-card {
    background: #ffffff;
    overflow: hidden;
    border-radius: 6px;
    /* Clean shadow instead of borders */
    box-shadow: 0 0 0 1px #e6e9ec, 0 2px 4px rgba(0,0,0,0.03);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 0 1px #0056b3, 0 8px 15px rgba(0, 86, 179, 0.1);
}

.news-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.news-title {
    padding: 12px;
    font-size: 0.9375rem;
    font-weight: bold;
    line-height: 1.4;
    color: #111111;
}

.news-title:hover {
    color: #0056b3; /* Blue hover text */
}

.category-block {
    margin-bottom: 30px;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.cat-header {
    background-color: #0056b3; /* Blue heading */
    color: #ffffff;
    padding: 8px 18px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 20px;
    font-size: 1rem;
    border-radius: 4px;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* ==========================================================================
   Sidebar Tabs & Widgets
   ========================================================================== */
.sidebar-tabs {
    display: flex;
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.tab-btn {
    flex: 1;
    text-align: center;
    padding: 12px 10px;
    background: #1e3a5f; /* Deep grayish blue for inactive */
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.875rem;
}

.tab-btn.active {
    background: #0056b3; /* Active Blue */
}

.sidebar-list-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    background: #ffffff;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 0 0 1px #e6e9ec, 0 2px 4px rgba(0,0,0,0.02);
    transition: box-shadow 0.3s ease;
}

.sidebar-list-item:hover {
    box-shadow: 0 0 0 1px #0056b3;
}

.sidebar-list-img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.sidebar-list-title {
    font-size: 0.8125rem;
    font-weight: bold;
    line-height: 1.4;
    color: #222222;
}

.sidebar-list-title:hover {
    color: #0056b3;
}

.ad-banner {
    margin-top: 25px;
    width: 100%;
    display: block;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* ==========================================================================
   100% Fully Responsive Footer CSS across all screens
   ========================================================================== */
.site-footer {
    background-color: #0f172a;
    color: #cbd5e1;
    padding: 50px 0 25px;
    margin-top: 60px;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 35px;
    margin-bottom: 40px;
}

.footer-logo {
    max-width: 160px;
    margin-bottom: 15px;
    display: block;
}

.footer-bio {
    color: #94a3b8;
    margin-bottom: 20px;
    font-size: 0.875rem;
}

/* ==========================================================================
   Professional SVG Footer Social Icons CSS
   ========================================================================== */
.footer-social-icons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
}

.footer-social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.footer-social-icons a svg {
    display: block;
    flex-shrink: 0;
}

.footer-social-icons a:hover {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* আইকন ব্যাকগ্রাউন্ড কালার */
.fb-bg { background-color: #1877f2; }
.tw-bg { background-color: #0f1419; border: 1px solid #334155; } /* X / Twitter Dark */
.ig-bg { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.yt-bg { background-color: #ff0000; }

.footer-heading {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 8px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background-color: #0056b3;
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
    display: inline-block;
}

.footer-links a:hover {
    color: #38bdf8;
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 25px;
    border-top: 1px solid #1e293b;
    font-size: 0.875rem;
    color: #94a3b8;
}

/* ==========================================================================
   Responsive Breakpoints (ট্যাবলেট ও মোবাইল স্ক্রিন)
   ========================================================================== */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .site-footer {
        padding: 40px 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   Dynamic Dropdown Navigation Styles (Blue & White Theme)
   ========================================================================== */

/* Main Nav Item Relative Positioning */
.main-nav ul li {
    position: relative;
}

/* Dropdown Indicator (Arrow) */
.drop-icon {
    font-size: 0.75rem;
    margin-left: 6px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

/* Dropdown Container */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 220px;
    /* Soft blue shadow instead of borders */
    box-shadow: 0 10px 25px rgba(0, 86, 179, 0.15), 0 0 0 1px rgba(0,0,0,0.02);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 100;
    border-radius: 0 0 6px 6px;
    display: flex;
    flex-direction: column;
    padding: 0;
}

/* Hover effect to show Dropdown */
.main-nav ul li:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Links */
.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    color: #333333 !important;
    padding: 12px 20px !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    /* Separator using box-shadow */
    box-shadow: 0 1px 0 rgba(0,0,0,0.04);
    display: flex !important;
    justify-content: space-between;
    align-items: center;
}

.dropdown-menu a:hover {
    background-color: #f0f4f8 !important;
    color: #0056b3 !important;
    padding-left: 25px !important; /* Subtle indent animation */
}

/* Sub-dropdowns (Level 3 and deeper) */
.dropdown-menu .dropdown-menu {
    top: 0;
    left: 100%;
    border-radius: 6px;
    transform: translateX(15px);
}

.dropdown-menu li:hover > .dropdown-menu {
    transform: translateX(0);
}

/* Rotate arrow on hover */
.main-nav ul li:hover > a > .drop-icon {
    transform: rotate(180deg);
}
.dropdown-menu li > a > .drop-icon {
    transform: rotate(-90deg); /* Point right for sub-menus */
}
.dropdown-menu li:hover > a > .drop-icon {
    transform: rotate(0deg);
}

/* ==========================================================================
   Responsive Dropdown for Mobile
   ========================================================================== */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background-color: #004494; /* Darker blue for nested mobile menu */
        border-radius: 0;
        width: 100%;
    }
    
    .main-nav ul li:hover > .dropdown-menu {
        display: flex;
    }
    
    .dropdown-menu a {
        color: #ffffff !important;
        padding-left: 30px !important;
        box-shadow: 0 1px 0 rgba(255,255,255,0.05);
    }
    
    .dropdown-menu a:hover {
        background-color: #003d82 !important;
        color: #ffffff !important;
        padding-left: 35px !important;
    }
    
    .dropdown-menu .dropdown-menu {
        background-color: #003366;
    }
    
    .dropdown-menu .dropdown-menu a {
        padding-left: 40px !important;
    }
}

/* ==========================================================================
   3-Column Article Page Styles (Premium Blue Theme)
   ========================================================================== */

/* Layout Wrapper for 3 Columns */
.single-article-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px auto 50px;
    align-items: flex-start;
}

/* Left Sidebar: Latest News */
.article-left-sidebar {
    flex: 0 0 calc(20% - 14px);
    max-width: calc(20% - 14px);
}

/* Middle: Main Article Content */
.article-main-content {
    flex: 0 0 calc(55% - 14px);
    max-width: calc(55% - 14px);
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.05);
}

/* Right Sidebar: Popular News & Ads */
.article-right-sidebar {
    flex: 0 0 calc(25% - 14px);
    max-width: calc(25% - 14px);
}

/* Sidebar Widgets */
.sidebar-widget {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.05);
}

.widget-title {
    font-size: 1.1875rem;
    font-weight: bold;
    color: #0056b3;
    margin-bottom: 20px;
    padding-bottom: 10px;
    box-shadow: 0 1px 0 rgba(0, 86, 179, 0.15);
}

/* Vertical News List (Left & Right) */
.widget-news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.widget-news-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-bottom: 12px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

.widget-news-item:last-child {
    box-shadow: none;
    padding-bottom: 0;
}

.widget-news-img {
    width: 70px;
    height: 55px;
    object-fit: cover;
    border-radius: 4px;
}

.widget-news-title {
    font-size: 1.0625rem;
    font-weight: bold;
    color: #111111;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.widget-news-title:hover {
    color: #0056b3;
}

/* Main Article Elements */
.breadcrumb {
    font-size: 0.9375rem;
    color: #64748b;
    margin-bottom: 15px;
    font-weight: bold;
}

.breadcrumb a {
    color: #0056b3;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #003d82;
}

.article-title-main {
    font-size: 2rem;
    font-weight: 900;
    color: #0a192f;
    line-height: 1.4;
    margin-bottom: 20px;
}

.article-meta-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-bottom: 15px;
    margin-bottom: 20px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #f0f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0056b3;
    font-size: 1.25rem;
}

.author-details p {
    margin: 0;
    font-size: 0.8125rem;
    color: #475569;
}

.author-name {
    color: #0056b3;
    font-weight: bold;
}

.social-share-btns {
    display: flex;
    gap: 8px;
}

.share-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #fff;
    font-size: 0.875rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.share-btn:hover { opacity: 0.8; }
.btn-fb { background-color: #1877F2; }
.btn-tw { background-color: #1DA1F2; }
.btn-wa { background-color: #25D366; }
.btn-print { background-color: #64748b; }
.btn-text-size { background-color: #e2e8f0; color: #333; font-weight: bold; }

.article-featured-img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.article-body-content {
    font-size: 0.875rem;
    line-height: 1.8;
    color: #333333;
    text-align: justify;
}

.article-body-content p {
    margin-bottom: 20px;
}

.article-body-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 15px 0;
}

/* Advertisement */
.ad-container {
    margin-bottom: 25px;
    text-align: center;
}

.ad-container img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* ==========================================================================
   Responsive Logic for 3 Columns
   ========================================================================== */
@media (max-width: 1200px) {
    .article-left-sidebar { flex: 0 0 calc(25% - 14px); max-width: calc(25% - 14px); }
    .article-main-content { flex: 0 0 calc(50% - 14px); max-width: calc(50% - 14px); }
    .article-right-sidebar { flex: 0 0 calc(25% - 14px); max-width: calc(25% - 14px); }
}

@media (max-width: 992px) {
    /* Hide left sidebar on tablet to save space, make main content larger */
    .article-left-sidebar { display: none; }
    .article-main-content { flex: 0 0 calc(65% - 10px); max-width: calc(65% - 10px); }
    .article-right-sidebar { flex: 0 0 calc(35% - 10px); max-width: calc(35% - 10px); }
}

@media (max-width: 768px) {
    /* Stack everything vertically on mobile */
    .article-main-content, .article-right-sidebar {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .article-title-main { font-size: 1.5rem; }
    
    .article-meta-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* ==========================================================================
   Home Page Layout Styles (Premium Blue Theme)
   ========================================================================== */

/* Top Featured Section (5 Items Grid) */
.top-featured-section {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.featured-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.featured-card {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.1);
    background: #fff;
    transition: transform 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 86, 179, 0.2);
}

.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-card.small {
    height: 200px;
}

.featured-card.large {
    height: 415px; /* Matches two small cards + gap */
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 15px 15px;
    background: linear-gradient(transparent, rgba(10, 25, 47, 0.9));
    color: #fff;
}

.featured-overlay h3 {
    font-size: 0.9375rem;
    margin: 0;
    color: #fff;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.featured-card.large .featured-overlay h3 {
    font-size: 1.5rem;
}

.featured-card:hover .featured-overlay h3 {
    color: #90caf9; /* Light blue hover */
}

/* Category Blocks */
.category-block {
    margin-bottom: 35px;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.05);
}

.cat-header {
    background-color: #0056b3; /* Primary Blue */
    color: #ffffff;
    padding: 8px 18px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 20px;
    font-size: 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 86, 179, 0.2);
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* Sidebar Specifics */
.sidebar-tabs {
    display: flex;
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 86, 179, 0.1);
}

.tab-btn {
    flex: 1;
    text-align: center;
    padding: 12px 10px;
    background: #f0f4f8; 
    color: #333;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: #0056b3;
    color: #fff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .top-featured-section {
        grid-template-columns: 1fr 1fr;
    }
    .featured-col.large-col {
        grid-column: span 2;
    }
    .featured-card.large {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .top-featured-section {
        grid-template-columns: 1fr;
    }
    .featured-col.large-col {
        grid-column: span 1;
        order: -1; /* Bring large card to top on mobile */
    }
    .featured-card.large, .featured-card.small {
        height: 220px;
    }
    .cat-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Category Page Styles (Premium Blue Theme)
   ========================================================================== */

/* Layout Wrapper */
.category-page-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 30px auto 50px;
    align-items: flex-start;
}

.category-main-content {
    flex: 0 0 calc(70% - 15px);
    max-width: calc(70% - 15px);
}

.category-sidebar {
    flex: 0 0 calc(30% - 15px);
    max-width: calc(30% - 15px);
}

/* Category Header & Breadcrumb */
.category-header-box {
    background: #ffffff;
    padding: 25px 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.breadcrumb {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: bold;
}

.breadcrumb a {
    color: #0056b3;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #003d82;
}

.category-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: #0a192f;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 28px;
    background-color: #0056b3;
    border-radius: 4px;
}

/* Category News Grid */
.category-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.cat-news-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 0 1px #e6e9ec, 0 2px 5px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cat-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 0 1px #0056b3, 0 8px 20px rgba(0, 86, 179, 0.12);
}

.cat-news-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.cat-news-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cat-news-title {
    font-size: 1.125rem;
    font-weight: bold;
    color: #111111;
    line-height: 1.4;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.cat-news-card:hover .cat-news-title {
    color: #0056b3;
}

.cat-news-meta {
    margin-top: auto;
    font-size: 0.8125rem;
    color: #64748b;
    display: flex;
    justify-content: space-between;
}

/* Smart Pagination UI */
.smart-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.page-link {
    padding: 10px 18px;
    background: #ffffff;
    color: #0a192f;
    border-radius: 6px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.page-link:hover, .page-link.active {
    background: #0056b3;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.2);
}

.page-info {
    padding: 10px 18px;
    color: #64748b;
    font-weight: bold;
}

/* Responsive Logic */
@media (max-width: 992px) {
    .category-main-content, .category-sidebar {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .category-news-grid {
        grid-template-columns: 1fr;
    }
    .category-title {
        font-size: 1.5rem;
    }
    .category-title::before {
        height: 24px;
    }
}

/* ==========================================================================
   Advanced Newspaper Category Layout (Premium Blue Theme)
   ========================================================================== */

/* Main Category Grid inside Content Area */
.home-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Individual Category Block */
.news-category-block {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

/* Category Header */
.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    /* Using box-shadow instead of border-bottom for the separator line */
    box-shadow: 0 2px 0 #e2e8f0;
}

.block-title {
    background-color: #0056b3; /* Premium Blue */
    color: #ffffff;
    padding: 6px 15px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px 4px 0 0;
    margin: 0;
    box-shadow: 0 -2px 5px rgba(0, 86, 179, 0.1);
}

.read-more {
    color: #0056b3;
    font-size: 0.8125rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #003d82;
}

.read-more-icon {
    background: #0056b3;
    color: #ffffff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    line-height: 1;
}

/* Content Area inside Block */
.block-content {
    display: flex;
    flex-direction: column;
}

/* 1st Article - Large */
.news-item-large {
    display: block;
    margin-bottom: 15px;
}

.news-item-large img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.news-item-large:hover img {
    transform: scale(1.02);
}

.news-item-large h4 {
    font-size: 1.125rem;
    color: #111111;
    line-height: 1.4;
    font-weight: bold;
    margin: 0;
    transition: color 0.3s ease;
}

.news-item-large:hover h4 {
    color: #0056b3;
}

/* Remaining Articles - List View */
.news-item-list {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 15px 0;
    /* Using box-shadow instead of border-top for separation */
    box-shadow: 0 -1px 0 #f1f5f9;
}

.news-item-list img {
    width: 110px;
    height: 75px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.news-item-list h4 {
    font-size: 0.9375rem;
    color: #222222;
    line-height: 1.4;
    font-weight: normal;
    margin: 0;
    transition: color 0.3s ease;
}

.news-item-list:hover h4 {
    color: #0056b3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .home-categories-grid {
        grid-template-columns: 1fr;
    }
    .news-item-large img {
        height: auto;
    }
}

/* ==========================================================================
   Advanced Search Overlay & Results Styles (Premium Blue Theme)
   ========================================================================== */

/* Full-Screen Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 25, 47, 0.95); /* Deep Navy Translucent */
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 2.8125rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    line-height: 1;
}

.search-close-btn:hover {
    transform: rotate(90deg);
    color: #0056b3;
}

.search-form-container {
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
    transform: translateY(30px);
    transition: transform 0.4s ease;
}

.search-overlay.active .search-form-container {
    transform: translateY(0);
}

.search-input-group {
    display: flex;
    align-items: center;
    background: transparent;
    box-shadow: 0 2px 0 rgba(255, 255, 255, 0.5); /* Bottom line effect using shadow */
    padding-bottom: 10px;
    transition: box-shadow 0.3s ease;
}

.search-input-group:focus-within {
    box-shadow: 0 2px 0 #0056b3; /* Primary Blue focus */
}

.search-input-group input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    font-weight: bold;
    padding: 10px 0;
    outline: none;
}

.search-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-input-group button {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.75rem;
    cursor: pointer;
    padding-left: 20px;
    transition: color 0.3s ease;
}

.search-input-group button:hover {
    color: #0056b3;
}

/* Search Results Page Styles */
.search-results-wrapper {
    margin: 40px auto 60px;
}

.search-header-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 35px;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.05);
    text-align: center;
}

.search-header-title {
    font-size: 1.5rem;
    color: #0a192f;
    margin-bottom: 10px;
}

.search-keyword {
    color: #0056b3;
    font-weight: 900;
}

.search-count {
    color: #64748b;
    font-size: 0.9375rem;
}

/* Search Results Grid */
.search-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

/* Re-using card design logic with box-shadow */
.search-news-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 0 1px #e6e9ec, 0 4px 10px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.search-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 0 1px #0056b3, 0 8px 20px rgba(0, 86, 179, 0.12);
}

.search-news-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.search-news-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.search-category-badge {
    color: #0056b3;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.search-news-title {
    font-size: 1.0625rem;
    font-weight: bold;
    color: #111111;
    line-height: 1.4;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.search-news-card:hover .search-news-title {
    color: #0056b3;
}

.search-news-meta {
    margin-top: auto;
    font-size: 0.8125rem;
    color: #64748b;
}

/* Responsive */
@media (max-width: 992px) {
    .search-news-grid { grid-template-columns: repeat(2, 1fr); }
    .search-input-group input { font-size: 1.5rem; }
}

@media (max-width: 768px) {
    .search-news-grid { grid-template-columns: 1fr; }
    .search-input-group input { font-size: 1.25rem; }
    .search-close-btn { top: 15px; right: 20px; font-size: 2.1875rem; }
}

/* ==========================================================================
   Header & Navigation Responsive Styles
   ========================================================================== */

/* হামবারগার বাটন (ডেস্কটপে হাইড থাকবে) */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-btn span {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s;
}

/* মোবাইল সাইডবার মেনু (Off-Canvas) */
.mobile-offcanvas-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background-color: #ffffff;
    z-index: 10000;
    box-shadow: 2px 0 15px rgba(0,0,0,0.2);
    transition: left 0.3s ease-in-out;
    overflow-y: auto;
}

.mobile-offcanvas-menu.active {
    left: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #0056b3;
    color: #ffffff;
}

.mobile-menu-title {
    font-size: 1.125rem;
    font-weight: bold;
}

.mobile-close-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.75rem;
    cursor: pointer;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list li {
    border-bottom: 1px solid #e2e8f0;
}

.mobile-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-link a {
    padding: 12px 20px;
    display: block;
    flex-grow: 1;
    color: #1e293b;
    font-size: 0.9375rem;
    font-weight: 600;
}

.mobile-sub-toggle {
    padding: 10px 20px;
    font-size: 1.125rem;
    font-weight: bold;
    color: #0056b3;
    cursor: pointer;
}

/* মোবাইল সাব-মেনু (Accordion) */
.mobile-sub-menu {
    list-style: none;
    padding-left: 15px;
    background-color: #f8fafc;
    display: none;
}

.mobile-sub-menu.active {
    display: block;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
    /* ল্যাপটপ ও ছোট স্ক্রিনের জন্য লোগো এবং সোশ্যাল মিডিয়া অ্যাডজাস্টমেন্ট */
    .header-location-date, .header-social {
        display: none; /* ছোট স্ক্রিনে হেডার ক্লিন রাখতে হাইড করা হলো */
    }
    .header-logo-center {
        width: 100%;
        margin: 5px 0;
    }
}

@media (max-width: 768px) {
    .hamburger-btn {
        display: flex; /* মোবাইলে হামবারগার বাটন দেখাবে */
    }

    .desktop-menu {
        display: none !important; /* মোবাইলে ডেস্কটপ মেনু হাইড থাকবে */
    }

    .main-nav-inner {
        padding: 12px 15px;
    }

    .search-text {
        display: none; /* মোবাইলে শুধু সার্চ আইকন দেখাবে, টেক্সট নয় */
    }

    .search-icon {
        padding: 0;
    }
}

/* ==========================================================================
   Article Tags Styles (Premium Blue Theme)
   ========================================================================== */
.article-tags-box {
    margin-top: 30px;
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    box-shadow: 0 -1px 0 rgba(0, 86, 179, 0.1); /* Top border alternative */
}

.tag-label {
    font-weight: bold;
    color: #0a192f;
    font-size: 1rem;
    margin-right: 5px;
}

.single-tag {
    background: #f0f4f8;
    color: #0056b3;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 86, 179, 0.05);
    text-decoration: none;
    display: inline-block;
}

.single-tag:hover {
    background: #0056b3;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.15);
}

.single-tag::before {
    content: "# ";
    opacity: 0.7;
}

/* ==========================================================================
   Advanced Tag Page Styles (Premium Blue Theme)
   ========================================================================== */

/* Layout Wrapper */
.tag-page-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 30px auto 50px;
    align-items: flex-start;
}

.tag-main-content {
    flex: 0 0 calc(70% - 15px);
    max-width: calc(70% - 15px);
}

.tag-sidebar {
    flex: 0 0 calc(30% - 15px);
    max-width: calc(30% - 15px);
}

/* Tag Header Box */
.tag-header-box {
    background: #ffffff;
    padding: 25px 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.tag-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: #0a192f;
    margin: 0;
}

.tag-highlight {
    color: #0056b3;
}

.tag-count-info {
    font-size: 0.9375rem;
    color: #64748b;
    font-weight: bold;
}

/* Tag News Grid */
.tag-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.tag-news-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 0 1px #e6e9ec, 0 4px 10px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.tag-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 0 1px #0056b3, 0 8px 20px rgba(0, 86, 179, 0.12);
}

.tag-news-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.tag-news-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tag-category-badge {
    color: #0056b3;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: inline-block;
}

.tag-news-title {
    font-size: 1.125rem;
    font-weight: bold;
    color: #111111;
    line-height: 1.4;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.tag-news-card:hover .tag-news-title {
    color: #0056b3;
}

.tag-news-meta {
    margin-top: auto;
    font-size: 0.8125rem;
    color: #64748b;
    display: flex;
    justify-content: space-between;
}

/* Smart Pagination UI */
.smart-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.page-link {
    padding: 10px 18px;
    background: #ffffff;
    color: #0a192f;
    border-radius: 6px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-decoration: none;
}

.page-link:hover, .page-link.active {
    background: #0056b3;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.2);
}

.page-info {
    padding: 10px 18px;
    color: #64748b;
    font-weight: bold;
}

/* Empty State */
.empty-tag-state {
    background: #ffffff;
    padding: 60px 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Responsive Logic */
@media (max-width: 992px) {
    .tag-main-content, .tag-sidebar {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .tag-news-grid {
        grid-template-columns: 1fr;
    }
    .tag-title {
        font-size: 1.5rem;
    }
}

/* Social Share Buttons */
.social-share-btns {
    display: flex;
    gap: 8px;
    align-items: center;
}

.share-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #fff;
    font-size: 0.875rem;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.share-btn:hover { 
    opacity: 0.85; 
    transform: translateY(-2px);
}

/* Icon specific background colors */
.btn-fb { background-color: #1877F2; }
.btn-tw { background-color: #1DA1F2; } /* Or #000000 for X */
.btn-wa { background-color: #25D366; }
.btn-text-size { 
    background-color: #e2e8f0; 
    color: #333; 
    font-weight: 900; 
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1);
}

/* Ensure SVG matches color and scales */
.share-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* ==========================================================================
   Frontend Dynamic Ad Display Styles
   ========================================================================== */
.home-middle-ad-wrapper {
    grid-column: 1 / -1; /* Makes the ad span across all columns in the grid */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
}

.dynamic-ad-container {
    width: 100%;
    text-align: center;
    overflow: hidden;
}

.dynamic-ad-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.08);
    transition: transform 0.3s ease;
}

.dynamic-ad-container a:hover img {
    transform: scale(1.01);
}

/* ==========================================================================
   Dynamic Ad Container Styles for Articles
   ========================================================================== */
.dynamic-ad-container {
    width: 100%;
    text-align: center;
    margin: 25px 0;
    overflow: hidden;
    border-radius: 8px;
}

.dynamic-ad-container img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.08);
    transition: transform 0.3s ease;
}

.dynamic-ad-container a:hover img {
    transform: scale(1.02);
}

/* ==========================================================================
   Advanced Media Gallery Styles (Premium Theme)
   ========================================================================== */

/* Gallery Header & Tabs */
.gallery-header-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.05);
    text-align: center;
}

.gallery-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: #0a192f;
    margin-bottom: 20px;
}

.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.gallery-tab-btn {
    padding: 10px 25px;
    background: #f0f4f8;
    color: #64748b;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.gallery-tab-btn:hover, .gallery-tab-btn.active {
    background: #0056b3;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.2);
}

/* Gallery Grid */
.gallery-grid {
    display: none; /* Hidden by default, toggled by JS */
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.gallery-grid.active {
    display: grid;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Media Cards */
.media-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 0 1px #e6e9ec, 0 4px 10px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.media-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 0 1px #0056b3, 0 8px 25px rgba(0, 86, 179, 0.15);
}

/* Photo Specific */
.photo-thumbnail {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.media-card:hover .photo-thumbnail {
    transform: scale(1.05);
}

.media-title-box {
    padding: 15px 20px;
    background: #ffffff;
    z-index: 2;
}

.media-title {
    font-size: 1rem;
    font-weight: bold;
    color: #111111;
    margin: 0;
    line-height: 1.4;
}

/* Video Specific (16:9 Aspect Ratio) */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Lightbox Modal for Photos */
.lightbox-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
}

.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 2.1875rem;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.3s;
}

.lightbox-close:hover { color: #ef4444; }

.lightbox-caption {
    color: #fff;
    text-align: center;
    margin-top: 15px;
    font-size: 1.125rem;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 992px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-title { font-size: 1.375rem; }
}

/* ==========================================================================
   Home Photo Gallery Styles (Premium Blue Theme Match)
   ========================================================================== */

.photo-gallery-section {
    margin: 40px auto;
    padding-top: 20px;
}

/* Header & Title Line */
.pg-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid #0056b3; /* Premium Blue border */
    margin-bottom: 20px;
    padding-bottom: 0;
}

.pg-title {
    background-color: #0056b3;
    color: #ffffff;
    font-size: 1.375rem;
    font-weight: bold;
    padding: 8px 25px;
    margin: 0;
    display: inline-block;
}

.pg-more-link {
    color: #0056b3;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.pg-more-link:hover {
    color: #004494; /* Darker Blue for hover */
    text-decoration: underline;
}

/* Grid Layout (5 Columns) */
.pg-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

/* Image Cards */
.pg-card {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3 / 4; /* Portrait style like screenshot */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.pg-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pg-card:hover img {
    transform: scale(1.08);
}

/* Gradient Overlay */
.pg-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
    padding: 25px 15px 12px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Blue Tag (News) */
.pg-tag {
    font-size: 0.8125rem;
    font-weight: bold;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pg-tag::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 14px;
    background-color: #0056b3; /* Premium Blue left border */
}

/* Caption Text */
.pg-title-text {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* Bottom Dashes (Like Stories/WhatsApp Status) */
.pg-dashes {
    display: flex;
    gap: 4px;
    width: 100%;
}

.pg-dash {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
}

.pg-card:hover .pg-dash {
    background: #ffffff;
}

/* ==========================================================================
   Universal Lightbox Modal
   ========================================================================== */
.home-media-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(5px);
    z-index: 999999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.home-media-modal.active {
    display: flex;
    opacity: 1;
}

.home-media-content {
    max-width: 900px;
    width: 100%;
    position: relative;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.close-media-modal {
    position: absolute;
    top: -40px; right: 0;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 2.1875rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-media-modal:hover { 
    color: #dc2626; /* Standard Red color for closing modal */
}

.modal-body-render {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-body-render img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    object-fit: contain;
}

.modal-caption-area {
    padding: 15px;
    background: #111;
    color: #fff;
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 992px) {
    .pg-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 576px) {
    .pg-grid { grid-template-columns: repeat(2, 1fr); }
    .pg-title { font-size: 1.125rem; padding: 6px 15px; }
}

/* ==========================================================================
   Modal Read News Button Styles
   ========================================================================== */
.modal-title-text {
    margin-bottom: 12px;
    line-height: 1.5;
}

.modal-read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0056b3; /* Premium Blue */
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.3);
}

.modal-read-more-btn:hover {
    background: #004494; /* Darker Blue */
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 86, 179, 0.4);
}

/* ==========================================================================
   Dedicated Photo Gallery Page Styles (Premium Blue Theme)
   ========================================================================== */

/* Gallery Header */
.gallery-header-box {
    background: #ffffff;
    padding: 35px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.05);
    text-align: center;
    border-top: 4px solid #0056b3;
}

.gallery-title {
    font-size: 2rem;
    font-weight: 900;
    color: #0a192f;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.gallery-title svg {
    color: #0056b3;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

/* Media Cards */
.media-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 0 1px #e6e9ec, 0 4px 10px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.media-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 0 1px #0056b3, 0 8px 25px rgba(0, 86, 179, 0.15);
}

.photo-thumbnail {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.media-card:hover .photo-thumbnail {
    transform: scale(1.08);
}

.media-title-box {
    padding: 15px 20px;
    background: #ffffff;
    z-index: 2;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.media-title {
    font-size: 1rem;
    font-weight: bold;
    color: #111111;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    width: 100%;
    max-width: 900px;
    max-height: 95vh;
    position: relative;
    display: flex;
    flex-direction: column;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    overflow: hidden;
}

.lightbox-img-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

.lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #fff;
    font-size: 2.1875rem;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
    z-index: 10;
}

.lightbox-close:hover { 
    background: #ef4444; 
    transform: rotate(90deg);
}

.lightbox-caption {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 20px;
}

.modal-title-text {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* Modal Read News Button */
.modal-read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0056b3;
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.3);
}

.modal-read-more-btn:hover {
    background: #004494;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 86, 179, 0.4);
}

/* Responsive */
@media (max-width: 1200px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-title { font-size: 1.625rem; }
}
@media (max-width: 576px) {
    .gallery-grid { grid-template-columns: 1fr; gap: 20px;}
    .gallery-title { font-size: 1.375rem; }
    .photo-thumbnail { height: 250px; }
    .lightbox-close { top: 10px; right: 10px; width: 35px; height: 35px; font-size: 1.75rem;}
    .modal-title-text { font-size: 1rem; }
}

/* ==========================================================================
   Advanced Professional Sidebar Layout (১০০% রেসপনসিভ সিএসএস)
   ========================================================================== */
.sidebar-widget-box {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    margin-bottom: 25px;
}

.widget-header {
    border-bottom: 2px solid #0056b3;
    margin-bottom: 16px;
    padding-bottom: 8px;
}

.widget-title {
    font-size: 1.1875rem;
    font-weight: 700;
    color: #0056b3;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 18px;
    background: #be181d;
    border-radius: 2px;
}

/* ১. সাইডবার বড় লিড কার্ড (বিশেষ সংবাদের জন্য) */
.sidebar-lead-card {
    display: block;
    text-decoration: none;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.sidebar-lead-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.sidebar-lead-card:hover img {
    transform: scale(1.03);
}

.sidebar-lead-card h4 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.45;
    transition: color 0.2s ease;
}

.sidebar-lead-card:hover h4 {
    color: #0056b3;
}

/* ২. মতামত ও কলাম (গোলাকার ছবিসহ কার্ড স্টাইল) */
.sidebar-opinion-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-opinion-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
}

.sidebar-opinion-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.opinion-author-img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #0056b3;
    padding: 2px;
    flex-shrink: 0;
}

.opinion-info {
    display: flex;
    flex-direction: column;
}

.opinion-tag {
    font-size: 0.6875rem;
    color: #be181d;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.opinion-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.sidebar-opinion-card:hover h4 {
    color: #0056b3;
}

/* ৩. ট্রেন্ডিং ট্যাগস গ্রিড */
.trending-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.trending-tag {
    background: #f8fafc;
    color: #0f172a;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.25s ease;
}

.trending-tag:hover {
    background: #0056b3;
    color: #ffffff;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.2);
}

/* ৪. স্টিকি সাইডবার (পেজ স্ক্রল করলেও সাইডবার কখনো ফাঁকা দেখাবে না) */
@media (min-width: 993px) {
    .sticky-sidebar-widget {
        position: sticky;
        top: 20px;
    }
}

/* ==========================================================================
   Professional Right Off-Canvas Search Sidebar (১০০% রেসপনসিভ সিএসএস)
   ========================================================================== */

/* ডার্ক গ্লাসমরফিজম ব্যাকড্রপ */
.search-backdrop-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-backdrop-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ডানপাশ থেকে ওপেন হওয়া সাইডবার */
.header-search-sidebar {
    position: fixed;
    top: 0;
    right: -380px; /* ডিফল্টভাবে ডানপাশে লুকানো থাকবে */
    width: 360px;
    height: 100vh;
    background: #ffffff;
    z-index: 99999;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-search-sidebar.active {
    right: 0; /* একটিভ হলে ডানপাশ থেকে বেরিয়ে আসবে */
}

.search-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: #0056b3;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.125rem;
    font-weight: 700;
}

.search-sidebar-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.search-sidebar-close:hover {
    background: #be181d;
    transform: rotate(90deg);
}

.search-sidebar-body {
    padding: 25px 20px;
    flex-grow: 1;
    overflow-y: auto;
}

/* ইনপুট বক্স ও সার্চ বাটন */
.sidebar-search-form {
    margin-bottom: 30px;
}

.sidebar-search-input-group {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 2px solid #cbd5e1;
    border-radius: 50px;
    padding: 4px 6px 4px 18px;
    transition: all 0.25s ease;
}

.sidebar-search-input-group:focus-within {
    border-color: #0056b3;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.12);
}

.sidebar-search-input-group input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 10px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    outline: none;
    width: 100%;
}

.sidebar-search-input-group input::placeholder {
    color: #64748b;
    font-weight: 400;
}

.sidebar-search-input-group button {
    background: #0056b3;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.sidebar-search-input-group button:hover {
    background: #004494;
    transform: scale(1.05);
}

/* জনপ্রিয় অনুসন্ধান ট্যাগস */
.tags-heading {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 12px;
    border-left: 4px solid #0056b3;
    padding-left: 8px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags-list a {
    background: #f1f5f9;
    color: #334155;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    transition: all 0.25s ease;
    display: inline-block;
}

.tags-list a:hover {
    background: #0056b3;
    color: #ffffff;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.2);
}

/* ==========================================================================
   Search Sidebar Responsive Breakpoints (মোবাইল স্ক্রিন)
   ========================================================================== */
@media (max-width: 480px) {
    .header-search-sidebar {
        width: 88%; /* ছোট মোবাইলে স্ক্রিনের ৮৮% জায়গা নেবে */
        right: -100%;
    }
}