/**
 * Banglar Katha News Portal - Main Stylesheet
 * Professional Bengali News Portal Design
 * Version: 1.0.0
 */

/* ============================================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================ */
:root {
  /* Brand Colors */
  --primary: #dc2626;
  --primary-dark: #b91c1c;
  --primary-light: #fee2e2;
  --secondary: #1e293b;
  --accent: #f59e0b;
  --success: #16a34a;
  --info: #0ea5e9;

  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-light: #f1f5f9;

  /* Backgrounds */
  --bg-body: #f8fafc;
  --bg-white: #ffffff;
  --bg-surface: #f1f5f9;
  --bg-dark: #0f172a;

  /* Borders */
  --border-color: #e2e8f0;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --border-radius-sm: 4px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14);
  --shadow-hover: 0 8px 24px rgba(220,38,38,.15);

  /* Typography */
  --font-bengali: 'Hind Siliguri', 'Noto Sans Bengali', 'Tiro Bangla', sans-serif;
  --font-ui: 'Hind Siliguri', sans-serif;

  /* Spacing */
  --section-padding: 2rem;
  --card-padding: 1rem;

  /* Transitions */
  --transition: all 0.25s ease;
  --transition-fast: all 0.15s ease;

  /* Header */
  --header-bg: #ffffff;
  --header-shadow: 0 2px 20px rgba(0,0,0,.08);
  --nav-bg: #1e293b;
  --nav-text: #f1f5f9;

  /* Breaking ticker */
  --ticker-bg: #dc2626;
  --ticker-text: #ffffff;
}

/* Dark Mode */
[data-theme="dark"] {
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --bg-body: #0f172a;
  --bg-white: #1e293b;
  --bg-surface: #1e293b;
  --border-color: #334155;
  --header-bg: #1e293b;
  --nav-bg: #0f172a;
  --shadow: 0 4px 16px rgba(0,0,0,.3);
  --shadow-hover: 0 8px 24px rgba(220,38,38,.2);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-bengali);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-body);
  transition: background 0.3s, color 0.3s;
  -webkit-font-smoothing: antialiased;
}

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; }

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

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
  background: var(--secondary);
  color: var(--text-light);
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.top-bar a { color: var(--text-light); opacity: .8; }
.top-bar a:hover { opacity: 1; color: var(--accent); }
.top-date { opacity: .85; font-size: 12px; }
.social-links { display: flex; gap: 12px; }
.social-links a { font-size: 15px; }
.dark-toggle, .search-trigger {
  background: none;
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition-fast);
}
.dark-toggle:hover, .search-trigger:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  background: var(--header-bg);
  box-shadow: var(--header-shadow);
  z-index: 1040;
  transition: background 0.3s;
}

.site-logo { display: flex; align-items: center; }
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-main {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  font-family: 'Tiro Bangla', serif;
  letter-spacing: -0.5px;
}
.logo-tagline {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block !important; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.main-nav {
  background: var(--nav-bg);
  position: relative;
}
.main-nav .container {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}
.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 16px;
  color: var(--nav-text) !important;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition-fast);
  border-bottom: 3px solid transparent;
}
.nav-link:hover, .nav-item:hover > .nav-link {
  color: var(--accent) !important;
  border-bottom-color: var(--primary);
  background: rgba(255,255,255,.05);
}
.nav-arrow { font-size: 11px; transition: transform 0.2s; }
.nav-item:hover > .nav-link .nav-arrow { transform: rotate(180deg); }

/* Dropdown */
.dropdown-menu-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--primary);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  z-index: 1000;
  list-style: none;
  padding: 8px 0;
  margin: 0;
}
.nav-item:hover > .dropdown-menu-nav { display: block; }
.dropdown-menu-nav li a {
  display: block;
  padding: 10px 18px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-fast);
}
.dropdown-menu-nav li a:hover {
  background: var(--primary-light);
  color: var(--primary);
  padding-left: 24px;
}
.nav-right { padding: 0 8px; }
.nav-search-link { color: var(--nav-text) !important; padding: 0 12px; font-size: 16px; }

/* ============================================================
   BREAKING NEWS TICKER
   ============================================================ */
