 /* =========================================================
           1. GLOBAL COLOR VARIABLES & TYPOGRAPHY
        ========================================================= */

@font-face {
    font-family: 'font1';
    src: url('fonts/Bangla.ttf') format('truetype');
    font-display: swap;
}

:root {
    --primary-navy: #0b1c2d;
    --secondary-navy: #081625;
    --accent-red: #ff3b30;
    --accent-red-hover: #e03126;
    --gold-accent: #ffb703;
    --light-bg: #f8f9fa;

    --text-dark: #0b1325;
    --text-muted: #6c757d;
    --text-light: #a0aec0;
    --text-white: #ffffff;

    --border-color: #e9ecef;
    --input-bg: #11253e;
    --input-border: #1a365d;

    /*--font-bangla123: 'Hind Siliguri', sans-serif;*/
    --font-bangla: 'font1', sans-serif;
    --font-english-title: 'Merriweather', serif;

    --title-font-size:15px;
}

body {
    font-family: var(--font-bangla);
    background-color: var(--light-bg);
    color: var(--text-dark);
}

        /* Top Bar */
        .top-bar {
            font-size:18px;
            color:#000;
            border-bottom: 1px solid var(--border-color);
            padding: 6px 0;
            background: #fff;
            position: relative;
            font-family: var(--font-bangla);
        }
        .top-bar a {
            color:#000;
            text-decoration: none;
        }

        /* Main Header */
        .main-header {
            background-color: #ffffff;
            padding: 15px 0;
            position: relative;
        }
        .site-title {
            font-family: var(--font-english-title);
            font-weight: 900;
            font-size: 2.2rem;
            letter-spacing: 1px;
            color: var(--text-dark);
            margin-bottom: 0;
        }
        .site-subtitle {
            font-size: 0.85rem;
            color: var(--text-muted);
            letter-spacing: 0.5px;
            margin-bottom: 0;
        }

        /* Navigation Area */
        .header-nav-wrapper {
            position: relative;
        }
        .main-nav {
            background-color: var(--primary-navy);
        }
