/* ============================================================
   West Bengal Report — Main Stylesheet
   Theme: Red (#dc2626) + White + Black
   Font: Hind Siliguri (Bengali), Inter (English)
   ============================================================ */

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

/* ---- CSS Variables ---- */
:root {
  --primary:       #dc2626;
  --primary-dark:  #b91c1c;
  --primary-light: #fecaca;
  --secondary:     #1a1a2e;
  --dark:          #0f0f0f;
  --dark-2:        #1a1a1a;
  --dark-3:        #262626;
  --light:         #f8f9fa;
  --white:         #ffffff;
  --gray:          #6b7280;
  --gray-light:    #e5e7eb;
  --success:       #10b981;
  --warning:       #f59e0b;
  --info:          #3b82f6;

  --font-bn:       'Hind Siliguri', sans-serif;
  --font-en:       'Inter', sans-serif;
  --font-size:     16px;

  --border-radius: 12px;
  --border-radius-sm: 6px;
  --border-radius-lg: 20px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.1);
  --shadow:     0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.18);
  --shadow-xl:  0 20px 60px rgba(0,0,0,.25);

  --transition: all .3s cubic-bezier(.4,0,.2,1);
  --transition-fast: all .15s ease;

  --header-height: 120px;
  --ticker-height: 40px;

  --bg:        #f5f5f5;
  --bg-2:      #ffffff;
  --bg-3:      #eff0f1;
  --text:      #111827;
  --text-muted:#6b7280;
  --border:    #e5e7eb;
  --card-bg:   #ffffff;
}

/* ---- Dark Mode Variables ---- */
[data-theme="dark"] {
  --bg:        #0f0f0f;
  --bg-2:      #1a1a1a;
  --bg-3:      #262626;
  --text:      #f0f0f0;
  --text-muted:#9ca3af;
  --border:    #333;
  --card-bg:   #1a1a1a;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: var(--font-size);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-bn);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background .3s ease, color .3s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-bn);
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}

a { color: var(--primary); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-3); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ============================================================
   BREAKING NEWS TICKER
   ============================================================ */
.breaking-ticker {
  background: var(--primary);
  color: var(--white);
  height: var(--ticker-height);
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  z-index: 100;
}

.breaking-label {
  background: #7f1d1d;
  color: var(--white);
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: .85rem;
  white-space: nowrap;
  flex-shrink: 0;
  gap: 6px;
}

.pulse-dot {
  width: 8px; height: 8px;
  background: #fbbf24;
  border-radius: 50%;
  animation: pulse-dot 1.2s ease-in-out infinite;
  display: inline-block;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.4); }
}

.ticker-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker-inner {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 60s linear infinite;
}

.ticker-inner:hover { animation-play-state: paused; }

.ticker-item {
  padding: 0 32px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--white);
}

.ticker-item::after {
  content: ' ◆ ';
  opacity: .6;
}

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

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
  background: var(--card-bg);
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: var(--transition);
}

.site-header.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,.15); }

.header-top { padding: 10px 0; border-bottom: 1px solid var(--border); }

.site-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-text { font-size: 1.6rem; font-weight: 700; color: var(--primary); line-height: 1.2; }
.logo-tagline { font-size: .75rem; color: var(--text-muted); }
.logo-img {
  max-height: 50px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  transition: var(--transition-fast);
}
[data-theme="dark"] .logo-img { filter: drop-shadow(0px 0px 5px rgba(255, 255, 255, 0.45)); }

.header-controls { display: flex; align-items: center; gap: 8px; }

.btn-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  background: var(--bg-3);
  color: var(--text);
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 1rem;
}

.btn-icon:hover { background: var(--primary); color: white; border-color: var(--primary); transform: scale(1.1); }

.main-nav { background: var(--secondary); }

.nav-list {
  display: flex;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-list::-webkit-scrollbar { display: none; }

.nav-list > li > a {
  display: block;
  padding: 12px 16px;
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition-fast);
  position: relative;
}

.nav-list > li > a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 3px;
  background: var(--primary);
  transition: var(--transition);
  border-radius: 2px 2px 0 0;
}

