/* ============================================================
   style.css — NewsHub v2 · Editorial Magazine Aesthetic
   Fonts: Playfair Display (display) + DM Sans (body)
   Palette: Ink Navy · Signal Red · Warm White · Slate
   ============================================================ */

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, video { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { text-decoration: none; color: inherit; }

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --ink:        #0C1420;
  --ink-soft:   #1E2D3D;
  --red:        #D9262F;
  --red-vivid:  #F03A3A;
  --red-muted:  #FFF1F1;
  --gold:       #C9922A;
  --white:      #FAFAF8;
  --paper:      #F4F2EE;
  --slate:      #637083;
  --slate-light:#A8B5C2;
  --border:     #E2DDD6;
  --shadow-sm:  0 1px 3px rgba(12,20,32,.08), 0 1px 2px rgba(12,20,32,.04);
  --shadow:     0 4px 16px rgba(12,20,32,.10), 0 1px 4px rgba(12,20,32,.06);
  --shadow-lg:  0 16px 40px rgba(12,20,32,.14), 0 4px 12px rgba(12,20,32,.08);
  --shadow-red: 0 8px 24px rgba(217,38,47,.25);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', monospace;
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --container: 1240px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] {
  --ink:        #E8E4DC;
  --ink-soft:   #B8C0CC;
  --white:      #0F1923;
  --paper:      #131E2A;
  --slate:      #8899AA;
  --slate-light:#4A5568;
  --border:     #243042;
  --red-muted:  #1F0808;
  --gold:       #D4A53A;
}

/* ── Base ──────────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
  transition: background .3s var(--ease), color .3s var(--ease);
}

/* ── Layout ────────────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.site-main  { min-height: 60vh; }

/* ── Breaking News Ticker ──────────────────────────────────── */
.breaking-bar {
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  height: 38px;
  overflow: hidden;
}
.breaking-label {
  background: rgba(0,0,0,.2);
  padding: 0 16px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  white-space: nowrap;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,.15);
}
.ticker-wrap  { flex: 1; overflow: hidden; }
.ticker-track {
  display: flex;
  gap: 64px;
  animation: ticker 35s linear infinite;
  white-space: nowrap;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item { font-size: 13px; font-weight: 500; color: rgba(255,255,255,.95); flex-shrink: 0; }
.ticker-item::before { content: '·'; margin-right: 12px; opacity: .5; }
.ticker-item:hover { color: #fff; text-decoration: underline; }
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ── Site Header ───────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 68px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-mark {
  width: 40px; height: 40px;
  background: var(--red);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px;
  transition: transform .3s var(--ease-spring);
}
.logo-mark.sm { width: 30px; height: 30px; font-size: 13px; border-radius: 5px; }
.site-logo:hover .logo-mark { transform: rotate(-6deg) scale(1.1); }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.5px;
}
.header-search {
  display: flex;
  flex: 1; max-width: 360px;
  margin: 0 auto;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  background: var(--paper);
  transition: border-color .2s, box-shadow .2s;
}
.header-search:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(217,38,47,.10);
}
.header-search input {
  border: none; background: transparent;
  padding: 0 16px;
  font-size: 14px; font-family: var(--font-body);
  color: var(--ink); flex: 1; outline: none;
}
.header-search input::placeholder { color: var(--slate-light); }
.header-search button {
  background: var(--red); color: #fff;
  padding: 0 18px; font-size: 14px;
  transition: background .2s;
}
.header-search button:hover { background: var(--red-vivid); }

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.rss-btn, .dark-toggle {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: var(--slate); font-size: 15px;
  transition: all .2s var(--ease);
}
.rss-btn:hover, .dark-toggle:hover {
  border-color: var(--red); color: var(--red); background: var(--red-muted);
}
.nav-toggle { display: none; }

/* ── Category Nav ──────────────────────────────────────────── */
.category-nav {
  border-top: 1px solid var(--border);
  background: var(--white);
  overflow-x: auto;
  scrollbar-width: none;
}
.category-nav::-webkit-scrollbar { display: none; }
.cat-nav-list { display: flex; }
.cat-nav-list li a {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 16px;
  font-size: 13px; font-weight: 600;
  color: var(--slate);
  white-space: nowrap;
  position: relative;
  transition: color .2s;
}
.cat-nav-list li a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 16px; right: 16px;
  height: 2.5px;
  background: var(--red);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s var(--ease);
}
.cat-nav-list li a:hover { color: var(--ink); }
.cat-nav-list li a:hover::after,
.cat-nav-list li a.active::after { transform: scaleX(1); }
.cat-nav-list li a.active { color: var(--red); }
.cat-nav-list li a i { font-size: 12px; color: var(--cat-color, var(--slate)); }

