@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,700&display=swap');

/* ─── Design Tokens ─────────────────────────────────────────────────── */
:root,
html[data-theme="light"] {
  --bg: #faf8f3;
  --surface: #ffffff;
  --surface2: #f5f2ea;
  --surface3: #ede8db;
  --border: #d8d0be;
  --border-light: #ece7db;
  --text: #1a1208;
  --text-muted: #6b6252;
  --text-light: #9a8e7e;
  --accent: #c8102e;
  --accent-dark: #9e0a24;
  --accent-soft: rgba(200,16,46,0.08);
  --navy: #1a3a6b;
  --navy-soft: rgba(26,58,107,0.08);
  --gold: #b8860b;
  --gold-soft: rgba(184,134,11,0.1);
  --font-serif: 'Merriweather', 'Libre Baskerville', Georgia, serif;
  --font-display: 'Playfair Display', 'Merriweather', serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --radius: 4px;
  --radius-lg: 8px;
  --col-max: 1340px;
}

html[data-theme="dark"] {
  --bg: #0e0d0b;
  --surface: #171510;
  --surface2: #1f1d18;
  --surface3: #2a271f;
  --border: rgba(255,255,255,0.1);
  --border-light: rgba(255,255,255,0.06);
  --text: #f0ead8;
  --text-muted: #9a8e7e;
  --text-light: #6b6252;
  --accent: #e63950;
  --accent-dark: #c8102e;
  --accent-soft: rgba(230,57,80,0.12);
  --navy: #4a7ab5;
  --navy-soft: rgba(74,122,181,0.12);
  --gold: #d4a017;
  --gold-soft: rgba(212,160,23,0.12);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow: 0 4px 16px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.4);
}

/* ─── Reset & Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }

/* ─── Layout Helpers ────────────────────────────────────────────────── */
.wrap {
  width: min(var(--col-max), calc(100% - 40px));
  margin-inline: auto;
}
.wrap-narrow {
  width: min(960px, calc(100% - 40px));
  margin-inline: auto;
}

