/* =============================================
   DAILY NEWS BD — PROFESSIONAL STYLESHEET v2
   Theme: Premium Editorial | Deep Navy + Crimson
   ============================================= */

/* ===== CSS VARIABLES ===== */
:root {
  --navy: #0d1b2a;
  --navy-mid: #1a2e45;
  --navy-light: #243b55;
  --crimson: #c1121f;
  --crimson-dark: #9a0e18;
  --crimson-light: #e8334a;
  --gold: #d4a017;
  --bg: #f0f2f5;
  --card-bg: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.14);
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 12px;
  --transition: 0.2s ease;
  --font-bn: "Hind Siliguri", "Noto Sans Bengali", sans-serif;
  --font-en: "Playfair Display", "Source Sans 3", serif;
  --font-ui: "Source Sans 3", sans-serif;
}

[data-theme="dark"] {
  --bg: #0a1220;
  --card-bg: #111d2e;
  --text-primary: #e8edf2;
  --text-secondary: #9fb3c8;
  --text-muted: #64748b;
  --border: #1e3050;
  --border-light: #162438;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  overflow-x: hidden;
}
body {
  font-family: var(--font-bn);
  background: var(--bg);
  color: var(--text-primary);
  transition:
    background 0.3s ease,
    color 0.3s ease;
  line-height: 1.6;
}
img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ===== UTILITY BAR ===== */
.utility-bar {
  background: var(--navy);
  color: #cbd5e0;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--navy-mid);
}
.utility-date,
.utility-time,
.utility-weather {
  color: #94a3b8;
}
.utility-divider {
  color: #334155;
}
.utility-weather i {
  color: var(--gold);
  margin-right: 3px;
}
.social-icons a {
  color: #94a3b8;
  font-size: 0.85rem;
  transition: color var(--transition);
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.social-icons a:hover {
  color: #fff;
}
.theme-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all var(--transition);
}
.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.en-btn {
  background: var(--crimson);
  color: #fff !important;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 3px;
  transition: background var(--transition);
}
.en-btn:hover {
  background: var(--crimson-dark);
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  background: var(--navy) !important;
  border-bottom: 2px solid var(--crimson);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  z-index: 1030;
  transition: all 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
.header-inner {
  padding: 4px 0;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}
.site-header .site-logo-img {
  height: 70px;
  transition: height 0.1s ease;
  object-fit: contain;
  width: auto;
}
.site-header.scrolled .site-logo-img {
  height: 52px;
}
.logo-link {
  display: inline-flex;
  flex-shrink: 0;
}
.subscribe-btn {
  background: var(--crimson);
  color: #fff !important;
  font-family: var(--font-bn);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.subscribe-btn:hover {
  background: var(--crimson-dark);
  box-shadow: 0 4px 12px rgba(193, 18, 31, 0.3);
  transform: translateY(-1px);
}

/* ===== NAVBAR ===== */
.main-nav {
  background: transparent !important;
  padding: 0;
}
.main-nav .navbar-nav .nav-link {
  font-family: var(--font-bn);
  font-size: 0.9rem;
  font-weight: 500;
  color: #cbd5e0 !important;
  padding: 14px 12px !important;
  transition:
    color var(--transition),
    background var(--transition);
  position: relative;
  white-space: nowrap;
}
.main-nav .navbar-nav .nav-link:not(.dropdown-toggle)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--crimson);
  transition: width 0.2s ease;
}
.main-nav .navbar-nav .nav-link:hover,
.main-nav .navbar-nav .nav-link.active {
  color: #fff !important;
}
.main-nav .navbar-nav .nav-link:not(.dropdown-toggle):hover::after,
.main-nav .navbar-nav .nav-link:not(.dropdown-toggle).active::after {
  width: 80%;
}

.main-nav .navbar-nav .nav-link.dropdown-toggle::after {
  content: "\f282";
  font-family: "bootstrap-icons";
  border: none;
  vertical-align: middle;
  margin-left: 6px;
  font-size: 0.75rem;
  font-weight: 900;
}

.custom-dropdown {
  background: var(--navy-mid);
  border: 1px solid var(--navy-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 160px;
  padding: 6px 0;
}
.custom-dropdown .dropdown-item {
  font-family: var(--font-bn);
  font-size: 0.88rem;
  color: #cbd5e0;
  padding: 8px 16px;
  transition:
    background var(--transition),
    color var(--transition);
}
.custom-dropdown .dropdown-item:hover {
  background: var(--crimson);
  color: #fff;
}
.custom-dropdown .dropdown-divider {
  border-color: var(--navy-light);
}

@media (min-width: 992px) {
  .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

.nav-en-pill {
  background: var(--crimson);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 3px;
}
.nav-en-pill:hover {
  background: var(--crimson-dark);
  color: #fff;
}

.nav-search-mini {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all var(--transition);
}
.nav-search-mini:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.mobile-search-wrap {
  display: flex;
  align-items: center;
}

.custom-toggler {
  border: none;
  background: transparent;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.custom-toggler span {
  display: block;
  width: 22px;
  height: 2px;
  background: #cbd5e0;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.custom-toggler:focus {
  outline: none;
  box-shadow: none;
}
.custom-toggler[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.custom-toggler[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.custom-toggler[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.floating-search {
  background: var(--navy-mid);
  padding: 10px 0;
  display: none;
  border-top: 1px solid var(--navy-light);
}
.floating-search.active {
  display: block;
}
.floating-search .form-control {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: var(--font-bn);
}
.floating-search .form-control::placeholder {
  color: #94a3b8;
}
.floating-search .form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--crimson);
  box-shadow: none;
}

/* ===== BREAKING NEWS TICKER ===== */
.breaking-bar {
  background: var(--crimson);
  padding: 7px 0;
  overflow: hidden;
}
.breaking-label {
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 14px;
  border-radius: 2px;
  flex-shrink: 0;
}
.breaking-label span {
  font-family: var(--font-bn);
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.ticker-wrap {
  flex: 1;
  overflow: hidden;
  margin: 0 10px;
  position: relative;
}
.ticker-wrap::before,
.ticker-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30px;
  z-index: 2;
}
.ticker-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--crimson), transparent);
}
.ticker-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--crimson), transparent);
}
@keyframes ticker-seamless {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  will-change: transform;
  animation: ticker-seamless 25s linear infinite;
  animation-delay: 0s;
}
.ticker-wrap:hover .ticker-track {
  animation-play-state: paused;
}
.ticker-item {
  font-family: var(--font-bn);
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ticker-item i {
  font-size: 0.4rem;
  color: rgba(255, 255, 255, 0.6);
}
.ticker-item a {
  color: #fff;
}
.ticker-item a:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-family: var(--font-bn);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--border);
  position: relative;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--crimson);
}
.section-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.top-news-dot {
  background: var(--crimson);
}
.politics-dot {
  background: #7c3aed;
}
.economy-dot {
  background: #059669;
}
.intl-dot {
  background: #0891b2;
}
.sports-dot {
  background: #d97706;
}
.ent-dot {
  background: #ec4899;
}
.tech-dot {
  background: #3b82f6;
}
.gallery-dot {
  background: var(--gold);
}
.see-all {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--crimson);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 3px;
}
.see-all:hover {
  color: var(--crimson-dark);
}
.section-head {
  padding-bottom: 0;
}