/* ── Post Card ─────────────────────────────────────────────── */
.post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--border);
  flex-shrink: 0;
}
.post-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease);
}
.post-card:hover .post-card-img img { transform: scale(1.06); }
.post-card-body {
  padding: 20px;
  display: flex; flex-direction: column; gap: 8px; flex: 1;
}
.cat-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 3px 10px; border-radius: 4px;
  line-height: 1.6;
}
.post-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.post-card-title a:hover { color: var(--red); }
.post-card-excerpt {
  font-size: 13.5px; color: var(--slate);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.post-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: var(--slate-light);
  flex-wrap: wrap; margin-top: auto;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.post-meta .author { font-weight: 600; color: var(--slate); }
.post-meta i { font-size: 11px; }

/* ── Hero Post ─────────────────────────────────────────────── */
.hero-post {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  aspect-ratio: 21/9;
  background: var(--ink);
  display: block;
}
.hero-post img {
  width: 100%; height: 100%;
  object-fit: cover; opacity: .62;
  transition: transform .6s var(--ease), opacity .4s;
}
.hero-post:hover img { transform: scale(1.04); opacity: .70; }
.hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 80px 48px 36px;
  background: linear-gradient(to top,
    rgba(12,20,32,.96) 0%,
    rgba(12,20,32,.6) 50%,
    transparent 100%);
}
.breaking-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 4px 10px; border-radius: 4px;
  margin-bottom: 12px;
  animation: pulseBadge 2s ease-in-out infinite;
}
@keyframes pulseBadge { 0%,100%{opacity:1} 50%{opacity:.7} }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.5vw, 3rem);
  font-weight: 900; color: #fff;
  line-height: 1.15; letter-spacing: -0.5px;
  margin-bottom: 12px; max-width: 800px;
}
.hero-title a { color: #fff; transition: color .2s; }
.hero-title a:hover { color: rgba(255,255,255,.85); }
.hero-excerpt { color: rgba(255,255,255,.7); font-size: 1rem; margin-bottom: 16px; max-width: 540px; }
.hero-meta {
  display: flex; gap: 24px;
  color: rgba(255,255,255,.5); font-size: 13px; font-weight: 500;
}
.hero-meta i { font-size: 12px; margin-right: 4px; }

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

/* ── Section Headers ───────────────────────────────────────── */
.section-header {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
  position: relative;
}
.section-header::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 56px; height: 2px;
  background: var(--red);
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700;
  color: var(--ink); letter-spacing: -0.3px;
}
.section-link {
  font-size: 13px; font-weight: 700; color: var(--red);
  display: flex; align-items: center; gap: 4px;
  transition: gap .2s;
}
.section-link:hover { gap: 8px; }

/* ── Content layout ─────────────────────────────────────────── */
.content-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }

/* ── Sidebar ─────────────────────────────────────────────────── */
.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}
.widget-title {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700;
  color: var(--ink); margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  position: relative;
}
.widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 36px; height: 2px;
  background: var(--red);
}
.trending-item {
  display: flex; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.trending-item:last-child { border-bottom: none; }
.trending-num {
  font-family: var(--font-display);
  font-size: 1.75rem; font-weight: 900;
  color: var(--border); line-height: 1;
  flex-shrink: 0; width: 32px;
  transition: color .2s;
}
.trending-item:hover .trending-num { color: var(--red); }

/* ── Article Body ────────────────────────────────────────────── */
.article-body {
  font-size: 1.075rem; line-height: 1.85;
  color: var(--ink); font-weight: 300;
}
.article-body > * + * { margin-top: 24px; }
.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.875rem; font-weight: 700;
  color: var(--ink); margin-top: 40px; line-height: 1.25;
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 600; margin-top: 32px;
}
.article-body p { font-weight: 400; }
.article-body strong { font-weight: 700; color: var(--ink); }
.article-body em { font-style: italic; }
.article-body a { color: var(--red); border-bottom: 1px solid var(--red); transition: opacity .2s; }
.article-body a:hover { opacity: .75; }
.article-body img { border-radius: var(--radius-lg); margin: 32px 0; box-shadow: var(--shadow); }
.article-body ul { padding-left: 24px; list-style: disc; display: flex; flex-direction: column; gap: 8px; }
.article-body ol { padding-left: 24px; list-style: decimal; display: flex; flex-direction: column; gap: 8px; }
.article-body blockquote {
  border-left: 4px solid var(--red);
  padding: 20px 28px;
  background: var(--red-muted);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-soft);
  line-height: 1.55;
  position: relative;
}
.article-body blockquote::before {
  content: '\201C';
  font-size: 72px; color: var(--red); opacity: .18;
  position: absolute; top: -8px; left: 12px;
  font-family: var(--font-display); line-height: 1;
}
.article-body code {
  font-family: var(--font-mono);
  background: var(--paper); border: 1px solid var(--border);
  padding: 2px 7px; border-radius: 4px;
  font-size: .875em; color: var(--red);
}
.article-body pre {
  background: #0C1420;
  border-radius: var(--radius);
  padding: 24px; overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 14px; line-height: 1.7; color: #A8DADC;
}
.article-body pre code { background: none; border: none; color: inherit; padding: 0; }

