/* ============================================================
   THE METRO — Main Stylesheet
   Design: Clean editorial news, NBC-inspired palette
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --white: #ffffff;
  --off-white: #f7f8fa;
  --light-gray: #eef0f3;
  --mid-gray: #c8ccd4;
  --dark-gray: #6b7280;
  --near-black: #111827;
  --black: #050a0e;

  /* NBC-inspired accent palette */
  --blue: #0B3D91;
  --blue-light: #1a56db;
  --blue-pale: #e8f0fe;
  --red: #CC0000;
  --green: #007A33;
  --gold: #C8860A;
  --purple: #6B21A8;
  --teal: #0e7490;
  --orange: #C2410C;

  /* Category colors */
  --cat-world: #1a56db;
  --cat-local: #0e9f6e;
  --cat-sports: #d97706;
  --cat-business: #1c64f2;
  --cat-culture: #7e3af2;
  --cat-science: #0694a2;
  --cat-health: #e02424;
  --cat-technology: #ea580c;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-sans: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Spacing */
  --container: 1280px;
  --gutter: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.04);

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 200ms;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--near-black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--near-black);
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---- Utility Classes ---- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.text-center { text-align: center; }
.text-muted { color: var(--dark-gray); }
.font-display { font-family: var(--font-display); }

/* ---- Cookie Banner ---- */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--near-black);
  color: var(--white);
  z-index: 9999;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 3px solid var(--blue-light);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
}
#cookie-banner.show { transform: translateY(0); }
#cookie-banner p { font-size: 0.875rem; max-width: 680px; opacity: 0.88; }
#cookie-banner a { color: var(--blue-light); text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.btn-accept-cookie {
  background: var(--blue-light);
  color: white;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background var(--duration);
}
.btn-accept-cookie:hover { background: var(--blue); }
.btn-decline-cookie {
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  transition: all var(--duration);
}
.btn-decline-cookie:hover { border-color: white; color: white; }