/* ===== HERO SECTION ===== */
.hero-card.main-feature {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    transparent 100%
  );
  z-index: 1;
}
.hero-text-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px 20px;
  z-index: 4;
}
.story-meta-light {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  display: block;
  margin-bottom: 8px;
}
.hero-headline-overlay {
  font-family: var(--font-bn);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 14px;
}
.hero-headline-overlay a {
  color: #fff;
}
.hero-headline-overlay a:hover {
  color: rgba(255, 255, 255, 0.85);
}
.hero-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--crimson);
  color: #fff;
  font-family: var(--font-bn);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 3px;
  transition: background var(--transition);
}
.hero-read-btn:hover {
  background: var(--crimson-dark);
  color: #fff;
}
.story-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--crimson);
  color: #fff;
  font-family: var(--font-bn);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 2px;
  z-index: 3;
}
.economy-badge {
  background: #059669;
}
.sports-badge {
  background: #d97706;
}
.tech-badge {
  background: #3b82f6;
}

/* Hero Sub-Cards */
.hero-sub-card {
  position: relative;
  cursor: pointer;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition:
    box-shadow var(--transition),
    transform var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.hero-sub-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.hero-sub-img {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.hero-sub-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Side Story Cards */
.side-story-card {
  position: relative;
  cursor: pointer;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition:
    box-shadow var(--transition),
    transform var(--transition);
}
.side-story-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.side-img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}
.side-headline {
  font-family: var(--font-bn);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-primary);
  margin: 6px 0 4px;
}
.side-headline a:hover {
  color: var(--crimson);
}

/* Category Tag Pills */
.story-cat-tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 2px;
  text-transform: uppercase;
}
.story-cat-tag.politics {
  background: #ede9fe;
  color: #5b21b6;
}
.story-cat-tag.economy {
  background: #d1fae5;
  color: #065f46;
}
.story-cat-tag.intl {
  background: #cffafe;
  color: #0e7490;
}
.story-cat-tag.sports {
  background: #fef3c7;
  color: #92400e;
}
.story-cat-tag.tech {
  background: #dbeafe;
  color: #1d4ed8;
}
.story-cat-tag.national {
  background: #ffe4e6;
  color: #9f1239;
}
.story-cat-tag.health {
  background: #dbeafe;
  color: #1d4ed8;
}
.story-cat-tag.environment {
  background: #fef3c7;
  color: #92400e;
}
[data-theme="dark"] .story-cat-tag.politics {
  background: rgba(124, 58, 237, 0.2);
  color: #c4b5fd;
}
[data-theme="dark"] .story-cat-tag.economy {
  background: rgba(5, 150, 105, 0.2);
  color: #6ee7b7;
}
[data-theme="dark"] .story-cat-tag.intl {
  background: rgba(8, 145, 178, 0.2);
  color: #67e8f9;
}
[data-theme="dark"] .story-cat-tag.sports {
  background: rgba(217, 119, 6, 0.2);
  color: #fcd34d;
}
[data-theme="dark"] .story-cat-tag.tech {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}
[data-theme="dark"] .story-cat-tag.national {
  background: rgba(193, 18, 31, 0.2);
  color: #fca5a5;
}
.story-time {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Latest Panel */
.latest-panel {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  height: 100%;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--crimson);
}
.panel-header h2 {
  font-family: var(--font-bn);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.panel-header h2 i {
  color: var(--crimson);
}
.panel-header a {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--crimson);
}
.latest-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-light);
}
.latest-list li:last-child {
  border-bottom: none;
}
.latest-time {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  color: var(--crimson);
  font-weight: 600;
  background: rgba(193, 18, 31, 0.08);
  padding: 2px 6px;
  border-radius: 2px;
  white-space: nowrap;
  margin-top: 2px;
}
.latest-list a {
  font-family: var(--font-bn);
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-primary);
  transition: color var(--transition);
}
.latest-list a:hover {
  color: var(--crimson);
}

/* ===== TRENDING SECTION ===== */
.trending-scroll-wrap {
  position: relative;
}
.trending-scroll {
  overflow: hidden;
}
.trending-track {
  display: flex;
  gap: 16px;
  transition: transform 0.4s ease;
}
.trend-card {
  position: relative;
  cursor: pointer;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  flex: 0 0 calc(20% - 13px);
  min-width: 195px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.trend-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--crimson-light);
}
.trend-img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.trend-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.trend-num {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.65);
  color: var(--gold);
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 2px;
}
.trend-body {
  padding: 12px 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.trend-body h4 {
  font-family: var(--font-bn);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-primary);
  margin: 6px 0 4px;
}
.trend-body h4 a:hover {
  color: var(--crimson);
}
.trend-nav {
  display: flex !important;
  gap: 8px;
}
.trend-arrow {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  flex-shrink: 0;
  z-index: 2;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.trend-arrow:hover {
  background: var(--crimson);
  border-color: var(--crimson);
  color: #fff;
  box-shadow: 0 4px 10px rgba(193, 18, 31, 0.25);
  transform: translateY(-1px);
}
.trend-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  filter: grayscale(1);
}

/* ===== NEWS CARDS ===== */
.news-card {
  position: relative;
  cursor: pointer;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition:
    box-shadow var(--transition),
    transform var(--transition);
}
.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Full-card clickable overlay */
.card-full-link {
  position: absolute;
  inset: 0;
  z-index: 5;
  cursor: pointer;
}
.card-full-link ~ * a,
.card-full-link ~ * button {
  position: relative;
  z-index: 6;
}

.news-card-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-card-img::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
}
.news-card-body {
  padding: 14px 16px 16px;
}
.news-card-body h3 {
  font-family: var(--font-bn);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 8px;
  transition: color var(--transition);
}
.news-card-body h3 a:hover {
  color: var(--crimson);
}
.news-card-body p {
  font-family: var(--font-bn);
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 10px;
}
.news-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.news-card-meta i {
  margin-right: 3px;
}
.read-link {
  color: var(--crimson);
  font-weight: 600;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: gap var(--transition);
}
.read-link:hover {
  gap: 6px;
  color: var(--crimson-dark);
}