.breaking-news-bar {
  background: var(--ticker-bg);
  color: var(--ticker-text);
  padding: 7px 0;
  overflow: hidden;
}
.breaking-label {
  background: rgba(0,0,0,.2);
  padding: 3px 12px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  border-radius: 3px;
  margin-right: 12px;
  flex-shrink: 0;
}
.ticker-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.ticker-content {
  display: flex;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}
.ticker-item {
  color: white;
  font-size: 14px;
  font-weight: 500;
  padding: 0 40px 0 0;
  display: inline-block;
  flex-shrink: 0;
}
.ticker-item:hover { text-decoration: underline; }
.ticker-item::before {
  content: '●';
  margin-right: 10px;
  opacity: .6;
  font-size: 8px;
  vertical-align: middle;
}
@keyframes ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
.ticker-close {
  background: none;
  border: none;
  color: white;
  opacity: .7;
  cursor: pointer;
  font-size: 14px;
  padding: 0 8px;
  flex-shrink: 0;
}
.ticker-close:hover { opacity: 1; }

/* ============================================================
   SEARCH OVERLAY
   ============================================================ */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 9999;
  backdrop-filter: blur(4px);
}
.search-overlay.active { display: flex; align-items: flex-start; justify-content: center; padding-top: 80px; }
.search-overlay-inner {
  width: 100%;
  max-width: 700px;
  padding: 0 20px;
  position: relative;
}
.search-form-overlay {
  display: flex;
  border-bottom: 3px solid var(--primary);
}
.search-input-overlay {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 28px;
  color: white;
  font-family: var(--font-bengali);
  padding: 12px 0;
}
.search-input-overlay::placeholder { color: rgba(255,255,255,.4); }
.search-form-overlay button {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 12px;
}
.search-close {
  position: absolute;
  top: -50px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}
.live-search-results {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  margin-top: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-height: 400px;
  overflow-y: auto;
}
.search-result-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-fast);
}
.search-result-item:hover { background: var(--bg-surface); }
.search-result-item img { width: 70px; height: 50px; object-fit: cover; border-radius: 4px; }
.search-result-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.search-result-cat { font-size: 12px; color: var(--primary); }

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1048;
}
.mobile-menu-overlay.active { display: block; }
.mobile-menu {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100vh;
  background: var(--bg-white);
  z-index: 1049;
  overflow-y: auto;
  transition: left 0.3s ease;
  box-shadow: var(--shadow-lg);
}
.mobile-menu.active { left: 0; }
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--secondary);
  color: white;
  font-weight: 700;
  font-size: 18px;
}
.mobile-menu-header button {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}
.mobile-nav-list { list-style: none; padding: 0; margin: 0; }
.mobile-nav-list li a {
  display: block;
  padding: 14px 20px;
  color: var(--text-primary);
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
  font-size: 15px;
}
.mobile-nav-list li a:hover { background: var(--primary-light); color: var(--primary); }
.mobile-sub-nav { list-style: none; padding: 0; background: var(--bg-surface); }
.mobile-sub-nav li a { padding-left: 36px; font-weight: 400; font-size: 14px; }
.navbar-toggler-custom {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.navbar-toggler-custom span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}
.mobile-menu-social { display: flex; gap: 12px; }
.mobile-menu-social a { font-size: 20px; color: var(--text-secondary); }

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-section { padding: 20px 0 0; }
.hero-slider {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: var(--secondary);
  aspect-ratio: 16/10;
}
.hero-slide { display: none; position: relative; height: 100%; }
.hero-slide.active { display: block; }
.hero-slide-img { position: relative; height: 100%; }
.hero-slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e293b, #334155);
}
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
}
.hero-slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 24px 20px;
  color: white;
}
.hero-slide-title {
  font-size: clamp(16px, 2.5vw, 24px);
  font-weight: 700;
  color: white;
  margin: 8px 0;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.hero-slide-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  opacity: .85;
  flex-wrap: wrap;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.2);
  border: 2px solid rgba(255,255,255,.3);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 5;
  font-size: 18px;
  backdrop-filter: blur(4px);
}
.slider-btn:hover { background: var(--primary); border-color: var(--primary); }
.slider-prev { left: 12px; }
.slider-next { right: 12px; }
.slider-dots {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  gap: 6px;
  z-index: 5;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 0;
}
.slider-dot.active { background: var(--primary); width: 24px; border-radius: 4px; }

