/* ============================================================
   News Nation — Brand Design System
   Palette from logo: Navy (primary) · Red (accent) · Clean neutrals
   ============================================================ */

:root {
  /* Brand — extracted from NEWS NATION 24x7 logo */
  --brand-primary: #0b2d6e;
  --brand-primary-dark: #071f4a;
  --brand-primary-light: #1a4494;
  --brand-secondary: #2d5aa8;
  --brand-accent: #e21c24;
  --brand-accent-hover: #bb1620;
  --brand-accent-soft: #fdebec;
  --brand-gradient: linear-gradient(135deg, #0b2d6e 0%, #1a4494 55%, #e21c24 100%);
  --brand-gradient-subtle: linear-gradient(180deg, #f5f8fc 0%, #ffffff 100%);

  /* Semantic tokens */
  --ink: #0b1f3d;
  --ink-soft: #3a4f6e;
  --ink-muted: #627a96;
  --paper: #ffffff;
  --paper-warm: #f5f8fc;
  --paper-muted: #e8eff8;
  --line: #d4deea;
  --accent: var(--brand-accent);
  --accent-hover: var(--brand-accent-hover);
  --accent-soft: var(--brand-accent-soft);
  --primary: var(--brand-primary);
  --primary-dark: var(--brand-primary-dark);
  --primary-light: var(--brand-primary-light);

  /* Category tag tints (navy / red only) */
  --tag-navy-bg: #e3ebf7;
  --tag-navy-text: #0b2d6e;
  --tag-navy-mid-bg: #d6e4f5;
  --tag-navy-mid-text: #1a4494;
  --tag-red-bg: #fdebec;
  --tag-red-text: #c4161e;
  --tag-red-mid-bg: #fad4d7;
  --tag-red-mid-text: #a01218;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(11, 45, 110, 0.07);
  --shadow-lg: 0 12px 40px rgba(11, 45, 110, 0.12);
  --font-body: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --font-display: "Barlow", system-ui, -apple-system, sans-serif;
  --header-h: 72px;

  /* Bootstrap theme overrides */
  --bs-primary: #e21c24;
  --bs-primary-rgb: 226, 28, 36;
  --bs-secondary: #0b2d6e;
  --bs-secondary-rgb: 11, 45, 110;
  --bs-dark: #071f4a;
  --bs-dark-rgb: 7, 31, 74;
  --bs-body-font-family: "Source Sans 3", system-ui, sans-serif;
  --bs-body-color: #0b1f3d;
  --bs-body-line-height: 1.7;
  --bs-link-color: #e21c24;
  --bs-link-hover-color: #bb1620;
  --bs-border-color: #d4deea;
  --bs-border-radius: 12px;
  --bs-border-radius-sm: 8px;
  --bs-border-radius-pill: 999px;
  --bs-focus-ring-color: rgba(226, 28, 36, 0.2);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease; }
a:hover { color: var(--accent); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
  overflow-wrap: break-word;
}

h1 { font-size: clamp(1.875rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.375rem, 3vw, 1.875rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.375rem); }

p { margin-bottom: 1rem; }

.lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* Global form polish */
.form-control,
.form-select {
  border-color: var(--line);
  color: var(--ink);
  font-size: 0.9375rem;
  padding: 0.625rem 0.875rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand-secondary);
  box-shadow: 0 0 0 0.2rem rgba(45, 90, 168, 0.15);
}

.form-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

.container { max-width: 1200px; padding-left: 1rem; padding-right: 1rem; }

/* ---- TOP BAR ---- */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  font-size: 0.8125rem;
  padding: 0.5rem 0;
  position: relative;
  z-index: 1045;
  border-bottom: 2px solid var(--brand-accent);
}

.top-bar > .container > .d-flex {
  min-height: 28px;
  align-items: center;
}

.top-bar a { color: rgba(255,255,255,0.85); }
.top-bar a:hover { color: #fff; }

.top-bar-actions { flex-shrink: 0; }

.header-social {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 0.5rem;
  padding-right: 0.75rem;
  border-right: 1px solid rgba(255,255,255,0.2);
}

.header-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  color: rgba(255,255,255,0.88);
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}

.header-social a:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.header-social--offcanvas {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
  gap: 0.5rem;
}

