/*
Theme Name: Eight30
Theme URI: https://theeight30.com
Author: Eight30 Media
Author URI: https://theeight30.com
Description: A clean-cut news theme for Eight30 — amplifying misrepresented human voices through distinct stories and angles. Inspired by the design language of The New York Times, The Athletic, and The Guardian.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eight30
Tags: news, magazine, blog, custom-menu, featured-images, custom-logo, editor-style, block-patterns

Eight30 WordPress Theme — Amplifying Misrepresented Voices
*/

/* ============================================
   CSS FOUNDATION
   Inspired by NYT, The Athletic, The Guardian
   ============================================ */
:root {
  --bg: #d0d0d0;
  --bg-light: #dcdcdc;
  --bg-card: #e8e8e8;
  --bg-white: #f0f0f0;
  --text: #0a1128;
  --text-secondary: #2a2a3a;
  --text-muted: #5a5a6a;
  --burgundy: #800020;
  --burgundy-light: #9a1035;
  --burgundy-dark: #600018;
  --accent: #ffe500;
  --accent-dim: #e6cf00;
  --border: #b0b0b0;
  --border-light: #c0c0c0;
  --shadow: rgba(10, 17, 40, 0.12);
  --shadow-heavy: rgba(10, 17, 40, 0.22);
  --serif: 'Kelvinch', Georgia, 'Times New Roman', serif;
  --sans: 'Kelvinch', Georgia, 'Times New Roman', serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
  --nav-height: 56px;
  --max-width: 1280px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* ============================================
   TOP BAR (date + socials)
   ============================================ */
.top-bar {
  background: var(--text);
  color: var(--bg-light);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 6px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-socials { display: flex; gap: 14px; }
.top-bar-socials a {
  color: var(--bg-light);
  opacity: 0.7;
  transition: opacity var(--transition);
}
.top-bar-socials a:hover { opacity: 1; color: var(--accent); }

/* ============================================
   MASTHEAD
   ============================================ */
.masthead {
  text-align: center;
  padding: 20px 0 12px;
  border-bottom: 3px solid var(--text);
  position: relative;
}
.masthead-logo {
  font-family: var(--serif);
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
  display: inline-block;
}
.masthead-logo span { color: var(--burgundy); }
.masthead-tagline {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 500;
}

/* ============================================
   MAIN NAVIGATION
   ============================================ */
.main-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.main-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}
.nav-links { display: flex; gap: 0; align-items: center; }
.nav-links li { list-style: none; }
.nav-links a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 16px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  position: relative;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--burgundy);
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links .current-menu-item a::after,
.nav-links .current-cat a::after,
.nav-links .current-menu-parent a::after { width: 100%; }
.nav-links a:hover,
.nav-links .current-menu-item a,
.nav-links .current-cat a { color: var(--burgundy); }

.nav-right { display: flex; align-items: center; gap: 12px; }

.search-toggle {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition);
}
.search-toggle:hover { background: var(--bg-card); }
.search-toggle svg { width: 18px; height: 18px; }

.nav-subscribe {
  background: var(--burgundy);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 2px;
  transition: background var(--transition);
  display: inline-block;
}
.nav-subscribe:hover { background: var(--burgundy-light); }

.hamburger { display: none; width: 38px; height: 38px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); transition: var(--transition); }

.nav-logo-compact {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.nav-logo-compact span { color: var(--burgundy); }

/* ============================================
   SEARCH OVERLAY
   ============================================ */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 17, 40, 0.7);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
}
.search-overlay.active { display: flex; }
.search-box {
  background: var(--bg-white);
  width: 100%;
  max-width: 680px;
  border-radius: 6px;
  padding: 8px;
  box-shadow: 0 20px 60px var(--shadow-heavy);
  animation: searchSlideIn 0.3s ease;
}
@keyframes searchSlideIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}
.search-input-wrap svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--text-muted); }
.search-input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  font-family: var(--sans);
  color: var(--text);
  outline: none;
}
.search-input-wrap input::placeholder { color: var(--text-muted); }
.search-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background var(--transition);
}
.search-close:hover { background: var(--bg-card); }
.search-results {
  max-height: 420px;
  overflow-y: auto;
  border-top: 1px solid var(--border-light);
}
.search-results.hidden { display: none; }
.search-result-item {
  padding: 14px 20px;
  cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid var(--border-light);
  display: block;
}
.search-result-item:hover { background: var(--bg-card); }
.search-result-item:last-child { border-bottom: none; }
.search-result-cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--burgundy);
  margin-bottom: 4px;
}
.search-result-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}
.search-result-excerpt {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.45;
}
.search-hint {
  padding: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================
   HERO / BREAKING
   ============================================ */
.hero-section { padding: 32px 0 24px; }
.breaking-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--burgundy);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  margin-bottom: 20px;
  animation: breakingPulse 2s ease-in-out infinite;
}
@keyframes breakingPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}
.breaking-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: dotBlink 1s ease-in-out infinite;
}
@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.hero-main {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16/10;
}
.hero-main a { display: block; width: 100%; height: 100%; }
.hero-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg-card);
  transition: transform 0.6s ease;
}
.hero-main:hover .hero-main-img { transform: scale(1.03); }
.hero-main-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 28px 28px;
  background: linear-gradient(transparent, rgba(10, 17, 40, 0.85));
  color: #fff;
  pointer-events: none;
}
.hero-main-cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.hero-main-title {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 8px;
}
.hero-main-excerpt {
  font-size: 0.88rem;
  opacity: 0.85;
  line-height: 1.5;
  max-width: 90%;
}