/* Hero Stack */
.hero-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}
.hero-stack-item {
  display: flex;
  gap: 10px;
  background: var(--bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  flex: 1;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}
.hero-stack-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.hero-stack-img {
  width: 110px;
  flex-shrink: 0;
  overflow: hidden;
}
.hero-stack-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-stack-content { padding: 10px 10px 10px 0; flex: 1; display: flex; flex-direction: column; }
.hero-stack-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
  flex: 1;
  margin: 4px 0;
}
.hero-stack-time { font-size: 12px; color: var(--text-muted); }

/* ============================================================
   SECTION BLOCKS
   ============================================================ */
.section-block {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
}
.section-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-content-section { padding: 24px 0 40px; }

/* ============================================================
   NEWS CARDS
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.news-card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: var(--primary);
}
.news-card-img-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--bg-surface);
}
.news-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.news-card:hover .news-card-img-wrap img { transform: scale(1.05); }
.news-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-surface), var(--border-color));
}
.news-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.news-card-badge.breaking { background: var(--primary); color: white; animation: pulse 2s infinite; }
.news-card-badge.featured { background: var(--accent); color: #1e293b; }
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: .7; }
}
.news-card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.news-cat-link {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.news-card-title {
  font-size: 15px;
  font-weight: 700;
  margin: 6px 0 8px;
  line-height: 1.5;
  flex: 1;
}
.news-card-title a { color: var(--text-primary); }
.news-card-title a:hover { color: var(--primary); }
.news-card-summary {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 10px;
}
.news-card-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  margin-top: auto;
}
.news-card-meta i { margin-right: 3px; }

/* Category Badge */
.cat-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.cat-badge-sm { font-size: 12px; font-weight: 700; }
.cat-dot { width: 4px; height: 20px; border-radius: 2px; display: inline-block; }
.cat-dot-sm { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* Load More Button */
.btn-load-more {
  background: none;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 10px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition-fast);
  font-family: var(--font-bengali);
}
.btn-load-more:hover {
  background: var(--primary);
  color: white;
}

/* News List Side */
.news-list-side { list-style: none; padding: 0; margin: 0; }
.news-list-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}
.news-list-item:last-child { border-bottom: none; }
.news-list-thumb {
  flex-shrink: 0;
  width: 90px;
  height: 65px;
  overflow: hidden;
  border-radius: var(--border-radius-sm);
}
.news-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-list-content h5 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
  line-height: 1.5;
}
.news-list-content h5 a { color: var(--text-primary); }
.news-list-content h5 a:hover { color: var(--primary); }
.news-time { font-size: 12px; color: var(--text-muted); }

/* News Card Large */
.news-card-large {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  height: 100%;
}
.news-card-large:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

/* ============================================================
   TRENDING SECTION
   ============================================================ */
.trending-section { background: transparent; border: none; box-shadow: none; }
.trending-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  height: 100%;
}
.trending-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.trending-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.trending-num {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--primary);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.trending-info { padding: 10px; }
.trending-cat { font-size: 11px; font-weight: 700; }
.trending-title { font-size: 13px; font-weight: 600; margin: 4px 0 0; line-height: 1.5; color: var(--text-primary); }

/* ============================================================
   VIDEO SECTION
   ============================================================ */
.video-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}
.video-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.video-thumb { position: relative; overflow: hidden; aspect-ratio: 16/10; background: var(--secondary); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.video-card:hover .video-thumb img { transform: scale(1.05); }
.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: 20px;
  transition: var(--transition-fast);
  backdrop-filter: blur(4px);
}
.video-card:hover .video-play-btn { transform: translate(-50%,-50%) scale(1.1); }
.video-info { padding: 12px; }
.video-cat { font-size: 11px; font-weight: 700; color: var(--primary); text-transform: uppercase; }
.video-info h5 { font-size: 13px; margin: 4px 0 0; color: var(--text-primary); line-height: 1.5; }
.video-embed-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--border-radius);
  background: #000;
}
.video-embed-wrapper iframe,
.video-embed-wrapper video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { position: sticky; top: 80px; }
.sidebar-widget {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: 18px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}
.sidebar-ad { padding: 10px; text-align: center; }
.widget-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}
.widget-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; }