.header-social--offcanvas a {
  width: 2rem;
  height: 2rem;
  background: rgba(255,255,255,0.08);
}

.top-bar .container {
  overflow: visible;
}

.lang-switcher {
  position: relative;
}

.lang-switcher .dropdown-menu {
  z-index: 1060 !important;
}

.lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.15rem 0.35rem;
  white-space: nowrap;
}

.lang-switcher-btn:hover,
.lang-switcher-btn:focus,
.lang-switcher-btn.show {
  color: #fff;
}

.lang-switcher-btn::after {
  margin-left: 0.15rem;
  vertical-align: middle;
}

.lang-menu {
  min-width: 14rem;
  max-height: min(70vh, 28rem);
  overflow-y: auto;
  border-radius: var(--radius-sm);
  background: var(--paper);
  border: 1px solid var(--line);
}

.lang-menu .dropdown-item {
  font-size: 0.875rem;
  padding: 0.45rem 1rem;
  color: var(--ink);
  background: var(--paper);
}

.lang-menu .dropdown-item:hover,
.lang-menu .dropdown-item:focus {
  background: var(--paper-muted);
  color: var(--ink);
}

.lang-menu .dropdown-item.active {
  background: var(--accent-soft);
  color: var(--brand-primary);
  font-weight: 600;
}

.lang-switcher--mobile .lang-switcher-btn {
  width: 100%;
  justify-content: space-between;
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
}

.lang-switcher--mobile .lang-menu {
  width: 100%;
}

/* Hide Google Translate default UI (keep widget in DOM for JS) */
#google_translate_element {
  position: absolute !important;
  left: -9999px !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

.skiptranslate,
.goog-te-gadget,
.goog-te-gadget-simple,
.goog-te-menu-value,
.goog-te-banner-frame,
.goog-te-balloon-frame,
.goog-te-spinner-pos,
#goog-gt-tt,
iframe.goog-te-banner-frame,
iframe.skiptranslate {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body > .skiptranslate {
  display: none !important;
}

body {
  top: 0 !important;
  position: static !important;
}

body.translated-ltr,
body.translated-rtl {
  top: 0 !important;
}

font[style] {
  background: transparent !important;
  box-shadow: none !important;
}

/* ---- HEADER ---- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(11, 45, 110, 0.04);
  z-index: 1030;
}

.site-header .header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0.5rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.logo:hover { opacity: 0.92; }

.logo--header .logo-img {
  height: 50px;
  width: auto;
  max-width: 220px;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.logo-img {
  height: 48px;
  width: auto;
  max-width: 180px;
  display: block;
  object-fit: contain;
}

.logo--footer .logo-img {
  height: 48px;
  max-width: 180px;
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
}

.offcanvas-nav .offcanvas-logo {
  height: 42px;
  width: auto;
  max-width: 160px;
  background: #fff;
  border-radius: 6px;
  padding: 4px 8px;
  object-fit: contain;
}

.header-tools { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

.btn-live-tv {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 0.45rem 0.85rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-live-tv:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-live-tv.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-live-tv .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(226,28,36,0.25);
  animation: livePulse 1.5s ease-in-out infinite;
}

.btn-live-tv:hover .live-dot,
.btn-live-tv.active .live-dot {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.35);
}

.btn-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  padding: 0;
  font-size: 1.1rem;
}

.btn-icon:hover {
  background: var(--paper-muted);
  color: var(--primary);
  border-color: var(--brand-secondary);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.55rem 1.35rem;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(226, 28, 36, 0.25);
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 6px 18px rgba(226, 28, 36, 0.32);
}

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--primary);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--paper-muted);
}

/* Desktop nav strip */
.nav-strip {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.nav-strip .nav {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 0;
}

.nav-strip .nav::-webkit-scrollbar { display: none; }

.nav-strip .nav-link {
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.875rem 1rem;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-strip .nav-link:hover { color: var(--primary); }
.nav-strip .nav-link.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: transparent;
}

.nav-link-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent) !important;
}

.nav-link-live:hover,
.nav-link-live.active {
  color: var(--accent) !important;
  border-bottom-color: var(--accent);
}

.nav-link-live .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(226,28,36,0.25);
  animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.92); }
}

