/*
Theme Name: The Next Wave News
Theme URI: https://www.thenextwavenews.com
Author: The Next Wave News
Author URI: https://www.thenextwavenews.com
Description: A premium digital news media theme for The Next Wave News — Forbes/Fast Company aesthetic covering marketing, beauty, creator economy, and D2C commerce.
Version: 1.2.4
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary
Text Domain: nextwave
Tags: news, magazine, blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   THE NEXT WAVE NEWS — Design System
   Forbes × Fast Company × Morning Brew aesthetic
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand Colors */
  --black:        #111111;
  --white:        #FFFFFF;
  --accent:       #2563EB;        /* Electric Blue */
  --accent-dark:  #1D4ED8;
  --accent-light: #EFF6FF;

  /* Neutrals */
  --gray-50:      #F9FAFB;
  --gray-100:     #F3F4F6;
  --gray-200:     #E5E7EB;
  --gray-300:     #D1D5DB;
  --gray-400:     #9CA3AF;
  --gray-500:     #6B7280;
  --gray-600:     #4B5563;
  --gray-700:     #374151;
  --gray-800:     #1F2937;
  --gray-900:     #111827;

  /* Category Colors */
  --cat-culture:  #7C3AED;
  --cat-creator:  #2563EB;
  --cat-commerce: #059669;
  --cat-insights: #D97706;

  /* Typography */
  --font-head:    'Archivo', 'Inter', 'Montserrat', -apple-system, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --max-width:    1200px;
  --nav-h:        68px;
  --section-gap:  72px;

  /* Effects */
  --shadow-sm:    0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:    0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg:    0 16px 40px rgba(0,0,0,0.10);
  --radius:       6px;
  --radius-lg:    10px;
  --transition:   all 0.22s ease;
}

/* ---------- 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-body);
  background: var(--white);
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
p { line-height: 1.75; color: var(--gray-700); }

/* ---------- Typography Scale ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  color: var(--black);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; font-weight: 700; }

/* ---------- Layout Utilities ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.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;
}

/* ---------- Category Badges ---------- */
.badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 3px;
  color: var(--white);
  line-height: 1;
}
.badge-culture  { background: var(--cat-culture); }
.badge-creator  { background: var(--cat-creator); }
.badge-commerce { background: var(--cat-commerce); }
.badge-insights { background: var(--cat-insights); }
.badge-default  { background: var(--gray-700); }

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-topbar {
  background: var(--black);
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.01em;
}
.topbar-date { color: rgba(255,255,255,0.35); }
.topbar-links { display: flex; align-items: center; gap: 20px; }
.topbar-links a { color: rgba(255,255,255,0.45); transition: color 0.2s; }
.topbar-links a:hover { color: rgba(255,255,255,0.85); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 2px solid var(--black);
  height: var(--nav-h);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo */
.site-logo {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}
.logo-main {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--black);
  line-height: 1;
  text-transform: uppercase;
}
.logo-main em {
  font-style: normal;
  color: var(--accent);
}
.logo-tag {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-400);
}

/* Primary Nav */
.primary-nav { display: flex; align-items: center; gap: 2px; }
.primary-nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  padding: 7px 13px;
  border-radius: var(--radius);
  letter-spacing: 0.01em;
  transition: var(--transition);
  white-space: nowrap;
}
.primary-nav a:hover,
.primary-nav a.current-menu-item { color: var(--black); }
.primary-nav a.current-menu-item { border-bottom: 2px solid var(--accent); border-radius: 0; }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-icon {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  color: var(--gray-500);
  transition: var(--transition);
}
.btn-icon:hover { background: var(--gray-100); color: var(--black); }
.btn-icon svg { width: 18px; height: 18px; }

.btn-subscribe {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 9px 20px;
  border-radius: var(--radius);
  border: 2px solid var(--black);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-subscribe:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 4px 0;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   TICKER / BREAKING BAR
   ============================================================ */
.ticker-bar {
  background: var(--accent);
  overflow: hidden;
  padding: 8px 0;
}
.ticker-inner { display: flex; align-items: center; }
.ticker-label {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  padding: 0 16px;
  flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,0.3);
  margin-right: 0;
}
.ticker-scroll { overflow: hidden; flex: 1; padding-left: 16px; }
.ticker-track {
  display: flex;
  gap: 56px;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  flex-shrink: 0;
}
.ticker-item a { color: inherit; }
.ticker-item a:hover { color: var(--white); text-decoration: underline; }
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   HERO SECTION — Forbes Asymmetric Layout
   ============================================================ */