/* Popular List */
.popular-list { list-style: none; padding: 0; margin: 0; }
.popular-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}
.popular-item:last-child { border-bottom: none; }
.popular-rank {
  width: 26px;
  height: 26px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.popular-content { display: flex; gap: 8px; flex: 1; }
.popular-thumb { width: 80px; flex-shrink: 0; border-radius: 4px; overflow: hidden; }
.popular-thumb img { width: 100%; height: 55px; object-fit: cover; }
.popular-title { font-size: 13px; font-weight: 600; color: var(--text-primary); line-height: 1.5; display: block; }
.popular-title:hover { color: var(--primary); }
.popular-meta { font-size: 11px; color: var(--text-muted); display: flex; gap: 8px; margin-top: 4px; }

/* Newsletter */
.newsletter-widget { background: linear-gradient(135deg, #1e293b, #334155); }
.newsletter-widget .widget-title { color: white; border-color: var(--primary); }
.newsletter-widget .widget-desc { color: rgba(255,255,255,.7); }
.newsletter-form .form-control, .newsletter-form-sidebar .form-control {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  color: white;
}
.newsletter-form .form-control::placeholder { color: rgba(255,255,255,.5); }

/* Category List */
.category-list { list-style: none; padding: 0; margin: 0; }
.cat-list-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-fast);
}
.cat-list-link:hover { color: var(--primary); padding-left: 4px; }
.cat-count {
  margin-left: auto;
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 10px;
}

/* Tags Cloud */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}
.tag-chip:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* Social Follow */
.social-follow-list { display: flex; flex-direction: column; gap: 8px; }
.social-follow-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--border-radius);
  color: white;
  font-size: 20px;
  transition: var(--transition-fast);
}
.social-follow-item:hover { opacity: .9; transform: translateX(4px); color: white; }
.social-follow-item.facebook { background: #1877f2; }
.social-follow-item.youtube { background: #ff0000; }
.social-follow-item.telegram { background: #0088cc; }
.social-follow-item.whatsapp { background: #25d366; }
.social-name { display: block; font-size: 14px; font-weight: 700; line-height: 1; }
.social-action { display: block; font-size: 11px; opacity: .8; }

/* ============================================================
   SINGLE ARTICLE
   ============================================================ */
.single-article { background: var(--bg-white); border-radius: var(--border-radius-lg); padding: 30px; border: 1px solid var(--border-color); }
.breadcrumb-nav { margin-bottom: 16px; }
.breadcrumb { background: none; padding: 0; font-size: 13px; }
.breadcrumb-item + .breadcrumb-item::before { content: '›'; color: var(--text-muted); }
.article-category-label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.article-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  margin-left: 8px;
  vertical-align: middle;
}
.article-badge.breaking { background: var(--primary); color: white; animation: pulse 2s infinite; }
.article-title {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 800;
  line-height: 1.4;
  margin: 12px 0;
  color: var(--text-primary);
}
.article-summary {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  padding: 14px 18px;
  border-left: 4px solid var(--primary);
  background: var(--bg-surface);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}
.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-muted);
}
.author-info { display: flex; align-items: center; gap: 8px; }
.author-info a { font-weight: 600; color: var(--text-primary); }
.author-avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}
.author-avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 18px;
}
.meta-divider { color: var(--border-color); }
.article-date, .article-updated, .article-views { font-size: 12px; }

