/* ============================================
   THE INSURANCE LEDGER — Design System
   Ink Navy #14213D · Paper White #FFFFFF · Slate #F4F6F8
   Signal Gold #C99A3B · Deep Teal #0F5257
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --ink: #14213D;
  --paper: #FFFFFF;
  --slate: #F4F6F8;
  --slate-line: #E3E7EB;
  --gold: #C99A3B;
  --gold-dark: #A87F2B;
  --teal: #0F5257;
  --text-body: #3F4A5A;
  --text-muted: #6B7688;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;
  --max-w: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text-body);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ---------- Ledger rule motif (signature element) ---------- */
.ledger-rule {
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--slate-line) 0 6px, transparent 6px 10px);
  margin: 40px 0;
}
.ledger-rule.solid { background: var(--slate-line); }

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(135deg, var(--ink) 0%, #1B2E52 100%);
  color: #fff;
  border-bottom: 3px solid var(--gold);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.logo .mark {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 2px 6px;
  border-radius: 2px;
  letter-spacing: 0.08em;
  transform: translateY(-2px);
}
nav.main-nav {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 500;
}
nav.main-nav a {
  color: #D8DEE9;
  transition: color 0.15s;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  position: relative;
}
nav.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}
nav.main-nav a:hover::after { width: 100%; }
nav.main-nav a:hover { color: var(--gold); border-bottom-color: transparent; }
.mobile-toggle { display: none; }

/* ---------- Ticker strip ---------- */
.ticker-strip {
  background: var(--teal);
  color: #E6F2F1;
  font-family: var(--mono);
  font-size: 0.78rem;
  padding: 7px 24px;
  text-align: center;
  letter-spacing: 0.02em;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}
.fade-in { animation: fadeInUp 0.6s ease-out both; }
.fade-in:nth-child(1) { animation-delay: 0.05s; }
.fade-in:nth-child(2) { animation-delay: 0.12s; }
.fade-in:nth-child(3) { animation-delay: 0.19s; }
.fade-in:nth-child(4) { animation-delay: 0.26s; }
.fade-in:nth-child(5) { animation-delay: 0.33s; }

/* ---------- Hero (gradient + decorative icon) ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--slate) 0%, #EAF0EC 45%, #F3EDDD 100%);
  border-bottom: 1px solid var(--slate-line);
  padding: 64px 0 52px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(201,154,59,0.16) 0%, transparent 70%);
  border-radius: 50%;
  animation: floatSlow 8s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 10%;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(15,82,87,0.10) 0%, transparent 70%);
  border-radius: 50%;
  animation: floatSlow 10s ease-in-out infinite reverse;
}
.hero .wrap { position: relative; z-index: 1; }
.icon-badge {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--ink), var(--teal));
  border-radius: 10px;
  margin-bottom: 14px;
  box-shadow: 0 8px 20px rgba(20,33,61,0.18);
}
.icon-badge svg { width: 22px; height: 22px; stroke: var(--gold); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  display: block;
}
.hero h1 {
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1.15;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 16px;
}
.hero p.lede {
  font-size: 1.08rem;
  color: var(--text-body);
  max-width: 52ch;
}
.hero-side {
  border-left: 1px dashed var(--slate-line);
  padding-left: 32px;
}
.hero-side h3 {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.mini-list { list-style: none; }
.mini-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--slate-line);
  font-size: 0.94rem;
}
.mini-list li a { color: var(--ink); font-weight: 500; }
.mini-list li a:hover { color: var(--gold-dark); }
.mini-list li:last-child { border-bottom: none; }

/* ---------- Section headings (with gradient accent) ---------- */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 14px;
  position: relative;
}
.section-head::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 30%, var(--slate-line) 30%);
}
.section-head h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--ink);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-icon {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--slate);
  border-radius: 8px;
  flex-shrink: 0;
}
.section-icon svg { width: 18px; height: 18px; stroke: var(--teal); }
.section-head .view-all {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--teal);
}