/* Offcanvas mobile nav */
.offcanvas-nav {
  background: var(--primary-dark);
  width: min(300px, 88vw);
}

.offcanvas-nav .offcanvas-header {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem;
}

.offcanvas-nav .offcanvas-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
}

.offcanvas-nav .offcanvas-title span { color: var(--accent); }

.offcanvas-nav .nav-link {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.95rem;
}

.offcanvas-nav .nav-link:hover,
.offcanvas-nav .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.offcanvas-nav .nav-link-live {
  color: #ff8a8f !important;
}

.offcanvas-nav .nav-link-live.active {
  color: #fff !important;
  background: rgba(226,28,36,0.2);
}

/* ---- BREAKING TICKER ---- */
.breaking-bar {
  background: linear-gradient(90deg, #fff8f8 0%, #ffffff 45%, #fff8f8 100%);
  border-top: 3px solid var(--primary);
  border-bottom: 1px solid rgba(226, 28, 36, 0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 2px 10px rgba(11, 45, 110, 0.05);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  min-height: 44px;
  position: relative;
}

.breaking-bar .breaking-tag {
  background: linear-gradient(135deg, var(--accent) 0%, #c41820 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  align-self: stretch;
  position: relative;
  z-index: 2;
  box-shadow: 4px 0 14px rgba(226, 28, 36, 0.22);
}

.breaking-bar .breaking-tag::after {
  content: '';
  position: absolute;
  right: -7px;
  top: 0;
  bottom: 0;
  width: 14px;
  background: inherit;
  transform: skewX(-14deg);
  z-index: -1;
}

.breaking-bar .breaking-tag .breaking-icon {
  font-size: 0.9rem;
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.15));
}

.breaking-bar .breaking-tag .pulse {
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: breakingPulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.55);
}

@keyframes breakingPulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0.55); }
  50% { opacity: 0.85; transform: scale(0.9); box-shadow: 0 0 0 4px rgba(255,255,255,0); }
}

.breaking-bar .ticker-wrap {
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
  align-self: stretch;
  position: relative;
  min-width: 0;
}

.breaking-bar .ticker-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2.5rem;
  z-index: 1;
  pointer-events: none;
}

.breaking-bar .ticker-fade--left {
  left: 0;
  background: linear-gradient(90deg, #fff8f8 15%, transparent);
}

.breaking-bar .ticker-fade--right {
  right: 0;
  background: linear-gradient(270deg, #fff8f8 15%, transparent);
}

.breaking-bar .ticker-content {
  display: flex;
  align-items: center;
  animation: ticker 42s linear infinite;
  white-space: nowrap;
  height: 100%;
  will-change: transform;
}

.breaking-bar .ticker-content:hover { animation-play-state: paused; }

.breaking-bar .ticker-item {
  display: inline-flex;
  align-items: center;
  padding: 0 1.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  position: relative;
}

.breaking-bar .ticker-item::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.55;
  margin-right: 1.1rem;
  flex-shrink: 0;
}

.breaking-bar .ticker-item a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breaking-bar .ticker-item a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

@media (max-width: 575.98px) {
  .breaking-bar { min-height: 40px; }
  .breaking-bar .breaking-tag {
    font-size: 0.62rem;
    padding: 0 0.75rem;
    letter-spacing: 0.06em;
  }
  .breaking-bar .breaking-tag .breaking-icon { display: none; }
  .breaking-bar .ticker-item {
    font-size: 0.8rem;
    padding: 0 1rem;
  }
}

/* ---- SECTION HEADERS ---- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary);
  position: relative;
}

.section-head::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 72px;
  height: 2px;
  background: var(--accent);
}

.section-head h2 {
  font-size: 1.5rem;
  margin: 0;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.section-head a {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-head a:hover { color: var(--accent-hover); }

/* ---- BADGES ---- */
.tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  background: var(--tag-navy-bg);
  color: var(--tag-navy-text);
}

.tag.politics { background: var(--tag-navy-bg); color: var(--tag-navy-text); }
.tag.business { background: var(--tag-navy-mid-bg); color: var(--tag-navy-mid-text); }
.tag.sports { background: var(--tag-red-bg); color: var(--tag-red-text); }
.tag.tech { background: var(--tag-navy-mid-bg); color: var(--tag-navy-mid-text); }
.tag.entertainment { background: var(--tag-red-mid-bg); color: var(--tag-red-mid-text); }
.tag.world { background: var(--tag-navy-bg); color: var(--tag-navy-text); }
.tag.health { background: var(--tag-red-bg); color: var(--tag-red-text); }
.tag.opinion { background: var(--tag-red-mid-bg); color: var(--tag-red-mid-text); }

