﻿/* ==========================================================
   PROFITPEA THEME — PREMIUM REDESIGN v2.0
   World-class editorial design | AdSense-optimised | 2026
   ========================================================== */

/* ─── GOOGLE FONTS IMPORT ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Merriweather:ital,wght@0,400;0,700;0,900;1,400&display=swap');

/* ─── DESIGN TOKENS ───────────────────────────────────────── */
:root {
  /* Brand colours */
  --brand:        #16a34a;
  --brand-dark:   #15803d;
  --brand-deeper: #166534;
  --brand-light:  #dcfce7;
  --brand-pale:   #f0fdf4;
  --accent:       #f59e0b;
  --accent-light: #fef3c7;
  --link:         #0ea5e9;

  /* Neutrals */
  --ink-900: #0f172a;
  --ink-800: #1e293b;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-400: #94a3b8;
  --ink-200: #e2e8f0;
  --ink-100: #f1f5f9;
  --ink-50:  #f8fafc;
  --white:   #ffffff;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Merriweather', Georgia, serif;

  /* Scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Borders & Radii */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  18px;
  --r-xl:  24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0,0,0,.05);
  --shadow-sm: 0 1px 3px 0 rgba(0,0,0,.10), 0 1px 2px -1px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.10), 0 2px 4px -2px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.10), 0 4px 6px -4px rgba(0,0,0,.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.10), 0 8px 10px -6px rgba(0,0,0,.04);
  --shadow-card: 0 0 0 1px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.08);
  --shadow-card-hover: 0 0 0 1px rgba(22,163,74,.15), 0 8px 28px rgba(22,163,74,.12);

  /* Layout */
  --container:  1240px;
  --content-w:  780px;
  --sidebar-w:  340px;

  /* Transitions */
  --ease:    cubic-bezier(.4,0,.2,1);
  --dur-fast: 150ms;
  --dur:      250ms;
  --dur-slow: 400ms;
}

/* ─── BASE RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--ink-800);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: 1.25;
  color: var(--ink-900);
  font-weight: 700;
}
ul, ol { padding-left: 1.5em; }
button { font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: fixed; top: 0; left: 0; width: auto; height: auto;
  padding: 14px 22px; background: var(--brand); color: var(--white);
  z-index: 99999; font-size: var(--text-sm); font-weight: 600;
  border-radius: 0 0 var(--r-md) 0;
}

/* ─── LAYOUT HELPERS ─────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.page-wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--space-10) var(--space-6);
}
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: var(--space-12);
  align-items: start;
}
.main-content { min-width: 0; }

/* ─── HEADER ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink-200);
  transition: box-shadow var(--dur) var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: 68px;
}

.site-branding { flex-shrink: 0; }
.site-name-link { display: flex; flex-direction: column; text-decoration: none; }
.site-name {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--brand-deeper);
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, #166534, #16a34a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.site-tagline {
  font-size: var(--text-xs);
  color: var(--ink-600);
  font-weight: 500;
  letter-spacing: .02em;
  margin-top: 2px;
}
.site-logo img { max-height: 48px; width: auto; }

/* Nav */
.primary-nav .nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0; margin: 0;
}
.primary-nav .nav-menu li { position: relative; }
.primary-nav .nav-menu > li > a {
  display: flex; align-items: center;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-700);
  border-radius: var(--r-sm);
  transition: all var(--dur-fast) var(--ease);
  letter-spacing: .01em;
}
.primary-nav .nav-menu > li > a:hover,
.primary-nav .nav-menu > li.current-menu-item > a {
  background: var(--brand-pale);
  color: var(--brand);
}

.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.header-search-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--r-full);
  color: var(--ink-600);
  transition: all var(--dur-fast) var(--ease);
}
.header-search-btn:hover {
  background: var(--ink-100);
  color: var(--brand);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px; height: 18px;
  background: none; border: none; cursor: pointer; padding: 0;
}
.hamburger span {
  display: block; height: 2px;
  background: var(--ink-700); border-radius: 2px;
  transition: all var(--dur) var(--ease);
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 11px 24px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .02em;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
  box-shadow: 0 1px 2px rgba(22,163,74,.3);
}
.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(22,163,74,.35);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: rgba(255,255,255,.9);
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.9);
  color: var(--white);
}
.btn-ghost {
  background: var(--white);
  color: var(--brand);
  border-color: var(--ink-200);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-card-hover);
  color: var(--brand-dark);
}
.btn-large { padding: 14px 32px; font-size: var(--text-base); }
.btn-block { width: 100%; }

