:root {
  --brand-color: #c62828;
  --brand-dark: #8e0000;
  --text-color: #1a1a1a;
  --bg-color: #f7f8fa;
  --card-bg: #ffffff;
  --border-color: #e9ecef;
}

* { box-sizing: border-box; }

body {
  font-family: 'Hind Siliguri', sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  margin: 0;
}

h1, h2, h3, h4, h5, .headline { font-family: 'Noto Serif Bengali', serif; }

[data-bs-theme="dark"] {
  --text-color: #e8e8e8;
  --bg-color: #0f1620;
  --card-bg: #17202b;
  --border-color: #263243;
}
[data-bs-theme="dark"] .site-header,
[data-bs-theme="dark"] .main-nav { background: #131b28 !important; border-color: var(--border-color); }
[data-bs-theme="dark"] .news-card { background: var(--card-bg); border-color: var(--border-color); }
[data-bs-theme="dark"] .form-control { background: #1c2836; color: #eee; border-color: #2d3b4d; }

a { text-decoration: none; color: inherit; }

/* Header */
.site-header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.05); position: sticky; top: 0; z-index: 1000; }
.site-logo { color: var(--brand-color); }

.main-nav { background: var(--brand-color); }
.nav-menu { list-style: none; display: flex; flex-wrap: wrap; margin: 0; padding: 10px 0; gap: 4px; }
.nav-menu li a { color: #fff; padding: 8px 14px; border-radius: 6px; font-weight: 500; font-size: 14.5px; display: block; }
.nav-menu li a:hover { background: rgba(255,255,255,.15); }

@media (max-width: 991.98px) {
  .nav-menu { flex-direction: column; }
  .navbar-collapse:not(.show) { display: none; }
}

/* Breaking ticker */
.breaking-bar { background: #212529; overflow: hidden; }
.breaking-label { background: var(--brand-color); color: #fff; font-weight: 700; padding: 8px 14px; white-space: nowrap; font-size: 13.5px; flex-shrink: 0; }
.breaking-ticker-wrap { overflow: hidden; flex: 1; }
.breaking-ticker { display: flex; white-space: nowrap; animation: ticker 40s linear infinite; }
.breaking-ticker a { color: #fff; padding: 8px 30px; font-size: 14px; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Search suggestions */
#searchForm { position: relative; }
.search-suggestions {
  position: absolute; top: 100%; left: 0; right: 0; background: var(--card-bg);
  border: 1px solid var(--border-color); border-radius: 8px; margin-top: 4px;
  max-height: 350px; overflow-y: auto; z-index: 1050; display: none; box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.search-suggestions a { display: flex; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--border-color); align-items: center; }
.search-suggestions a:hover { background: rgba(0,0,0,.04); }
.search-suggestions img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }

/* News cards */
.news-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; height: 100%; transition: transform .15s ease; }
.news-card:hover { transform: translateY(-3px); }
.news-card img { width: 100%; height: 180px; object-fit: cover; }
.news-card .news-body { padding: 14px; }
.news-card .news-title { font-weight: 700; font-size: 16px; line-height: 1.4; margin-bottom: 6px; }
.news-card .news-meta { font-size: 12px; color: #888; }
.category-badge { display: inline-block; background: var(--brand-color); color: #fff; font-size: 11px; padding: 3px 10px; border-radius: 20px; margin-bottom: 6px; }

.section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-weight: 700; border-bottom: 3px solid var(--brand-color); padding-bottom: 10px; }
.section-title .see-all { margin-left: auto; font-size: 13px; color: var(--brand-color); font-weight: 500; }

/* Hero slider */
.hero-slide { position: relative; border-radius: 14px; overflow: hidden; height: 420px; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide .slide-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #fff; padding: 40px 24px 20px; font-size: 22px; font-weight: 700; }
@media (max-width: 767.98px) { .hero-slide { height: 260px; } .hero-slide .slide-caption { font-size: 16px; padding: 30px 16px 14px; } }

/* News details */
.news-detail-title { font-weight: 700; line-height: 1.35; }
.news-detail-meta { color: #888; font-size: 13.5px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.news-detail-content { font-size: 17px; line-height: 1.9; }
.news-detail-content img { max-width: 100%; height: auto; border-radius: 10px; }
.tag-pill { display: inline-block; background: var(--border-color); padding: 4px 12px; border-radius: 20px; font-size: 12.5px; margin: 2px; }

/* Footer */
.site-footer { background: #14181f; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.65); font-size: 14px; }
.footer-links a:hover { color: #fff; }
.social-icon { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: #fff; }
.social-icon:hover { background: var(--brand-color); }

.pagination .page-link { color: var(--brand-color); }
.pagination .active .page-link { background: var(--brand-color); border-color: var(--brand-color); }