/* ─── Breaking News Ticker ──────────────────────────────────────────── */
.breaking-ticker {
  background: var(--accent);
  color: #fff;
  overflow: hidden;
  height: 38px;
  display: flex;
  align-items: center;
}
.ticker-inner { display: flex; align-items: center; width: 100%; overflow: hidden; }
.ticker-label {
  flex-shrink: 0;
  background: #fff;
  color: var(--accent);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0 18px;
  height: 38px;
  display: flex;
  align-items: center;
  font-family: var(--font-body);
}
.ticker-scroll {
  display: flex;
  white-space: nowrap;
  animation: ticker 35s linear infinite;
  font-size: 13px;
  font-weight: 500;
}
.ticker-scroll span { padding: 0 36px; }
.ticker-scroll a { color: #fff; }
.ticker-scroll a:hover { text-decoration: underline; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── Masthead / Top Header ─────────────────────────────────────────── */
.masthead {
  background: var(--surface);
  border-bottom: 3px solid var(--accent);
  padding: 0;
}
.masthead-inner {
  width: min(var(--col-max), calc(100% - 40px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
}
.masthead-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.masthead-date {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.5;
}
.masthead-date strong { display: block; color: var(--text); font-size: 12px; }
.masthead-logo {
  text-align: center;
}
.logo-wordmark {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 900;
  color: var(--text);
  letter-spacing: -1px;
  line-height: 1;
  display: block;
}
.logo-wordmark .accent-dot { color: var(--accent); }
.logo-tagline {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 5px;
  font-weight: 400;
}
.logo-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.logo-divider::before,
.logo-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.logo-divider span {
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
}
.masthead-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* ─── Header Controls ───────────────────────────────────────────────── */
.hdr-btn {
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--surface2);
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s;
  white-space: nowrap;
}
.hdr-btn:hover { background: var(--surface3); color: var(--text); border-color: var(--text-muted); }
.hdr-btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.hdr-btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 8px 10px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: 0.2s;
}

/* ─── Navigation Bar ────────────────────────────────────────────────── */
.nav-bar {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
html[data-theme="dark"] .nav-bar { background: #0d1a2e; }
.nav-inner {
  width: min(var(--col-max), calc(100% - 40px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 0;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-link {
  padding: 13px 16px;
  color: rgba(255,255,255,0.78);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all 0.18s;
}
.nav-link:hover,
.nav-link.active {
  color: #fff;
  border-bottom-color: var(--accent);
  background: rgba(255,255,255,0.05);
}
.nav-link-home { color: #fff; }
.nav-search-btn {
  margin-left: auto;
  padding: 13px 16px;
  color: rgba(255,255,255,0.6);
  font-size: 18px;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  flex-shrink: 0;
}
.nav-search-btn:hover { color: #fff; }

/* ─── Mobile Menu ───────────────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  top: 0; right: -320px;
  width: 300px; height: 100vh;
  background: var(--surface);
  z-index: 200;
  transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  box-shadow: -8px 0 32px rgba(0,0,0,0.2);
  border-left: 3px solid var(--accent);
}
.mobile-menu.open { right: 0; }
.mobile-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--navy);
}
.mobile-menu-title { color: #fff; font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.mobile-menu-close {
  background: none; border: 1px solid rgba(255,255,255,0.3);
  color: #fff; padding: 6px 12px; border-radius: 3px; cursor: pointer; font-size: 12px; font-weight: 700;
}
.mobile-nav-link {
  display: block; padding: 13px 20px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px; font-weight: 600;
  color: var(--text); letter-spacing: 0.5px;
  transition: all 0.15s;
}
.mobile-nav-link:hover { background: var(--surface2); color: var(--accent); padding-left: 28px; }
.mobile-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 199;
}
.mobile-menu.open ~ .mobile-overlay { display: block; }

/* ─── Search Overlay ────────────────────────────────────────────────── */
.search-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(10,8,5,0.88);
  z-index: 300;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
  backdrop-filter: blur(6px);
}
.search-overlay.active { display: flex; }
.search-box {
  width: min(680px, calc(100% - 40px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.search-input-wrap { display: flex; align-items: center; gap: 0; border-bottom: 1px solid var(--border); }
.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  padding: 18px 20px;
  font-size: 18px;
  font-family: var(--font-serif);
}
.search-input::placeholder { color: var(--text-light); }
.search-close {
  background: none; border: none; border-left: 1px solid var(--border);
  color: var(--text-muted); padding: 18px 20px; cursor: pointer;
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  transition: all 0.15s;
}
.search-close:hover { color: var(--accent); }
.search-results { max-height: 420px; overflow-y: auto; }
.search-result-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.15s;
}
.search-result-card:hover { background: var(--surface2); }
.search-result-card img {
  width: 64px; height: 48px; object-fit: cover;
  border-radius: 3px; flex-shrink: 0;
}
.search-result-meta { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* ─── Newsletter Modal ──────────────────────────────────────────────── */
.newsletter-modal-card {
  background: var(--surface);
  width: min(480px, calc(100% - 40px));
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  position: relative;
  border-top: 4px solid var(--accent);
  box-shadow: var(--shadow-lg);
}
.newsletter-modal-card h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  margin: 0 0 10px;
  color: var(--text);
}
.newsletter-modal-card p {
  color: var(--text-muted); font-size: 14px; margin: 0 0 24px; line-height: 1.6;
}
.newsletter-modal-card input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--surface2);
  color: var(--text);
  outline: none;
  font-size: 15px;
  margin-bottom: 12px;
}
.newsletter-modal-card button[type="submit"] {
  width: 100%;
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 13px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s;
}
.newsletter-modal-card button[type="submit"]:hover { background: var(--accent-dark); }
.newsletter-modal-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer; color: var(--text-muted);
  transition: all 0.15s;
}
.newsletter-modal-close:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ─── Hero Slider ───────────────────────────────────────────────────── */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--surface);
}
.slider-track { display: flex; transition: transform 0.6s cubic-bezier(0.4,0,0.2,1); }
.slide { min-width: 100%; position: relative; }
.slide-img-wrap { position: relative; height: 540px; overflow: hidden; }
html[data-theme="dark"] .slide-img-wrap { height: 520px; }
.slide-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 8s ease;
}
.slide:hover .slide-img-wrap img { transform: scale(1.03); }
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.05) 100%);
}
.slide-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 48px 56px;
  max-width: 840px;
}
.slide-prev, .slide-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.slide-prev { left: 20px; }
.slide-next { right: 20px; }
.slide-prev:hover, .slide-next:hover { background: var(--accent); border-color: var(--accent); }
.slide-dots {
  position: absolute; bottom: 20px; right: 56px;
  display: flex; gap: 7px; z-index: 10;
}
.slide-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(255,255,255,0.35);
  padding: 0;
  transition: all 0.2s;
}
.slide-dot.active { background: #fff; width: 20px; border-radius: 3px; }

/* ─── Badges & Labels ───────────────────────────────────────────────── */
.badge-breaking {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
}
.badge-breaking::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulse-dot 1.2s ease infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.badge-cat {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  border: 1px solid currentColor;
  margin-bottom: 10px;
}

/* ─── Typography ────────────────────────────────────────────────────── */
.headline-xl {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 900;
  color: #fff;
  line-height: 1.18;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  margin: 0 0 14px;
}
.headline-lg {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.3px;
  margin: 0 0 10px;
  color: var(--text);
}
.headline-md {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin: 0 0 8px;
  transition: color 0.15s;
}
.headline-sm {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin: 0;
  transition: color 0.15s;
}
.card:hover .headline-md,
.card:hover .headline-sm { color: var(--accent); }
.slide-excerpt {
  font-size: 15px;
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
  margin: 0 0 18px;
  max-width: 580px;
}

/* ─── Meta ──────────────────────────────────────────────────────────── */
.meta {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.65);
  font-family: var(--font-body);
}
.meta-dark { color: var(--text-muted); }
.meta-divider { color: var(--border); font-size: 14px; }