/* Share Bar */
.share-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.share-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: white;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: var(--font-bengali);
}
.share-btn.fb { background: #1877f2; }
.share-btn.wa { background: #25d366; }
.share-btn.tg { background: #0088cc; }
.share-btn.tw { background: #000; padding: 7px 12px; }
.share-btn.copy { background: var(--text-secondary); }
.share-btn:hover { opacity: .85; transform: translateY(-1px); }

/* Featured Image */
.article-featured-img {
  margin: 0 -30px 24px;
  overflow: hidden;
}
.article-featured-img img { width: 100%; max-height: 500px; object-fit: cover; }
.article-featured-img figcaption {
  padding: 8px 20px;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-surface);
  font-style: italic;
}

/* Article Content */
.article-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-primary);
}
.article-content p { margin-bottom: 1.2em; }
.article-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 1.5em 0 .6em;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
}
.article-content h3 { font-size: 19px; font-weight: 700; margin: 1.3em 0 .5em; }
.article-content img { border-radius: var(--border-radius); margin: 1em 0; }
.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  background: var(--bg-surface);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-size: 18px;
  font-style: italic;
  color: var(--text-secondary);
  margin: 1.5em 0;
}
.article-content ul, .article-content ol { padding-left: 1.5em; margin-bottom: 1em; }
.article-content li { margin-bottom: .4em; }
.article-content a { color: var(--primary); text-decoration: underline; }
.article-content table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.article-content th, .article-content td { border: 1px solid var(--border-color); padding: 10px 14px; }
.article-content th { background: var(--bg-surface); font-weight: 700; }

/* Article Tags */
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 20px 0; }
.article-tags > i { font-size: 16px; color: var(--text-muted); }

/* Author Box */
.author-box {
  display: flex;
  gap: 20px;
  background: var(--bg-surface);
  border-radius: var(--border-radius-lg);
  padding: 20px;
  margin: 30px 0;
  border: 1px solid var(--border-color);
}
.author-box-avatar img, .author-avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  flex-shrink: 0;
}
.author-avatar-lg {
  background: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 36px;
}
.author-box-name { font-size: 18px; font-weight: 700; }
.author-box-name a { color: var(--text-primary); }
.author-box-bio { font-size: 14px; color: var(--text-secondary); margin: 6px 0 12px; }

/* Related News */
.related-news { margin-top: 30px; padding-top: 24px; border-top: 2px solid var(--border-color); }
.related-title { font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.related-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-surface);
  border-radius: var(--border-radius);
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}
.related-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.related-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.related-card h5 { font-size: 14px; font-weight: 600; color: var(--text-primary); padding: 10px 12px 0; line-height: 1.5; }
.related-time { font-size: 12px; color: var(--text-muted); padding: 0 12px 10px; }