/* ─── HERO ────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  background: var(--ink-900);
  overflow: hidden;
  padding: var(--space-24) 0 var(--space-20);
}

/* Animated gradient orbs */
.hero-section::before {
  content: '';
  position: absolute; top: -120px; left: -80px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(22,163,74,.25) 0%, transparent 70%);
  border-radius: 50%;
  animation: orb1 12s ease-in-out infinite alternate;
}
.hero-section::after {
  content: '';
  position: absolute; bottom: -100px; right: -60px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(245,158,11,.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: orb2 15s ease-in-out infinite alternate;
}
@keyframes orb1 { from { transform: translate(0,0) scale(1); } to { transform: translate(60px,40px) scale(1.1); } }
@keyframes orb2 { from { transform: translate(0,0) scale(1); } to { transform: translate(-50px,-30px) scale(1.05); } }

/* Dot grid overlay */
.hero-section .hero-grid-overlay {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-16);
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: rgba(22,163,74,.18);
  border: 1px solid rgba(22,163,74,.35);
  color: #4ade80;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--r-full);
  margin-bottom: var(--space-6);
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.85); } }

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}
.hero-title .highlight {
  background: linear-gradient(135deg, #4ade80, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: rgba(255,255,255,.72);
  margin-bottom: var(--space-8);
  max-width: 520px;
  font-weight: 400;
}

.hero-actions {
  display: flex; align-items: center; gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

.hero-trust {
  display: flex; gap: var(--space-6); flex-wrap: wrap;
}
.hero-trust-item {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); color: rgba(255,255,255,.6); font-weight: 500;
}
.hero-trust-item svg { color: #4ade80; flex-shrink: 0; }

/* Stats card */
.hero-stats {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-xl);
  padding: var(--space-8);
  backdrop-filter: blur(16px);
}
.hero-stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6);
}
.hero-stat {
  text-align: center;
  padding: var(--space-4);
  background: rgba(255,255,255,.05);
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,.08);
  transition: background var(--dur) var(--ease);
}
.hero-stat:hover { background: rgba(255,255,255,.1); }
.hero-stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--text-4xl);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: var(--space-2);
  background: linear-gradient(135deg, #4ade80, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.55);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ─── TICKER BAND ─────────────────────────────────────────── */
.ticker-band {
  background: var(--brand);
  padding: 10px 0;
  overflow: hidden;
}
.ticker-inner {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item {
  display: inline-flex; align-items: center; gap: var(--space-3);
  font-size: var(--text-sm); font-weight: 600; color: var(--white);
}
.ticker-sep { color: rgba(255,255,255,.4); }

/* ─── CATEGORY PILLS ─────────────────────────────────────── */
.category-pills-section {
  background: var(--white);
  border-bottom: 1px solid var(--ink-200);
  padding: var(--space-4) 0;
}
.category-pills { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center;
  padding: 6px 16px;
  background: var(--ink-50);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--ink-700);
  letter-spacing: .02em;
  transition: all var(--dur-fast) var(--ease);
}
.pill:hover {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(22,163,74,.25);
}

/* ─── SECTION HEADERS ────────────────────────────────────── */
.section { padding: var(--space-20) 0; }
.section-alt { background: var(--ink-50); }

.section-label {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--space-3);
}
.section-label::before {
  content: '';
  display: block; width: 20px; height: 3px;
  background: var(--brand); border-radius: 2px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  color: var(--ink-900);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.section-desc { font-size: var(--text-lg); color: var(--ink-600); margin-top: var(--space-3); }
.section-head { margin-bottom: var(--space-12); }
.section-head.centered { text-align: center; }
.section-cta { text-align: center; margin-top: var(--space-12); }

/* ─── POST CARDS (Homepage Grid) ─────────────────────────── */
.posts-grid { display: grid; gap: var(--space-6); }
.home-grid { grid-template-columns: repeat(2, 1fr); }
.related-grid { grid-template-columns: repeat(4, 1fr); }

.post-card {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--dur) var(--ease);
  box-shadow: var(--shadow-sm);
}
.post-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(22,163,74,.2);
  transform: translateY(-3px);
}