.hero-section {
  padding: 48px 0 56px;
  border-bottom: 1px solid var(--gray-200);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Featured Story (Left) */
.hero-featured { position: relative; }
.hero-feat-link { display: block; }
/* Fix: image-link fills container so img covers full 4/3 area */
.hero-feat-img > a.hero-feat-link {
  position: absolute;
  inset: 0;
}
.hero-feat-img {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #111111 0%, #2563EB 100%);
  margin-bottom: 0;
}
.hero-feat-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.hero-feat-link:hover .hero-feat-img img { transform: scale(1.03); }

.hero-feat-img-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,0.2);
}
.hero-feat-img-placeholder svg { width: 44px; height: 44px; }
.hero-feat-img-placeholder span { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; }

.hero-feat-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 70%;
  background: linear-gradient(to top, rgba(10,10,10,0.95) 10%, rgba(10,10,10,0.6) 60%, transparent 100%);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.hero-feat-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 24px;
  z-index: 1;
}
.hero-feat-content .badge { margin-bottom: 12px; }
/* Hero content overlay: makes title/text area clickable */
.hero-feat-content > a.hero-feat-link:first-child {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-feat-content .badge,
.hero-feat-content a:not(.hero-feat-link) {
  position: relative;
  z-index: 1;
}
.hero-feat-title {
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  transition: var(--transition);
}
.hero-feat-link:hover .hero-feat-title { color: rgba(255,255,255,0.85); }
.hero-feat-excerpt {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-feat-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
}
.hero-meta-sep { color: rgba(255,255,255,0.2); }

/* Trending Stack (Right) */
.hero-trending { display: flex; flex-direction: column; }
.trending-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--black);
  margin-bottom: 0;
}
.trending-title {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black);
}
.trending-view-all {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.trending-view-all:hover { text-decoration: underline; }

.trending-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-200);
  align-items: flex-start;
  transition: var(--transition);
}
.trending-item:hover .trending-item-title { color: var(--accent); }
.trending-item:last-child { border-bottom: none; }

.trending-num {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 900;
  color: var(--gray-200);
  line-height: 1;
  flex-shrink: 0;
  min-width: 38px;
  letter-spacing: -0.04em;
}
.trending-content { flex: 1; }
.trending-content .badge { margin-bottom: 8px; }
.trending-item-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
  color: var(--black);
  line-height: 1.28;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
  transition: var(--transition);
}
.trending-item-meta {
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--black);
}
.section-hd-title {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-hd-accent {
  display: block;
  width: 18px;
  height: 3px;
  border-radius: 2px;
  flex-shrink: 0;
}
.section-hd-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}
.section-hd-link:hover { gap: 8px; }

/* ============================================================
   ARTICLE CARDS — 3-column grid
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.cards-grid-2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}
.card:hover { transform: translateY(-3px); }
.card:hover .card-title { color: var(--accent); }

.card-img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-100);
  margin-bottom: 16px;
  flex-shrink: 0;
}
.card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card-img-wrap img { transform: scale(1.04); }
.card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-300);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.card-badge { margin-bottom: 10px; }
.card-title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 800;
  color: var(--black);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  transition: var(--transition);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-excerpt {
  font-size: 13.5px;
  color: var(--gray-500);
  line-height: 1.65;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.card-meta {
  font-size: 11.5px;
  color: var(--gray-400);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}
.card-meta-sep { color: var(--gray-300); }
.card-meta-author { font-weight: 600; color: var(--gray-600); }

/* Card — Horizontal compact */
.card-h {
  flex-direction: row;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-200);
  transform: none !important;
}
.card-h:first-child { padding-top: 0; }
.card-h:last-child { border-bottom: none; }
.card-h .card-img-wrap {
  width: 88px; height: 66px;
  aspect-ratio: unset; flex-shrink: 0;
  margin-bottom: 0;
}
.card-h .card-title { font-size: 14px; -webkit-line-clamp: 3; margin-bottom: 6px; }
.card-h .card-excerpt { display: none; }

/* Card — Dark (Insights) */
.card-dark {
  background: var(--black);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: var(--white);
}
.card-dark .card-title { color: var(--white); font-size: 18px; -webkit-line-clamp: 4; }
.card-dark .card-excerpt { color: rgba(255,255,255,0.5); }
.card-dark .card-meta { color: rgba(255,255,255,0.3); }
.card-dark .card-meta-author { color: rgba(255,255,255,0.55); }
.card-dark:hover .card-title { color: var(--accent); }
.card-dark:hover { transform: translateY(-3px); }