/* Mini Cards */
.mini-card {
  padding: 10px;
}
.mini-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}
.mini-card h4 {
  font-family: var(--font-bn);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.mini-card h4 a:hover {
  color: var(--crimson);
}

/* Vertical Cards */
.v-card {
  display: flex;
  flex-direction: column;
}
.v-card > img {
  aspect-ratio: 16/9;
  width: 100%;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
.v-card h4 {
  font-family: var(--font-bn);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-primary);
  margin: 8px 0 4px;
}
.v-card h4 a:hover {
  color: var(--crimson);
}
.v-card .news-card-body {
  padding: 12px 14px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Lead Cards — flex column so meta pins to bottom */
.news-card.lead-card {
  display: flex;
  flex-direction: column;
}
.news-card.lead-card .news-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-card.lead-card .news-card-meta {
  margin-top: auto;
  padding-top: 8px;
}

/* ===== SIDEBAR ===== */
.sidebar-widget {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.widget-header {
  padding: 12px 16px;
  background: var(--navy);
  border-bottom: 2px solid var(--crimson);
}
.widget-header h3 {
  font-family: var(--font-bn);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}
.widget-header h3 i {
  color: var(--gold);
}

/* Most Read */
.most-read-list {
  padding: 8px 0;
}
.most-read-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition);
}
.most-read-list li:last-child {
  border-bottom: none;
}
.most-read-list li:hover {
  background: var(--bg);
}
.mr-num {
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--crimson);
  opacity: 0.6;
  flex-shrink: 0;
  width: 24px;
  margin-top: 2px;
}
.most-read-list a {
  font-family: var(--font-bn);
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-primary);
  transition: color var(--transition);
}
.most-read-list a:hover {
  color: var(--crimson);
}

/* Opinion Cards */
.opinion-card {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
}
.opinion-card:last-child {
  border-bottom: none;
}
.opinion-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.opinion-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.opinion-author strong {
  font-family: var(--font-bn);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
}
.opinion-author span {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--text-muted);
}
.opinion-card h4 {
  font-family: var(--font-bn);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.opinion-card h4 a:hover {
  color: var(--crimson);
}

/* Video Widget */
.video-item {
  padding: 12px 16px;
}
.video-thumb {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 8px;
}
.video-thumb img {
  aspect-ratio: 16/9;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: rgba(193, 18, 31, 0.9);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition:
    transform var(--transition),
    background var(--transition);
}
.video-thumb:hover .play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--crimson);
}
.vid-duration {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 2px;
}
.video-item h5 {
  font-family: var(--font-bn);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
}
.video-item h5 a:hover {
  color: var(--crimson);
}

/* Social Follow */
.social-widget .widget-header {
  margin-bottom: 0;
}
.social-follow-grid {
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sf-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  transition:
    opacity var(--transition),
    transform var(--transition);
}
.sf-btn:hover {
  opacity: 0.88;
  color: #fff;
  transform: translateY(-1px);
}
.sf-btn.fb {
  background: #1877f2;
}
.sf-btn.yt {
  background: #ff0000;
}
.sf-btn.tw {
  background: #1da1f2;
}
.sf-btn.ig {
  background: linear-gradient(
    45deg,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888
  );
}

/* ===== ENTERTAINMENT ===== */
.ent-card {
  position: relative;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.ent-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.ent-card:hover img {
  transform: scale(1.04);
}
.ent-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 12px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), transparent);
}
.ent-overlay h5 {
  font-family: var(--font-bn);
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  margin-top: 6px;
  line-height: 1.4;
}

/* ===== ENGLISH NEWS SECTION ===== */
.english-section {
  background: linear-gradient(135deg, #f0f7ff, #e8f4ff);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid #c5dff8;
}
[data-theme="dark"] .english-section {
  background: linear-gradient(
    135deg,
    rgba(30, 60, 100, 0.4),
    rgba(20, 40, 80, 0.4)
  );
  border-color: rgba(59, 130, 246, 0.2);
}
.english-section-header {
  border-bottom: 2px solid #2563eb;
  padding-bottom: 16px;
  margin-bottom: 4px;
}
.en-flag-icon {
  width: 48px;
  height: 48px;
  background: #2563eb;
  color: #fff;
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 1.1rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.en-section-title {
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e40af;
  margin: 0;
}
[data-theme="dark"] .en-section-title {
  color: #93c5fd;
}
.en-section-sub {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: #3b82f6;
  margin: 0;
}
.see-all-en {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: #2563eb;
  display: flex;
  align-items: center;
  gap: 3px;
}
.see-all-en:hover {
  color: #1d4ed8;
}

.en-lead-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}
[data-theme="dark"] .en-lead-card {
  background: var(--card-bg);
}
.en-lead-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.en-lead-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.en-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #2563eb;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
}
.en-lead-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.en-meta {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}
.en-headline {
  font-family: var(--font-en);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.en-headline a:hover {
  color: #2563eb;
}
.en-excerpt {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}
.en-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2563eb;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 3px;
  transition: background var(--transition);
  margin-top: auto;
  align-self: flex-start;
}
.en-read-btn:hover {
  background: #1d4ed8;
  color: #fff;
}

.en-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #c5dff8;
  transition:
    box-shadow var(--transition),
    transform var(--transition);
  display: flex;
  flex-direction: column;
}
[data-theme="dark"] .en-card {
  background: var(--card-bg);
  border-color: rgba(59, 130, 246, 0.2);
}
.en-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.en-card > img {
  aspect-ratio: 16/9;
  width: 100%;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
.en-card-body {
  padding: 12px 14px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.en-card-body h4 {
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin: 6px 0 4px;
  flex: 1;
}
.en-card-body h4 a:hover {
  color: #2563eb;
}
.en-tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 2px;
}
.en-tag.politics {
  background: #ede9fe;
  color: #5b21b6;
}
.en-tag.sports {
  background: #fef3c7;
  color: #92400e;
}
.en-tag.tech {
  background: #dbeafe;
  color: #1d4ed8;
}
.en-tag.intl {
  background: #cffafe;
  color: #0e7490;
}
.en-tag.ntnl {
  background: #cffafe;
  color: #059669;
}
[data-theme="dark"] .en-tag.politics {
  background: rgba(124, 58, 237, 0.2);
  color: #c4b5fd;
}
[data-theme="dark"] .en-tag.sports {
  background: rgba(217, 119, 6, 0.2);
  color: #fcd34d;
}
[data-theme="dark"] .en-tag.tech {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}
[data-theme="dark"] .en-tag.intl {
  background: rgba(8, 145, 178, 0.2);
  color: #67e8f9;
}
.en-time {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: auto;
  display: block;
}

/* ===== GALLERY ===== */
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  aspect-ratio: 4/3;
  width: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 42, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-overlay i {
  font-size: 1.6rem;
  color: #fff;
}
.gallery-item p {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 20px 10px 10px;
  font-family: var(--font-bn);
  font-size: 0.8rem;
  color: #fff;
  line-height: 1.4;
}

/* ===== NEWSLETTER ===== */
.newsletter-strip {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
}
.newsletter-strip::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -5%;
  width: 300px;
  height: 300px;
  background: rgba(193, 18, 31, 0.08);
  border-radius: 50%;
}
.nl-icon {
  width: 52px;
  height: 52px;
  background: rgba(193, 18, 31, 0.15);
  border: 1px solid rgba(193, 18, 31, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--crimson-light);
  flex-shrink: 0;
}
.newsletter-strip h3 {
  font-family: var(--font-bn);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.newsletter-strip p {
  font-family: var(--font-bn);
  font-size: 0.82rem;
  color: rgba(203, 213, 224, 0.8);
  margin: 0;
}
.nl-form {
  display: flex;
  gap: 8px;
}
.nl-form input {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-bn);
  font-size: 0.88rem;
  color: #fff;
  outline: none;
  transition: border-color var(--transition);
}
.nl-form input::placeholder {
  color: rgba(203, 213, 224, 0.6);
}
.nl-form input:focus {
  border-color: var(--crimson-light);
}
.nl-form button {
  background: var(--crimson);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-bn);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background var(--transition);
  position: relative;
  z-index: 20;
  justify-content: center;
}
.nl-form button:hover {
  background: var(--crimson-dark);
}
.nl-message {
  margin-top: 8px;
  font-family: var(--font-bn);
  font-size: 0.82rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}