.post-card-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--brand-pale);
}
.post-card-thumb a { display: block; width: 100%; height: 100%; }
.post-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.post-card:hover .post-card-img { transform: scale(1.06); }

.post-card-no-img {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand-pale) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 2.5rem; font-weight: 900;
  color: var(--brand);
  letter-spacing: -0.02em;
}

.post-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--brand);
  color: var(--white);
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 10px;
  border-radius: var(--r-full);
  box-shadow: var(--shadow-sm);
}

.post-card-body {
  padding: var(--space-5) var(--space-6);
  flex: 1;
  display: flex; flex-direction: column;
}

.post-card-cat {
  display: inline-block;
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--brand);
  margin-bottom: var(--space-2);
}

.post-card-title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink-900);
  margin-bottom: var(--space-3);
  flex: 1;
}
.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--brand); }

.post-card-excerpt {
  font-size: var(--text-sm);
  color: var(--ink-600);
  line-height: 1.65;
  margin-bottom: var(--space-4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--space-4);
  border-top: 1px solid var(--ink-100);
  margin-top: auto;
}
.post-card-meta {
  display: flex; align-items: center; gap: var(--space-3);
  font-size: var(--text-xs); color: var(--ink-400); font-weight: 500;
}
.post-card-read-link {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--brand);
  display: inline-flex; align-items: center; gap: var(--space-1);
  transition: gap var(--dur-fast) var(--ease);
}
.post-card-read-link:hover { gap: var(--space-2); color: var(--brand-dark); }

/* ─── FEATURED POST (first item) ─────────────────────────── */
.post-card.is-featured {
  grid-column: span 2;
  flex-direction: row;
}
.post-card.is-featured .post-card-thumb {
  width: 50%; flex-shrink: 0; aspect-ratio: unset;
}
.post-card.is-featured .post-card-body { padding: var(--space-8); justify-content: center; }
.post-card.is-featured .post-card-title { font-size: var(--text-2xl); }

/* ─── TOPIC CARDS ─────────────────────────────────────────── */
.topics-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--space-5); }
.topic-card {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  transition: all var(--dur) var(--ease);
  cursor: default;
}
.topic-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.topic-icon {
  font-size: 2.6rem;
  margin-bottom: var(--space-4);
  display: block;
}
.topic-card h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--ink-900);
}
.topic-card p { font-size: var(--text-sm); color: var(--ink-600); line-height: 1.6; }

/* ─── DISCLOSURE BAND ─────────────────────────────────────── */
.disclosure-band {
  background: var(--accent-light);
  border-top: 1px solid #fde68a;
  border-bottom: 1px solid #fde68a;
  padding: var(--space-4) 0;
}
.disclosure-band p {
  font-size: var(--text-sm);
  color: #78350f;
  display: flex; align-items: flex-start; gap: var(--space-2);
}
.disclosure-band p::before {
  content: '⚠';
  flex-shrink: 0;
  margin-top: 1px;
}
.disclosure-band a { color: #b45309; font-weight: 600; text-decoration: underline; }

/* ─── ARCHIVE HEADER ──────────────────────────────────────── */
.archive-header {
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 2px solid var(--ink-100);
}
.archive-title {
  font-size: var(--text-3xl);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}
.archive-desc { font-size: var(--text-base); color: var(--ink-600); }
.archive-count {
  display: inline-flex; align-items: center;
  background: var(--brand-pale);
  color: var(--brand);
  font-size: var(--text-xs); font-weight: 700;
  padding: 4px 12px; border-radius: var(--r-full);
  margin-top: var(--space-3);
}

/* ─── POST LIST (Blog Archive — 10/page) ─────────────────── */
.post-list { display: flex; flex-direction: column; }

.post-list-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-6);
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--ink-100);
  transition: background var(--dur-fast) var(--ease);
}
.post-list-item:first-child { padding-top: 0; }
.post-list-item:last-child { border-bottom: none; }