/* ─── Section Headers ───────────────────────────────────────────────── */
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--accent);
  position: relative;
}
.section-header::after {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 60px; height: 2px;
  background: var(--navy);
}
.section-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.3px;
}
.section-link {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.15s;
}
.section-link:hover { color: var(--accent-dark); }
.section-wrap { margin-bottom: 48px; }

/* ─── Main Layout ───────────────────────────────────────────────────── */
.main-layout {
  width: min(var(--col-max), calc(100% - 40px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  padding: 40px 0 60px;
}
.content-area { min-width: 0; }

/* ─── Cards Grid ────────────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ─── Card ──────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
  box-shadow: var(--shadow-sm);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--border);
}
.card-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-thumb img { transform: scale(1.04); }
.card-thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.15), transparent 60%);
  transition: opacity 0.2s;
}
.card:hover .card-thumb-overlay { opacity: 1.5; }
.card-body { padding: 18px; }
.card-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
  margin-top: 10px;
}


/* ─── Latest News — Compact Hero + List Layout ──────────────────────── */
.ln-hero-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

/* Hero card */
.ln-hero-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-right: 1px solid var(--border-light);
  transition: background .18s;
}
.ln-hero-card:hover { background: var(--surface2); }
.ln-hero-img {
  position: relative;
  height: 210px;
  overflow: hidden;
  flex-shrink: 0;
}
.ln-hero-img img { width:100%; height:100%; object-fit:cover; transition: transform .45s ease; }
.ln-hero-card:hover .ln-hero-img img { transform: scale(1.04); }
.ln-breaking {
  position: absolute; top: 10px; left: 10px; margin: 0;
}
.ln-hero-body {
  padding: 16px 18px 18px;
  display: flex; flex-direction: column; gap: 6px; flex: 1;
}
.ln-cat {
  display: inline-block;
  font-size: 9px; font-weight: 800; letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 2px 8px; border-radius: 3px;
  width: fit-content;
}
.ln-hero-title {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.3vw, 19px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
}
.ln-hero-card:hover .ln-hero-title { color: var(--accent); }
.ln-hero-excerpt {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ln-meta {
  font-size: 11px;
  color: var(--text-light);
  margin-top: auto;
  padding-top: 6px;
  display: flex; align-items: center; gap: 6px;
}
.ln-views { margin-left: auto; }

/* Compact list */
.ln-list {
  display: flex; flex-direction: column;
}
.ln-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none; color: inherit;
  transition: background .15s;
}
.ln-item:last-child { border-bottom: none; }
.ln-item:hover { background: var(--surface2); }
.ln-item-img {
  width: 80px; height: 58px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.ln-item-img img { width:100%; height:100%; object-fit:cover; }
.ln-item-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 3px;
}
.ln-item-title {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ln-item:hover .ln-item-title { color: var(--accent); }

@media (max-width: 768px) {
  .ln-hero-row { grid-template-columns: 1fr; }
  .ln-hero-card { border-right: none; border-bottom: 1px solid var(--border-light); }
  .ln-hero-img { height: 200px; }
  .ln-item-img { width: 72px; height: 52px; }
}
@media (max-width: 480px) {
  .ln-hero-img { height: 175px; }
  .ln-hero-body { padding: 12px 14px 14px; }
  .ln-item { padding: 10px 12px; gap: 10px; }
}

/* ─── Featured Card (large) ─────────────────────────────────────────── */
.card-featured {
  grid-column: span 2;
}
.card-featured .card-thumb { height: 320px; }
.card-featured .card-body { padding: 24px; }

/* ─── List Card ─────────────────────────────────────────────────────── */
.list-card {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.15s;
}
.list-card:last-child { border-bottom: none; }
.list-card:hover .headline-sm { color: var(--accent); }
.list-card-img {
  width: 80px; height: 62px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}
.list-card-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  flex-shrink: 0;
  width: 36px;
  text-align: right;
}

/* ─── Sidebar ───────────────────────────────────────────────────────── */
.sidebar { min-width: 0; }
.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.widget-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  color: var(--text);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  letter-spacing: -0.2px;
  position: relative;
}
.widget-title::after {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 32px; height: 2px;
  background: var(--navy);
}