.hero-sidebar { display: flex; flex-direction: column; gap: 16px; }
.hero-side-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--bg-white);
  border-radius: 4px;
  transition: box-shadow var(--transition), transform var(--transition);
  flex: 1;
}
.hero-side-card:hover {
  box-shadow: 0 4px 16px var(--shadow);
  transform: translateY(-2px);
}
.hero-side-img {
  width: 120px;
  flex-shrink: 0;
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg-card);
  aspect-ratio: 4/3;
}
.hero-side-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-side-text { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hero-side-cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 6px;
}
.hero-side-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}
.hero-side-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ============================================
   STORY CAROUSEL
   ============================================ */
.carousel-section { padding: 32px 0; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--text);
  padding-bottom: 12px;
}
.section-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 900;
}
.section-nav { display: flex; gap: 8px; }
.section-nav button {
  width: 36px;
  height: 36px;
  border: 2px solid var(--text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.section-nav button:hover { background: var(--text); color: #fff; }
.section-nav button svg { width: 16px; height: 16px; }

.carousel-track-wrap { overflow: hidden; position: relative; }
.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: grab;
  user-select: none;
}
.carousel-track.dragging { cursor: grabbing; transition: none; }

.story-card {
  min-width: 280px;
  max-width: 280px;
  background: var(--bg-white);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.story-card:hover {
  box-shadow: 0 8px 24px var(--shadow);
  transform: translateY(-4px);
}
.story-card a { display: block; color: inherit; }
.story-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--bg-card);
  overflow: hidden;
}
.story-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.story-card:hover .story-card-img img { transform: scale(1.06); }
.story-card-body { padding: 16px; }
.story-card-cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 8px;
}
.story-card-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}
.story-card-excerpt {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.story-card-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: var(--transition);
  cursor: pointer;
}
.carousel-dot.active {
  background: var(--burgundy);
  width: 24px;
  border-radius: 4px;
}

/* ============================================
   SECTION GRIDS (Category archives)
   ============================================ */
.section-page { padding: 32px 0 60px; }
.section-page-header {
  border-bottom: 3px solid var(--burgundy);
  padding-bottom: 12px;
  margin-bottom: 28px;
}
.section-page-title {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 900;
}
.section-page-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--bg-white);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.article-card:hover {
  box-shadow: 0 8px 24px var(--shadow);
  transform: translateY(-3px);
}
.article-card a { display: block; color: inherit; }
.article-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--bg-card);
  overflow: hidden;
}
.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.article-card:hover .article-card-img img { transform: scale(1.05); }
.article-card-body { padding: 20px; }
.article-card-cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 8px;
}
.article-card-cat a { color: var(--burgundy); }
.article-card-cat a:hover { color: var(--burgundy-light); }
.article-card-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}
.article-card-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
}

.article-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}
.article-card.featured .article-card-img { aspect-ratio: auto; min-height: 300px; }
.article-card.featured .article-card-body { display: flex; flex-direction: column; justify-content: center; padding: 32px; }
.article-card.featured .article-card-title { font-size: 1.7rem; }
.article-card.featured .article-card-excerpt { -webkit-line-clamp: 5; }

/* ============================================
   EDITORIAL SECTION
   ============================================ */
.editorials-strip {
  background: var(--text);
  color: var(--bg-light);
  padding: 36px 0;
  margin: 24px 0;
}
.editorials-strip .section-header { border-bottom-color: var(--bg-light); }
.editorials-strip .section-title { color: var(--bg-light); }
.editorials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.editorial-card {
  padding: 20px;
  border-left: 3px solid var(--burgundy);
  transition: border-color var(--transition);
  display: block;
}
.editorial-card:hover { border-left-color: var(--accent); }
.editorial-quote {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 16px;
  color: var(--bg-light);
}
.editorial-author {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
}
.editorial-role {
  font-size: 0.72rem;
  opacity: 0.6;
  margin-top: 2px;
}