.post-list-thumb-wrap {
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--brand-pale);
  flex-shrink: 0;
}
.post-list-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.post-list-item:hover .post-list-thumb { transform: scale(1.05); }
.post-list-no-thumb {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-light), var(--brand-pale));
  font-family: var(--font-serif);
  font-size: 1.8rem; font-weight: 900; color: var(--brand);
}

.post-list-body { display: flex; flex-direction: column; justify-content: center; gap: var(--space-3); }

.post-list-cats { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.cat-badge {
  display: inline-flex; align-items: center;
  background: var(--brand-pale);
  color: var(--brand);
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .07em;
  padding: 3px 10px;
  border-radius: var(--r-full);
  transition: all var(--dur-fast) var(--ease);
}
.cat-badge:hover { background: var(--brand); color: var(--white); }
.cat-badge-lg { font-size: var(--text-xs); padding: 5px 14px; }

.post-list-title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-900);
}
.post-list-title a { color: inherit; }
.post-list-title a:hover { color: var(--brand); }

.post-list-excerpt {
  font-size: var(--text-sm);
  color: var(--ink-600);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-list-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: var(--space-2);
}
.post-list-meta {
  display: flex; align-items: center; gap: var(--space-4);
  flex-wrap: wrap;
}
.meta-date, .meta-read, .meta-author, .meta-updated {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: var(--text-xs); color: var(--ink-400); font-weight: 500;
}
.read-more-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: var(--text-sm); font-weight: 700; color: var(--brand);
  transition: gap var(--dur-fast) var(--ease);
}
.read-more-btn:hover { gap: var(--space-2); color: var(--brand-dark); }

/* ─── PAGINATION ──────────────────────────────────────────── */
.pagination { margin: var(--space-12) 0 var(--space-4); }
.pagination .page-numbers {
  list-style: none; display: flex; align-items: center; gap: var(--space-2);
  padding: 0; flex-wrap: wrap;
}
.pagination .page-numbers li a,
.pagination .page-numbers li span {
  display: flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 var(--space-3);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-sm);
  font-size: var(--text-sm); font-weight: 600;
  color: var(--ink-700);
  transition: all var(--dur-fast) var(--ease);
}
.pagination .page-numbers li a:hover {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
  box-shadow: 0 2px 8px rgba(22,163,74,.3);
}
.pagination .page-numbers li .current {
  background: var(--brand); color: var(--white); border-color: var(--brand);
}
.pagination .page-numbers li .dots { border: none; pointer-events: none; }

/* ─── BREADCRUMBS ─────────────────────────────────────────── */
.breadcrumbs { margin-bottom: var(--space-6); }
.breadcrumb-list {
  list-style: none; display: flex; align-items: center;
  flex-wrap: wrap; gap: 2px; padding: 0;
}
.breadcrumb-item { display: flex; align-items: center; font-size: var(--text-xs); }
.breadcrumb-item a { color: var(--ink-500, #64748b); font-weight: 500; }
.breadcrumb-item a:hover { color: var(--brand); }
.breadcrumb-item.current span { color: var(--ink-400); }
.breadcrumb-sep { margin: 0 6px; color: var(--ink-300, #cbd5e1); font-size: 10px; }

/* ─── SINGLE ARTICLE ──────────────────────────────────────── */
.article-header { margin-bottom: var(--space-8); }

.article-cats { margin-bottom: var(--space-5); display: flex; gap: var(--space-2); }

.article-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}

.article-meta {
  display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--ink-100);
  border-bottom: 1px solid var(--ink-100);
}
.meta-author {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); font-weight: 600; color: var(--ink-700);
}
.article-featured-img {
  margin: var(--space-8) 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.article-featured-img img { width: 100%; }

/* TOC */
.toc-box {
  background: var(--brand-pale);
  border: 1px solid var(--brand-light);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: var(--space-6) var(--space-8);
  margin: var(--space-8) 0;
}
.toc-title {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--brand);
  margin-bottom: var(--space-4);
  display: flex; align-items: center; gap: var(--space-2);
}
.toc-title::before { content: '§'; font-size: 1em; }
.toc-list { margin: 0; padding-left: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); }
.toc-list li { font-size: var(--text-sm); }
.toc-list a { color: var(--brand-deeper); font-weight: 500; }
.toc-list a:hover { color: var(--brand); text-decoration: underline; }