/* ─── Newsletter Widget ─────────────────────────────────────────────── */
.newsletter-widget {
  background: var(--navy);
  border: none;
  position: relative;
  overflow: hidden;
}
html[data-theme="dark"] .newsletter-widget { background: linear-gradient(135deg, #0d1a2e, #1a3a6b22); border: 1px solid var(--navy); }
.newsletter-widget::before {
  content: '';
  position: absolute; top: -30px; right: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.newsletter-widget h3 {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 900;
  color: #fff; margin: 0 0 8px;
  letter-spacing: -0.2px;
}
.newsletter-widget p { color: rgba(255,255,255,0.7); font-size: 12px; margin: 0 0 16px; line-height: 1.6; }
.newsletter-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 13px;
  outline: none;
  margin-bottom: 8px;
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.45); }
.newsletter-input:focus { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.15); }
.newsletter-btn {
  width: 100%;
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s;
}
.newsletter-btn:hover { background: var(--accent-dark); }

/* ─── Trending Widget ───────────────────────────────────────────────── */
.trending-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--border-light);
  cursor: pointer; transition: background 0.15s;
}
.trending-item:last-child { border-bottom: none; padding-bottom: 0; }
.trending-item:hover .headline-sm { color: var(--accent); }
.trending-num {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 900;
  color: var(--border);
  line-height: 1; flex-shrink: 0;
  width: 30px; text-align: center;
}
.trending-item:first-child .trending-num { color: var(--accent); }
.trending-item:nth-child(2) .trending-num { color: var(--gold); }

/* ─── Tags Cloud ────────────────────────────────────────────────────── */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 2px;
  background: var(--surface2);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  transition: all 0.15s;
}
.tag-pill:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ─── Category Banner ───────────────────────────────────────────────── */
.category-hero {
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 0;
  text-align: center;
}
.category-hero-inner {
  width: min(700px, calc(100% - 40px));
  margin-inline: auto;
}

/* ─── Article Page ──────────────────────────────────────────────────── */
.article-hero {
  position: relative;
  height: 520px;
  overflow: hidden;
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.5) 45%, rgba(0,0,0,0.1) 100%);
}
.article-hero-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 48px;
  max-width: 900px;
}
.article-content {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
  max-width: 720px;
}
.article-content p { margin: 0 0 1.6em; }
.article-content h2 {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 900;
  margin: 2em 0 0.8em;
  color: var(--text);
  letter-spacing: -0.3px;
}
.article-content h3 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  margin: 1.8em 0 0.7em;
}
.article-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-content img {
  width: 100%; border-radius: var(--radius);
  margin: 2em 0;
}
.article-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 16px 24px;
  margin: 2em 0;
  background: var(--surface2);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-muted);
}
.article-content ul, .article-content ol {
  padding-left: 28px; margin: 0 0 1.6em;
}
.article-content li { margin-bottom: 0.5em; }

/* ─── Share Bar ─────────────────────────────────────────────────────── */
.share-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 32px;
}
.share-label {
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-muted);
  margin-right: 4px;
}
.share-btn {
  padding: 7px 14px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s;
}
.share-btn:hover { opacity: 0.85; }

/* ─── Author Box ────────────────────────────────────────────────────── */
.author-box {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--surface2);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 40px;
}
.author-avatar {
  width: 56px; height: 56px;
  background: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
}
.author-name {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700;
  margin-bottom: 5px;
  color: var(--text);
}
.author-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ─── Pagination ────────────────────────────────────────────────────── */
.pagination {
  display: flex; gap: 6px; align-items: center;
  justify-content: center;
  padding: 32px 0;
}
.page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px;
  padding: 0 10px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 3px;
  font-size: 13px; font-weight: 600;
  color: var(--text-muted);
  transition: all 0.15s;
}
.page-btn:hover, .page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ─── Ad Placeholder ────────────────────────────────────────────────── */
.ad-placeholder {
  background: var(--surface2);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  height: 90px;
  margin: 28px 0;
}