/* ---------- Article grid / cards ---------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 56px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--slate-line);
  border-radius: 8px;
  padding: 22px;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.card:hover {
  box-shadow: 0 14px 32px rgba(20,33,61,0.14);
  transform: translateY(-4px) scale(1.01);
  border-color: transparent;
}
.card:hover::before { transform: scaleX(1); }
.card .tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  background: #E9F3F2;
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 12px;
}
.card h3 {
  font-family: var(--serif);
  font-size: 1.18rem;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 10px;
  font-weight: 600;
}
.card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 14px; }
.card .meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--slate-line);
  padding-top: 10px;
}

/* ---------- Category pills ---------- */
.cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.cat-pills a {
  font-family: var(--mono);
  font-size: 0.78rem;
  border: 1px solid var(--slate-line);
  padding: 7px 14px;
  border-radius: 20px;
  color: var(--ink);
}
.cat-pills a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Article page ---------- */
.article-header {
  position: relative;
  background: linear-gradient(135deg, var(--slate) 0%, #EEF2ED 100%);
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--slate-line);
  overflow: hidden;
}
.article-header::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(201,154,59,0.14) 0%, transparent 70%);
  border-radius: 50%;
}
.breadcrumb { font-family: var(--mono); font-size: 0.75rem; color: var(--text-muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--teal); }
.article-header h1 {
  font-family: var(--serif);
  font-size: 2.3rem;
  line-height: 1.2;
  color: var(--ink);
  font-weight: 700;
  max-width: 42ch;
  margin-bottom: 20px;
}
.byline {
  display: flex;
  gap: 18px;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.byline .author { color: var(--ink); font-weight: 500; }
.byline span::before { content: '·'; margin-right: 18px; color: var(--slate-line); }
.byline span:first-child::before { content: none; margin-right: 0; }

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 24px;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--text-body);
}
.article-body h2 {
  font-family: var(--serif);
  font-size: 1.55rem;
  color: var(--ink);
  margin: 42px 0 16px;
  font-weight: 700;
}
.article-body h3 {
  font-family: var(--serif);
  font-size: 1.22rem;
  color: var(--ink);
  margin: 30px 0 12px;
  font-weight: 600;
}
.article-body p { margin-bottom: 20px; }
.article-body ul, .article-body ol { margin: 0 0 20px 22px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--ink); }
.article-body a { color: var(--teal); text-decoration: underline; text-decoration-color: var(--slate-line); }
.article-body blockquote {
  border-left: 3px solid var(--gold);
  background: var(--slate);
  padding: 18px 22px;
  margin: 28px 0;
  font-style: italic;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1rem;
}
.callout {
  background: #FBF6EA;
  border: 1px solid #EBD9AE;
  border-radius: 4px;
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 0.98rem;
}
.callout strong { color: var(--gold-dark); }
.pull-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.95rem; }
.pull-table th, .pull-table td { border: 1px solid var(--slate-line); padding: 10px 12px; text-align: left; }
.pull-table th { background: var(--slate); font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink); }

