:root {
    --brand-blue: #1789c6;
    --brand-blue-dark: #0f6fa3;
    --brand-red: #d32f2f;
    --brand-green: #2e7d32;
    --band-dark: #131313;
    --text-dark: #222;
    --border-soft: #e3e3e3;
}

body {
    font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
    background: #ececec;
    color: var(--text-dark);
}

a { text-decoration: none; color: inherit; }
a:hover { color: var(--brand-blue); }

.container-news { max-width: 1200px; margin: 0 auto; padding: 0 12px; }

/* ============ Header ============ */
.top-header {
    background: #fff;
    padding: 12px 0 10px;
}

.top-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo .logo-mark {
    width: 52px;
    height: 52px;
    background: var(--brand-blue);
    color: #fff;
    font-weight: 700;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    flex-shrink: 0;
}

.site-logo .logo-name {
    font-size: 1.9rem;
    font-weight: 700;
    color: #093a56;
    line-height: 1.1;
}

.site-logo .logo-domain {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    color: #888;
    text-transform: uppercase;
}

.date-strip {
    text-align: center;
    font-size: 0.85rem;
    color: #c62828;
    line-height: 1.5;
    font-weight: 500;
}

.date-strip .en-date { color: #444; }

.social-icons {
    display: flex;
    gap: 6px;
}

.social-icons a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
    transition: opacity 0.15s;
}