.nl-message.success {
  background: rgba(5, 150, 105, 0.2);
  color: #6ee7b7;
}
.nl-message.error {
  background: rgba(193, 18, 31, 0.2);
  color: #fca5a5;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #080f1a;
  margin-top: 0;
}
.footer-top {
  padding: 48px 0 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-about-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding-bottom: 28px;
}
.footer-logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.footer-about-text {
  flex: 1 1 300px;
}
.footer-about-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.footer-about-text p:last-child {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.7;
  margin: 0;
}
.footer-about-social {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.footer-social-pill {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition:
    background 0.2s,
    color 0.2s;
}
.footer-social-pill:hover {
  background: var(--crimson);
  color: #fff;
}
.footer-divider {
  border-color: rgba(255, 255, 255, 0.08);
  margin: 0;
}
.footer-col-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 10px;
  line-height: 1.4;
}
.footer-contact-text {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.75;
  margin: 0;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links a {
  font-family: var(--font-bn);
  font-size: 0.85rem;
  color: #94a3b8;
  transition:
    color var(--transition),
    padding-left var(--transition);
  display: inline-flex;
  align-items: center;
}
.footer-links a:hover {
  color: var(--crimson-light);
  padding-left: 4px;
}
.footer-credit {
  color: var(--crimson-light);
}
.footer-credit:hover {
  text-decoration: underline;
}
.footer-bottom {
  padding: 16px 0;
  background: #050d18;
}
.footer-bottom p {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: #4b5563;
  margin: 0;
}
.footer-bottom a {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: #4b5563;
  transition: color var(--transition);
}
.footer-bottom a:hover {
  color: var(--crimson-light);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--crimson);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(193, 18, 31, 0.4);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  z-index: 999;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.back-to-top:hover {
  background: var(--crimson-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(193, 18, 31, 0.5);
}

/* ===== DARK MODE TWEAKS ===== */
[data-theme="dark"] .site-header {
  background: #040b14 !important;
  border-bottom-color: var(--crimson);
}
[data-theme="dark"] .utility-bar {
  background: #040b14;
}
[data-theme="dark"] .newsletter-strip {
  background: linear-gradient(135deg, #0a1628, #111d2e);
}

/* ===== IMAGE PROTECTION (all sizes) ===== */
.news-card-img img,
.en-lead-img img,
.gallery-item img,
.ent-card img,
.trend-img-wrap img,
.hero-img-wrap img,
.hero-sub-img img,
.side-img,
.mini-img,
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== FLUID LAYOUT ===== */
.site-header,
.utility-bar,
.breaking-bar,
.site-footer,
.floating-search {
  width: 100%;
}
.main-content {
  width: 100%;
}
.main-content > .container-fluid,
.breaking-bar > .container-fluid,
.utility-bar > .container-fluid,
.site-header > .container-fluid,
footer .container-fluid {
  max-width: none !important;
  width: 100%;
}

/* ===== CSS GRID AUTO-FIT for gap-free news grids ===== */
@media (min-width: 992px) {
  .sports-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
  }
  .sports-grid > [class*="col"] {
    width: auto !important;
    flex: none !important;
    max-width: none !important;
    padding: 0 !important;
  }
}
@media (min-width: 768px) {
  .intl-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .intl-grid > [class*="col"] {
    width: auto !important;
    flex: none !important;
    max-width: none !important;
    padding: 0 !important;
  }
  .crime-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .crime-grid > [class*="col"] {
    width: auto !important;
    flex: none !important;
    max-width: none !important;
    padding: 0 !important;
  }
  .ent-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
  .ent-grid > [class*="col"] {
    width: auto !important;
    flex: none !important;
    max-width: none !important;
    padding: 0 !important;
  }
  .gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
  }
  .gallery-grid > [class*="col"] {
    width: auto !important;
    flex: none !important;
    max-width: none !important;
    padding: 0 !important;
  }
}

/* Ensure grid cards fill height */
.sports-grid .news-card,
.intl-grid .news-card,
.crime-grid .news-card {
  height: 100%;
}

/* ===== STAGGER FADE-IN ANIMATION ===== */
.dn-animate {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.42s ease,
    transform 0.42s ease;
}
.dn-animate.dn-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1399px) {
  .trend-card {
    flex: 0 0 calc(25% - 12px);
  }
}
@media (max-width: 1199px) {
  .trend-card {
    flex: 0 0 calc(25% - 12px);
  }
}
@media (max-width: 991px) {
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    margin: 8px 12px 12px;
    padding: 10px 0 6px;
    background: rgba(5, 16, 32, 0.98);
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.9);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    max-height: calc(100vh - 88px);
    overflow-y: auto;
    transform-origin: top;
  }
  [data-theme="dark"] .navbar-collapse {
    background: rgba(2, 8, 23, 0.98);
    border-color: rgba(15, 23, 42, 0.95);
  }
  /* Animate only during the opening "collapsing" phase to avoid flicker */
  .navbar-collapse.show {
    animation: none;
  }
  /* Prevent bootstrap collapse flash/blink on open while keeping our animation */
  .navbar-collapse {
    will-change: opacity, transform;
  }
  .navbar-collapse.collapsing {
    transition: none !important;
    animation: none !important;
    height: auto !important;
  }
  .custom-toggler[aria-expanded="true"] + .navbar-collapse.collapsing {
    animation: dn-mobile-menu-in 0.18s ease-out;
  }
  .main-nav .navbar-nav {
    width: 100%;
    padding: 4px 0;
  }
  .main-nav .navbar-nav .nav-link {
    padding: 11px 18px !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.94rem;
    color: #e5e7eb !important;
  }
  .main-nav .navbar-nav .nav-link::after {
    display: none;
  }
  .main-nav .navbar-nav .nav-link i {
    font-size: 1rem;
  }
  .main-nav .navbar-nav .nav-link:hover,
  .main-nav .navbar-nav .nav-link:focus,
  .main-nav .navbar-nav .nav-link.active {
    background: linear-gradient(to right, rgba(248, 113, 113, 0.25), transparent);
    color: #ffffff !important;
  }
  .main-nav .navbar-nav .dropdown-menu.custom-dropdown {
    position: static;
    float: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0 0 4px 0;
    margin: 0;
  }
  .main-nav .navbar-nav .dropdown-item {
    padding: 9px 36px 9px 32px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  }
  .main-nav .navbar-nav .dropdown-item:last-child {
    border-bottom: none;
  }
  .nav-right-pills {
    padding: 10px 18px 12px;
    background: radial-gradient(circle at top left, rgba(248, 113, 113, 0.28), transparent 55%);
    margin-top: 6px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    justify-content: flex-start !important;
  }
  .nav-right-pills {
    gap: 10px;
  }
  .trend-card {
    flex: 0 0 calc(33.333% - 11px);
  }
  .site-header .site-logo-img {
    height: 56px;
  }
  /* Sports grid back to bootstrap columns on tablet */
  .sports-grid {
    display: flex !important;
    flex-wrap: wrap;
  }
  .sports-grid > [class*="col"] {
    width: auto !important;
    flex: 0 0 50%;
    max-width: 50% !important;
    padding: 0 8px !important;
  }
  /* Ent grid 2 col on tablet */
  .ent-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 767px) {
  .hero-img-wrap {
    max-height: none;
  }
  .hero-card.main-feature {
    border-radius: var(--radius);
    background: var(--card-bg);
    border: 1px solid var(--border);
  }
  .hero-text-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    position: absolute;
    z-index: 3;
    padding: 14px 16px 16px;
  }
  .hero-headline-overlay {
    font-size: 1rem;
    margin-bottom: 8px;
  }
  .story-meta-light {
    color: var(--text-muted);
    margin-bottom: 6px;
  }
  .hero-read-btn {
    padding: 6px 12px;
    font-size: 0.78rem;
  }
  .trend-card {
    flex: 0 0 calc(50% - 8px);
    min-width: 160px;
  }
  .newsletter-strip {
    padding: 20px 16px;
  }
  .nl-form {
    flex-direction: column;
  }
  .nl-form button {
    width: 100%;
  }
  .section-title {
    font-size: 1rem;
  }
  .latest-panel {
    height: auto;
  }
  .site-header .site-logo-img {
    height: 48px;
  }
  .intl-grid {
    grid-template-columns: 1fr !important;
  }
  .crime-grid {
    grid-template-columns: 1fr !important;
  }
  .ent-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .sports-grid > [class*="col"] {
    flex: 0 0 50%;
    max-width: 50% !important;
  }

}
@media (max-width: 575px) {
  .trend-card {
    flex: 0 0 85%;
    min-width: 240px;
  }
  .english-section {
    padding: 16px;
  }
  .back-to-top {
    bottom: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
  }
  .sports-grid > [class*="col"] {
    flex: 0 0 100%;
    max-width: 100% !important;
  }
  .ent-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* News Category CSS */
/* ===== CATEGORY PAGE SPECIFIC ===== */
.cat-hero {
  background: linear-gradient(
    135deg,
    var(--navy) 0%,
    var(--navy-mid) 60%,
    #1e3a5f 100%
  );
  padding: 32px 0 0;
  position: relative;
  overflow: hidden;
}
.cat-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(255, 255, 255, 0.015) 20px,
    rgba(255, 255, 255, 0.015) 40px
  );
}
.cat-hero-inner {
  position: relative;
  z-index: 1;
}
.cat-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: rgba(203, 213, 224, 0.7);
  margin-bottom: 12px;
}
.cat-breadcrumb a {
  color: rgba(203, 213, 224, 0.7);
  transition: color var(--transition);
}
.cat-breadcrumb a:hover {
  color: #fff;
}
.cat-breadcrumb i {
  font-size: 0.6rem;
}
.cat-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
}
.cat-icon-badge {
  width: 52px;
  height: 52px;
  background: var(--crimson);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  flex-shrink: 0;
}
.cat-title {
  font-family: var(--font-bn);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}
