/* ============================================================
   RevenueFlows AI — Blog System
   Extends theme.css. No emoji bubbles. Editorial-grade design.
   ============================================================ */

/* ===== SHARED TOKENS ===== */
.blog-body {
  --blog-content-width: 760px;
  --blog-grid-width: 1160px;
  --serif: var(--font);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.banner-pill {
  display: inline-block; background: rgba(255,255,255,0.15); padding: 2px 10px;
  border-radius: 100px; font-size: 12px; font-weight: 700; margin-right: 10px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.active-link { color: var(--primary) !important; }

/* ===== BLOG HERO ===== */
.blog-hero {
  position: relative;
  padding: 80px 24px 56px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(62,87,218,0.12), transparent 70%),
    var(--white);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000, transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}
.blog-hero-inner { position: relative; max-width: var(--blog-grid-width); margin: 0 auto; text-align: center; }
.blog-hero h1 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -2px;
  margin: 20px auto 20px;
  max-width: 900px;
}
.blog-hero h1 .accent {
  background: linear-gradient(135deg, var(--primary) 0%, var(--cta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.blog-hero-sub {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.blog-search {
  position: relative;
  max-width: 560px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 18px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.blog-search:focus-within { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.blog-search svg { color: var(--text-muted); flex-shrink: 0; }
.blog-search input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 16px; font-family: var(--font); padding: 10px 0;
  color: var(--text-heading);
}
.blog-search input::placeholder { color: var(--text-muted); }
.blog-hero-stats {
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
  font-size: 14px; color: var(--text-muted);
  margin-top: 8px;
}
.blog-hero-stats strong { color: var(--text-heading); font-weight: 800; font-size: 18px; display: block; }

/* ===== CATEGORY BAR (inline, non-sticky) ===== */
.category-bar {
  background: transparent;
  padding: 4px 0 0;
}
.category-bar-inner {
  max-width: var(--blog-grid-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-bar-inner::-webkit-scrollbar { display: none; }
.cat-chip {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 600;
  color: var(--text-body);
  background: var(--surface-light);
  border: 1.5px solid transparent;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}
.cat-chip:hover { background: var(--white); border-color: var(--primary); color: var(--primary); }
.cat-chip.active { background: var(--text-heading); color: white; border-color: var(--text-heading); }

/* ===== FEATURED POST ===== */
.featured-section {
  max-width: var(--blog-grid-width);
  margin: 56px auto 0;
  padding: 0 24px;
}
.featured-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--duration) var(--ease);
}
.featured-card:hover { box-shadow: var(--shadow-lg); }
.featured-cover { display: block; }
.featured-cover .post-cover { border-radius: 0; }
.featured-body { padding: 40px 48px 40px 0; }
.featured-body h2 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin: 12px 0 16px;
}
.featured-body h2 a { color: inherit; transition: color var(--duration) var(--ease); }
.featured-body h2 a:hover { color: var(--primary); }
.featured-body p { font-size: 17px; line-height: 1.6; color: var(--text-muted); margin-bottom: 20px; }
.featured-body .post-meta { margin-bottom: 24px; }
.featured-body .btn { margin-top: 8px; }

/* ===== POST GRID ===== */
.post-grid-section {
  max-width: var(--blog-grid-width);
  margin: 80px auto 0;
  padding: 0 24px;
}
.section-head { margin-bottom: 32px; }
.section-head h2 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.8px;
}
.section-head .section-sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 6px;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ===== POST CARD ===== */
.post-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--duration) var(--ease);
}
.post-card:hover { transform: translateY(-4px); }
.post-card:hover .post-cover { transform: scale(1.02); }
.post-card-cover { display: block; overflow: hidden; border-radius: var(--radius); }
.post-card-cover .post-cover { transition: transform 0.5s var(--ease); }
.post-card-body {
  padding: 20px 4px 0;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
.post-card-cat {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--primary);
  transition: color var(--duration) var(--ease);
}
.post-card-cat:hover { color: var(--cta); }
.post-card h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.22;
  letter-spacing: -0.5px;
}
.post-card h3 a { color: var(--text-heading); transition: color var(--duration) var(--ease); }
.post-card h3 a:hover { color: var(--primary); }
.post-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ===== POST META ===== */
.post-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
}
.author-chip {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--cta) 100%);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  flex-shrink: 0;
  letter-spacing: 0.4px;
  overflow: hidden;
}
.author-chip img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.author-chip.lg { width: 44px; height: 44px; font-size: 15px; }
.author-chip.xl { width: 64px; height: 64px; font-size: 20px; }
.meta-lines { display: flex; flex-direction: column; gap: 2px; }
.author-name { font-size: 14px; font-weight: 700; color: var(--text-heading); }
.author-name a { color: inherit; }
.author-name a:hover { color: var(--primary); }
.meta-sub { font-size: 13px; color: var(--text-muted); }
.dot { margin: 0 4px; color: var(--muted); }