/* ─── Footer ────────────────────────────────────────────────────────── */
.site-footer {
  background: #0e0c08;
  color: rgba(255,255,255,0.7);
  margin-top: 60px;
}
.footer-topband {
  background: var(--accent);
  padding: 22px 0;
}
.footer-topband-inner {
  width: min(var(--col-max), calc(100% - 40px));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.footer-topband-copy {
  display: flex; align-items: center; gap: 20px;
}
.footer-topband-kicker {
  font-size: 9px; font-weight: 800; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(255,255,255,0.75);
}
.footer-topband h2 {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  color: #fff; margin: 0;
}
.footer-cta {
  background: #fff;
  color: var(--accent);
  font-size: 11px; font-weight: 800;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 3px;
  white-space: nowrap;
  transition: all 0.18s;
  flex-shrink: 0;
}
.footer-cta:hover { background: var(--text); color: #fff; }
.footer-main {
  width: min(var(--col-max), calc(100% - 40px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 56px 0 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-about-logo {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 900;
  color: #fff; margin-bottom: 14px;
}
.footer-about-logo span { color: var(--accent); }
.footer-about p {
  font-size: 13px; line-height: 1.7;
  color: rgba(255,255,255,0.5);
  margin: 0 0 20px;
}
.footer-meta-pills {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px;
}
.footer-pill {
  font-size: 9px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 2px;
  color: rgba(255,255,255,0.5);
}
.footer-social { display: flex; gap: 8px; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.18s;
}
.social-btn svg { width: 16px; height: 16px; }
.social-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 900;
  color: #fff;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  letter-spacing: 0.5px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  transition: color 0.15s;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  width: min(var(--col-max), calc(100% - 40px));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  gap: 20px;
  flex-wrap: wrap;
}

/* ─── Scroll To Top ─────────────────────────────────────────────────── */
.scroll-top {
  position: fixed; bottom: 28px; right: 28px;
  background: var(--accent);
  border: none; color: #fff;
  width: 42px; height: 42px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(200,16,46,0.4);
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: var(--accent-dark); transform: translateY(-2px); }

/* ─── Animate ───────────────────────────────────────────────────────── */
.animate-up {
  animation: fadeUp 0.5s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── 404 ───────────────────────────────────────────────────────────── */
.error-page {
  text-align: center;
  padding: 100px 20px;
}
.error-code {
  font-family: var(--font-display);
  font-size: 120px; font-weight: 900;
  color: var(--accent);
  line-height: 1; margin-bottom: 20px;
  opacity: 0.3;
}

/* ─── Utilities ─────────────────────────────────────────────────────── */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ─── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .main-layout { grid-template-columns: 1fr; gap: 32px; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .sidebar > *:first-child { grid-column: span 2; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-about { grid-column: span 2; }
}
@media (max-width: 768px) {
  .masthead-inner { grid-template-columns: 1fr auto; }
  .masthead-left { display: none; }
  .masthead-right { display: flex; gap: 6px; }
  .masthead-right .hdr-btn:not(.hamburger) { display: none; }
  .hamburger { display: flex; }
  .nav-bar .nav-inner { display: none; }
  .slide-img-wrap { height: 360px; }
  .slide-content { padding: 28px 24px; }
  .article-hero { height: 360px; }
  .article-hero-content { padding: 24px; }
  .cards-grid { grid-template-columns: 1fr; }
  .cards-grid-4 { grid-template-columns: 1fr 1fr; }
  .card-featured { grid-column: span 1; }
  .card-featured .card-thumb { height: 220px; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-about { grid-column: span 1; }
  .footer-topband-copy h2 { display: none; }
  .sidebar { grid-template-columns: 1fr; }
  .sidebar > *:first-child { grid-column: span 1; }
  .logo-wordmark { font-size: clamp(24px, 7vw, 38px); }
}
@media (max-width: 480px) {
  .cards-grid-4 { grid-template-columns: 1fr; }
  .slide-img-wrap { height: 280px; }
  .share-bar { gap: 6px; }
  .share-btn { padding: 6px 10px; font-size: 10px; }
}