.meta {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.meta span + span::before { content: "·"; margin-right: 0.35rem; }

/* ---- HERO ---- */
.hero-grid { margin: 2rem 0; }

.hero-featured {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-muted);
}

.hero-featured img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-featured:hover img { transform: scale(1.02); }

.hero-featured .hero-body {
  padding: 1.25rem 0 0;
}

.hero-featured h1 {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  margin: 0.5rem 0 0.75rem;
  font-weight: 800;
  color: var(--primary);
}

.hero-featured h1 a { color: var(--ink); }
.hero-featured h1 a:hover { color: var(--accent); }

.hero-side-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 560px;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--paper-muted);
}

/* ---- Hero Sidebar Scroll — thin scrollbar ---- */
.hero-side-list::-webkit-scrollbar {
  width: 5px;
}

.hero-side-list::-webkit-scrollbar-track {
  background: var(--paper-muted);
  border-radius: 999px;
}

.hero-side-list::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 999px;
}

.hero-side-list::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}

.hero-side-item {
  flex-shrink: 0;
}

.hero-side-item > [class*="col-"]:first-child a {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  line-height: 0;
}

.hero-side-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.hero-side-item h3 {
  font-size: 0.9375rem;
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.4;
  margin: 0.35rem 0 0;
}

.hero-side-item h3 a { color: var(--ink); }
.hero-side-item h3 a:hover { color: var(--accent); }

/* ---- Hero Sidebar — Responsive ---- */
@media (max-width: 991.98px) {
  .hero-side-list {
    max-height: none;
    height: auto;
    overflow-y: visible;
    overflow-x: visible;
    padding-right: 0;
    scrollbar-width: auto;
  }
}

/* ---- ARTICLE CARDS ---- */
.card-article {
  margin-bottom: 1.5rem;
  transition: transform 0.2s ease;
}

.card-article .thumb {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0.875rem;
  background: var(--paper-muted);
  box-shadow: var(--shadow);
}

.card-article .thumb img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card-article:hover .thumb img { transform: scale(1.03); }

.card-article h3, .card-article h4 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0.5rem 0 0.35rem;
}

.card-article h3 a, .card-article h4 a { color: var(--ink); }
.card-article h3 a:hover, .card-article h4 a:hover { color: var(--accent); }

.card-article p.excerpt {
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin: 0 0 0.5rem;
  line-height: 1.5;
}

/* Horizontal mini card */
.card-mini {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.875rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--line);
}

.card-mini:last-child { border-bottom: none; }

.card-mini img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.card-mini h4 {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0.25rem 0 0;
}

.card-mini h4 a { color: var(--ink); }
.card-mini h4 a:hover { color: var(--accent); }

/* ---- SIDEBAR ---- */
.sidebar-panel {
  background: var(--paper-warm);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.sidebar-panel h3 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}

.trending-num {
  counter-reset: trend;
  list-style: none;
  padding: 0;
  margin: 0;
}