/* Article Body */
.entry-content {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--ink-800);
}
.entry-content > * + * { margin-top: var(--space-6); }
.entry-content h2 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--ink-900);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--brand-light);
}
.entry-content h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: var(--ink-900);
}
.entry-content h4 { font-size: 1.05rem; font-weight: 700; color: var(--ink-800); margin-top: 1.5rem; }
.entry-content p { margin-bottom: 0; }
.entry-content ul, .entry-content ol { margin: 0; }
.entry-content li { margin-bottom: var(--space-2); }
.entry-content strong { color: var(--ink-900); font-weight: 700; }
.entry-content a {
  color: var(--brand);
  font-weight: 500;
  text-decoration-line: underline;
  text-decoration-color: rgba(22,163,74,.4);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--dur-fast) var(--ease);
}
.entry-content a:hover { color: var(--brand-dark); text-decoration-color: var(--brand-dark); }
.entry-content code {
  background: var(--ink-100);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-sm);
  padding: 2px 7px;
  font-size: .875em;
  font-family: 'Courier New', monospace;
  color: #dc2626;
  cursor: pointer;
}
.entry-content pre {
  background: var(--ink-900);
  color: #e2e8f0;
  padding: var(--space-6);
  border-radius: var(--r-lg);
  overflow-x: auto;
  font-size: .9em;
  line-height: 1.6;
}
.entry-content blockquote {
  border-left: 4px solid var(--brand);
  background: var(--brand-pale);
  padding: var(--space-5) var(--space-6);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-style: italic;
  color: var(--ink-700);
  font-size: 1.05em;
}
.entry-content blockquote p { margin: 0; }
.entry-content hr {
  border: none;
  border-top: 2px solid var(--ink-100);
  margin: var(--space-10) 0;
}
.entry-content table {
  width: 100%; border-collapse: collapse;
  font-size: .95rem; overflow-x: auto; display: block;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.entry-content table th {
  background: var(--brand);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: var(--text-sm);
}
.entry-content table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--ink-100);
  vertical-align: top;
}
.entry-content table tr:nth-child(even) td { background: var(--ink-50); }
.entry-content table tr:hover td { background: var(--brand-pale); }
.entry-content dl { margin: 0; }
.entry-content dt { font-weight: 700; color: var(--ink-900); margin-bottom: var(--space-1); }
.entry-content dd { margin: 0 0 var(--space-5) var(--space-5); color: var(--ink-700); }

/* Highlight box — for callouts with class="highlight-box" */
.entry-content .highlight-box,
.entry-content p.highlight-box {
  background: linear-gradient(135deg, var(--brand-pale), var(--brand-light));
  border: 1px solid var(--brand-light);
  border-radius: var(--r-md);
  padding: var(--space-5) var(--space-6);
  font-weight: 500;
}

/* Article Footer */
.article-footer { margin-top: var(--space-12); padding-top: var(--space-8); border-top: 2px solid var(--ink-100); }
.article-tags { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-6); }
.tag-pill {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  color: var(--ink-600);
  font-weight: 600;
  transition: all var(--dur-fast) var(--ease);
}
.tag-pill:hover { background: var(--brand); color: var(--white); border-color: var(--brand); }

.article-share {
  display: flex; align-items: center; gap: var(--space-3);
  flex-wrap: wrap; margin-bottom: var(--space-8);
}
.article-share strong { font-size: var(--text-sm); color: var(--ink-700); }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px;
  border-radius: var(--r-sm);
  font-size: var(--text-xs); font-weight: 700;
  letter-spacing: .02em;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.share-btn:hover { opacity: .88; transform: translateY(-1px); }