/* ===== POST COVER (typographic, no emoji) ===== */
.post-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  color: white;
  isolation: isolate;
}
.post-cover.post-cover-hero {
  aspect-ratio: 16 / 7;
  max-width: 1000px;
  margin: 40px auto 0;
  border-radius: var(--radius);
}
.cover-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 60% at 80% 20%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 80% 20%, #000, transparent 80%);
  pointer-events: none;
}
.cover-inner {
  position: relative; z-index: 1;
  height: 100%;
  padding: 28px;
  display: flex; flex-direction: column;
  justify-content: flex-end;
}
.cover-kicker {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px;
  color: rgba(255,255,255,0.78);
  margin-bottom: auto;
  padding-bottom: 12px;
}
.cover-stat {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1;
  letter-spacing: -2px;
  color: white;
  margin-bottom: 6px;
}
.cover-stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.82);
  max-width: 80%;
}
.cover-brand {
  position: absolute;
  top: 24px; right: 28px;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px;
  color: rgba(255,255,255,0.64);
}
.post-cover-hero .cover-stat { font-size: clamp(56px, 9vw, 120px); }
.post-cover-hero .cover-inner { padding: 40px 48px; }

/* ===== TOPIC GRID ===== */
.topics-section {
  max-width: var(--blog-grid-width);
  margin: 80px auto 0;
  padding: 0 24px;
}
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.topic-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface-light);
  border: 1px solid var(--border);
  transition: all var(--duration) var(--ease);
  min-height: 200px;
  display: flex; flex-direction: column;
}
.topic-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.topic-count {
  font-size: 12px; font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 8px;
}
.topic-name {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.6px;
  color: var(--text-heading);
  margin-bottom: 8px;
  line-height: 1.15;
}
.topic-desc { font-size: 14px; color: var(--text-muted); line-height: 1.55; flex: 1; }
.topic-arrow {
  font-size: 22px; font-weight: 600;
  color: var(--primary);
  margin-top: 16px;
  transition: transform var(--duration) var(--ease);
}
.topic-card:hover .topic-arrow { transform: translateX(4px); }

/* ===== CATEGORY HERO ===== */
.category-hero {
  text-align: center;
  padding: 64px 24px 40px;
  background: var(--surface-light);
  border-bottom: 1px solid var(--border);
}
.category-hero h1 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -1.5px;
  margin: 16px auto 12px;
}
.category-hero p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 17px;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  max-width: var(--blog-content-width);
  margin: 32px auto 0;
  padding: 0 24px;
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  font-size: 13px; color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); transition: color var(--duration) var(--ease); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--muted); }

/* ===== POST PAGE ===== */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--cta) 100%);
  z-index: 200;
  transition: width 0.15s linear;
}
.post {
  max-width: var(--blog-content-width);
  margin: 0 auto;
  padding: 24px 24px 60px;
}
.post-head { text-align: center; padding: 32px 0 40px; }
.post-head h1 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -1.6px;
  margin: 16px auto 20px;
  max-width: 18ch;
}
.post-lead {
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 28px;
}
.post-byline {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  padding: 8px 16px 8px 8px;
  background: var(--surface-light);
  border-radius: var(--radius-pill);
}