.cat-subtitle {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: rgba(203, 213, 224, 0.65);
  margin: 4px 0 0;
}
.cat-filter-bar {
  background: var(--navy-mid);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.filter-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.filter-tabs::-webkit-scrollbar {
  display: none;
}
.filter-tab {
  font-family: var(--font-bn);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(203, 213, 224, 0.7);
  padding: 12px 18px;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.filter-tab:hover {
  color: #fff;
}
.filter-tab.active {
  color: #fff;
  border-bottom-color: var(--crimson);
  font-weight: 600;
}

/* Sort bar */
.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 0 12px;
}
.sort-bar-left {
  font-family: var(--font-bn);
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.sort-bar-left strong {
  color: var(--crimson);
  font-weight: 700;
}
.sort-select {
  font-family: var(--font-bn);
  font-size: 0.82rem;
  color: var(--text-primary);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  cursor: pointer;
  outline: none;
}
.sort-select:focus {
  border-color: var(--crimson);
}
[data-theme="dark"] .sort-select {
  background: var(--card-bg);
  color: var(--text-primary);
}

/* Featured Top Card */
.cat-featured-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) {
  .cat-featured-card {
    flex-direction: row;
  }
  .cat-featured-img {
    width: 55%;
    flex-shrink: 0;
  }
  .cat-featured-body {
    flex: 1;
  }
}
.cat-featured-img {
  position: relative;
  aspect-ratio: 16/9;
}
.cat-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cat-featured-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cat-featured-body .story-cat-tag {
  margin-bottom: 10px;
}
.cat-featured-body h2 {
  font-family: var(--font-bn);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 12px;
}
.cat-featured-body h2 a:hover {
  color: var(--crimson);
}
.cat-featured-body p {
  font-family: var(--font-bn);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.cat-featured-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.cat-featured-meta .author-chip {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cat-featured-meta .author-chip img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

/* News List Cards (list view) */
.news-list-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow var(--transition),
    transform var(--transition);
  display: flex;
  gap: 0;
}
.news-list-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(3px);
}
.news-list-img {
  width: 160px;
  flex-shrink: 0;
  position: relative;
}
.news-list-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 575px) {
  .news-list-img {
    width: 110px;
  }
}
.news-list-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-list-body h3 {
  font-family: var(--font-bn);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.news-list-body h3 a:hover {
  color: var(--crimson);
}
.news-list-body p {
  font-family: var(--font-bn);
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  flex-wrap: wrap;
  gap: 6px;
}
.news-list-meta {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.news-list-meta .dot-sep {
  color: var(--border);
}

/* Grid / List View toggle */
.view-toggle {
  display: flex;
  gap: 4px;
}
.view-btn {
  width: 34px;
  height: 34px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.9rem;
}
.view-btn.active,
.view-btn:hover {
  background: var(--crimson);
  border-color: var(--crimson);
  color: #fff;
}

/* Pagination */
.cat-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 28px 0;
}
.page-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-bn);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.page-btn:hover,
.page-btn.active {
  background: var(--crimson);
  border-color: var(--crimson);
  color: #fff;
}
.page-btn.dots {
  border: none;
  background: transparent;
  cursor: default;
  color: var(--text-muted);
}
.page-btn.dots:hover {
  background: transparent;
  color: var(--text-muted);
}