.nav-list > li > a.dropdown-toggle::after {
  border: none !important;
}

.dropdown-menu {
  z-index: 1050 !important;
}

@media (min-width: 992px) {
  .main-nav,
  .navbar-collapse,
  .nav-list {
    overflow: visible !important;
  }
}

.nav-list > li > a:hover,
.nav-list > li > a.active { color: white; }

.nav-list > li > a:hover::after,
.nav-list > li > a.active::after { left: 0; right: 0; }

/* ============================================================
   NEWS CARDS
   ============================================================ */
.news-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.news-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.news-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.news-card:hover .news-card-img img { transform: scale(1.05); }

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  background: var(--primary);
  color: white;
  white-space: nowrap;
}

.video-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  background: rgba(220,38,38,.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  transition: var(--transition-fast);
  z-index: 2;
}

.news-card:hover .video-play-btn { transform: translate(-50%, -50%) scale(1.15); }

.news-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }

.news-title,
.news-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: var(--transition-fast);
}

.news-title:hover,
.news-card:hover .news-card-title,
.video-card-play:hover .news-card-title {
  color: var(--primary) !important;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-news-card {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  aspect-ratio: 16/8;
  cursor: pointer;
}

.hero-news-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hero-news-card:hover img { transform: scale(1.03); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 50%, transparent 100%);
}

.hero-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 32px; color: white; }

.hero-title {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
  line-height: 1.4;
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  width: 4px; height: 24px;
  background: var(--primary);
  border-radius: 2px;
  flex-shrink: 0;
}

.view-all-btn { font-size: .85rem; color: var(--primary); font-weight: 600; display: flex; align-items: center; gap: 4px; }

/* ============================================================
   CATEGORY SCROLL SNAP — ONE NEWS AT A TIME (KEY FEATURE)
   ============================================================ */
.category-snap-container {
  height: calc(100vh - var(--header-height) - var(--ticker-height) - 56px);
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  position: relative;
}

.category-snap-container::-webkit-scrollbar { display: none; }

.category-snap-card {
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  transform: translateY(60px);
  opacity: 0;
  transition: transform .6s cubic-bezier(.4,0,.2,1), opacity .5s ease;
}

.category-snap-card.is-active .card-inner { transform: translateY(0); opacity: 1; }
.category-snap-card.is-exit .card-inner   { transform: translateY(-60px); opacity: 0; transition: transform .4s ease, opacity .3s ease; }

.snap-card-image { flex: 1; position: relative; overflow: hidden; min-height: 55%; }
.snap-card-image img { width: 100%; height: 100%; object-fit: cover; }

.snap-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.5) 100%);
}

.snap-card-content { background: var(--card-bg); padding: 24px; flex-shrink: 0; }

.snap-card-title {
  font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.snap-card-meta { display: flex; align-items: center; gap: 16px; color: var(--text-muted); font-size: .85rem; margin-bottom: 16px; }

.snap-read-btn {
  background: var(--primary);
  color: white;
  padding: 12px 28px;
  border-radius: 25px;
  font-weight: 600;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.snap-read-btn:hover { background: var(--primary-dark); color: white; transform: scale(1.04); }

/* Progress dots sidebar */
.snap-progress-dots {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 50;
}

.snap-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(220,38,38,.3);
  transition: var(--transition-fast);
  cursor: pointer;
  border: none;
}

.snap-dot.active { background: var(--primary); transform: scale(1.4); }

/* Scroll hint */
.scroll-hint {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: .75rem;
  animation: bounce-hint 2s ease-in-out infinite;
  z-index: 50;
  opacity: .7;
  pointer-events: none;
}

@keyframes bounce-hint { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-8px); } }

/* Filter chips */
.category-filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 16px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
  position: sticky;
  top: 0;
  z-index: 10;
}

.category-filter-bar::-webkit-scrollbar { display: none; }

.filter-chip {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: var(--font-bn);
}

.filter-chip:hover,
.filter-chip.active { background: var(--primary); border-color: var(--primary); color: white; }

/* ============================================================
   VIDEO EMBED
   ============================================================ */