/* ---- Top Bar ---- */
.topbar {
  background: var(--near-black);
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  padding: 7px 0;
  letter-spacing: 0.01em;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.topbar-date { font-family: var(--font-mono); font-size: 0.72rem; }
.topbar-links { display: flex; gap: 16px; }
.topbar-links a { transition: color var(--duration); }
.topbar-links a:hover { color: white; }
.topbar-weather { display: flex; align-items: center; gap: 6px; }

/* ---- Main Navigation ---- */
.main-nav {
  background: var(--white);
  border-bottom: 1px solid var(--light-gray);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.nav-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-mark {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.logo-bars {
  display: flex;
  gap: 2px;
}
.logo-bar {
  width: 5px;
  height: 18px;
  border-radius: 2px;
}
.logo-bar:nth-child(1) { background: var(--red); }
.logo-bar:nth-child(2) { background: var(--gold); }
.logo-bar:nth-child(3) { background: var(--green); }
.logo-bar:nth-child(4) { background: var(--blue-light); }
.logo-bar:nth-child(5) { background: var(--purple); }
.logo-bar:nth-child(6) { background: var(--teal); }

.logo-wordmark {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--near-black);
  letter-spacing: -0.04em;
  line-height: 1;
}
.logo-wordmark span {
  color: var(--blue-light);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: flex-end;
}
.nav-link {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  border-radius: 3px;
  color: var(--dark-gray);
  transition: all var(--duration);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--near-black);
  background: var(--light-gray);
}
.nav-link.active { color: var(--blue-light); background: var(--blue-pale); }

/* Sections nav */
.nav-sections {
  border-top: 1px solid var(--light-gray);
  background: var(--off-white);
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-sections::-webkit-scrollbar { display: none; }
.nav-sections-inner {
  display: flex;
  gap: 0;
  padding: 0;
  min-width: max-content;
}
.section-link {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 16px;
  color: var(--dark-gray);
  border-bottom: 2px solid transparent;
  transition: all var(--duration);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.section-link:hover { color: var(--near-black); border-bottom-color: var(--blue-light); }
.section-link.active { color: var(--blue-light); border-bottom-color: var(--blue-light); }

/* Breaking news ticker */
.breaking-ticker {
  background: var(--red);
  color: white;
  padding: 8px 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0;
}
.breaking-label {
  background: rgba(0,0,0,0.2);
  padding: 0 16px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 16px;
}
.ticker-track {
  display: flex;
  gap: 0;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  font-size: 0.82rem;
  font-weight: 500;
  padding-right: 48px;
  cursor: pointer;
}
.ticker-item::before {
  content: "◆";
  margin-right: 8px;
  opacity: 0.6;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Search bar */
.nav-search {
  display: flex;
  align-items: center;
  background: var(--light-gray);
  border-radius: 20px;
  padding: 6px 14px;
  gap: 8px;
  width: 200px;
  transition: all var(--duration);
  flex-shrink: 0;
}
.nav-search:focus-within {
  background: var(--white);
  box-shadow: 0 0 0 2px var(--blue-light);
  width: 240px;
}
.nav-search input {
  background: none;
  border: none;
  outline: none;
  font-size: 0.85rem;
  width: 100%;
  color: var(--near-black);
}
.nav-search svg { color: var(--dark-gray); flex-shrink: 0; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--near-black);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.nav-mobile {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--light-gray);
  padding: 16px;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  display: block;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  color: var(--near-black);
  transition: background var(--duration);
}
.nav-mobile a:hover { background: var(--light-gray); }
.nav-mobile-divider {
  height: 1px;
  background: var(--light-gray);
  margin: 8px 0;
}

/* ---- HERO / FEATURED ---- */
.hero-section { padding: 32px 0 0; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  grid-template-rows: auto auto;
  gap: 2px;
  background: var(--light-gray);
}
.hero-main {
  grid-column: 1;
  grid-row: 1 / 3;
}
.hero-secondary {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  background: var(--near-black);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.hero-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.hero-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
  opacity: 0.85;
}
.hero-card:hover .hero-card-image { transform: scale(1.03); }

.hero-main { height: 480px; }
.hero-secondary .hero-card { height: 239px; }

.hero-card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(5,10,14,0.95) 0%, rgba(5,10,14,0.5) 60%, transparent 100%);
  color: white;
}
.hero-main .hero-card-content { padding: 32px; }

.hero-category {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 10px;
}
.hero-title {
  font-family: var(--font-display);
  color: white;
  line-height: 1.25;
  margin-bottom: 8px;
}
.hero-main .hero-title { font-size: 1.85rem; }
.hero-secondary .hero-title { font-size: 1.05rem; }

.hero-meta {
  font-size: 0.78rem;
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-meta span::before { content: "·"; margin-right: 12px; }
.hero-meta span:first-child::before { display: none; }

/* ---- Section Headings ---- */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--near-black);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.section-heading:hover { transform: translateY(-1px); }
.section-heading h2 {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-sans);
}
.section-heading .section-accent {
  display: inline-block;
  width: 4px;
  height: 20px;
  border-radius: 2px;
  margin-right: 10px;
  vertical-align: middle;
}
.section-more {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-light);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--duration), transform var(--duration) var(--ease);
}
.section-more:hover { gap: 8px; transform: translateX(2px); }

/* Reveal animation for scroll effects */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal-on-scroll.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Article Cards ---- */
.article-card {
  background: var(--white);
  overflow: hidden;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration);
}
.article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.card-image-wrap {
  position: relative;
  overflow: hidden;
}
.card-image {
  width: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
.article-card:hover .card-image { transform: scale(1.04); }
.card-image-wrap .card-category {
  position: absolute;
  top: 12px; left: 12px;
}

.card-body { padding: 16px 0; }
.card-category-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  padding: 2px 6px;
  border-radius: 2px;
}
.card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--near-black);
  transition: color var(--duration);
}
.article-card:hover .card-title { color: var(--blue-light); }
.card-title-lg { font-size: 1.25rem; }
.card-title-sm { font-size: 0.95rem; }