/* Category Sidebar */
.cat-sidebar-widget {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}
.csw-header {
  padding: 12px 16px;
  background: var(--navy);
  border-bottom: 2px solid var(--crimson);
}
.csw-header h3 {
  font-family: var(--font-bn);
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}
.csw-header h3 i {
  color: var(--gold);
}

/* Sidebar news list */
.sidebar-news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-news-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
}
.sidebar-news-list li:last-child {
  border-bottom: none;
}
.snl-img {
  width: 80px;
  height: 60px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.snl-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.snl-body h5 {
  font-family: var(--font-bn);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.snl-body h5 a:hover {
  color: var(--crimson);
}
.snl-body .story-time {
  display: block;
}

/* Category tags list */
.cat-tags-cloud {
  padding: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cat-tag-pill {
  font-family: var(--font-bn);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-block;
}
.cat-tag-pill:hover {
  background: var(--crimson);
  border-color: var(--crimson);
  color: #fff;
}

/* Ad placeholder in sidebar */
.sidebar-ad {
  background: var(--card-bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  margin-bottom: 24px;
}
.sidebar-ad i {
  font-size: 2rem;
  opacity: 0.3;
}

/* View: grid mode */
.news-grid-area.grid-view .news-list-card {
  flex-direction: column;
}
.news-grid-area.grid-view .news-list-img {
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
}
.news-grid-area.grid-view .news-list-body p {
  display: none;
}

/* Load more button */
.load-more-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 2px solid var(--crimson);
  color: var(--crimson);
  font-family: var(--font-bn);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}
.load-more-btn:hover {
  background: var(--crimson);
  color: #fff;
}

/* ===== FIX: cards always visible (no opacity animation on this page) ===== */
.news-card,
.v-card,
.news-list-card,
.cat-featured-card,
.special-report-card,
.opinion-strip-item {
  opacity: 1 !important;
  transform: none !important;
}

/* ===== CARD IMAGE WRAPPER ===== */
.news-card-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.news-card:hover .news-card-img img {
  transform: scale(1.04);
}

/* ===== CARD EXCERPT ===== */
.cat-card-excerpt {
  font-family: var(--font-bn);
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 6px 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== INLINE AD BANNER ===== */
.inline-ad-banner {
  background: var(--border-light);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-muted);
}
[data-theme="dark"] .inline-ad-banner {
  background: rgba(255, 255, 255, 0.03);
}

/* ===== SPECIAL REPORT STRIP ===== */
.special-strip {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.special-strip-header {
  background: linear-gradient(90deg, #7c3aed, #5b21b6);
  color: #fff;
  font-family: var(--font-bn);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.special-strip-body {
  padding: 16px;
}
.special-report-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 100%;
}
[data-theme="dark"] .special-report-card {
  background: rgba(255, 255, 255, 0.03);
}
.special-report-card:hover {
  box-shadow: var(--shadow-md);
}
.sr-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.sr-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.special-report-card:hover .sr-img img {
  transform: scale(1.04);
}
.sr-body {
  padding: 12px 14px 14px;
}
.sr-badge {
  display: inline-block;
  background: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 2px;
  margin-bottom: 6px;
}
[data-theme="dark"] .sr-badge {
  background: rgba(196, 181, 253, 0.15);
  color: #c4b5fd;
}
.sr-body h4 {
  font-family: var(--font-bn);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.sr-body h4 a:hover {
  color: #7c3aed;
}
.sr-body p {
  font-family: var(--font-bn);
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sr-meta {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ===== OPINION STRIP ===== */
.opinion-strip {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.opinion-strip-header {
  background: linear-gradient(90deg, var(--navy), var(--navy-mid));
  color: #fff;
  font-family: var(--font-bn);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.see-all-sm {
  font-family: var(--font-ui);
  font-size: 0.76rem;
  color: #94a3b8;
  transition: color var(--transition);
}
.see-all-sm:hover {
  color: #fff;
}
.opinion-strip-list {
  padding: 8px 0;
}
.opinion-strip-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition);
}
.opinion-strip-item:last-child {
  border-bottom: none;
}
.opinion-strip-item:hover {
  background: var(--bg);
}
.opinion-strip-item > img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}
.opinion-strip-item h5 {
  font-family: var(--font-bn);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 4px;
}
.opinion-strip-item h5 a:hover {
  color: var(--crimson);
}
.opinion-strip-item span {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--text-muted);
}


  /* ===== ARTICLE DETAIL PAGE STYLES ===== */
  
  /* Article Hero */
  .article-hero {
    position: relative;
    width: 100%;
    max-height: 520px;
    overflow: hidden;
    background: var(--navy);
  }
  .article-hero img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
    opacity: 0.85;
  }
  .article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.25) 50%, transparent 100%);
  }
  .article-hero-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 24px 16px;
  }
  .article-hero-caption .story-cat-badge {
    position: static;
    display: inline-block;
    margin-bottom: 12px;
  }
  .article-hero-title {
    font-family: var(--font-bn);
    font-size: clamp(1.3rem, 3.5vw, 2.2rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    margin: 0;
    max-width: 860px;
  }
  @media (max-width: 767px) {
    .article-hero img { height: 240px; }
    .article-hero { max-height: 240px; }
  }
  /* Breadcrumb */
  .article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    color: var(--text-muted);
    padding: 14px 0 10px;
    flex-wrap: wrap;
  }
  .article-breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
  .article-breadcrumb a:hover { color: var(--crimson); }
  .article-breadcrumb i { font-size: 0.6rem; }
  /* Article Meta Bar */
  .article-meta-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    border-bottom: 3px solid var(--crimson);
    margin-bottom: 28px;
  }
  .article-author-block {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .article-author-block img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--crimson);
  }
  .author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--crimson);
    color: #fff;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.04em;
  }
  .author-info strong {
    font-family: var(--font-bn);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
  }
  .author-info span {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    color: var(--crimson);
  }
  .article-meta-items {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    color: var(--text-muted);
  }
  .article-meta-items span {
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .article-meta-items i { color: var(--crimson); }
  /* Share Buttons */
  .share-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
  }
  .share-label {
    font-family: var(--font-bn);
    font-size: 0.82rem;
    color: var(--text-secondary);
  }
  .share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 20px;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: opacity var(--transition), transform var(--transition);
    text-decoration: none;
  }
  .share-btn:hover { opacity: 0.88; color: #fff; transform: translateY(-1px); }
  .share-btn.fb-btn { background: #1877f2; }
  .share-btn.tw-btn { background: #1da1f2; }
  .share-btn.wa-btn { background: #25d366; }
  .share-btn.copy-btn { background: var(--navy); }
  /* Article Body Typography */
  .article-body {
    font-family: var(--font-bn);
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.9;
  }
  .article-lead {
    font-family: var(--font-bn);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.8;
    border-left: 4px solid var(--crimson);
    padding: 12px 20px;
    background: rgba(193, 18, 31, 0.04);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 24px;
  }
  [data-theme="dark"] .article-lead { background: rgba(193,18,31,0.08); }
  .article-body p {
    margin-bottom: 20px;
  }
  .article-body h2 {
    font-family: var(--font-bn);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 32px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
    position: relative;
  }
  .article-body h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--crimson);
  }
  .article-body h3 {
    font-family: var(--font-bn);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 24px 0 12px;
  }
  .article-body blockquote {
    margin: 28px 0;
    padding: 20px 24px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-left: 5px solid var(--gold);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
  }
  .article-body blockquote p {
    font-family: var(--font-bn);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    font-style: italic;
    margin: 0;
    line-height: 1.7;
  }
  .article-body blockquote cite {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    margin-top: 10px;
    font-style: normal;
  }
  .article-body .inline-img {
    margin: 24px 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
  }
  .article-body .inline-img img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
  }
  .article-body .inline-img figcaption {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    color: var(--text-muted);
    padding: 8px 12px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  }
  .article-body ul, .article-body ol {
    padding-left: 24px;
    margin-bottom: 20px;
  }
  .article-body ul { list-style: disc; }
  .article-body ol { list-style: decimal; }
  .article-body li {
    margin-bottom: 8px;
    line-height: 1.7;
  }
  /* Highlight box */
  .highlight-box {
    background: linear-gradient(135deg, rgba(193,18,31,0.06), rgba(193,18,31,0.02));
    border: 1px solid rgba(193,18,31,0.2);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin: 24px 0;
  }
  .highlight-box strong {
    display: block;
    font-family: var(--font-bn);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--crimson);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  [data-theme="dark"] .highlight-box {
    background: rgba(193,18,31,0.1);
    border-color: rgba(193,18,31,0.3);
  }
  /* Tags section */
  .article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 28px 0;
  }
  .tags-label {
    font-family: var(--font-bn);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
  }
  .article-tag-pill {
    font-family: var(--font-bn);
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 12px;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
  }
  .article-tag-pill:hover {
    background: var(--crimson);
    border-color: var(--crimson);
    color: #fff;
  }
  /* Bottom Share Bar */
  .article-bottom-share {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 32px;
  }
  .abs-left {
    font-family: var(--font-bn);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
  }
  /* Article Sidebar */
  .detail-sidebar-widget {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin-bottom: 24px;
  }
  .dsw-header {
    padding: 12px 16px;
    background: var(--navy);
    border-bottom: 2px solid var(--crimson);
  }
  .dsw-header h3 {
    font-family: var(--font-bn);
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 7px;
  }
  .dsw-header h3 i { color: var(--gold); }
  /* Sidebar news mini list */
  .detail-news-list li {
    display: flex;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-light);
    align-items: flex-start;
  }
  .detail-news-list li:last-child { border-bottom: none; }
  .dnl-num {
    font-family: var(--font-en);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--crimson);
    opacity: 0.5;
    flex-shrink: 0;
    width: 24px;
    line-height: 1.3;
  }
  .dnl-body h5 {
    font-family: var(--font-bn);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.45;
    margin-bottom: 3px;
  }
  .dnl-body h5 a:hover { color: var(--crimson); }
  /* Related Articles */
  .related-section {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 3px solid var(--crimson);
  }
  .related-section-title {
    font-family: var(--font-bn);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .related-section-title i { color: var(--crimson); }
  .related-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: box-shadow var(--transition), transform var(--transition);
    height: 100%;
  }
  .related-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
  .related-card-img {
    aspect-ratio: 16/9;
    overflow: hidden;
  }
  .related-card-img img { width: 100%; height: 100%; object-fit: cover; }
  .related-card-body { padding: 14px 16px; }
  .related-card-body h4 {
    font-family: var(--font-bn);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 8px;
  }
  .related-card-body h4 a:hover { color: var(--crimson); }
  .related-card-body .news-card-meta { margin-top: auto; }
  /* Sidebar — no sticky, scrolls naturally with the page */
  .detail-sticky-sidebar { display: flex; flex-direction: column; gap: 0; }
  /* Print/FontSize controls */
  .article-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }
  .ctrl-btn {
    width: 32px;
    height: 32px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all var(--transition);
  }
  .ctrl-btn:hover { background: var(--crimson); border-color: var(--crimson); color: #fff; }
  /* Progress bar */
  .reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--crimson);
    z-index: 9999;
    transition: width 0.1s ease;
    width: 0%;
  }
  /* Ad sidebar */
  .detail-ad {
    background: var(--card-bg);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: var(--text-muted);
    font-family: var(--font-ui);
    font-size: 0.75rem;
    margin-bottom: 24px;
  }
  .detail-ad i { font-size: 2rem; opacity: 0.3; }
  /* Comments section */
  .comments-section {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
  }
  .comments-title {
    font-family: var(--font-bn);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .comment-count {
    background: var(--crimson);
    color: #fff;
    font-size: 0.75rem;
    font-family: var(--font-ui);
    padding: 2px 8px;
    border-radius: 12px;
  }
  .comment-input-area {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
  }
  .comment-input-area textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-family: var(--font-bn);
    font-size: 0.88rem;
    color: var(--text-primary);
    resize: vertical;
    min-height: 90px;
    outline: none;
    transition: border-color var(--transition);
  }
  .comment-input-area textarea:focus { border-color: var(--crimson); }
  .comment-input-area textarea::placeholder { color: var(--text-muted); }
  .submit-comment-btn {
    background: var(--crimson);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font-bn);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background var(--transition);
  }
  .submit-comment-btn:hover { background: var(--crimson-dark); }