/* Post body typography */
.post-body {
  max-width: var(--blog-content-width);
  margin: 48px auto 0;
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-body);
}
.post-body > p,
.post-body > ul,
.post-body > ol,
.post-body > blockquote,
.post-body > h2,
.post-body > h3,
.post-body > h4,
.post-body > table,
.post-body > aside,
.post-body > pre {
  margin-bottom: 28px;
}
.post-body h2 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 34px;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-top: 56px;
  margin-bottom: 16px;
}
.post-body h3 {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.4px;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text-heading);
}
.post-body h4 { font-weight: 700; font-size: 18px; margin-top: 24px; color: var(--text-heading); }
.post-body p { font-size: 18px; line-height: 1.75; }
.post-body strong { color: var(--text-heading); font-weight: 700; }
.post-body a { color: var(--primary); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.post-body a:hover { color: var(--cta); }
.post-body ul, .post-body ol { padding-left: 22px; }
.post-body ul li, .post-body ol li { margin-bottom: 8px; list-style-position: outside; }
.post-body ul li { list-style: disc; }
.post-body ol li { list-style: decimal; }
.post-body ul li::marker, .post-body ol li::marker { color: var(--primary); font-weight: 700; }
.post-body blockquote {
  padding: 16px 24px;
  border-left: 4px solid var(--primary);
  background: var(--primary-light);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--text-heading);
}
.post-body code {
  background: var(--surface-light);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--primary);
}
.post-body pre {
  background: var(--near-black);
  color: #e3ebff;
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
}
.post-body pre code { background: transparent; border: 0; color: inherit; padding: 0; }
.post-body table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 15px;
}
.post-body thead th {
  background: var(--surface-light);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-heading);
  border-bottom: 1px solid var(--border);
}
.post-body tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.post-body tbody tr:last-child td { border-bottom: none; }
.post-body tbody tr:hover { background: var(--surface-light); }

/* ===== STAT CALLOUT ===== */
.stat-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 28px 32px;
  background: linear-gradient(135deg, var(--dark-purple) 0%, var(--primary) 100%);
  border-radius: var(--radius);
  color: white;
  position: relative;
  overflow: hidden;
  margin: 40px 0 !important;
}
.stat-callout::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.stat-callout .stat-value {
  position: relative;
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -1.5px;
  white-space: nowrap;
}
.stat-callout .stat-label {
  position: relative;
  grid-column: 1;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: rgba(255,255,255,0.72);
  margin-top: 4px;
}
.stat-callout .stat-body {
  position: relative;
  grid-column: 2;
  grid-row: 1 / 3;
  font-size: 17px;
  line-height: 1.5;
  color: rgba(255,255,255,0.92);
  border-left: 1px solid rgba(255,255,255,0.18);
  padding-left: 24px;
}
.stat-callout .stat-body p { color: inherit; font-size: inherit; margin: 0; }

/* ===== HIGHLIGHT BOX ===== */
.highlight-box {
  padding: 24px 28px;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-left: 4px solid var(--cta);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 40px 0 !important;
}
.highlight-box p {
  margin: 0 !important;
  font-size: 17px !important;
  line-height: 1.6 !important;
  color: var(--text-heading) !important;
  font-weight: 500;
}

/* ===== OPT-IN INLINE ===== */
.optin-inline {
  margin: 48px 0 !important;
  padding: 40px;
  background: linear-gradient(135deg, var(--surface-light) 0%, var(--surface-lavender) 100%);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.optin-inline::before {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(255,73,44,0.16) 0%, transparent 70%);
  pointer-events: none;
}
.optin-inline-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.optin-inline-content .badge { margin-bottom: 10px; background: var(--cta); color: white; }
.optin-inline-content h3 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.6px;
  margin-bottom: 8px;
}
.optin-inline-content p { font-size: 15px; color: var(--text-muted); margin: 0; }
.optin-inline-form {
  display: flex; flex-direction: column; gap: 14px;
}
.optin-inline-form input {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px; font-family: var(--font);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  transition: border-color var(--duration) var(--ease);
  margin-bottom: 4px;
}
.optin-inline-form input:focus { outline: none; border-color: var(--primary); }
.optin-inline-form button { width: 100%; justify-content: center; padding: 16px 24px; }
.optin-inline-form .form-status {
  font-size: 13px; color: var(--text-muted);
  min-height: 18px; text-align: center; margin: 0;
}
.optin-inline-form .form-status.success { color: var(--primary); font-weight: 600; }
.optin-inline-form .form-status.error { color: var(--cta); font-weight: 600; }
.optin-fine { font-size: 12px; color: var(--text-muted); text-align: center; margin: 8px 0 0 !important; line-height: 1.5; }

/* Opt-in section on home */
.optin-section {
  max-width: var(--blog-grid-width);
  margin: 80px auto 0;
  padding: 0 24px;
}

/* ===== SHARE BAR ===== */
.share-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 24px 0;
  margin: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.share-label {
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-muted);
  margin-right: 6px;
}
.share-btn {
  width: 40px; height: 40px;
  border-radius: var(--radius-pill);
  background: var(--surface-light);
  color: var(--text-body);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  position: relative;
  padding: 0;
}
.share-btn:hover { background: var(--primary); color: white; border-color: var(--primary); transform: translateY(-1px); }
.share-btn .copied-label {
  position: absolute;
  top: -28px; left: 50%; transform: translateX(-50%);
  background: var(--text-heading); color: white;
  padding: 4px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 600;
  opacity: 0; transition: opacity 0.15s ease;
  pointer-events: none;
}
.share-btn.copied .copied-label { opacity: 1; }