.share-twitter { background: #000; color: #fff; }
.share-facebook { background: #1877f2; color: #fff; }
.share-pinterest { background: #e60023; color: #fff; }

.article-author-box {
  display: flex; gap: var(--space-5); align-items: flex-start;
  background: var(--ink-50);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-xl);
  padding: var(--space-8);
}
.author-avatar { border-radius: 50%; flex-shrink: 0; border: 3px solid var(--brand-light); }
.author-name { font-weight: 800; font-size: var(--text-base); margin-bottom: var(--space-2); }
.author-bio { font-size: var(--text-sm); color: var(--ink-600); line-height: 1.7; }

/* Related Posts */
.related-posts { margin-top: var(--space-16); }
.related-title {
  font-size: var(--text-2xl);
  font-weight: 900;
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--brand-light);
  letter-spacing: -0.01em;
}
.related-grid { grid-template-columns: repeat(4,1fr); }
.related-grid .post-card-title { font-size: var(--text-base); }

/* ─── SIDEBAR ─────────────────────────────────────────────── */
.sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: var(--space-6); }

.widget {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.widget-title {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-500, #64748b);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--ink-100);
  background: var(--ink-50);
  margin: 0;
}

/* CTA Widget */
.sidebar-cta-box {
  background: linear-gradient(145deg, var(--brand-deeper) 0%, #15803d 60%, #166534 100%);
  color: var(--white);
  padding: var(--space-8) var(--space-6);
  text-align: center;
}
.sidebar-cta-box .cta-icon { font-size: 2.8rem; margin-bottom: var(--space-4); display: block; }
.sidebar-cta-box h4 { font-family: var(--font-serif); font-size: var(--text-xl); color: var(--white); margin-bottom: var(--space-3); line-height: 1.3; }
.sidebar-cta-box p { font-size: var(--text-sm); color: rgba(255,255,255,.8); margin-bottom: var(--space-5); line-height: 1.6; }
.sidebar-cta-box .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(245,158,11,.4);
}
.sidebar-cta-box .btn-primary:hover {
  background: #d97706;
  border-color: #d97706;
  box-shadow: 0 6px 18px rgba(245,158,11,.5);
}
.cta-disclosure { font-size: 10px; color: rgba(255,255,255,.45); margin-top: var(--space-3) !important; }

/* Search Widget */
.widget-search { padding: var(--space-4) var(--space-5); }
.widget-search .search-form { display: flex; }
.widget-search .search-field {
  flex: 1; padding: 9px 12px;
  border: 1px solid var(--ink-200);
  border-right: none;
  border-radius: var(--r-sm) 0 0 var(--r-sm);
  font-size: var(--text-sm);
  background: var(--ink-50);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease);
}
.widget-search .search-field:focus { border-color: var(--brand); background: var(--white); }
.widget-search .search-submit {
  padding: 9px 16px;
  background: var(--brand);
  color: var(--white);
  border: 1px solid var(--brand);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  cursor: pointer; font-weight: 700; font-size: var(--text-sm);
  transition: background var(--dur-fast) var(--ease);
}
.widget-search .search-submit:hover { background: var(--brand-dark); border-color: var(--brand-dark); }

/* Recent Posts Widget */
.recent-posts-list { list-style: none; padding: 0; }
.recent-post-item {
  display: flex; gap: var(--space-3); align-items: flex-start;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--ink-100);
  transition: background var(--dur-fast) var(--ease);
}
.recent-post-item:last-child { border-bottom: none; }
.recent-post-item:hover { background: var(--ink-50); }
.recent-thumb-link img {
  width: 60px; height: 60px;
  object-fit: cover;
  border-radius: var(--r-sm);
  flex-shrink: 0;
}
.recent-post-text { min-width: 0; }
.recent-post-title {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-800);
  line-height: 1.4;
  margin-bottom: var(--space-1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recent-post-title:hover { color: var(--brand); }
.recent-date { font-size: 11px; color: var(--ink-400); font-weight: 500; }

/* Categories Widget */
.cat-list { list-style: none; padding: 0; }
.cat-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--ink-100);
  font-size: var(--text-sm);
  transition: background var(--dur-fast) var(--ease);
}
.cat-list li:last-child { border-bottom: none; }
.cat-list li:hover { background: var(--ink-50); }
.cat-list a { color: var(--ink-700); font-weight: 600; }
.cat-list a:hover { color: var(--brand); }
.cat-list .count {
  font-size: 11px; color: var(--ink-400);
  background: var(--ink-100);
  padding: 2px 8px; border-radius: var(--r-full);
  font-weight: 600;
}