.sidebar-news-item a:hover {
  color: var(--crimson) !important;
}

/* New Sidebar Widgets Added */
.sidebar-cat-list li {
  margin: 0;
}
.sidebar-cat-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  color: var(--text-primary);
  font-family: var(--font-bn);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition);
  text-decoration: none;
}
.sidebar-cat-list li a:hover {
  background: var(--bg);
  color: var(--crimson);
  padding-left: 20px;
}
.sidebar-cat-list li:last-child a {
  border-bottom: none;
}
.sidebar-cat-list .badge {
  background: var(--border);
  color: var(--text-secondary);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 10px;
  padding: 2px 8px;
}
.sidebar-newsletter {
  background: linear-gradient(to bottom, var(--card-bg), var(--bg)) !important;
}
.sticky-sidebar-wrap {
  position: sticky;
  top: 90px;
}
/* Ensure detail sticky sidebar also has some height or GAP if needed */
.detail-sticky-sidebar {
  gap: 0;
}
/* Multimedia Gallery & Poll Widgets Added */
.multimedia-section {
  background: var(--navy);
  color: #fff;
  padding: 40px 0;
  border-radius: var(--border-radius);
  margin-top: 50px;
}
.multimedia-header {
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 10px;
}
.multimedia-header h2 {
  font-family: var(--font-bn);
  color: #fff;
  margin: 0;
}
.video-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  background: #000;
}
.video-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  opacity: 0.8;
  transition: transform 0.5s ease;
}
.video-card:hover img {
  transform: scale(1.05);
  opacity: 1;
}
.play-btn-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: var(--crimson);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 20px rgba(220, 20, 60, 0.5);
  z-index: 2;
}
.video-info {
  padding: 12px;
}
.video-info h5 {
  font-size: 0.95rem;
  margin: 0;
  font-family: var(--font-bn);
  color: #fff;
  line-height: 1.4;
}