/* Comments */
.comments-section { margin-top: 30px; padding-top: 24px; border-top: 2px solid var(--border-color); }
.comments-title { font-size: 20px; font-weight: 800; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.comments-list { margin-bottom: 30px; }
.comment-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}
.comment-avatar-box { flex-shrink: 0; }
.comment-avatar-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}
.comment-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.comment-author { font-size: 15px; }
.comment-time { font-size: 12px; color: var(--text-muted); }
.comment-text { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin: 0; }
.comment-form-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #0f172a; color: #94a3b8; margin-top: 40px; }
.footer-top { padding: 48px 0 30px; }
.footer-logo-text { font-size: 26px; font-weight: 800; color: white; font-family: 'Tiro Bangla', serif; }
.footer-about-text { font-size: 14px; line-height: 1.8; color: #64748b; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 15px;
  transition: var(--transition-fast);
}
.social-btn.fb { background: #1877f2; }
.social-btn.tw { background: #000; }
.social-btn.yt { background: #ff0000; }
.social-btn.ig { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.social-btn.tg { background: #0088cc; }
.social-btn:hover { transform: translateY(-2px); opacity: .85; }
.footer-widget-title { font-size: 16px; font-weight: 700; color: white; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid #dc2626; }
.footer-widget-subtitle { font-size: 14px; font-weight: 600; color: #94a3b8; margin-bottom: 8px; }
.footer-news-list { list-style: none; padding: 0; margin: 0; }
.footer-news-item { display: flex; gap: 10px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #1e293b; }
.footer-news-item:last-child { border-bottom: none; margin-bottom: 0; }
.footer-news-thumb { flex-shrink: 0; border-radius: 4px; overflow: hidden; }
.footer-news-thumb img { width: 70px; height: 50px; object-fit: cover; }
.footer-news-title { font-size: 13px; font-weight: 500; color: #94a3b8; line-height: 1.5; display: block; }
.footer-news-title:hover { color: white; }
.footer-news-date { font-size: 11px; color: #475569; display: block; margin-top: 4px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 2px; }
.footer-links a { font-size: 13px; color: #64748b; display: flex; align-items: center; gap: 4px; padding: 4px 0; transition: var(--transition-fast); }
.footer-links a:hover { color: var(--primary); padding-left: 4px; }
.badge-count { margin-left: auto; font-size: 11px; background: #1e293b; color: #64748b; padding: 1px 6px; border-radius: 10px; }
.footer-newsletter .form-control { background: #1e293b; border-color: #334155; color: white; }
.footer-newsletter .form-control::placeholder { color: #475569; }
.footer-bottom { padding: 16px 0; border-top: 1px solid #1e293b; }
.footer-copyright { font-size: 13px; color: #475569; }
.footer-policy-link { font-size: 12px; color: #475569; transition: color 0.2s; }
.footer-policy-link:hover { color: var(--primary); }
.footer-ad-bar { background: var(--bg-surface); border-top: 1px solid var(--border-color); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(220,38,38,.4);
}
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ============================================================
   COOKIE NOTICE
   ============================================================ */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1e293b;
  color: white;
  padding: 14px 0;
  z-index: 9990;
  box-shadow: 0 -4px 20px rgba(0,0,0,.2);
}
.cookie-notice p { font-size: 13px; color: #94a3b8; }

/* ============================================================
   PWA INSTALL
   ============================================================ */
.pwa-install-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1e293b;
  color: white;
  padding: 12px 0;
  z-index: 9980;
  border-top: 3px solid var(--primary);
  font-size: 14px;
}

/* ============================================================
   POPUP AD
   ============================================================ */
.popup-ad-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 9995;
  display: flex;
  align-items: center;
  justify-content: center;
}
.popup-ad-inner {
  position: relative;
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 8px;
  max-width: 90vw;
}
.popup-ad-inner img { max-width: 100%; border-radius: 6px; }
.popup-ad-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   COMMENT SIDEBAR
   ============================================================ */
.comment-list-sidebar { list-style: none; padding: 0; margin: 0; }
.comment-item-sidebar { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border-color); }
.comment-item-sidebar:last-child { border-bottom: none; }
.comment-avatar { font-size: 28px; color: var(--text-muted); }
.comment-body-sidebar p { font-size: 12px; color: var(--text-secondary); margin: 2px 0 4px; }
.comment-news-link { font-size: 12px; color: var(--primary); }

/* ============================================================
   AD UNITS
   ============================================================ */
.ad-unit { text-align: center; }
.ad-unit img { max-width: 100%; margin: 0 auto; }

/* ============================================================
   UTILITY
   ============================================================ */
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .main-nav { display: none; }
  .sidebar { position: static; }
  .hero-stack { flex-direction: row; flex-wrap: wrap; }
  .hero-stack-item { flex: 1 1 calc(50% - 6px); min-width: 200px; }
  .single-article { padding: 20px; }
  .article-featured-img { margin: 0 -20px 20px; }
}

@media (max-width: 767px) {
  .hero-slider { aspect-ratio: 4/3; }
  .hero-slide-title { font-size: 16px; }
  .news-grid { grid-template-columns: 1fr; }
  .hero-stack { display: none; }
  .share-bar { gap: 6px; }
  .share-btn span { display: none; }
  .author-box { flex-direction: column; }
  .section-block { padding: 14px; }
  .article-title { font-size: 20px; }
  .article-content { font-size: 16px; }
}

@media (max-width: 480px) {
  .top-bar { display: none !important; }
  .trending-section .row { grid-template-columns: repeat(2, 1fr); }
}

/* Print */
@media print {
  .site-header, .main-nav, .breaking-news-bar, .sidebar,
  .share-bar, .comments-section, .related-news,
  .site-footer, .back-to-top, .cookie-notice { display: none !important; }
  .article-content { font-size: 14pt; line-height: 1.6; }
  a { color: black !important; text-decoration: none !important; }
}