/* ============================================
   SINGLE ARTICLE
   ============================================ */
.single-article { padding: 40px 0 60px; }
.single-article-header {
  max-width: 780px;
  margin: 0 auto 32px;
  text-align: center;
}
.single-article-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 16px;
  display: inline-block;
}
.single-article-cat a { color: var(--burgundy); }
.single-article-title {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
}
.single-article-excerpt {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}
.single-article-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.single-article-meta .author-name { font-weight: 600; color: var(--text); }

.single-article-featured-img {
  max-width: 960px;
  margin: 0 auto 40px;
  border-radius: 4px;
  overflow: hidden;
}
.single-article-featured-img img {
  width: 100%;
  height: auto;
}

.single-article-content {
  max-width: 720px;
  margin: 0 auto;
}
.single-article-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.6em;
  color: var(--text-secondary);
}
.single-article-content h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 2em 0 0.8em;
}
.single-article-content h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 1.6em 0 0.6em;
}
.single-article-content blockquote {
  border-left: 4px solid var(--burgundy);
  padding: 16px 24px;
  margin: 2em 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.6;
  background: var(--bg-white);
  border-radius: 0 4px 4px 0;
}
.single-article-content blockquote cite {
  display: block;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--text-muted);
  margin-top: 12px;
}
.single-article-content figure {
  margin: 2em 0;
}
.single-article-content figcaption {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
}
.single-article-content ul,
.single-article-content ol {
  margin: 1.2em 0;
  padding-left: 1.6em;
  list-style: disc;
}
.single-article-content ol { list-style: decimal; }
.single-article-content li {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 0.4em;
  color: var(--text-secondary);
}
.single-article-content a {
  color: var(--burgundy);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.single-article-content a:hover {
  color: var(--burgundy-light);
}

/* Author box */
.author-box {
  max-width: 720px;
  margin: 48px auto 0;
  padding: 24px;
  background: var(--bg-white);
  border-radius: 6px;
  display: flex;
  gap: 20px;
  align-items: center;
}
.author-box-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-card);
  flex-shrink: 0;
  overflow: hidden;
}
.author-box-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-box-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.author-box-bio {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Related stories */
.related-stories {
  max-width: var(--max-width);
  margin: 48px auto 0;
  padding: 0 24px;
}
.related-stories .section-header { margin-bottom: 20px; }

/* ============================================
   MISSION PAGE
   ============================================ */
.mission-page { padding: 60px 0; }
.mission-hero {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 60px;
}
.mission-hero h1 {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
}
.mission-hero h1 em {
  font-style: italic;
  color: var(--burgundy);
}
.mission-hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.mission-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 60px;
}
.mission-value {
  padding: 32px;
  background: var(--bg-white);
  border-radius: 4px;
  border-top: 4px solid var(--burgundy);
}
.mission-value-icon {
  width: 48px;
  height: 48px;
  background: var(--text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 1.3rem;
}
.mission-value h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.mission-value p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.mission-sections {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 60px;
}
.mission-section-card {
  padding: 24px 20px;
  background: var(--bg-white);
  border-radius: 4px;
  text-align: center;
  border-bottom: 3px solid var(--burgundy);
  transition: transform var(--transition), box-shadow var(--transition);
  display: block;
}
.mission-section-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px var(--shadow); }
.mission-section-card h4 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.mission-section-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.mission-team {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.mission-team h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 16px;
}
.mission-team p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-page { padding: 60px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info h1 {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 16px;
}
.contact-info > p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: var(--text);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-detail h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 2px; }
.contact-detail p { font-size: 0.88rem; color: var(--text-muted); }