/* ── Share & Tags ────────────────────────────────────────────── */
.share-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 50px;
  font-size: 13px; font-weight: 700;
  transition: transform .2s var(--ease-spring), opacity .2s;
}
.share-btn:hover { transform: translateY(-2px); opacity: .9; }
.share-fb   { background: #1877F2; color: #fff; }
.share-tw   { background: #000; color: #fff; }
.share-wa   { background: #25D366; color: #fff; }
.share-copy { background: var(--paper); color: var(--ink); border: 1.5px solid var(--border); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill {
  padding: 5px 14px;
  background: var(--paper); border: 1.5px solid var(--border);
  border-radius: 50px; font-size: 11px; font-weight: 600;
  color: var(--slate); letter-spacing: .3px;
  transition: all .2s var(--ease);
}
.tag-pill:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-1px); }

/* ── Comments ────────────────────────────────────────────────── */
.comment { display: flex; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.comment:last-child { border-bottom: none; }
.comment-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; flex-shrink: 0;
  font-family: var(--font-display);
}
.comment-author { font-weight: 700; color: var(--ink); }
.comment-date   { font-size: 12px; color: var(--slate-light); margin-left: 8px; }
.comment-body   { font-size: 14px; line-height: 1.7; margin-top: 8px; color: var(--ink-soft); }

/* ── Comment Form ────────────────────────────────────────────── */
.comment-form .form-group { margin-bottom: 16px; }
.comment-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.comment-form input,
.comment-form textarea {
  width: 100%; padding: 11px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 14px; font-family: var(--font-body); color: var(--ink);
  background: var(--paper);
  transition: border-color .2s, box-shadow .2s;
}
.comment-form input:focus,
.comment-form textarea:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(217,38,47,.08); background: var(--white);
}
.comment-form textarea { resize: vertical; min-height: 130px; }
.btn-submit {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 32px; background: var(--red); color: #fff;
  border-radius: 50px; font-size: 1rem; font-weight: 700;
  font-family: var(--font-body);
  transition: background .2s, transform .2s var(--ease-spring), box-shadow .2s;
  box-shadow: var(--shadow-red);
}
.btn-submit:hover { background: var(--red-vivid); transform: translateY(-2px); }

/* ── Newsletter ──────────────────────────────────────────────── */
.newsletter-section {
  background: var(--ink); padding: 80px 0; margin-top: 80px;
  position: relative; overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 0% 50%, rgba(217,38,47,.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 100% 30%, rgba(201,146,42,.08) 0%, transparent 50%);
}
.newsletter-inner {
  display: flex; align-items: center; gap: 48px;
  flex-wrap: wrap; position: relative; z-index: 1;
}
.newsletter-text { flex: 1; min-width: 260px; }
.newsletter-text h3 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: #fff; margin-bottom: 12px; line-height: 1.15; letter-spacing: -0.5px;
}
.newsletter-text h3 em { color: #F03A3A; font-style: normal; }
.newsletter-text p { color: rgba(255,255,255,.6); font-size: 1rem; line-height: 1.65; }
.newsletter-form {
  display: flex; gap: 8px;
  flex: 1; min-width: 300px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50px; padding: 6px;
}
.newsletter-form input[type="email"] {
  flex: 1; background: none; border: none; outline: none;
  color: #fff; font-size: 14px; font-family: var(--font-body);
  padding: 8px 16px;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,.4); }