.author-box {
  max-width: 720px;
  margin: 40px auto;
  padding: 24px;
  background: var(--slate);
  border-radius: 4px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.author-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--ink); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; font-size: 1.2rem;
  flex-shrink: 0;
}
.author-box .name { font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.author-box .bio { font-size: 0.88rem; color: var(--text-muted); }

.disclaimer-box {
  max-width: 720px;
  margin: 24px auto 0;
  padding: 16px 20px;
  border: 1px dashed var(--slate-line);
  font-size: 0.82rem;
  color: var(--text-muted);
  border-radius: 4px;
}

.related-strip { background: var(--slate); padding: 48px 0; margin-top: 40px; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: linear-gradient(180deg, var(--ink) 0%, #0F1A30 100%);
  color: #B9C2D4;
  padding: 48px 0 24px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h4 {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; font-size: 0.88rem; }
.footer-grid li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid #2A3B5C;
  padding-top: 20px;
  font-size: 0.78rem;
  color: #7C879B;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Static pages ---------- */
.page-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.page-body h1 {
  font-family: var(--serif);
  font-size: 2.1rem;
  color: var(--ink);
  margin-bottom: 24px;
}
.page-body h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--ink);
  margin: 32px 0 14px;
}
.page-body p { margin-bottom: 16px; color: var(--text-body); }
.page-body ul { margin: 0 0 16px 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { border-left: none; padding-left: 0; border-top: 1px dashed var(--slate-line); padding-top: 24px; }
  .article-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  nav.main-nav { display: none; }
}
@media (max-width: 560px) {
  .article-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .article-header h1 { font-size: 1.7rem; }
}

/* ===== UPGRADE ADDITIONS ===== */

/* ---------- Table of Contents ---------- */
.toc {
  background: var(--slate);
  border: 1px solid var(--slate-line);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 32px 0 40px;
}
.toc-title {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.toc ol { list-style: none; counter-reset: toc; }
.toc ol li {
  counter-increment: toc;
  padding: 5px 0;
  font-size: 0.95rem;
  border-bottom: 1px dashed var(--slate-line);
}
.toc ol li:last-child { border-bottom: none; }
.toc ol li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--gold-dark);
  margin-right: 10px;
}
.toc a { color: var(--text-body); font-weight: 500; }
.toc a:hover { color: var(--teal); }

/* ---------- Ad slots ---------- */
.ad-slot {
  margin: 36px 0;
  text-align: center;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--slate);
  border: 1px dashed var(--slate-line);
  border-radius: 8px;
  padding: 16px;
}
.ad-slot::before {
  content: 'ADVERTISEMENT';
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

/* ---------- Reading progress ---------- */
#reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--gold); z-index: 999;
  transition: width 0.1s;
}

/* ---------- Back to top ---------- */
#back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: #fff; border: none;
  font-size: 18px; cursor: pointer; opacity: 0;
  transition: opacity 0.3s; z-index: 998;
  box-shadow: 0 4px 14px rgba(20,33,61,0.25);
}
#back-to-top.show { opacity: 1; }

/* ---------- Legal pages ---------- */
.legal-body { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.legal-body h1 { font-family: var(--serif); font-size: 2rem; color: var(--ink); margin-bottom: 8px; }
.legal-body .legal-updated { font-family: var(--mono); font-size: 0.78rem; color: var(--text-muted); margin-bottom: 32px; }
.legal-body h2 { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); margin: 36px 0 12px; }
.legal-body p, .legal-body li { margin-bottom: 12px; line-height: 1.7; }
.legal-body ul { padding-left: 22px; }

/* ===== HERO IMAGES ===== */

/* ---------- Article hero image ---------- */
.article-hero { margin: 0 0 8px; }
.article-hero img {
  width: 100%; height: auto; border-radius: 10px;
  border: 1px solid var(--slate-line);
}
.article-hero figcaption {
  font-family: var(--mono); font-size: 0.72rem; color: var(--text-muted);
  padding: 8px 2px 0; letter-spacing: 0.03em;
}

/* ---------- Page banner (about/contact) ---------- */
.page-banner { margin: 0 0 32px; }
.page-banner img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--slate-line); }

/* ===== CONTACT FORM ===== */