.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.video-container iframe,
.video-container video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
  padding: 10px 16px;
  background: #fef2f2;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

[data-theme="dark"] .video-section-label { background: rgba(220,38,38,.1); }

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-title { font-size: clamp(1.3rem, 3.5vw, 2rem); font-weight: 700; line-height: 1.5; margin: 20px 0 16px; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--text-muted);
}

.article-content { font-size: 1.05rem; line-height: 1.9; color: var(--text); }
.article-content p { margin-bottom: 1.2rem; }
.article-content h2, .article-content h3 { margin: 1.5rem 0 .8rem; }
.article-content img { border-radius: var(--border-radius); margin: 1rem 0; }
.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 12px 20px;
  margin: 1.2rem 0;
  background: var(--bg-3);
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  color: var(--text-muted);
  font-style: italic;
}

/* Action buttons */
.article-toolbar { display: flex; align-items: center; gap: 8px; padding: 16px 0; border-top: 1px solid var(--border); margin-top: 24px; flex-wrap: wrap; }

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 25px;
  border: 1.5px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: var(--font-bn);
}

.action-btn:hover, .action-btn.active { border-color: var(--primary); color: var(--primary); background: #fef2f2; }
.action-btn.liked { background: var(--primary); color: white; border-color: var(--primary); }

[data-theme="dark"] .action-btn:hover, [data-theme="dark"] .action-btn.active { background: rgba(220,38,38,.1); }

/* Share buttons */
.share-buttons { display: flex; gap: 8px; flex-wrap: wrap; }

.share-btn {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
  color: white;
  border: none;
  cursor: pointer;
}

.share-btn.whatsapp { background: #25d366; }
.share-btn.facebook { background: #1877f2; }
.share-btn.twitter  { background: #1da1f2; }
.share-btn.copy     { background: var(--gray); }
.share-btn:hover    { opacity: .85; transform: scale(1.03); }

/* ============================================================
   VIDEO HORIZONTAL SCROLL
   ============================================================ */
.video-scroll-wrap { overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; }
.video-scroll-wrap::-webkit-scrollbar { display: none; }
.video-scroll-inner { display: flex; gap: 16px; width: max-content; }

.video-thumb-card {
  width: 220px;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.video-thumb-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.video-thumb-img { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.video-thumb-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.video-thumb-card:hover .video-thumb-img img { transform: scale(1.07); }

.video-thumb-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.3);
}

.video-thumb-play i { font-size: 2rem; color: white; transition: var(--transition-fast); }
.video-thumb-card:hover .video-thumb-play i { transform: scale(1.2); color: #fca5a5; }
.video-thumb-body { padding: 10px; }
.video-thumb-title { font-size: .85rem; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============================================================
   TRENDING SIDEBAR
   ============================================================ */
.trending-list { list-style: none; }

.trending-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); align-items: flex-start; transition: var(--transition-fast); }
.trending-item:last-child { border-bottom: none; }
.trending-item:hover { padding-left: 4px; }

.trending-number { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; flex-shrink: 0; }
.trending-number.top3 { background: #f59e0b; }

.trending-title { font-size: .9rem; font-weight: 500; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trending-title:hover { color: var(--primary); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--secondary); color: rgba(255,255,255,.8); padding: 48px 0 24px; margin-top: 60px; }
.footer-logo { color: white; font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }

.footer-heading {
  color: white; font-size: 1rem; font-weight: 700;
  margin-bottom: 16px; position: relative; padding-bottom: 8px;
}

.footer-heading::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--primary); border-radius: 1px; }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.7); font-size: .9rem; transition: var(--transition-fast); }
.footer-links a:hover { color: white; padding-left: 4px; }

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

.social-icon { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: white; font-size: 1rem; transition: var(--transition-fast); }
.social-icon:hover { background: var(--primary); transform: scale(1.1); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; margin-top: 32px; text-align: center; font-size: .85rem; color: rgba(255,255,255,.5); }

/* ============================================================
   SKELETON LOADING
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--bg-3) 25%, var(--bg-2) 50%, var(--bg-3) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--border-radius-sm);
}

@keyframes skeleton-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.skeleton-img  { aspect-ratio: 16/9; }
.skeleton-title { height: 1rem; width: 80%; margin-bottom: 8px; }
.skeleton-text  { height: .85rem; width: 95%; margin-bottom: 6px; }

/* ============================================================
   SEARCH
   ============================================================ */
.search-hero {
  background: linear-gradient(135deg, var(--secondary) 0%, #2d1b69 100%);
  padding: 48px 0;
  text-align: center;
  color: white;
}

.search-input-wrap { position: relative; max-width: 600px; margin: 0 auto; }

.search-input {
  width: 100%;
  padding: 16px 56px 16px 20px;
  border-radius: 50px;
  border: none;
  font-size: 1.1rem;
  font-family: var(--font-bn);
  outline: none;
  box-shadow: var(--shadow-xl);
}

.search-voice-btn {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--gray); font-size: 1.2rem; cursor: pointer;
}

.search-voice-btn.listening { color: var(--primary); animation: pulse-voice 1s ease infinite; }
@keyframes pulse-voice { 0%, 100% { transform: translateY(-50%) scale(1); } 50% { transform: translateY(-50%) scale(1.2); } }

/* ============================================================
   UTILITIES & ANIMATIONS
   ============================================================ */
.sticky-sidebar { position: sticky; top: calc(var(--header-height) + 16px); }
.text-red { color: var(--primary); }
.breaking-badge { background: var(--primary); color: white; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.ad-wrapper { text-align: center; margin: 20px 0; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Accessibility Font Size Adjustments */
body.font-sm {
  font-size: 0.92rem;
}
body.font-sm .article-body {
  font-size: 0.95rem;
}

body.font-lg {
  font-size: 1.08rem;
}
body.font-lg .article-body {
  font-size: 1.18rem;
}

body.font-xl {
  font-size: 1.15rem;
}
body.font-xl .article-body {
  font-size: 1.35rem;
}

.district-tabs { display: flex; overflow-x: auto; border-bottom: 2px solid var(--border); scrollbar-width: none; }
.district-tab { padding: 10px 20px; font-size: .85rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: var(--transition-fast); }
.district-tab:hover { color: var(--primary); }
.district-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ---- District Horizontal Menu ---- */
.district-horizontal-menu-wrap {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 6px 0;
  margin-bottom: 24px;
}

.district-horizontal-menu-wrap::-webkit-scrollbar {
  display: none;
}

.district-horizontal-menu {
  display: flex;
  gap: 12px;
  width: max-content;
  padding-bottom: 4px;
}

.district-menu-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 30px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition-fast);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.district-menu-item:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.district-menu-item i {
  color: var(--primary);
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.district-menu-item:hover i {
  color: white;
}

[data-theme='dark'] .district-menu-item {
  background: #1f2937;
  border-color: rgba(255,255,255,0.06);
}



/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
  .nav-list {
    flex-direction: column;
    overflow-x: visible;
    padding: 10px 15px !important;
  }
  .nav-list > li > a::after {
    display: none;
  }
  .main-nav {
    background: var(--secondary);
    padding: 0;
  }
  .nav-list > li > a {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav-list > li:last-child > a {
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  :root { --header-height: 100px; --font-size: 15px; }
  .hero-content { padding: 16px; }
  .category-snap-container { height: calc(100svh - var(--header-height) - var(--ticker-height) - 56px); }
  .snap-card-content { padding: 16px; }
  .snap-progress-dots { right: 8px; }
  .action-btn { padding: 7px 12px; font-size: .8rem; }
  .share-btn { padding: 7px 10px; font-size: .78rem; }
}

@media (max-width: 480px) {
  .logo-text { font-size: 1.2rem; }
  .video-thumb-card { width: 180px; }
}

/* ============================================================
   CAROUSEL NAVIGATION CONTROLS (Video & Photo Gallery)
   ============================================================ */
.carousel-wrapper {
  position: relative;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.carousel-nav-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow);
}

.carousel-nav-btn.prev-btn {
  left: -22px;
}

.carousel-nav-btn.next-btn {
  right: -22px;
}

@media (max-width: 1200px) {
  .carousel-nav-btn.prev-btn { left: 10px; }
  .carousel-nav-btn.next-btn { right: 10px; }
}

@media (max-width: 768px) {
  .carousel-nav-btn { display: none; } /* Hide on touch screens */
}

/* Horizontal Scroll Container */
.h-scroll-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  padding: 10px 0 20px;
  -webkit-overflow-scrolling: touch;
}

.h-scroll-container::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.h-scroll-item {
  flex: 0 0 300px;
  min-width: 300px;
}

@media (max-width: 576px) {
  .h-scroll-item {
    flex: 0 0 260px;
    min-width: 260px;
  }
}

/* ============================================================
   PREMIUM VIDEO BOX CARDS
   ============================================================ */
.video-box-card {
  background: var(--card-bg, #ffffff);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
}

.video-box-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.12), 0 4px 10px rgba(0, 0, 0, 0.04);
  border-color: rgba(220, 38, 38, 0.25);
}

.video-box-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #000;
}