/* Poll Widget */
.poll-widget-body {
  padding: 15px;
}
.poll-question {
  font-family: var(--font-bn);
  font-size: 0.95rem;
  margin-bottom: 15px;
  color: var(--text-primary);
  font-weight: 600;
}
.poll-options .form-check {
  margin-bottom: 10px;
  padding: 10px 12px 10px 35px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
}
.poll-options .form-check:hover {
  border-color: var(--crimson);
  background: rgba(220, 20, 60, 0.05);
}
.poll-options .form-check-input {
  cursor: pointer;
}
.poll-btn {
  width: 100%;
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 8px;
  border-radius: 6px;
  font-family: var(--font-bn);
  margin-top: 5px;
  transition: opacity 0.2s;
}
.poll-btn:hover {
  opacity: 0.9;
}

/* Increase Sidebar Gap */
.cat-sidebar-widget, .detail-sidebar-widget {
  margin-bottom: 35px !important;
}
.sticky-sidebar-wrap .cat-sidebar-widget, 
.sticky-sidebar-wrap .detail-sidebar-widget {
  margin-bottom: 35px !important;
}

/* Photo of the Day */
.photo-day-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}
.photo-day-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s;
}
.photo-day-card:hover img {
  transform: scale(1.1);
}
.photo-day-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: #fff;
}
.photo-day-info p {
  margin: 0;
  font-family: var(--font-bn);
  font-size: 0.9rem;
}

/* Top Contributors */
.contributors-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 15px;
}
.contributor-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}
.contributor-item img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-light);
}
.contributor-item:hover strong {
  color: var(--crimson);
}
.contributor-info strong {
  display: block;
  font-family: var(--font-bn);
  font-size: 0.9rem;
}
.contributor-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Recent Comments Widget */
.recent-comments-list {
  padding: 0;
  margin: 0;
}
.recent-comment-item {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-light);
}
.recent-comment-item:last-child {
  border-bottom: none;
}
.recent-comment-item p {
  margin: 0 0 5px;
  font-family: var(--font-bn);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recent-comment-item span {
  font-size: 0.72rem;
  color: var(--text-muted);
}




/* ============================================================
   CARD FULL LINK — reliable full-card clickable overlay
   Works even with overflow:hidden unlike Bootstrap stretched-link
   ============================================================ */

/* ============================================================
   FIX: CARD FOOTER ALIGNMENT (Pushing dates to the bottom)
   ============================================================ */
.news-card-body,
.trend-body,
.en-card-body,
.en-lead-body,
.v-card .news-card-body {
  display: flex;
  flex-direction: column;
  flex: 1; /* Ensures the body stretches to fill the card */
}

.news-card-meta,
.story-time,
.en-time {
  margin-top: auto !important; /* Pushes the footer strictly to the bottom */
  display: block;
}

/* ============================================================
   FIX: CARD FULL LINK (Eliminating Dead Clicks)
   ============================================================ */
.card-full-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10 !important; /* Forces the link to sit ON TOP of everything */
  display: block;
  cursor: pointer;
  border-radius: inherit;
  background: transparent;
}

/* Elements that need to be clicked separately must sit higher */
.story-cat-tag,
.story-cat-badge,
.en-cat-badge,
.read-link,
.trend-nav,
.cat-icon-badge,
.hero-read-btn {
  position: relative;
  z-index: 15 !important;
  pointer-events: auto;
}

/* Restores hover states since the overlay catches the mouse */
.news-card:hover h3 a,
.news-card:hover h4 a,
.trend-card:hover h4 a,
.side-story-card:hover h3 a,
.hero-sub-card:hover h4 a,
.v-card:hover h4 a {
  color: var(--crimson);
}

/* ============================================================
   CARD ALIGNMENT — equal height per row
   ============================================================ */

/* Bootstrap cols stretch to full row height */
.news-section .row.g-3 > [class*="col"],
.sports-grid > [class*="col"],
.ent-grid > [class*="col"],
.crime-grid > [class*="col"],
.intl-grid > [class*="col"] {
  display: flex;
  flex-direction: column;
}
.news-section .row.g-3 > [class*="col"] > .news-card,
.news-section .row.g-3 > [class*="col"] > .ent-card {
  flex: 1;
}

/* Latest panel — auto height, no overflow */
.latest-panel {
  height: auto !important;
  overflow: hidden;
}

/* Hero sub-cards — equal height in 3-col row */
.hero-sub-card {
  height: 100%;
}

/* news-card v-card uniform image */
.news-card.v-card img {
  aspect-ratio: 16/10;
  object-fit: cover;
}

/* mini-card uniform height */
.news-card.mini-card {
  min-height: 80px;
}

/* Contact Page Styles */
.contact-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #ffffff;
}
.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}
.icon-box i {
    line-height: 1;
}
/* Dark Mode Styling */
[data-theme="dark"] .text-muted {
    color: #adb5bd !important;
}
[data-theme="dark"] .contact-card {
    background-color: #1a1d20 !important;
    border: 1px solid #343a40 !important;
}
[data-theme="dark"] .contact-card h4,
[data-theme="dark"] .contact-card p,
[data-theme="dark"] .contact-card i {
    color: #f8f9fa !important;
}
[data-theme="dark"] .contact-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.4) !important;
}
[data-theme="dark"] .icon-box.bg-danger.bg-opacity-10 {
    background-color: rgba(220, 53, 69, 0.2) !important;
}
[data-theme="dark"] .icon-box.bg-primary.bg-opacity-10 {
    background-color: rgba(13, 110, 253, 0.2) !important;
}
[data-theme="dark"] .icon-box.bg-info.bg-opacity-10 {
    background-color: rgba(13, 202, 240, 0.2) !important;
}
[data-theme="dark"] .icon-box.bg-warning.bg-opacity-10 {
    background-color: rgba(255, 193, 7, 0.2) !important;
}