.main-nav .nav-link {
    color: var(--text-white) !important;
    font-size: 0.95rem;
    padding: 12px 15px !important;
    font-weight: 600;
    font-size: var(--title-font-size);
    font-family: var(--font-bangla);
}
        .main-nav .nav-link:hover, 
        .main-nav .nav-link.active {
            color: var(--accent-red) !important;
        }

        /* Clean Search Icon Button (No Background) */
        .search-trigger-btn {
            background: transparent !important;
            color: var(--text-white);
            border: none;
            padding: 0;
            font-size: 1.15rem;
            cursor: pointer;
            transition: color 0.2s ease;
        }
        .search-trigger-btn:hover {
            color: var(--accent-red);
        }
        .top-bar .search-trigger-btn {
            color: var(--text-muted);
        }
        .top-bar .search-trigger-btn:hover {
            color: var(--accent-red);
        }

        /* =========================================================
           2. FLOATING SEARCH POPUP (EXACT DESIGN)
        ========================================================= */
        .search-wrapper-relative {
            position: relative;
        }

        .search-popup-card {
            display: none;
            position: absolute;
            top: 100%;
            right: 0;
            width: 420px;
            background: #ffffff;
            padding:10px;
            border-top: 4px solid var(--accent-red);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
            z-index: 1090;
            margin-top: 10px;
            border-radius: 0 0 4px 4px;
        }

        /* Pill Container */
        .search-pill-form {
            display: flex;
            background: #ffffff;
            border: 1px solid #b0b0b0;
            border-radius: 50px;
            overflow: hidden;
        }

        .search-pill-input {
            border: none !important;
            outline: none !important;
            box-shadow: none !important;
            padding: 10px 20px;
            font-size: 1rem;
            color: #333;
            background: transparent;
            flex-grow: 1;
        }

        .search-pill-btn {
            background-color: var(--accent-red);
            color: #ffffff;
            border: none;
            padding: 10px 25px;
            font-size: 1rem;
            font-weight: 600;
            border-top-right-radius: 50px;
            border-bottom-right-radius: 50px;
            transition: background 0.2s;
            white-space: nowrap;
        }

        .search-pill-btn:hover {
            background-color: var(--accent-red-hover);
        }

        /* Red Floating Close Circle */
        .search-close-btn {
            position: absolute;
            top: -15px;
            right: -10px;
            width: 32px;
            height: 32px;
            background-color: var(--accent-red);
            color: #ffffff;
            border-radius: 50%;
            border: 2px solid #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
            cursor: pointer;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            transition: transform 0.2s;
        }

        .search-close-btn:hover {
            background-color: var(--accent-red-hover);
            transform: scale(1.1);
        }

        /* Mobile Offcanvas Drawer Customization */
        .offcanvas-header {
            background-color: var(--primary-navy);
            color: var(--text-white);
            border-bottom: 1px solid var(--input-border);
        }
        .offcanvas-body {
            background-color: var(--primary-navy);
            color: var(--text-white);
        }
        .offcanvas-body .nav-link {
            color: var(--text-white) !important;
            padding: 10px 0 !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }
        .offcanvas-body .dropdown-menu {
            background-color: var(--input-bg);
            border: none;
        }
        .offcanvas-body .dropdown-item {
            color: #cbd5e1;
        }

        /* Breaking News Ticker */
        .breaking-news-bar {
            background-color: var(--border-color);
            border-bottom: 1px solid #dee2e6;
            overflow: hidden;
            position: relative;
            z-index: 1;
        }
        .breaking-btn {
            background-color: var(--accent-red);
            color: var(--text-white);
            font-weight: bold;
            padding: 8px 16px;
            font-size: 0.9rem;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            white-space: nowrap;
            z-index: 2;
        }
        .ticker-wrapper {
            flex-grow: 1;
            overflow: hidden;
        }
        .ticker-content {
            display: inline-block;
            white-space: nowrap;
            padding-left: 100%;
            animation: marquee 25s linear infinite;
        }
        .ticker-content:hover {
            animation-play-state: paused;
        }
        .ticker-item {
            display: inline-block;
            font-size: 0.88rem;
            color: var(--text-dark);
            margin-right: 40px;
        }
        .ticker-item i {
            color: var(--accent-red);
            margin-right: 8px;
            font-size: 0.6rem;
            vertical-align: middle;
        }

        @keyframes marquee {
            0% { transform: translate3d(0, 0, 0); }
            100% { transform: translate3d(-100%, 0, 0); }
        }

        /* Footer Styles */
        .footer-section {
            background-color: var(--secondary-navy);
            color: var(--text-light);
            padding-top: 50px;
            padding-bottom: 30px;
        }
        .footer-title {
            color: var(--text-white);
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 20px;
            position: relative;
        }
        .footer-title::after {
            content: '';
            position: absolute;
            bottom: -6px;
            left: 0;
            width: 30px;
            height: 2px;
            background-color: var(--accent-red);
        }
        .footer-about-title {
            font-family: var(--font-english-title);
            color: var(--text-white);
            font-size: 1.4rem;
            font-weight: bold;
        }
        .footer-links {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .footer-links li {
            margin-bottom: 10px;
            font-size:var(--title-font-size);
        }
        .footer-links a {
            color: var(--text-light);
            text-decoration: none;
            transition: 0.2s;
        }
        .footer-links a:hover {
            color: var(--text-white);
        }
        .social-btn {
            width: 32px;
            height: 32px;
            background-color: var(--input-bg);
            color: var(--text-white);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 3px;
            text-decoration: none;
            margin-right: 4px;
            font-size: 0.85rem;
        }
        .social-btn:hover {
            background-color: var(--accent-red);
        }
        .contact-item {
            display: flex;
            align-items: center;
            margin-bottom: 12px;
        }
        .contact-icon {
            width: 32px;
            height: 32px;
            background-color: var(--accent-red);
            color: var(--text-white);
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 3px;
            margin-right: 10px;
            flex-shrink: 0;
        }
        .contact-text label {
            display: block;
            font-size: 0.72rem;
            color: #718096;
            margin: 0;
            line-height: 1.2;
            font-size:var(--title-font-size);
        }
        .contact-text span, 
        .contact-text a {
            color: #e2e8f0;
            text-decoration: none;
            font-size: 0.82rem;
            word-break: break-all;
            font-size:var(--title-font-size);
        }
        .subscribe-input {
            background-color: var(--input-bg);
            border: 1px solid var(--input-border);
            color: var(--text-white);
            font-size: 0.85rem;
            padding: 8px 12px;
            font-size:var(--title-font-size);
        }
        .subscribe-input:focus {
            background-color: var(--input-bg);
            color: var(--text-white);
            border-color: var(--accent-red);
            box-shadow: none;
        }
        .btn-subscribe {
            background-color: var(--accent-red)!important;
            color: var(--text-white)!important;
            font-weight: 600;
            font-size: 0.85rem;
            width: 100%;
            padding: 8px;
            border: none;
            border-radius: 3px;
            font-size:var(--title-font-size);
        }
        .btn-subscribe:hover {
            background-color: var(--accent-red-hover);
        }
        .bottom-bar {
            background-color: #050d17;
            padding: 15px 0;
            font-size: 0.8rem;
            color: #718096;
            border-top: 1px solid #0f233a;
            font-size: var(--title-font-size);
  font-family: var(--font-bangla);
        }
        .bottom-bar a {
            color: var(--gold-accent);
            text-decoration: none;
            font-weight: 600;
        }

        /* Mobile Adjustments */
        @media (max-width: 991.98px) {
            .site-title { font-size: 1.4rem; }
            .site-subtitle { font-size: 0.65rem; }
            .search-popup-card {
                width: 310px;
                right: 0;
            }
        }



       /* ==============*/
        /* ==========================================
       Format 1: Category News Section
    ========================================== */
    .cat-format-1-section {
        padding: 15px 0;
        background-color: var(--light-bg, #f8f9fa);
        font-family: var(--font-bangla);
        color: var(--text-dark, #212529);
    }

    /* Category Title Header Bar */
    .cat-header-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background-color: #e7f0f7;
        height: 42px;
        margin-bottom: 15px;
        overflow: hidden;
    }

    .cat-header-title {
        background-color: var(--primary-navy, #0b1c2d);
        color: var(--text-white, #fff);
        font-weight: 700;
        font-size: 1.15rem;
        height: 100%;
        display: flex;
        align-items: center;
        padding: 0 30px 0 16px;
        margin: 0;
        position: relative;
        clip-path: polygon(0 0, 85% 0, 100% 100%, 0% 100%);
    }

    .cat-header-more {
        color: var(--accent-red, #dc3545);
        font-weight: 700;
        text-decoration: none;
        font-size: 0.95rem;
        padding-right: 15px;
        display: flex;
        align-items: center;
        gap: 5px;
        transition: color 0.2s ease;
    }

    .cat-header-more:hover {
        color: var(--accent-red-hover, #a71d2a);
        text-decoration: none;
    }

    /* Equal Height Alignment Fixes */
    .cat-format-1-section .main-row {
        display: flex;
        flex-wrap: wrap;
    }

    .news-grid-container {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .news-grid-container > .row {
        height: 100%;
    }

    .news-grid-container .news-col {
        display: flex;
        flex-direction: column;
    }

    /* News Card Design */
    .f1-news-card {
        background: var(--text-white, #fff);
        border: 1px solid var(--border-color, #dee2e6);
        border-radius: 0px;
        overflow: hidden;
        height: 100%;
        display: flex;
        flex-direction: column;
        transition: all 0.25s ease;
        text-decoration: none;
        color: inherit;
    }

    .f1-news-card:hover {
        transform: translateY(-3px);
        border-color: var(--primary-navy, #0b1c2d);
        box-shadow: 0 4px 12px rgba(11, 28, 45, 0.08);
        color: inherit;
    }

    .f1-news-thumb {
        width: 100%;
        height: 130px;
        overflow: hidden;
        position: relative;
        background-color: var(--secondary-navy, #162b40);
        flex-shrink: 0;
    }

    .f1-news-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .f1-news-card:hover .f1-news-thumb img {
        transform: scale(1.06);
    }

    .f1-news-body {
        padding: 10px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        flex-grow: 1;
    }

    .f1-news-title {
        font-size:var(--title-font-size);
        font-weight: 700;
        color: var(--text-dark, #212529);
        margin-bottom: 6px;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        transition: color 0.2s ease;
    }

    .f1-news-card:hover .f1-news-title {
        color: var(--accent-red, #dc3545);
    }

    .f1-news-excerpt {
        font-size: 0.78rem;
        color: var(--text-muted, #6c757d);
        line-height: 1.4;
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .f1-news-meta {
        font-size: 0.72rem;
        color: var(--text-light, #8c98a4);
        display: flex;
        align-items: center;
        gap: 4px;
        margin-top: auto;
    }

    /* Right Side Sidebar Ad Slots */
    .f1-ad-wrapper {
        height: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .f1-ad-banner {
        background-color: var(--text-white, #fff);
        border: 1px solid var(--border-color, #dee2e6);
        border-radius: 0px;
        width: 100%;
        flex: 1 1 0;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .f1-ad-banner a {
        display: block;
        width: 100%;
        height: 100%;
    }

    .f1-ad-banner img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Responsive adjustments */
    @media (max-width: 991.98px) {
        .f1-ad-wrapper {
            margin-top: 10px;
            height: 350px;
        }
    }
       /* ==============*/