.card-excerpt {
  font-size: 0.88rem;
  color: var(--dark-gray);
  line-height: 1.55;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  font-size: 0.75rem;
  color: var(--dark-gray);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-meta-dot { opacity: 0.4; }

/* Card grid variants */
.articles-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.articles-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.articles-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Horizontal card (list style) */
.card-horizontal {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: start;
}
.card-horizontal .card-image { height: 80px; border-radius: 4px; }
.card-horizontal .card-body { padding: 0; }
.card-horizontal .card-title { font-size: 0.88rem; }
.card-horizontal .card-excerpt { -webkit-line-clamp: 2; }

/* ---- Main Content + Sidebar Layout ---- */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
.sidebar { position: sticky; top: 80px; }

/* ---- Sidebar Widgets ---- */
.widget {
  margin-bottom: 32px;
}
.widget-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dark-gray);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--near-black);
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget-title::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 14px;
  background: var(--blue-light);
  border-radius: 2px;
}

.trending-list { display: flex; flex-direction: column; gap: 14px; }
.trending-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}
.trending-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--light-gray);
  line-height: 1;
  margin-top: 2px;
  user-select: none;
}
.trending-title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--near-black);
  transition: color var(--duration);
}
.trending-title:hover { color: var(--blue-light); }
.trending-meta { font-size: 0.72rem; color: var(--dark-gray); margin-top: 3px; }

/* ---- Newsletter / CTA ---- */
.newsletter-widget {
  background: var(--near-black);
  color: white;
  padding: 20px;
  border-radius: 4px;
}
.newsletter-widget h3 {
  color: white;
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.newsletter-widget p {
  font-size: 0.82rem;
  opacity: 0.7;
  margin-bottom: 14px;
  line-height: 1.5;
}
.newsletter-form { display: flex; flex-direction: column; gap: 8px; }
.newsletter-form input {
  padding: 10px 12px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--duration);
}
.newsletter-form input::placeholder { opacity: 0.5; }
.newsletter-form input:focus { border-color: var(--blue-light); }
.newsletter-form button {
  padding: 10px;
  background: var(--blue-light);
  color: white;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background var(--duration);
}
.newsletter-form button:hover { background: var(--blue); }

/* ---- Category pills ---- */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cat-pill {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--light-gray);
  color: var(--dark-gray);
  transition: all var(--duration);
  cursor: pointer;
}
.cat-pill:hover, .cat-pill.active { background: var(--blue-light); color: white; }

/* ---- Page sections ---- */
.page-section { padding: 48px 0; }
.page-section + .page-section { border-top: 1px solid var(--light-gray); }
.section-intro {
  font-size: 1.05rem;
  color: var(--dark-gray);
  max-width: 680px;
  line-height: 1.65;
}

/* ---- Blog Detail Page ---- */
.article-header { padding: 40px 0 24px; }
.article-header .category-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 16px;
}
.article-headline {
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 18px;
  max-width: 820px;
}
.article-deck {
  font-size: 1.15rem;
  color: var(--dark-gray);
  line-height: 1.6;
  max-width: 780px;
  margin-bottom: 24px;
  font-style: italic;
}
.article-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
}
.byline-avatar {
  width: 44px;
  height: 44px;
  background: var(--blue-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-light);
  flex-shrink: 0;
}
.byline-name { font-size: 0.88rem; font-weight: 700; }
.byline-role { font-size: 0.78rem; color: var(--dark-gray); }
.byline-date { font-size: 0.78rem; color: var(--dark-gray); margin-left: auto; display: flex; align-items: center; gap: 8px; }

.article-feature-image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 2px;
  margin: 24px 0 12px;
}
.article-image-caption {
  font-size: 0.78rem;
  color: var(--dark-gray);
  font-style: italic;
  margin-bottom: 32px;
}

