@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&display=swap');

:root {
    --brand: #c8102e;
    --brand-dark: #a10d24;
    --text: #1a1a1a;
    --muted: #666;
    --border: #e5e5e5;
    --bg: #f7f7f7;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Hind Siliguri', sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* ---------- Top bar (with promo thumbnails) ---------- */
.topbar {
    background: #1a1a1a;
    color: #ccc;
    font-size: 13px;
    padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.topbar a { color: #ccc; }
.topbar a:hover { color: #fff; }
.topbar-promos { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; }
.topbar-promos::-webkit-scrollbar { display: none; }
.topbar-promo-item { display: flex; align-items: center; gap: 8px; white-space: nowrap; flex-shrink: 0; }
.topbar-promo-item img { width: 28px; height: 28px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.topbar-promo-item span { font-size: 12.5px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-date { flex-shrink: 0; font-size: 12.5px; color: #999; }

/* ---------- Nav with utility icons ---------- */
.main-nav .container { display: flex; justify-content: space-between; align-items: center; }
.main-nav .nav-links { display: flex; overflow-x: auto; scrollbar-width: none; }
.main-nav .nav-links::-webkit-scrollbar { display: none; }
.nav-utils { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.nav-utils a, .nav-utils button {
    color: #fff; background: none; border: none; cursor: pointer;
    padding: 10px 10px; font-size: 13px; display: flex; align-items: center; gap: 4px;
    font-family: inherit;
}
.nav-utils a:hover, .nav-utils button:hover { background: var(--brand-dark); }
.hamburger-btn { display: none; flex-direction: column; gap: 4px; padding: 10px 12px !important; }
.hamburger-btn span.bar { display: block; width: 20px; height: 2px; background: #fff; }
.mobile-menu-panel { display: none; }
.mobile-menu-panel.active {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--brand-dark); z-index: 99; max-height: 70vh; overflow-y: auto;
}
.mobile-menu-panel a { display: block; color: #fff; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.15); }

/* ---------- Spotlight banner (special coverage) ---------- */
.spotlight-banner {
    background: linear-gradient(120deg, #7a0d1f, var(--brand) 60%, #e0304f);
    border-radius: 6px;
    padding: 22px 26px;
    margin: 20px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.spotlight-banner-text h2 { color: #fff; font-size: 24px; font-weight: 700; }
.spotlight-banner-text p { color: rgba(255,255,255,.85); font-size: 13.5px; margin-top: 4px; }
.spotlight-banner-btn {
    background: #fff; color: var(--brand); font-weight: 700; font-size: 13px;
    padding: 9px 18px; border-radius: 20px; white-space: nowrap;
}
.spotlight-banner-btn:hover { background: #f2f2f2; }

/* ---------- Spotlight zone (tinted grid box) ---------- */
.spotlight-zone {
    background: #eef7f5;
    border: 1px solid #d7ece7;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 30px;
}
.spotlight-zone-item { display: flex; gap: 10px; padding: 8px; }
.spotlight-zone-item img { width: 90px; height: 65px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.spotlight-zone-item h4 { font-size: 14px; font-weight: 600; line-height: 1.4; }
.spotlight-zone-item .meta { font-size: 11.5px; color: #888; margin-top: 4px; }

/* ---------- Headline-only list (no image, text only) ---------- */
.headline-list-item { padding: 11px 0; border-bottom: 1px solid var(--border); }
.headline-list-item h4 { font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.headline-list-item h4:hover { color: var(--brand); }
.headline-list-item .meta { font-size: 11.5px; color: #999; margin-top: 5px; }

/* ---------- Opinion box (colored left border) ---------- */
.opinion-box { border-left: 4px solid #2e7d32; padding-left: 14px; }
.opinion-box .opinion-label { color: #2e7d32; font-weight: 700; font-size: 13px; margin-bottom: 4px; display: block; }
.opinion-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.opinion-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; flex-shrink: 0; }
.opinion-item h4 { font-size: 14px; font-weight: 600; line-height: 1.4; }

/* ---------- Video badge ---------- */
.video-thumb { position: relative; }
.video-thumb::after {
    content: '▶';
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 44px; height: 44px; background: rgba(0,0,0,.55); color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 16px; padding-left: 3px;
}

/* ---------- Mixed content row (3-col editorial layout) ---------- */
.mixed-row { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 24px; margin-bottom: 30px; }
.mixed-col-title { font-size: 15px; font-weight: 700; color: var(--brand); margin-bottom: 10px; }
.mixed-col img.feature-img { width: 100%; height: 230px; object-fit: cover; border-radius: 4px; margin-bottom: 10px; }
.mixed-col .feature-title { font-size: 16px; font-weight: 700; line-height: 1.4; margin-bottom: 6px; }



/* ---------- Header ---------- */
.site-header { padding: 18px 0; border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.site-logo { font-size: 40px; font-weight: 700; color: var(--brand); letter-spacing: -1px; }
.site-tagline { font-size: 13px; color: var(--muted); }

/* ---------- Nav ---------- */
.main-nav {
    background: var(--brand);
    position: sticky;
    top: 0;
    z-index: 100;
}
.main-nav a {
    color: #fff;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    display: block;
}
.main-nav a:hover, .main-nav a.active { background: var(--brand-dark); }

/* ---------- Breaking news ticker ---------- */
.ticker-wrap {
    background: #fff3f3;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    overflow: hidden;
}
.ticker-label {
    background: var(--brand);
    color: #fff;
    padding: 8px 14px;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
}
.ticker-track { overflow: hidden; flex: 1; }
.ticker-items { display: flex; white-space: nowrap; animation: ticker 30s linear infinite; }
.ticker-items a { padding: 8px 30px 8px 0; font-size: 14px; color: #333; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---------- Layout ---------- */
.main-content { padding: 24px 0 40px; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--brand);
    border-bottom: 3px solid var(--brand);
    padding-bottom: 8px;
    margin-bottom: 16px;
    display: inline-block;
}

/* ---------- Featured / Hero ---------- */
.hero-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; margin-bottom: 30px; }
.hero-main { position: relative; border-radius: 4px; overflow: hidden; }
.hero-main img { width: 100%; height: 420px; object-fit: cover; }
.hero-main .overlay {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.85));
    padding: 20px; color: #fff;
}
.hero-main h2 { font-size: 26px; font-weight: 700; line-height: 1.3; }
.hero-main .meta { font-size: 13px; opacity: .85; margin-top: 8px; }
.hero-side { display: flex; flex-direction: column; gap: 14px; }
.hero-side-item { display: flex; gap: 12px; }
.hero-side-item img { width: 110px; height: 80px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.hero-side-item h3 { font-size: 15px; font-weight: 600; line-height: 1.4; }

/* ---------- News card ---------- */
.news-card { border-bottom: 1px solid var(--border); padding-bottom: 14px; }
.news-card img { width: 100%; height: 170px; object-fit: cover; border-radius: 4px; margin-bottom: 10px; }
.news-card .category-tag {
    display: inline-block; background: var(--brand); color: #fff;
    font-size: 11px; padding: 2px 8px; border-radius: 2px; margin-bottom: 6px;
}
.news-card h3 { font-size: 16px; font-weight: 600; line-height: 1.4; margin-bottom: 6px; }
.news-card h3 a:hover { color: var(--brand); }
.news-card .excerpt { font-size: 13.5px; color: var(--muted); margin-bottom: 6px; }
.news-card .meta { font-size: 12px; color: #999; }

/* list style (compact) */
.news-list-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.news-list-item img { width: 100px; height: 75px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.news-list-item h3 { font-size: 15px; font-weight: 600; line-height: 1.4; }
.news-list-item .meta { font-size: 12px; color: #999; margin-top: 4px; }

/* ---------- Sidebar ---------- */
.layout-with-sidebar { display: grid; grid-template-columns: 2.2fr 1fr; gap: 30px; }
.sidebar-box { margin-bottom: 30px; }
.popular-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); }
.popular-num { font-size: 22px; font-weight: 700; color: var(--brand); min-width: 30px; }
.popular-item h4 { font-size: 14px; font-weight: 600; line-height: 1.4; }

/* ---------- Article page ---------- */
.article-header { max-width: 800px; margin: 0 auto 20px; }
.article-header .category-tag {
    display: inline-block; background: var(--brand); color: #fff;
    font-size: 12px; padding: 3px 10px; border-radius: 2px; margin-bottom: 12px;
}
.article-header h1 { font-size: 30px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; }
.article-header .excerpt { font-size: 16px; color: var(--muted); margin-bottom: 12px; }
.article-meta { font-size: 13px; color: #999; display: flex; gap: 14px; flex-wrap: wrap; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 10px 0; }
.article-image { max-width: 800px; margin: 0 auto 20px; }
.article-image img { width: 100%; border-radius: 4px; }
.article-body { max-width: 800px; margin: 0 auto; font-size: 17px; line-height: 1.9; }
.article-body p { margin-bottom: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: #1a1a1a; color: #bbb; padding: 30px 0; margin-top: 40px; font-size: 14px; }
.footer-nav { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.footer-nav a { color: #bbb; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #333; padding-top: 14px; margin-top: 14px; font-size: 13px; color: #888; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 30px 0; flex-wrap: wrap; }
.page-btn { padding: 8px 14px; border: 1px solid var(--border); border-radius: 4px; font-size: 14px; }
.page-btn:hover { background: var(--bg); }
.page-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- Search box ---------- */
.search-form { display: flex; }
.search-form input { flex: 1; padding: 8px 12px; border: 1px solid var(--border); border-radius: 4px 0 0 4px; font-family: inherit; }
.search-form button { background: var(--brand); color: #fff; border: none; padding: 0 16px; border-radius: 0 4px 4px 0; cursor: pointer; }

/* ---------- Ad slots ---------- */
.ad-slot { text-align: center; margin: 16px 0; overflow: hidden; }
.ad-slot::before {
    content: 'বিজ্ঞাপন';
    display: block; font-size: 10px; color: #aaa; letter-spacing: 1px;
    margin-bottom: 4px; text-transform: uppercase;
}
.ad-slot-header { background: #fafafa; border-bottom: 1px solid var(--border); padding: 10px 0; margin: 0; }
.ad-slot-sidebar { margin-bottom: 24px; }
.ad-slot-in-article { max-width: 800px; margin: 24px auto; }
.ad-slot-footer { background: #222; padding: 16px 0; margin: 0; }
.ad-slot-footer::before { color: #666; }


.badge-live { background: #fff; color: var(--brand); font-size: 10px; padding: 1px 6px; border-radius: 2px; margin-right: 6px; font-weight: 700; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .layout-with-sidebar { grid-template-columns: 1fr; }
    .hero-grid { grid-template-columns: 1fr; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .mixed-row { grid-template-columns: 1fr; }
    .site-logo { font-size: 30px; }
    .nav-utils span.nav-text { display: none; }
    .hamburger-btn { display: flex; }
    .nav-utils .nav-search-link, .nav-utils .nav-lang-link { display: none; }
}
@media (max-width: 560px) {
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .hero-main img { height: 260px; }
    .article-header h1 { font-size: 22px; }
    .topbar .container { font-size: 11px; }
    .topbar-promo-item span { max-width: 120px; }
    .spotlight-zone { grid-template-columns: 1fr; }
}