.contact-form-wrap {
  background: var(--bg-white);
  padding: 36px;
  border-radius: 6px;
  box-shadow: 0 4px 20px var(--shadow);
}
.contact-form-wrap h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.92rem;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--burgundy); }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-submit {
  background: var(--burgundy);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 14px 36px;
  border-radius: 4px;
  transition: background var(--transition);
  width: 100%;
}
.form-submit:hover { background: var(--burgundy-light); }
.form-success {
  display: none;
  text-align: center;
  padding: 40px;
}
.form-success.show { display: block; }
.form-success svg { width: 56px; height: 56px; color: var(--burgundy); margin-bottom: 16px; }
.form-success h3 { font-family: var(--serif); font-size: 1.4rem; margin-bottom: 8px; }
.form-success p { font-size: 0.9rem; color: var(--text-muted); }
.form-message {
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 0.88rem;
}
.form-message.success { background: #d4edda; color: #155724; }
.form-message.error { background: #f8d7da; color: #721c24; }

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}
.pagination a:hover { background: var(--text); color: #fff; border-color: var(--text); }
.pagination .current { background: var(--burgundy); color: #fff; border-color: var(--burgundy); }

/* ============================================
   404 PAGE
   ============================================ */
.page-404 {
  text-align: center;
  padding: 100px 24px;
  max-width: 600px;
  margin: 0 auto;
}
.page-404 h1 {
  font-family: var(--serif);
  font-size: 6rem;
  font-weight: 900;
  color: var(--burgundy);
  line-height: 1;
  margin-bottom: 16px;
}
.page-404 h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.page-404 p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}
.page-404 .btn {
  display: inline-block;
  background: var(--burgundy);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 4px;
  transition: background var(--transition);
}
.page-404 .btn:hover { background: var(--burgundy-light); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--text);
  color: var(--bg-light);
  padding: 48px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 12px;
}
.footer-brand h3 span { color: var(--burgundy-light); }
.footer-brand p {
  font-size: 0.85rem;
  opacity: 0.7;
  line-height: 1.7;
  max-width: 320px;
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition);
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--accent);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { list-style: none; }
.footer-col a {
  display: block;
  font-size: 0.85rem;
  opacity: 0.7;
  padding: 4px 0;
  transition: opacity var(--transition);
}
.footer-col a:hover { opacity: 1; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  opacity: 0.5;
}

/* ============================================
   CHATBOT
   ============================================ */
.chatbot-fab {
  position: fixed;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--burgundy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--shadow-heavy);
  z-index: 1500;
  transition: background var(--transition), transform var(--transition);
}
.chatbot-fab:hover { background: var(--burgundy-light); transform: scale(1.08); }
.chatbot-fab svg { width: 24px; height: 24px; }

.chatbot-pos-bl { bottom: 24px; left: 24px; }
.chatbot-pos-br { bottom: 24px; right: 24px; }
.chatbot-pos-tl { top: 80px; left: 24px; }
.chatbot-pos-tr { top: 80px; right: 24px; }

.chatbot-panel {
  position: fixed;
  width: 380px;
  height: 520px;
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: 0 12px 48px var(--shadow-heavy);
  z-index: 1500;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: chatSlideIn 0.3s ease;
}
.chatbot-panel.open { display: flex; }
@keyframes chatSlideIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chatbot-panel.panel-bl { bottom: 90px; left: 24px; }
.chatbot-panel.panel-br { bottom: 90px; right: 24px; }
.chatbot-panel.panel-tl { top: 146px; left: 24px; }
.chatbot-panel.panel-tr { top: 146px; right: 24px; }

.chatbot-header {
  background: var(--text);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chatbot-header-left { display: flex; align-items: center; gap: 10px; }
.chatbot-avatar {
  width: 32px;
  height: 32px;
  background: var(--burgundy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 0.78rem;
  font-weight: 700;
}
.chatbot-header-info h4 { font-size: 0.88rem; font-weight: 600; }
.chatbot-header-info span { font-size: 0.72rem; opacity: 0.6; }
.chatbot-header-actions { display: flex; gap: 6px; }
.chatbot-header-actions button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background var(--transition);
}
.chatbot-header-actions button:hover { background: rgba(255,255,255,0.15); }

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
  animation: msgFadeIn 0.3s ease;
}
@keyframes msgFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-msg.bot {
  align-self: flex-start;
  background: var(--bg-card);
  border-bottom-left-radius: 4px;
}
.chat-msg.user {
  align-self: flex-end;
  background: var(--burgundy);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.chat-prompt-btn {
  font-size: 0.78rem;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-white);
  transition: var(--transition);
  white-space: nowrap;
}
.chat-prompt-btn:hover { border-color: var(--burgundy); color: var(--burgundy); }
.chat-typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: 12px;
  border-bottom-left-radius: 4px;
}
.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingDot 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