/* Tip box */
.sidebar-tip-box {
  margin: 0;
  background: var(--accent-light);
  border: 1px solid #fde68a;
  border-left: 4px solid var(--accent);
  border-radius: var(--r-md);
  padding: var(--space-5) var(--space-5);
}
.sidebar-tip-box h4 { font-size: var(--text-base); font-weight: 700; margin-bottom: var(--space-2); }
.sidebar-tip-box p { font-size: var(--text-sm); color: var(--ink-700); margin-bottom: var(--space-3); line-height: 1.6; }
.text-link { font-size: var(--text-sm); font-weight: 700; color: var(--brand); }

/* ─── STATIC PAGES ────────────────────────────────────────── */
.static-page .page-header { margin-bottom: var(--space-8); padding-bottom: var(--space-6); border-bottom: 2px solid var(--ink-100); }
.page-title { font-size: var(--text-4xl); font-weight: 900; letter-spacing: -0.02em; }
.page-featured-img { margin-bottom: var(--space-8); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.legal-page-content { max-width: 800px; }

/* ─── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: var(--ink-900);
  color: rgba(255,255,255,.75);
  margin-top: var(--space-24);
}

.footer-top {
  padding: var(--space-20) 0 var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
}

.footer-brand {}
.footer-site-name {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--white);
  margin-bottom: var(--space-4);
  background: linear-gradient(135deg, #4ade80, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-tagline {
  font-size: var(--text-base);
  color: rgba(255,255,255,.55);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.footer-social { display: flex; gap: var(--space-3); }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-sm);
  color: rgba(255,255,255,.7);
  font-weight: 800; font-size: var(--text-sm);
  transition: all var(--dur-fast) var(--ease);
}
.footer-social a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-col-title {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--white);
  margin-bottom: var(--space-5);
}

.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.55);
  transition: color var(--dur-fast) var(--ease);
}
.footer-links a:hover { color: #4ade80; }

.footer-bottom {
  padding: var(--space-6) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.footer-copyright { font-size: var(--text-xs); color: rgba(255,255,255,.35); }
.footer-copyright a { color: rgba(255,255,255,.5); }
.footer-copyright a:hover { color: #4ade80; }
.footer-disclosure { font-size: var(--text-xs); color: rgba(255,255,255,.3); max-width: 480px; }
.footer-disclosure a { color: rgba(255,255,255,.5); }

/* ─── 404 PAGE ───────────────────────────────────────────── */
.error-404-wrap { padding: var(--space-24) var(--space-4); text-align: center; max-width: 540px; margin: 0 auto; }
.error-404-code {
  font-family: var(--font-serif);
  font-size: 9rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--brand-light), var(--brand-pale));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-4);
}
.error-404-title { font-size: var(--text-3xl); margin-bottom: var(--space-4); }
.error-404-text { color: var(--ink-600); font-size: var(--text-lg); margin-bottom: var(--space-8); }

/* ─── NO RESULTS ─────────────────────────────────────────── */
.no-results {
  padding: var(--space-16) var(--space-8);
  text-align: center;
  background: var(--ink-50);
  border-radius: var(--r-xl);
  border: 1px solid var(--ink-200);
}
.no-results h2 { margin-bottom: var(--space-3); }
.no-results p { color: var(--ink-600); margin-bottom: var(--space-6); }