.social-icons a:hover { opacity: 0.85; color: #fff; }

.si-facebook { background: #1877f2; }
.si-twitter { background: #1da1f2; }
.si-youtube { background: #ff0000; }
.si-instagram { background: #c13584; }
.si-telegram { background: #229ed9; }
.si-rss { background: #f26522; }

/* ============ Nav ============ */
.main-nav {
    background: var(--brand-blue);
}

.main-nav-inner {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
}

.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav ul a {
    display: block;
    color: #fff;
    padding: 10px 13px;
    font-weight: 600;
    font-size: 0.95rem;
}

.main-nav ul a:hover, .main-nav ul a.active {
    background: var(--brand-blue-dark);
    color: #fff;
}

.nav-search {
    display: flex;
    align-items: center;
}

.nav-search form { display: flex; }

.nav-search input {
    border: none;
    padding: 6px 10px;
    font-size: 0.85rem;
    width: 150px;
    outline: none;
}

.nav-search button {
    background: var(--brand-red);
    border: none;
    color: #fff;
    padding: 6px 14px;
    cursor: pointer;
}

/* ============ Breaking ticker ============ */
.breaking-bar {
    background: #1d1d1d;
    color: #fff;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.breaking-bar .label {
    background: var(--brand-red);
    padding: 8px 18px;
    font-weight: 700;
    flex-shrink: 0;
    position: relative;
}

.breaking-bar .ticker-viewport {
    overflow: hidden;
    flex-grow: 1;
    white-space: nowrap;
}

.breaking-bar .ticker-track {
    display: inline-block;
    padding-left: 100%;
    animation: ticker-scroll 40s linear infinite;
}

.breaking-bar .ticker-track a {
    color: #fff;
    margin-right: 48px;
    font-size: 0.93rem;
}

.breaking-bar .ticker-track a::before {
    content: '\25CF';
    color: var(--brand-red);
    margin-right: 8px;
    font-size: 0.6rem;
    vertical-align: 2px;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ============ Photo slider band ============ */
.slider-band {
    background: #181818;
    padding: 16px 0;
}

.slider-card {
    position: relative;
    display: block;
    overflow: hidden;
}

.slider-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.slider-card .caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.92));
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 26px 10px 8px;
    line-height: 1.35;
}

.slider-card:hover .caption { color: #ffd54f; }

.slider-band .carousel-control-prev,
.slider-band .carousel-control-next {
    width: 36px;
    background: rgba(0,0,0,0.55);
    opacity: 1;
}

/* ============ Section headers ============ */
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.section-head .title {
    background: var(--brand-blue);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 6px 16px 6px 12px;
    position: relative;
    clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

.section-head .title i { margin-right: 6px; }

.section-head .all-link {
    font-size: 0.82rem;
    color: #777;
    font-weight: 600;
}

.section-head .all-link:hover { color: var(--brand-blue); }

.section-head.on-dark .all-link { color: #bbb; }

/* ============ White band wrapper ============ */
.band { padding: 22px 0; }
.band-white { background: #fff; }
.band-gray { background: #ececec; }
.band-dark { background: var(--band-dark); color: #eee; }

/* ============ Top news grid ============ */
.top-grid-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    height: 100%;
    display: block;
}

.top-grid-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.top-grid-card .body { padding: 10px 12px 12px; }

.top-grid-card .headline {
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--text-dark);
    line-height: 1.4;
    display: block;
}

.top-grid-card .headline:hover { color: var(--brand-blue); }

.top-grid-card .excerpt {
    font-size: 0.82rem;
    color: #666;
    margin: 6px 0 0;
    line-height: 1.5;
}

.top-grid-card .more {
    color: var(--brand-blue);
    font-size: 0.8rem;
    font-weight: 600;
}

/* ============ Sidebar ============ */
.sidebar-box {
    background: #fff;
    border: 1px solid var(--border-soft);
    margin-bottom: 18px;
}

.sidebar-tabs .nav-tabs { border-bottom: 2px solid var(--brand-blue); }

.sidebar-tabs .nav-link {
    border: none;
    border-radius: 0;
    color: #444;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 9px 18px;
}

.sidebar-tabs .nav-link.active {
    background: var(--brand-blue);
    color: #fff;
}

.sidebar-list { padding: 8px 12px; }

.sidebar-list .item {
    display: flex;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-list .item:last-child { border-bottom: none; }

.sidebar-list .item img {
    width: 74px;
    height: 54px;
    object-fit: cover;
    flex-shrink: 0;
}

.sidebar-list .item .t {
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-dark);
}

.sidebar-list .item .t:hover { color: var(--brand-blue); }

.sidebar-list .item .d {
    font-size: 0.72rem;
    color: #999;
    margin-top: 3px;
}

.archive-box {
    background: var(--brand-blue);
    padding: 14px;
    color: #fff;
}

.archive-box .head { font-weight: 700; margin-bottom: 8px; font-size: 0.92rem; }

.archive-box form { display: flex; gap: 6px; }

.archive-box input[type="date"] {
    flex-grow: 1;
    border: none;
    padding: 6px 8px;
    font-size: 0.85rem;
}

.archive-box button {
    background: #093a56;
    color: #fff;
    border: none;
    padding: 6px 14px;
    font-size: 0.85rem;
    cursor: pointer;
}

/* ============ Side pair sections (জাতীয়/আন্তর্জাতিক) ============ */
.side-pair {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-top: 3px solid var(--brand-green);
    padding: 14px;
    height: 100%;
}

.side-pair.accent-blue { border-top-color: var(--brand-blue); }

.side-pair .lead-story img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.side-pair .lead-story .headline {
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 8px;
    display: block;
    color: var(--text-dark);
    line-height: 1.4;
}

.side-pair .lead-story .headline:hover { color: var(--brand-blue); }

.side-pair .lead-story .excerpt {
    font-size: 0.82rem;
    color: #666;
    margin: 5px 0 0;
    line-height: 1.5;
}

.small-list { margin-top: 10px; }

.small-list .item {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f1;
}

.small-list .item:last-child { border-bottom: none; }

.small-list .item img {
    width: 84px;
    height: 58px;
    object-fit: cover;
    flex-shrink: 0;
}

.small-list .item .t {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

.small-list .item .t:hover { color: var(--brand-blue); }

/* Dark variants */
.on-dark .small-list .item { border-bottom-color: #2c2c2c; }
.on-dark .small-list .item .t { color: #e8e8e8; }
.on-dark .small-list .item .t:hover { color: #ffd54f; }

/* ============ Triple sections ============ */
.triple-block {
    background: #fff;
    border: 1px solid var(--border-soft);
    padding: 14px;
    height: 100%;
}

.triple-block .lead-story img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.triple-block .lead-story .headline {
    font-size: 0.98rem;
    font-weight: 700;
    margin-top: 8px;
    display: block;
    color: var(--text-dark);
    line-height: 1.4;
}

.triple-block .lead-story .headline:hover { color: var(--brand-blue); }

/* ============ Dark feature band (টেক) ============ */
.dark-feature .feature-lead img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.dark-feature .feature-lead .headline {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    display: block;
    margin-top: 10px;
    line-height: 1.4;
}

.dark-feature .feature-lead .headline:hover { color: #ffd54f; }

.dark-feature .feature-lead .excerpt {
    color: #aaa;
    font-size: 0.88rem;
    margin-top: 6px;
}

.dark-mini-card { display: block; }

.dark-mini-card img {
    width: 100%;
    height: 92px;
    object-fit: cover;
}

.dark-mini-card .t {
    color: #ddd;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.35;
    margin-top: 6px;
    display: block;
}

.dark-mini-card:hover .t { color: #ffd54f; }

/* Video column (dark) */
.video-col-item { margin-bottom: 14px; display: block; position: relative; }

.video-col-item img { width: 100%; height: 120px; object-fit: cover; }

.video-col-item .play {
    position: absolute;
    top: 42px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.9);
    font-size: 2rem;
    text-shadow: 0 0 12px rgba(0,0,0,0.8);
}

.video-col-item .t {
    color: #ddd;
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 6px;
    display: block;
    line-height: 1.35;
}

.video-col-item:hover .t { color: #ffd54f; }

/* ============ সারাদেশ band ============ */
.division-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    background: var(--brand-blue);
    padding: 6px;
}

.division-tabs a {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 5px 12px;
}

.division-tabs a:hover { background: var(--brand-blue-dark); color: #fff; }

.deshjure-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    display: block;
    height: 100%;
}

.deshjure-card img { width: 100%; height: 110px; object-fit: cover; }

.deshjure-card .t {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    padding: 8px 10px 10px;
    display: block;
    line-height: 1.4;
}

.deshjure-card:hover .t { color: var(--brand-blue); }

.map-panel {
    background: #fff;
    border: 1px solid var(--border-soft);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.map-panel .head {
    background: var(--brand-blue);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 7px 12px;
}

.map-panel .map-wrap { padding: 12px; flex-grow: 1; display: flex; align-items: center; justify-content: center; }

.bd-map-svg { width: 100%; max-width: 300px; height: auto; }

.bd-map-svg .division-shape {
    fill: #1e9e4a;
    stroke: #fff;
    stroke-width: 2;
    transition: fill 0.15s;
    cursor: pointer;
}

.bd-map-svg a:hover .division-shape { fill: #ffb300; }

.bd-map-svg .division-label {
    fill: #fff;
    font-size: 13px;
    font-weight: 600;
    text-anchor: middle;
    pointer-events: none;
}

/* ============ জেলার খবর photo cards ============ */
.district-photo-card {
    position: relative;
    display: block;
    overflow: hidden;
    height: 100%;
    min-height: 200px;
    background: #000;
}

.district-photo-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.district-photo-card .caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.92));
    color: #fff;
    padding: 30px 12px 10px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
}

.district-photo-card:hover .caption { color: #ffd54f; }

/* ============ Gallery dark block + columns ============ */
.gallery-dark {
    background: var(--band-dark);
    padding: 14px;
    height: 100%;
}

.gallery-dark .g-lead img { width: 100%; height: 210px; object-fit: cover; }

.gallery-dark .g-lead .t {
    color: #eee;
    font-weight: 700;
    display: block;
    margin-top: 8px;
    font-size: 1rem;
}

.gallery-dark .g-lead .t:hover { color: #ffd54f; }

.gallery-thumb { display: block; }
.gallery-thumb img { width: 100%; height: 74px; object-fit: cover; }

.column-block {
    background: #fff;
    border: 1px solid var(--border-soft);
    padding: 14px;
    height: 100%;
}

/* ============ Video band ============ */
.video-band iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    display: block;
}

.video-band .v-title {
    color: #ddd;
    font-size: 0.88rem;
    font-weight: 600;
    margin-top: 8px;
    line-height: 1.4;
}

/* ============ Footer ============ */
.site-footer {
    background: #111;
    color: #bdbdbd;
    padding-top: 30px;
    margin-top: 26px;
}

.site-footer h6 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 14px;
    font-size: 0.95rem;
}

.site-footer ul { list-style: none; padding: 0; margin: 0; }

.site-footer ul li { padding: 4px 0; }

.site-footer ul a { color: #bdbdbd; font-size: 0.88rem; }

.site-footer ul a:hover { color: #fff; }

.site-footer .about-text { font-size: 0.85rem; line-height: 1.7; }

.site-footer .contact-line { font-size: 0.85rem; padding: 3px 0; }

.footer-bottom {
    border-top: 1px solid #2a2a2a;
    margin-top: 22px;
    padding: 12px 0;
    font-size: 0.8rem;
    text-align: center;
    color: #888;
}

/* ============ Inner pages ============ */
.page-panel {
    background: #fff;
    border: 1px solid var(--border-soft);
    padding: 18px;
}

.inner-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    height: 100%;
    display: block;
}

.inner-card img { width: 100%; height: 150px; object-fit: cover; }

.inner-card .t {
    display: block;
    padding: 10px 12px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.inner-card .d { padding: 0 12px 10px; font-size: 0.75rem; color: #999; }

.inner-card:hover .t { color: var(--brand-blue); }

.article-content { line-height: 1.9; font-size: 1.02rem; }
.article-content img { max-width: 100%; height: auto; }

/* Pagination */
.pagination .page-link { color: var(--brand-blue); border-radius: 0; }
.pagination .page-item.disabled .page-link { color: #888; }

@media (max-width: 768px) {
    .date-strip { display: none; }
    .site-logo .logo-name { font-size: 1.4rem; }
    .main-nav ul a { padding: 8px 10px; font-size: 0.88rem; }
    .dark-feature .feature-lead img { height: 220px; }
}