.trending-num li {
  counter-increment: trend;
  display: flex;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.trending-num li:last-child { border-bottom: none; }

.trending-num li::before {
  content: counter(trend);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  min-width: 1.25rem;
  line-height: 1.2;
}

.trending-num a {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.trending-num a:hover { color: var(--accent); }

.sidebar-marquee-panel .sidebar-marquee {
  position: relative;
  overflow: hidden;
}

.sidebar-marquee-panel .sidebar-marquee__viewport {
  max-height: 18rem;
  overflow: hidden;
}

.sidebar-marquee-panel .sidebar-marquee__viewport--cards {
  max-height: 24rem;
}

.sidebar-marquee-panel .sidebar-marquee__track {
  animation: sidebarMarquee 28s linear infinite;
  will-change: transform;
}

.sidebar-marquee-panel .sidebar-marquee__track--slow {
  animation-duration: 36s;
}

.sidebar-marquee-panel .sidebar-marquee__track:hover {
  animation-play-state: paused;
}

.sidebar-marquee-panel .sidebar-marquee__fade {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.75rem;
  z-index: 1;
  pointer-events: none;
}

.sidebar-marquee-panel .sidebar-marquee__fade--top {
  top: 0;
  background: linear-gradient(180deg, var(--paper-warm) 15%, transparent);
}

.sidebar-marquee-panel .sidebar-marquee__fade--bottom {
  bottom: 0;
  background: linear-gradient(0deg, var(--paper-warm) 15%, transparent);
}

@keyframes sidebarMarquee {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar-marquee-panel .sidebar-marquee__viewport {
    max-height: none;
    overflow: visible;
  }

  .sidebar-marquee-panel .sidebar-marquee__track {
    animation: none;
  }

  .sidebar-marquee-panel .sidebar-marquee__fade {
    display: none;
  }
}

@media (min-width: 992px) {
  .sidebar-sticky {
    position: sticky;
    top: calc(var(--header-h) + 5rem);
  }
}

/* ---- CATEGORY BLOCKS ---- */
.cat-block {
  margin-bottom: 2.5rem;
}

.cat-block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.cat-block-head h3 {
  font-size: 1.25rem;
  margin: 0;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ---- OPINION ---- */
.opinion-box {
  background: var(--paper-warm);
  border-radius: var(--radius);
  padding: 1.25rem;
  height: 100%;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  transition: box-shadow 0.2s ease;
}

.opinion-box:hover {
  box-shadow: var(--shadow);
}

.opinion-box .author {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.opinion-box h4 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

.opinion-box h4 a { color: var(--ink); }

/* ---- EXPLAINED ---- */
.explained-box {
  background: var(--primary-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
  border-top: 3px solid var(--accent);
  box-shadow: var(--shadow-lg);
}

.explained-box h4 {
  color: #fff;
  font-size: 1.0625rem;
  margin: 0.5rem 0;
}

.explained-box h4 a { color: #fff; }
.explained-box h4 a:hover { opacity: 0.85; color: #fff; }

.explained-box p {
  font-size: 0.875rem;
  opacity: 0.8;
  margin: 0;
}

/* ---- VIDEO ---- */
.video-thumb {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.video-thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

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

.video-thumb:hover .play { background: rgba(0,0,0,0.35); }

.video-thumb .play i {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.video-thumb .dur {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

/* ---- NEWSLETTER ---- */
.newsletter-block {
  background: var(--primary-dark);
  color: #fff;
  padding: 3.5rem 0;
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
}

.newsletter-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand-gradient);
}

.newsletter-block h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.newsletter-block p { opacity: 0.75; margin: 0; }

.newsletter-block .form-control {
  border: none;
  border-radius: 999px 0 0 999px;
  padding: 0.75rem 1.25rem;
}

.newsletter-block .input-group .form-control {
  border-radius: 999px 0 0 999px;
}

.newsletter-block .input-group .btn-accent {
  border-radius: 0 999px 999px 0;
}

.newsletter-block .btn-send {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 0 999px 999px 0;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
}

.newsletter-block .btn-send:hover { background: var(--accent-hover); color: #fff; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 0;
  border-top: 4px solid var(--accent);
}

.site-footer .logo:hover { opacity: 1; }

.site-footer h5 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: rgba(255,255,255,0.65); font-size: 0.875rem; }
.site-footer a:hover { color: var(--accent); }

.footer-social a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

.footer-social a:hover { background: var(--accent); color: #fff; }

.footer-copy {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}

.footer-social a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* ---- PAGE HEADER (inner pages) ---- */
.page-hero {
  background: var(--brand-gradient-subtle);
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
  text-align: center;
  position: relative;
}

.page-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(120px, 30%);
  height: 3px;
  background: var(--brand-gradient);
  border-radius: 2px;
}

.page-hero h1 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  margin: 0.5rem 0;
  font-weight: 800;
  color: var(--primary);
}

.page-hero .lead {
  color: var(--ink-soft);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.65;
}

.breadcrumb { font-size: 0.8125rem; justify-content: center; }
.breadcrumb a { color: var(--primary); font-weight: 600; }
.breadcrumb a:hover { color: var(--accent); }

/* ---- ARTICLE DETAIL ---- */
.article-page h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin: 1rem 0;
}

.article-page .featured-img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 16/9;
  object-fit: cover;
  margin: 1.5rem 0;
}

.article-body {
  font-size: 1.0625rem;
  line-height: 1.85;
  max-width: 720px;
  color: var(--ink-soft);
}

.article-body p { margin-bottom: 1.35rem; color: var(--ink-soft); }
.article-body h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--primary);
  font-weight: 800;
}

.share-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.share-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.author-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--paper-warm);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 2rem 0;
  border: 1px solid var(--line);
}