.article-body {
  font-size: 1.0rem;
  line-height: 1.8;
  color: #1a202c;
  max-width: 720px;
}
.article-body p { margin-bottom: 1.5em; }
.article-body h3 {
  font-size: 1.3rem;
  margin: 2em 0 0.8em;
  padding-top: 1em;
  border-top: 1px solid var(--light-gray);
}
.article-body blockquote {
  border-left: 4px solid var(--blue-light);
  padding: 12px 20px;
  margin: 1.5em 0;
  background: var(--blue-pale);
  font-style: italic;
  color: var(--dark-gray);
  border-radius: 0 4px 4px 0;
}
.article-body a { color: var(--blue-light); text-decoration: underline; }

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0;
  padding-top: 24px;
  border-top: 1px solid var(--light-gray);
}
.article-tag {
  padding: 4px 12px;
  border: 1px solid var(--mid-gray);
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dark-gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all var(--duration);
}
.article-tag:hover { border-color: var(--blue-light); color: var(--blue-light); }

.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0;
}
.share-bar span { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dark-gray); }
.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  transition: all var(--duration);
  cursor: pointer;
  border: 1px solid var(--mid-gray);
  color: var(--dark-gray);
}
.share-btn:hover { background: var(--near-black); color: white; border-color: var(--near-black); }
.share-btn.twitter { background: #1DA1F2; color: white; border-color: #1DA1F2; }
.share-btn.facebook { background: #1877F2; color: white; border-color: #1877F2; }

/* ---- Contact Form ---- */
.contact-form-wrap { max-width: 680px; }
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--near-black);
}
.form-label span { color: var(--red); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--mid-gray);
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--near-black);
  background: white;
  transition: border-color var(--duration), box-shadow var(--duration);
  outline: none;
}
.form-control:focus {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}
.form-control.textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.consent-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--blue-light);
  flex-shrink: 0;
  cursor: pointer;
}
.consent-text {
  font-size: 0.82rem;
  color: var(--dark-gray);
  line-height: 1.5;
}
.consent-text a { color: var(--blue-light); text-decoration: underline; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--blue-light);
  color: white;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all var(--duration);
  cursor: pointer;
  border: none;
}
.btn-primary:hover { background: var(--blue); transform: translateY(-1px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 2px solid var(--near-black);
  color: var(--near-black);
  border-radius: 3px;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all var(--duration);
}
.btn-outline:hover { background: var(--near-black); color: white; }

/* ---- Popup Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,10,14,0.75);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: white;
  border-radius: 4px;
  max-width: 520px;
  width: 100%;
  padding: 40px;
  position: relative;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s var(--ease);
}
.modal-overlay.open .modal { transform: none; }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--dark-gray);
  cursor: pointer;
  transition: all var(--duration);
}
.modal-close:hover { background: var(--near-black); color: white; }
.modal h3 { font-size: 1.5rem; margin-bottom: 8px; }
.modal p { color: var(--dark-gray); font-size: 0.9rem; margin-bottom: 20px; }

/* ---- About Page ---- */
.about-hero {
  background: var(--near-black);
  color: white;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.about-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(26,86,219,0.15) 0%, transparent 70%);
}
.about-hero h1 {
  font-size: 3rem;
  color: white;
  max-width: 700px;
  margin-bottom: 20px;
}
.about-hero p {
  font-size: 1.1rem;
  opacity: 0.75;
  max-width: 600px;
  line-height: 1.7;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.team-card { text-align: center; }
.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
}
.team-name { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.team-role { font-size: 0.82rem; color: var(--dark-gray); margin-bottom: 8px; }
.team-bio { font-size: 0.82rem; color: var(--dark-gray); line-height: 1.5; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item {}
.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--blue-light);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 0.82rem; color: var(--dark-gray); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---- Footer ---- */
.site-footer {
  background: var(--near-black);
  color: rgba(255,255,255,0.65);
  padding: 56px 0 0;
  margin-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 280px 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo-wordmark { color: white; font-size: 1.5rem; }
.footer-brand .logo-wordmark span { color: var(--blue-light); }
.footer-tagline { font-size: 0.82rem; margin-top: 10px; line-height: 1.6; opacity: 0.6; }
.footer-address {
  font-size: 0.78rem;
  line-height: 1.8;
  margin-top: 16px;
  opacity: 0.55;
}

.footer-col-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: 0.83rem;
  transition: color var(--duration);
  line-height: 1.4;
}
.footer-links a:hover { color: white; }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { transition: color var(--duration); }
.footer-legal a:hover { color: white; }

/* ---- Loading State ---- */
.skeleton {
  background: linear-gradient(90deg, var(--light-gray) 25%, var(--off-white) 50%, var(--light-gray) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 3px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-title { height: 22px; margin-bottom: 12px; }
.skeleton-img { height: 200px; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--dark-gray);
  padding: 16px 0;
}
.breadcrumb a { transition: color var(--duration); }
.breadcrumb a:hover { color: var(--blue-light); }
.breadcrumb-sep { opacity: 0.4; }

/* ---- Page Hero (interior pages) ---- */
.page-hero {
  background: var(--off-white);
  border-bottom: 1px solid var(--light-gray);
  padding: 48px 0 40px;
}
.page-hero h1 { font-size: 2.2rem; margin-bottom: 10px; }
.page-hero p { font-size: 1rem; color: var(--dark-gray); max-width: 600px; }

/* ---- Blog listing page ---- */
.blog-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--light-gray);
  margin-bottom: 32px;
}
.filter-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dark-gray); }