/* ============================================================
   CATEGORY SECTIONS
   ============================================================ */
.category-section {
  padding: var(--section-gap) 0;
  border-bottom: 1px solid var(--gray-200);
}
.category-section:last-of-type { border-bottom: none; }

/* Featured + sidebar layout */
.cat-main-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
}
.cat-sidebar { border-left: 1px solid var(--gray-200); padding-left: 40px; }

/* ============================================================
   NEWSLETTER CTA
   ============================================================ */
.newsletter-cta {
  background: var(--black);
  padding: 72px 0;
}
.newsletter-inner {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}
.newsletter-eyebrow {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.newsletter-cta h2 {
  color: var(--white);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}
.newsletter-cta p {
  color: rgba(255,255,255,0.5);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 28px;
}
.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto 12px;
}
.newsletter-form input[type="email"] {
  flex: 1;
  padding: 13px 16px;
  border-radius: var(--radius);
  border: 1.5px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.3); }
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form button {
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  padding: 13px 22px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--accent-dark); }
.newsletter-note { font-size: 11px; color: rgba(255,255,255,0.25); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0A0A0A;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 28px;
}
.footer-brand-logo {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer-brand-logo em { font-style: normal; color: var(--accent); }
.footer-brand-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  color: rgba(255,255,255,0.4);
  transition: var(--transition);
}
.footer-social a:hover { background: var(--accent); color: var(--white); }
.footer-col h5 {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: rgba(255,255,255,0.22);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: inherit; transition: color 0.2s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.55); }

/* ============================================================
   ARTICLE / SINGLE PAGE
   ============================================================ */
.article-header {
  background: var(--black);
  padding: 52px 0 0;
}
.article-header-inner { max-width: 820px; margin: 0 auto; }
.article-header .badge { margin-bottom: 18px; }
.article-headline {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.article-deck {
  font-size: 17px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  margin-bottom: 26px;
  font-weight: 400;
}
.article-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 28px;
}
.byline-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px;
  color: var(--white);
  flex-shrink: 0;
  font-family: var(--font-head);
}
.byline-text { color: rgba(255,255,255,0.4); font-size: 13px; }
.byline-text strong { color: var(--white); display: block; font-size: 14px; font-weight: 700; margin-bottom: 1px; }
.article-hero-img {
  margin-top: 32px;
  aspect-ratio: 21/9;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e, #2563EB);
}
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }

.article-body-wrap {
  max-width: 740px;
  margin: 0 auto;
  padding: 52px 24px 72px;
}
.article-content p {
  font-size: 17px;
  line-height: 1.85;
  color: #2D3748;
  margin-bottom: 26px;
}
.article-content h2 {
  font-size: 1.55rem;
  margin: 44px 0 16px;
  font-weight: 800;
}
.article-content h3 {
  font-size: 1.2rem;
  margin: 36px 0 12px;
}
.article-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 18px 26px;
  margin: 36px 0;
  background: var(--accent-light);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-content blockquote p {
  font-size: 20px;
  font-family: var(--font-head);
  font-style: italic;
  color: var(--black);
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 8px;
}
.article-content blockquote cite {
  font-size: 13px;
  color: var(--gray-500);
  font-style: normal;
}
.article-content ul, .article-content ol {
  margin: 0 0 26px 24px;
}
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li {
  font-size: 17px;
  line-height: 1.75;
  color: #2D3748;
  margin-bottom: 8px;
}
.article-content a { color: var(--accent); text-decoration: underline; }
.article-content strong { font-weight: 700; color: var(--black); }

/* Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0;
  border-top: 1px solid var(--gray-200);
  margin-top: 48px;
}
.tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  background: var(--gray-100);
  padding: 5px 13px;
  border-radius: 20px;
  transition: var(--transition);
}
.tag:hover { background: var(--accent-light); color: var(--accent); }

/* Share */
.article-share {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  border-top: 1px solid var(--gray-200);
}
.share-label { font-size: 12px; font-weight: 700; color: var(--gray-400); letter-spacing: 0.06em; text-transform: uppercase; }
.share-btn {
  padding: 7px 15px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  border: 1.5px solid var(--gray-200);
  color: var(--gray-600);
  transition: var(--transition);
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   STATIC PAGES (About, Contact, Privacy)
   ============================================================ */
.page-hero {
  background: var(--black);
  padding: 72px 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 14px; }
.page-hero .page-subtitle { color: rgba(255,255,255,0.45); font-size: 18px; max-width: 580px; margin: 0 auto; }
.page-content {
  max-width: 780px;
  margin: 56px auto;
  padding: 0 24px 80px;
}
.page-content h2 { font-size: 1.5rem; margin: 44px 0 16px; }
.page-content p { font-size: 16px; line-height: 1.8; color: var(--gray-700); margin-bottom: 20px; }
.page-content ul { margin: 0 0 20px 24px; list-style: disc; }
.page-content li { font-size: 16px; line-height: 1.75; color: var(--gray-700); margin-bottom: 8px; }

/* Contact Form */
.contact-form-wrap {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-top: 36px;
  border: 1px solid var(--gray-200);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--black); margin-bottom: 7px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--gray-800);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 130px; }
.btn-primary {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  padding: 13px 30px;
  border-radius: var(--radius);
  transition: var(--transition);
  display: inline-block;
}
.btn-primary:hover { background: var(--accent); }

/* ============================================================
   CATEGORY / ARCHIVE PAGE
   ============================================================ */
.cat-page-hero {
  padding: 52px 0 40px;
  border-bottom: 2px solid var(--black);
}
.cat-page-hero-inner { display: flex; align-items: flex-end; gap: 20px; }
.cat-page-name {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--black);
  letter-spacing: -0.03em;
  line-height: 1;
}
.cat-page-count { font-size: 14px; color: var(--gray-400); font-weight: 500; padding-bottom: 8px; }
.archive-grid-section { padding: var(--section-gap) 0; }

/* ============================================================
   SEARCH RESULTS
   ============================================================ */
.search-header { padding: 40px 0; border-bottom: 2px solid var(--black); }
.search-label { font-size: 13px; color: var(--gray-400); font-weight: 500; margin-bottom: 6px; }
.search-term { font-family: var(--font-head); font-size: 2rem; font-weight: 900; color: var(--black); }

/* ============================================================
   404 PAGE
   ============================================================ */
.not-found-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}
.not-found-code {
  font-family: var(--font-head);
  font-size: 120px;
  font-weight: 900;
  color: var(--gray-100);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 0;
}
.not-found-page h2 { font-size: 1.8rem; margin-bottom: 12px; }
.not-found-page p { color: var(--gray-500); margin-bottom: 28px; }

/* ============================================================
   UTILITY / MISC
   ============================================================ */
.wp-post-image { width: 100%; height: 100%; object-fit: cover; }
.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.screen-reader-text { @extend .sr-only; }

/* WordPress Generated Classes */
.sticky { /* highlighted/sticky posts */ }
.bypostauthor { /* author post highlight */ }

/* ============================================================
   RESPONSIVE — MOBILE FIRST
   ============================================================ */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .cat-main-layout { grid-template-columns: 1fr; }
  .cat-sidebar { border-left: none; padding-left: 0; border-top: 1px solid var(--gray-200); padding-top: 32px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; --section-gap: 48px; }
  .site-topbar { display: none; }
  .primary-nav { display: none; }
  .menu-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-trending { margin-top: 0; border-top: 2px solid var(--black); padding-top: 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .article-body-wrap { padding: 36px 20px 56px; }
  .article-content p { font-size: 16px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .logo-main { font-size: 18px; }
  .hero-feat-title { font-size: 1.2rem; }
  .trending-item-title { font-size: 13.5px; }
  .card-title { font-size: 15px; }
  .newsletter-cta { padding: 52px 0; }
  .contact-form-wrap { padding: 24px 20px; }
  .not-found-code { font-size: 80px; }
}

/* Mobile Nav Open State */
.nav-open .primary-nav {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 2px solid var(--black);
  padding: 16px 24px;
  gap: 4px;
  z-index: 199;
  box-shadow: var(--shadow-lg);
}
.nav-open .primary-nav a {
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 15px;
}

/* Nav fix — horizontal menu */
.primary-nav ul{display:flex!important;align-items:center;gap:2px;list-style:none;margin:0;padding:0}
.primary-nav ul li{list-style:none}


/* ===== Header Equal Padding Fix (all pages) ===== */
.site-header {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
}
.header-inner {
  height: auto !important;
  width: 100% !important;
}