.author-card img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

/* ---- BLOG LIST (category) ---- */
.blog-featured {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.blog-featured img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 21/9;
  object-fit: cover;
  margin-bottom: 1rem;
}

.blog-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.blog-row img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.blog-row h3 {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0.35rem 0;
}

.blog-row h3 a { color: var(--ink); }

/* ---- AD PLACEHOLDER ---- */
.ad-slot {
  background: var(--paper-muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  font-size: 0.75rem;
  min-height: 90px;
  margin: 1.5rem 0;
}

.ad-slot.tall { min-height: 250px; }

/* ---- CONTACT / ABOUT ---- */
.form-card {
  background: var(--paper-warm);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
  border-color: var(--brand-secondary);
  box-shadow: var(--shadow);
}

.info-card i {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.stat-grid .stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

/* ---- SEARCH ---- */
.search-hero {
  padding: 3rem 0;
  text-align: center;
}

.search-hero .form-control {
  border-radius: 999px;
  padding: 0.875rem 1.25rem;
  border: 2px solid var(--line);
  font-size: 1rem;
}

.search-hero .form-control:focus {
  border-color: var(--brand-secondary);
  box-shadow: 0 0 0 3px rgba(45, 90, 168, 0.15);
}

.search-result {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.search-result h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.35rem;
}

.search-result h3 a { color: var(--ink); }

/* ---- PAGINATION ---- */
.pagination .page-link {
  color: var(--primary);
  border-radius: var(--radius-sm);
  margin: 0 2px;
  border-color: var(--line);
  font-weight: 600;
}

.pagination .page-link:hover {
  background: var(--paper-muted);
  color: var(--accent);
  border-color: var(--brand-secondary);
}

.pagination .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ---- UTILITIES ---- */
.object-fit-cover { object-fit: cover; }
.bg-warm { background: var(--paper-warm); }

/* ---- RESPONSIVE ---- */
@media (max-width: 991.98px) {
  .blog-row { grid-template-columns: 100px 1fr; }
}

@media (max-width: 767.98px) {
  .blog-row { grid-template-columns: 1fr; }
  .blog-row img { aspect-ratio: 16/9; }
  .newsletter-block .d-flex,
  .newsletter-block .input-group { flex-direction: column; gap: 0.5rem; }
  .newsletter-block .form-control,
  .newsletter-block .btn-send,
  .newsletter-block .input-group .form-control,
  .newsletter-block .input-group .btn-accent { border-radius: 999px !important; width: 100%; }
  .site-footer .row > [class*="col-"] { text-align: center; }
  .footer-social { justify-content: center; display: flex; }
}

@media (max-width: 575.98px) {
  .logo--header .logo-img { height: 40px; max-width: 170px; }
  .site-header .header-row { min-height: 60px; padding: 0.35rem 0; }
  .btn-ghost { display: none; }
}

/* ---- Legacy class aliases (inner pages) ---- */
.category-badge,
.tag { display: inline-block; font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.25rem 0.6rem; border-radius: 4px; background: var(--paper-muted); color: var(--ink-soft); }
.category-badge.politics, .tag.politics { background: var(--tag-navy-bg); color: var(--tag-navy-text); }
.category-badge.business, .tag.business { background: var(--tag-navy-mid-bg); color: var(--tag-navy-mid-text); }
.category-badge.sports, .tag.sports { background: var(--tag-red-bg); color: var(--tag-red-text); }
.category-badge.tech, .tag.tech { background: var(--tag-navy-mid-bg); color: var(--tag-navy-mid-text); }
.category-badge.entertainment, .tag.entertainment { background: var(--tag-red-mid-bg); color: var(--tag-red-mid-text); }
.category-badge.world, .tag.world { background: var(--tag-navy-bg); color: var(--tag-navy-text); }
.category-badge.health, .tag.health { background: var(--tag-red-bg); color: var(--tag-red-text); }

.article-meta, .meta { font-size: 0.8125rem; color: var(--ink-muted); }
.article-meta span + span::before, .meta span + span::before { content: "·"; margin-right: 0.35rem; }

.section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--primary);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 72px;
  height: 2px;
  background: var(--accent);
}