/* ---- Form success state ---- */
.form-success {
  display: none;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 4px;
  padding: 16px 20px;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 16px;
  align-items: center;
  gap: 10px;
}
.form-success.show { display: flex; }

/* ---- Static pages (Privacy, Terms, etc.) ---- */
.legal-page { max-width: 800px; }
.legal-page h2 {
  font-size: 1.4rem;
  margin: 2em 0 0.8em;
  padding-top: 1.5em;
  border-top: 1px solid var(--light-gray);
}
.legal-page h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.legal-page p { margin-bottom: 1.2em; font-size: 0.95rem; line-height: 1.75; color: #374151; }
.legal-page ul { margin: 1em 0 1.5em 1.5em; }
.legal-page ul li { font-size: 0.95rem; line-height: 1.75; margin-bottom: 0.5em; color: #374151; list-style: disc; }
.legal-effective { font-size: 0.82rem; color: var(--dark-gray); margin-bottom: 2em; padding-bottom: 1em; border-bottom: 1px solid var(--light-gray); }

/* ---- Pagination ---- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 40px 0;
}
.page-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 3px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--mid-gray);
  color: var(--dark-gray);
  transition: all var(--duration);
  cursor: pointer;
}
.page-btn:hover, .page-btn.active {
  background: var(--blue-light);
  color: white;
  border-color: var(--blue-light);
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { height: 420px; }
  .hero-secondary { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .hero-secondary .hero-card { height: 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .articles-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .articles-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-search { width: 160px; }
}

@media (max-width: 680px) {
  :root { --gutter: 16px; }
  .articles-grid-3, .articles-grid-4, .articles-grid-2 { grid-template-columns: 1fr; }
  .hero-main { height: 320px; }
  .hero-main .hero-title { font-size: 1.35rem; }
  .hero-secondary { grid-template-columns: 1fr; }
  .hero-secondary .hero-card { height: 220px; }
  .article-headline { font-size: 1.7rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-hero h1 { font-size: 2rem; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .topbar { display: none; }
  .breaking-ticker { display: none; }
}

/* ---- Category color utility ---- */
.cat-world { background: var(--cat-world); color: white; }
.cat-local { background: var(--cat-local); color: white; }
.cat-sports { background: var(--cat-sports); color: white; }
.cat-business { background: var(--cat-business); color: white; }
.cat-culture { background: var(--cat-culture); color: white; }
.cat-science { background: var(--cat-science); color: white; }
.cat-health { background: var(--cat-health); color: white; }
.cat-technology { background: var(--cat-technology); color: white; }

/* Text color variants */
.text-world { color: var(--cat-world); }
.text-local { color: var(--cat-local); }
.text-sports { color: var(--cat-sports); }
.text-business { color: var(--cat-business); }
.text-culture { color: var(--cat-culture); }
.text-science { color: var(--cat-science); }
.text-health { color: var(--cat-health); }
.text-technology { color: var(--cat-technology); }