.video-box-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.video-box-card:hover .video-box-img-wrap img {
  transform: scale(1.06);
}

.video-box-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  z-index: 1;
}

.video-box-card:hover .video-box-play-overlay {
  background: rgba(0, 0, 0, 0.15);
}

.video-box-play-btn {
  width: 54px;
  height: 54px;
  background: var(--primary, #dc2626);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.video-box-play-btn i {
  margin-left: 3px;
}

.video-box-card:hover .video-box-play-btn {
  transform: scale(1.18);
  background: #ffffff;
  color: var(--primary, #dc2626);
  border-color: var(--primary, #dc2626);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.video-box-category {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.video-box-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.video-box-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text, #1f2937);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.video-box-card:hover .video-box-title {
  color: var(--primary, #dc2626);
}

.video-box-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  font-size: 0.78rem;
  color: var(--text-muted, #6b7280);
}

.video-box-views {
  font-weight: 500;
}

/* ============================================================
   PHOTO GALLERY STRIP STYLE
   ============================================================ */
.gallery-item {
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-fast);
  color: #fff;
  font-size: 1.5rem;
  backdrop-filter: blur(2px);
  pointer-events: none;
  z-index: 2;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay i {
  transform: scale(1.2);
}

.logo-img {
  max-width: 100%;
}

/* ============================================================
   RESPONSIVE LOGO SIZING
   ============================================================ */
@media (max-width: 991px) {
  .logo-img {
    max-height: 38px;
  }
}

@media (max-width: 480px) {
  .logo-img {
    max-height: 32px;
    max-width: 140px;
  }
}

/* ============================================================
   MOBILE OFFCANVAS DRAWER STYLES
   ============================================================ */
.offcanvas {
  font-family: var(--font-bn);
}

.offcanvas-header {
  border-color: var(--border) !important;
}

.offcanvas-body {
  background-color: var(--bg-2);
}

.mobile-nav-menu .nav-link {
  color: var(--text) !important;
  font-weight: 500;
  border-radius: var(--border-radius-sm);
}

.mobile-nav-menu .nav-link:hover {
  background-color: var(--bg-3);
  color: var(--primary) !important;
}

.mobile-nav-menu .nav-link.active {
  background-color: var(--primary-light) !important;
  color: var(--primary) !important;
  font-weight: 700;
}

/* Category dot transition */
.mobile-nav-menu .category-dot {
  display: inline-block;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.mobile-nav-menu .nav-link:hover .category-dot {
  transform: scale(1.3);
}

/* Custom Close Button for Offcanvas */
.btn-close-custom {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text);
  padding: 4px 8px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-close-custom:hover {
  background-color: var(--bg-3);
  color: var(--primary);
}

/* Districts Collapsible inside Mobile Menu Drawer */
#mobileDistrictsCollapse .nav-link {
  padding-left: 32px;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted) !important;
  border-radius: 0;
  border-left: 2px solid var(--border);
}

#mobileDistrictsCollapse .nav-link:hover {
  color: var(--primary) !important;
  border-left-color: var(--primary);
  background: none;
}