.newsletter-form input[type="text"] { display: none; }
.newsletter-form button {
  padding: 10px 24px; background: var(--red); color: #fff;
  border-radius: 40px; font-size: 14px; font-weight: 700;
  font-family: var(--font-body);
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  transition: background .2s, transform .2s; cursor: pointer;
}
.newsletter-form button:hover { background: var(--red-vivid); transform: scale(1.03); }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer { background: #080E18; color: rgba(255,255,255,.55); padding-top: 64px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
}
.footer-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-size: 1.25rem;
  color: #fff; margin-bottom: 16px;
}
.footer-about { font-size: 14px; line-height: 1.7; margin-bottom: 24px; }
.footer-heading { font-family: var(--font-display); font-size: 1.1rem; color: #fff; margin-bottom: 16px; font-weight: 600; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
  font-size: 14px; color: rgba(255,255,255,.5);
  display: flex; align-items: center; gap: 8px; transition: color .2s;
}
.footer-links a:hover { color: #fff; }
.footer-links i { width: 16px; font-size: 12px; }
.social-links { display: flex; gap: 8px; }
.social-links a {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); font-size: 15px;
  transition: all .2s var(--ease);
}
.social-links a:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding: 16px 0; }
.footer-bottom .container {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; flex-wrap: wrap; gap: 8px; color: rgba(255,255,255,.28);
}

/* ── Pagination ──────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; padding: 40px 0 16px; }
.pagination ul { display: flex; gap: 8px; }
.pagination li a {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius); font-size: 14px; font-weight: 600;
  border: 1.5px solid var(--border); color: var(--ink);
  transition: all .2s; background: var(--white);
}
.pagination li.active {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius);
  background: var(--red); color: #fff; font-size: 14px; font-weight: 600;
}
.pagination li a:hover { border-color: var(--red); color: var(--red); background: var(--red-muted); }

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:none} }
.animate-in { animation: fadeUp .5s var(--ease) both; }
.stagger > * { animation: fadeUp .5s var(--ease) both; }
.stagger > *:nth-child(1){animation-delay:.05s}
.stagger > *:nth-child(2){animation-delay:.10s}
.stagger > *:nth-child(3){animation-delay:.15s}
.stagger > *:nth-child(4){animation-delay:.20s}
.stagger > *:nth-child(5){animation-delay:.25s}
.stagger > *:nth-child(6){animation-delay:.30s}
.stagger > *:nth-child(7){animation-delay:.35s}
.stagger > *:nth-child(8){animation-delay:.40s}
.stagger > *:nth-child(9){animation-delay:.45s}
.reveal { opacity:0; transform:translateY(24px); transition:opacity .6s var(--ease),transform .6s var(--ease); }
.reveal.revealed { opacity:1; transform:none; }

/* ── Utilities ───────────────────────────────────────────────── */
.section-pad { padding: 64px 0; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .posts-grid-4 { grid-template-columns: repeat(2,1fr); }
  .content-layout { grid-template-columns: 1fr; }
  .hero-overlay { padding: 60px 32px 28px; }
}
@media (max-width: 768px) {
  .posts-grid-3 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .newsletter-inner { flex-direction: column; gap: 32px; }
  .newsletter-form { min-width: 100%; flex-direction: column; border-radius: var(--radius-lg); padding: 16px; }
  .newsletter-form button { align-self: flex-start; }
  .nav-toggle {
    display: flex; width: 38px; height: 38px;
    align-items: center; justify-content: center;
    border: 1.5px solid var(--border); background: transparent;
    border-radius: var(--radius-sm); color: var(--ink); font-size: 16px;
  }
  .category-nav { display: none; border-top: none; }
  .category-nav.open {
    display: block; position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); z-index: 199;
  }
  .cat-nav-list { flex-direction: column; }
  .cat-nav-list li a { padding: 12px 24px; border-bottom: 1px solid var(--border); }
  .cat-nav-list li a::after { display: none; }
}
@media (max-width: 560px) {
  .posts-grid-3, .posts-grid-2 { grid-template-columns: 1fr; }
  .header-search { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-post { aspect-ratio: 3/2; }
  .hero-overlay { padding: 32px 20px 20px; }
}