/* ===== AUTHOR BOX ===== */
.author-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 32px;
  background: var(--surface-light);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 48px 0;
}
.author-box-body .badge { margin-bottom: 8px; }
.author-box-body h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.author-box-body p { font-size: 15px; color: var(--text-muted); margin-bottom: 14px; }

/* ===== FAQ ===== */
.faq-section { margin: 64px 0; }
.faq-section h2 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.8px;
  margin-bottom: 24px;
}
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--duration) var(--ease);
}
.faq-item:hover { border-color: var(--primary); }
.faq-item summary {
  list-style: none;
  padding: 18px 48px 18px 24px;
  font-size: 16px; font-weight: 600;
  color: var(--text-heading);
  cursor: pointer;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  top: 50%; right: 24px;
  transform: translateY(-50%);
  font-size: 22px; font-weight: 500;
  color: var(--primary);
  transition: transform var(--duration) var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-answer { padding: 0 24px 20px; }
.faq-answer p { font-size: 15px; line-height: 1.7; color: var(--text-muted); }

/* ===== RELATED ===== */
.related-section {
  max-width: var(--blog-grid-width);
  margin: 64px auto 0;
  padding: 0 24px;
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter-section {
  max-width: var(--blog-grid-width);
  margin: 80px auto 0;
  padding: 0 24px;
}
.newsletter-card {
  background: linear-gradient(135deg, var(--dark-purple) 0%, var(--dark) 100%);
  color: white;
  text-align: center;
  padding: 64px 48px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.newsletter-card::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent 70%);
  pointer-events: none;
}
.newsletter-card > * { position: relative; }
.newsletter-card .badge { background: rgba(255,255,255,0.12); color: white; margin-bottom: 16px; }
.newsletter-card h2 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(28px, 3.5vw, 42px);
  letter-spacing: -1px;
  color: white;
  margin-bottom: 12px;
}
.newsletter-card p {
  color: rgba(255,255,255,0.78);
  max-width: 540px;
  margin: 0 auto 28px;
  font-size: 16px;
}
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 16px 20px;
  font-size: 16px;
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  color: white;
  font-family: var(--font);
  transition: border-color var(--duration) var(--ease);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form input:focus { outline: none; border-color: var(--primary); }
.newsletter-form button { padding: 16px 24px; white-space: nowrap; }
.newsletter-status {
  min-height: 18px;
  margin: 12px auto 0;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  text-align: center;
}
.newsletter-status.success { color: #7FFAD8; font-weight: 600; }
.newsletter-status.error { color: #FF9D7A; font-weight: 600; }
.newsletter-fine {
  margin-top: 16px !important;
  font-size: 12px !important;
  color: rgba(255,255,255,0.5) !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-card { grid-template-columns: 1fr; gap: 0; }
  .featured-body { padding: 32px; }
}
@media (max-width: 768px) {
  .blog-hero { padding: 56px 20px 40px; }
  .blog-hero h1 { font-size: 38px; letter-spacing: -1px; }
  .blog-hero-stats { gap: 24px; }
  .post-grid { grid-template-columns: 1fr; gap: 40px; }
  .topic-grid { grid-template-columns: 1fr; }
  .featured-body { padding: 24px 20px 28px; }
  .post { padding: 16px 20px 48px; }
  .post-body { font-size: 17px; }
  .post-body h2 { font-size: 26px; }
  .post-body h3 { font-size: 19px; }
  .stat-callout { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
  .stat-callout .stat-body { grid-column: 1; grid-row: auto; border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.18); padding-top: 16px; }
  .optin-inline { padding: 24px; }
  .optin-inline-grid { grid-template-columns: 1fr; gap: 24px; }
  .newsletter-card { padding: 48px 24px; }
  .newsletter-form { flex-direction: column; }
  .author-box { grid-template-columns: 1fr; gap: 16px; padding: 24px; text-align: left; }
  .category-bar { top: 56px; }
  .category-hero { padding: 48px 20px 32px; }
  .post-cover-hero { margin: 24px auto 0; }
  .post-cover-hero .cover-inner { padding: 24px; }
}