/* ---------- Contact form ---------- */
.contact-form { max-width: 640px; margin-top: 8px; }
.form-row { display: flex; gap: 16px; }
.form-row .form-field { flex: 1; }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block; font-size: 0.88rem; font-weight: 600;
  color: var(--ink); margin-bottom: 6px;
}
.form-field .req { color: #C0392B; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--slate-line); border-radius: 6px;
  font-family: var(--sans); font-size: 0.95rem; color: var(--text-body);
  background: #fff; transition: border-color 0.15s, box-shadow 0.15s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15,82,87,0.12);
}
.form-submit {
  background: var(--ink); color: #fff; border: none;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600;
  padding: 13px 28px; border-radius: 6px; cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.form-submit:hover { background: #1B2E52; transform: translateY(-1px); }
.form-submit:disabled { opacity: 0.6; cursor: wait; transform: none; }
.form-status { font-size: 0.9rem; margin-top: 12px; min-height: 1.2em; }
.form-status.success { color: #1E7A45; font-weight: 600; }
.form-status.error { color: #C0392B; font-weight: 600; }
@media (max-width: 640px) { .form-row { flex-direction: column; gap: 0; } }

/* ============================================
   FEED CARDS — homepage / category paginated list
   ============================================ */
.feed-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 40px;
}
.feed-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  background: var(--paper);
  border: 1px solid var(--slate-line);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.feed-card:hover {
  box-shadow: 0 16px 36px rgba(20,33,61,0.14);
  transform: translateY(-3px);
  border-color: transparent;
}
.feed-card .feed-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  background: var(--slate);
}
.feed-card .feed-body {
  padding: 22px 24px 22px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feed-card .feed-body .tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  background: #E9F3F2;
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 10px;
  width: fit-content;
}
.feed-card .feed-body h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 10px;
  font-weight: 700;
}
.feed-card .feed-body h2 a { color: inherit; }
.feed-card .feed-body h2 a:hover { color: var(--teal); }
.feed-card .feed-body p.feed-excerpt {
  font-size: 0.96rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 14px;
}
.feed-card .feed-body .feed-meta {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.feed-card .feed-body .feed-meta span { margin-right: 14px; }
.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  border: 1.5px solid var(--teal);
  padding: 8px 16px;
  border-radius: 6px;
  width: fit-content;
  transition: background 0.2s ease, color 0.2s ease;
}
.read-more-btn:hover { background: var(--teal); color: #fff; }
.read-more-btn svg { width: 14px; height: 14px; }

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 40px 0 60px;
  flex-wrap: wrap;
}
.pagination a, .pagination span.current, .pagination span.dots {
  font-family: var(--mono);
  font-size: 0.85rem;
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--slate-line);
  border-radius: 6px;
  color: var(--ink);
  padding: 0 10px;
}
.pagination a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination span.current { background: var(--gold); color: var(--ink); border-color: var(--gold); font-weight: 700; }
.pagination span.dots { border: none; color: var(--text-muted); }
.pagination a.disabled { opacity: 0.35; pointer-events: none; }
.pagination .prev-next {
  font-family: var(--sans);
  font-weight: 600;
  padding: 0 16px;
}

/* ---------- Related resources / contacts box ---------- */
.related-resources {
  background: var(--slate);
  border: 1px solid var(--slate-line);
  border-radius: 10px;
  padding: 22px 24px;
  margin: 36px 0;
}
.related-resources h3 {
  font-family: var(--sans);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.related-resources h3 svg { width: 16px; height: 16px; stroke: var(--teal); flex-shrink: 0; }
.related-resources .rr-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.related-resources ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.related-resources li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--slate-line);
  padding: 10px 14px;
  border-radius: 6px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.related-resources li a:hover { border-color: var(--teal); color: var(--teal); }
.related-resources li a .rr-arrow { font-family: var(--mono); font-size: 0.8rem; }

/* ---------- Categories index page ---------- */
.cat-index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}
.cat-index-card {
  background: var(--paper);
  border: 1px solid var(--slate-line);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.cat-index-card:hover { box-shadow: 0 14px 32px rgba(20,33,61,0.14); transform: translateY(-3px); }
.cat-index-card .section-icon { margin: 0 auto 12px; }
.cat-index-card h3 { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); margin-bottom: 6px; }
.cat-index-card span { font-family: var(--mono); font-size: 0.75rem; color: var(--teal); }