/* ─── SEARCH FORM ─────────────────────────────────────────── */
.search-form { display: flex; gap: 0; max-width: 480px; }
.search-field {
  flex: 1; padding: 11px 16px;
  border: 2px solid var(--ink-200);
  border-right: none;
  border-radius: var(--r-sm) 0 0 var(--r-sm);
  font-size: var(--text-sm);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease);
  background: var(--white);
}
.search-field:focus { border-color: var(--brand); }
.search-submit {
  padding: 11px 22px;
  background: var(--brand);
  color: var(--white);
  border: 2px solid var(--brand);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  cursor: pointer; font-weight: 700; font-size: var(--text-sm);
  transition: background var(--dur-fast) var(--ease);
}
.search-submit:hover { background: var(--brand-dark); border-color: var(--brand-dark); }

/* ─── PROGRESS BAR ───────────────────────────────────────── */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px;
  width: 0%; background: linear-gradient(90deg, var(--brand), #4ade80);
  z-index: 9999; transition: width .1s linear;
}

/* ─── BACK TO TOP ────────────────────────────────────────── */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 46px; height: 46px;
  background: var(--brand);
  color: var(--white);
  border: none; border-radius: var(--r-full);
  font-size: 1.4rem; cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(16px);
  transition: all var(--dur) var(--ease);
  z-index: 900;
  display: flex; align-items: center; justify-content: center;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: var(--shadow-xl); }

/* ─── PRINT ──────────────────────────────────────────────── */
@media print {
  .site-header, .sidebar, .site-footer, .back-to-top, .hero-section,
  .related-posts, .article-share, .article-author-box, .pagination,
  .category-pills-section, .disclosure-band, .progress-bar { display: none !important; }
  .content-sidebar-wrap { display: block; }
  body { font-size: 12pt; }
}

/* ─── RESPONSIVE : TABLET (≤1024px) ─────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--space-10); }
  .hero-stats { max-width: 480px; }
  .hero-stats-grid { grid-template-columns: repeat(4,1fr); }
  .topics-grid { grid-template-columns: repeat(2,1fr); }
  .related-grid { grid-template-columns: repeat(2,1fr); }
  .content-sidebar-wrap { grid-template-columns: 1fr 300px; gap: var(--space-8); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}

/* ─── RESPONSIVE : MOBILE (≤768px) ──────────────────────── */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .primary-nav {
    position: fixed;
    inset: 68px 0 0;
    background: var(--white);
    border-top: 1px solid var(--ink-200);
    padding: var(--space-6) var(--space-6) var(--space-8);
    transform: translateX(100%);
    transition: transform var(--dur) var(--ease);
    overflow-y: auto;
    z-index: 999;
  }
  .primary-nav.open { transform: translateX(0); }
  .primary-nav .nav-menu { flex-direction: column; align-items: stretch; gap: var(--space-2); }
  .primary-nav .nav-menu > li > a { padding: var(--space-4); font-size: var(--text-base); }

  .hero-section { padding: var(--space-16) 0 var(--space-12); }
  .hero-title { font-size: clamp(1.7rem, 6vw, 2.4rem); }
  .hero-stats-grid { grid-template-columns: repeat(2,1fr); }
  .hero-actions { flex-direction: column; align-items: flex-start; }

  .content-sidebar-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }

  .home-grid { grid-template-columns: 1fr; }
  .post-card.is-featured { flex-direction: column; grid-column: unset; }
  .post-card.is-featured .post-card-thumb { width: 100%; aspect-ratio: 16/9; }
  .topics-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }

  .post-list-item { grid-template-columns: 140px 1fr; gap: var(--space-4); }
  .article-title { font-size: 1.65rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: var(--space-16) 0; }
}

/* ─── RESPONSIVE : SMALL (≤480px) ───────────────────────── */
@media (max-width: 480px) {
  .container { padding-inline: var(--space-4); }
  .hero-title { font-size: 1.6rem; }
  .section-title { font-size: var(--text-2xl); }
  .post-list-item { grid-template-columns: 1fr; }
  .post-list-thumb-wrap { aspect-ratio: 16/9; }
  .topics-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .article-title { font-size: 1.45rem; }
  .entry-content h2 { font-size: 1.3rem; }
  .hero-stats-grid { grid-template-columns: repeat(2,1fr); }
  .error-404-code { font-size: 6rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .article-meta { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
}