/* Chatbot inline search */
.chatbot-search-bar {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  gap: 6px;
  align-items: center;
  background: var(--bg-card);
}
.chatbot-search-bar input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.8rem;
  font-family: var(--sans);
  outline: none;
  background: var(--bg-white);
  color: var(--text);
  transition: border-color var(--transition);
}
.chatbot-search-bar input:focus { border-color: var(--burgundy); }
.chatbot-search-bar input::placeholder { color: var(--text-muted); }
.chatbot-search-bar button {
  width: 32px;
  height: 32px;
  background: var(--burgundy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
}
.chatbot-search-bar button:hover { background: var(--burgundy-light); }
.chatbot-search-bar button svg { width: 14px; height: 14px; }
.chatbot-search-results {
  max-height: 200px;
  overflow-y: auto;
  border-bottom: 1px solid var(--border-light);
}
.chatbot-search-results.hidden { display: none; }
.chatbot-search-result {
  display: block;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition);
  font-size: 0.82rem;
}
.chatbot-search-result:hover { background: var(--bg-card); }
.chatbot-search-result:last-child { border-bottom: none; }
.chatbot-search-result-cat {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 2px;
}
.chatbot-search-result-title {
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
}
.chatbot-search-result-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.chatbot-input-area {
  padding: 12px 16px;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 8px;
}
.chatbot-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 24px;
  font-size: 0.88rem;
  font-family: var(--sans);
  outline: none;
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition);
}
.chatbot-input:focus { border-color: var(--burgundy); }
.chatbot-send {
  width: 40px;
  height: 40px;
  background: var(--burgundy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  flex-shrink: 0;
}
.chatbot-send:hover { background: var(--burgundy-light); }
.chatbot-send svg { width: 16px; height: 16px; }

/* ============================================
   MOBILE NAV DRAWER
   ============================================ */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  display: none;
}
.mobile-nav.open { display: block; }
.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 17, 40, 0.6);
  backdrop-filter: blur(4px);
}
.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 80%;
  background: var(--bg-white);
  padding: 24px;
  animation: slideRight 0.3s ease;
  overflow-y: auto;
}
@keyframes slideRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.mobile-nav-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-bottom: 24px;
}
.mobile-nav-panel ul { list-style: none; padding: 0; margin: 0; }
.mobile-nav-panel li { list-style: none; }
.mobile-nav-panel a {
  display: block;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-light);
  transition: color var(--transition);
}
.mobile-nav-panel a:hover { color: var(--burgundy); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-sidebar { flex-direction: row; overflow-x: auto; }
  .hero-side-card { min-width: 280px; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .article-card.featured { grid-template-columns: 1fr; }
  .article-card.featured .article-card-img { min-height: 200px; }
  .editorials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mission-values { grid-template-columns: repeat(2, 1fr); }
  .mission-sections { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-height: 50px; }
  .top-bar { display: none; }
  .masthead { padding: 14px 0 10px; }
  .masthead-logo { font-size: 2.2rem; }
  .nav-links { display: none; }
  .nav-subscribe { display: none; }
  .hamburger { display: flex; }
  .hero-main-title { font-size: 1.3rem; }
  .hero-sidebar { flex-direction: column; }
  .hero-side-card { min-width: auto; }
  .articles-grid { grid-template-columns: 1fr; }
  .editorials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .mission-hero h1 { font-size: 2rem; }
  .mission-values { grid-template-columns: 1fr; }
  .mission-sections { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .contact-info h1 { font-size: 1.8rem; }
  .single-article-title { font-size: 2rem; }

  .carousel-track {
    flex-direction: row;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .story-card {
    min-width: 85vw;
    max-width: 85vw;
    scroll-snap-align: start;
    flex-shrink: 0;
  }
  .carousel-dots { display: none; }

  .articles-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 8px;
  }
  .articles-grid .article-card {
    min-width: 85vw;
    max-width: 85vw;
    scroll-snap-align: start;
    flex-shrink: 0;
  }
  .articles-grid .article-card.featured {
    grid-column: auto;
    display: block;
    min-width: 85vw;
    max-width: 85vw;
  }
  .articles-grid .article-card.featured .article-card-img { min-height: 180px; }
  .articles-grid .article-card.featured .article-card-title { font-size: 1.2rem; }

  .editorials-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 8px;
  }
  .editorials-grid .editorial-card {
    min-width: 80vw;
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .hero-sidebar {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-bottom: 8px;
  }
  .hero-side-card {
    min-width: 85vw;
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .chatbot-panel { width: calc(100vw - 32px); left: 16px !important; right: 16px !important; height: 60vh; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 768px) {
  .articles-grid::-webkit-scrollbar,
  .editorials-grid::-webkit-scrollbar,
  .hero-sidebar::-webkit-scrollbar,
  .carousel-track::-webkit-scrollbar { display: none; }
  .articles-grid,
  .editorials-grid,
  .hero-sidebar,
  .carousel-track { -ms-overflow-style: none; scrollbar-width: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .mission-sections { grid-template-columns: 1fr; }
}

/* WordPress-specific: admin bar spacing */
body.admin-bar .main-nav { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .main-nav { top: 46px; }
}