/* ---------- Responsive: feed cards + related resources + categories ---------- */
@media (max-width: 860px) {
  .feed-card { grid-template-columns: 1fr; }
  .feed-card .feed-img { min-height: 220px; }
  .feed-card .feed-body { padding: 4px 20px 20px; }
  .related-resources ul { grid-template-columns: 1fr; }
  .cat-index-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .feed-card .feed-body h2 { font-size: 1.25rem; }
  .pagination a, .pagination span.current { min-width: 34px; height: 34px; font-size: 0.8rem; }
  .cat-index-grid { grid-template-columns: 1fr; }
}

/* === Social share row === */
.share-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:18px 0 6px;margin:22px 0;border-top:1px solid rgba(15,27,45,.12);}
.share-label{font-size:.85rem;font-weight:600;color:#5A6B82;letter-spacing:.4px;text-transform:uppercase;margin-right:4px;}
.share-row a{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:8px;background:#0F1B2D;color:#fff;transition:transform .15s ease,background .15s ease;}
.share-row a:hover{background:#D4AF37;color:#0F1B2D;transform:translateY(-2px);}
.share-copy{background:transparent;border:1px solid #4A5A75;color:#5A6B82;padding:8px 14px;border-radius:8px;font-size:.85rem;font-weight:500;cursor:pointer;transition:all .15s ease;}
.share-copy:hover{border-color:#D4AF37;color:#0F1B2D;}


/* === Newsletter signup === */
.newsletter-box{background:linear-gradient(135deg,#0F1B2D 0%,#16324F 100%);padding:42px 20px;margin:40px 0 0;}
.nl-inner{max-width:640px;margin:0 auto;text-align:center;}
.nl-title{color:#D4AF37;font-size:1.4rem;margin:0 0 8px;}
.nl-sub{color:#B9C4D6;font-size:.95rem;margin:0 0 18px;}
.nl-form{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;}
.nl-email{flex:1 1 240px;max-width:360px;padding:12px 14px;border-radius:8px;border:1px solid #4A5A75;background:#0F1B2D;color:#E8EDF5;font-size:.95rem;}
.nl-email::placeholder{color:#7A8AA0;}
.nl-btn{background:#D4AF37;color:#0F1B2D;border:none;padding:12px 26px;border-radius:8px;font-weight:700;font-size:.95rem;cursor:pointer;transition:background .15s;}
.nl-btn:hover{background:#C19B2E;}

/* ===== Trust signals (review flag + author box) ===== */
.review-flag{display:inline-flex;align-items:center;gap:8px;background:#eef6f4;border:1px solid #cfe5e0;color:#1d6a5c;font-size:13.5px;font-weight:600;padding:7px 14px;border-radius:999px;margin:6px 0 0}
.review-flag a{color:#1d6a5c;text-decoration:underline}
.author-box{display:flex;gap:16px;align-items:flex-start;background:#f8f9fb;border:1px solid #e3e8ef;border-left:4px solid #C9A227;border-radius:12px;padding:18px 20px;margin:26px 0 10px}
.author-avatar{width:58px;height:58px;border-radius:50%;background:linear-gradient(135deg,#0A2540,#2A9D8F);color:#fff;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:700;flex-shrink:0}
.author-name{font-size:16.5px;font-weight:700;margin-bottom:4px}
.author-name a{color:#0A2540}
.author-title2{color:#C9A227;font-weight:600;font-size:14.5px}
.author-bio-text{margin:0 0 6px;font-size:14px;color:#3d4c5e;line-height:1.6}
.author-review-note{margin:0;font-size:12.5px;color:#7c8aa0}

/* FAQ Section */
.faq-section { margin: 2.5rem 0; padding: 2rem; background: #f8f9fb; border-radius: 12px; border-left: 4px solid #0A2540; }
.faq-section h2 { font-size: 1.5rem; margin-bottom: 1.25rem; color: #0A2540; }
.faq-section h3 { font-size: 1.1rem; margin-top: 1.5rem; margin-bottom: 0.5rem; color: #0A2540; }
.faq-section p { line-height: 1.6; color: #333; font-size: 0.95rem; }
.faq-section h3:first-of-type { margin-top: 0.5rem; }