.ad-space, .ad-slot { background: var(--paper-muted); border: 1px dashed var(--line); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--ink-muted); font-size: 0.75rem; min-height: 90px; margin: 1.5rem 0; }
.ad-space.sidebar, .ad-slot.tall { min-height: 250px; }

.news-card .thumb, .news-card img { border-radius: var(--radius); width: 100%; aspect-ratio: 16/10; object-fit: cover; margin-bottom: 0.75rem; }
.news-card h3, .news-card h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; }

.news-card-horizontal { padding: 0.875rem 0; border-bottom: 1px solid var(--line); }
.news-card-horizontal img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }

.trending-list { list-style: none; padding: 0; margin: 0; counter-reset: tr; }
.trending-list li { counter-increment: tr; display: flex; gap: 0.75rem; padding: 0.65rem 0; border-bottom: 1px solid var(--line); }
.trending-list li::before { content: counter(tr); font-family: var(--font-display); font-weight: 800; color: var(--primary); min-width: 1.25rem; }
.trending-list a { font-size: 0.875rem; font-weight: 600; color: var(--ink); }

.author-profile { text-align: center; padding: 2rem 0 2.5rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.author-profile h1 { font-size: 2rem; font-weight: 800; color: var(--primary); }
.author-avatar { border-radius: 50%; object-fit: cover; }
.author-avatar-lg { width: 120px; height: 120px; }
.author-avatar-sm { width: 48px; height: 48px; }
.author-bio { max-width: 560px; color: var(--ink-muted); }
.author-stats { display: flex; justify-content: center; gap: 2.5rem; margin-top: 1.5rem; }
.stat-value, .author-stats .stat-num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); font-weight: 600; }

.author-box, .author-card { display: flex; gap: 1rem; align-items: center; background: var(--paper-warm); border-radius: var(--radius); padding: 1rem; border: 1px solid var(--line); }
.author-name { font-weight: 700; color: var(--primary); }

.article-featured-img, .featured-img { width: 100%; border-radius: var(--radius); aspect-ratio: 16/9; object-fit: cover; margin: 1rem 0 1.5rem; }

.article-toc { background: var(--paper-warm); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.article-toc h2 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); }
.article-toc ol { margin: 0; padding-left: 1.25rem; font-size: 0.875rem; }

.article-share, .share-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.search-form-large .form-control { border-radius: 999px 0 0 999px; border: 2px solid var(--line); padding: 0.75rem 1.25rem; }
.search-form-large .btn { background: var(--primary); color: #fff; border-radius: 0 999px 999px 0; padding: 0.75rem 1.25rem; font-weight: 700; }
.search-form-large .btn:hover { background: var(--accent); color: #fff; }

.filter-tags .badge { cursor: pointer; padding: 0.45rem 0.9rem; border-radius: 999px; font-weight: 600; background: var(--paper-muted); color: var(--ink-soft); border: 1px solid var(--line); text-decoration: none; display: inline-block; }
.filter-tags .badge:hover { border-color: var(--brand-secondary); color: var(--primary); }
.filter-tags .badge.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.search-highlight { background: var(--accent-soft); color: var(--tag-red-text); padding: 0 0.15rem; font-weight: 600; }

.nav-pills .nav-link { border-radius: 999px; font-size: 0.8125rem; font-weight: 700; color: var(--ink-soft); border: 1px solid var(--line); font-family: var(--font-display); }
.nav-pills .nav-link:hover { color: var(--primary); border-color: var(--brand-secondary); }
.nav-pills .nav-link.active { background: var(--primary); border-color: var(--primary); color: #fff; }

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

.page-header, .page-hero {
  background: var(--brand-gradient-subtle);
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}

.page-header h1, .page-hero h1 { font-size: clamp(1.875rem, 4vw, 2.75rem); margin: 0.5rem 0; font-weight: 800; color: var(--primary); }

.about-hero { padding: 2rem 0; }
.about-hero .lead, .about-lead { color: var(--ink-soft); max-width: 640px; margin: 0 auto; font-size: 1.125rem; line-height: 1.65; }

.value-card, .contact-info-card {
  background: var(--paper-warm);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
  text-align: center;
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.value-card:hover, .contact-info-card:hover {
  border-color: var(--brand-secondary);
  box-shadow: var(--shadow);
}

.value-card i, .contact-info-card i {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.contact-form-wrapper, .form-card {
  background: var(--paper-warm);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.video-card { position: relative; }
.video-card img { width: 100%; border-radius: var(--radius); aspect-ratio: 16/9; object-fit: cover; }
.video-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.video-play-btn--lg { width: 72px; height: 72px; font-size: 2rem; }
.video-play-btn--sm { width: 36px; height: 36px; font-size: 0.9rem; }
.video-card .video-duration, .video-thumb .dur {
  position: absolute;
  bottom: 0.5rem; right: 0.5rem;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}
.video-thumb-compact { width: 140px; position: relative; }
.video-thumb-compact img { aspect-ratio: 16/9; border-radius: var(--radius-sm); }

/* ---- BOOTSTRAP HELPERS ---- */
.btn-subscribe {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(226, 28, 36, 0.25);
}

.btn-subscribe:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* ---- TEAM / ABOUT ---- */
.team-card {
  text-align: center;
  padding: 1.5rem 0.75rem;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
  border-color: var(--brand-secondary);
  box-shadow: var(--shadow);
}

.team-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.75rem;
}

.about-stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--primary);
}

.text-primary-brand { color: var(--primary) !important; }
.bg-primary-brand { background-color: var(--primary) !important; }

/* ---- COUNTRY PAGE ---- */
.country-flag-lg {
  font-size: 2rem;
  vertical-align: middle;
  margin-right: 0.25rem;
}

.country-pills {
  gap: 0.5rem;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}

.country-pills::-webkit-scrollbar { display: none; }

.country-pills .nav-link {
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.country-pills .nav-link:hover {
  color: var(--primary);
  border-color: var(--brand-secondary);
  background: var(--paper-muted);
}

.country-pills .nav-link.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.country-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.country-list li {
  padding: 0;
  border-bottom: none;
}

.country-list .list-group-item {
  padding: 0.65rem 1rem;
}

.trending-num .list-group-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--line);
}

.country-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--ink);
}

.country-list a:hover { color: var(--accent); }

/* ---- AUTHOR / SOCIAL ---- */
.social-links { gap: 0.75rem; }

.social-links a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--paper-muted);
  color: var(--ink);
  font-size: 1rem;
}

.social-links a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* ---- BOOTSTRAP HELPERS ---- */
.text-accent { color: var(--accent) !important; }

.btn-primary {
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-bg: var(--accent-hover);
  --bs-btn-hover-border-color: var(--accent-hover);
  --bs-btn-active-bg: var(--accent-hover);
  --bs-btn-active-border-color: var(--accent-hover);
  font-weight: 700;
}

.btn-outline-primary {
  --bs-btn-color: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary);
  --bs-btn-hover-border-color: var(--primary);
  --bs-btn-active-bg: var(--primary-dark);
  --bs-btn-active-border-color: var(--primary-dark);
  font-weight: 600;
}

/* ---- SIDEBAR STICKY ---- */
@media (min-width: 992px) {
  .sidebar-column {
    position: sticky;
    top: calc(var(--header-h) + 5rem);
    align-self: flex-start;
  }
}

/* ---- VIDEO PAGE ---- */
.featured-video-title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.3;
}

.featured-video-title a { color: var(--ink); }
.featured-video-title a:hover { color: var(--accent); }

.news-card-body h4 {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

.news-card-body h4 a { color: var(--ink); }
.news-card-body h4 a:hover { color: var(--accent); }

/* ---- CONTACT MAP ---- */
.contact-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- NEWSLETTER INPUT GROUP ---- */
.newsletter-block .input-group .form-control {
  border: none;
  padding: 0.75rem 1.25rem;
}

.newsletter-block .input-group .btn-accent {
  padding: 0.75rem 1.5rem;
  white-space: nowrap;
}
