/* ============================================
   ShieldWise Security — Unified Blog Post Design
   Loaded after inline <style> blocks to override
   Premium typography + components + trust blocks
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #2c3e50;
  background: #f7f9fc;
  -webkit-font-smoothing: antialiased;
}

/* ============== READING PROGRESS BAR ============== */
.read-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, #c9a227, #ffd166);
  z-index: 9999;
  transition: width 0.1s ease;
}

/* ============== HERO OVERRIDES ============== */
section.blog-hero {
  position: relative;
  padding: 75px 0 90px !important;
  overflow: hidden;
  background: linear-gradient(135deg, #081938 0%, #0f326e 100%) !important;
}
section.blog-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(201,162,39,0.14), transparent 38%),
    radial-gradient(circle at 88% 85%, rgba(255,209,102,0.10), transparent 42%);
  pointer-events: none;
}
section.blog-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 60px;
  background: linear-gradient(to bottom, transparent, #f7f9fc);
  pointer-events: none;
}
section.blog-hero .container { position: relative; z-index: 2; }
section.blog-hero a[href="/blog"] {
  display: inline-flex; align-items: center; gap: 7px;
  color: rgba(255,255,255,0.78) !important;
  font-size: 0.86rem; font-weight: 500;
  text-decoration: none; letter-spacing: 0.3px;
  margin-bottom: 18px; transition: color 0.2s ease;
}
section.blog-hero a[href="/blog"]:hover { color: #ffd166 !important; }
section.blog-hero h1 {
  font-family: 'Playfair Display', serif !important;
  font-size: 2.8rem !important;
  font-weight: 800 !important;
  line-height: 1.18 !important;
  margin: 6px 0 18px !important;
  text-shadow: 0 2px 18px rgba(0,0,0,0.22);
  color: #fff !important;
  max-width: 880px;
}
section.blog-hero p.lead {
  font-size: 1.12rem !important;
  line-height: 1.6;
  color: rgba(255,255,255,0.88) !important;
  max-width: 760px;
  margin-bottom: 22px;
}
section.blog-hero small {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px 18px;
  font-size: 0.84rem !important;
  color: rgba(255,255,255,0.78) !important;
  letter-spacing: 0.3px;
}
section.blog-hero small i { color: #ffd166; margin-right: 5px; }

/* Hero category pill (inject via partial or inline) */
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  color: #ffd166;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 1.2px; text-transform: uppercase;
  margin-bottom: 16px;
  backdrop-filter: blur(6px);
}

/* ============== CONTENT TYPOGRAPHY ============== */
.blog-content {
  padding: 50px 0 30px !important;
  background: #f7f9fc;
}
.blog-content .container > .row > .col-lg-9,
.blog-content .container > .row > [class*="col-"] {
  background: #fff;
  border-radius: 16px;
  padding: 50px 55px !important;
  box-shadow: 0 10px 40px rgba(10,35,66,0.06);
  border: 1px solid #e8eef6;
  max-width: 820px;
}
@media (max-width: 767px) {
  .blog-content .container > .row > [class*="col-"] {
    padding: 32px 22px !important;
    border-radius: 12px;
  }
}
.blog-content p {
  font-size: 1.03rem !important;
  line-height: 1.78 !important;
  color: #364150 !important;
  margin-bottom: 18px !important;
}
.blog-content p strong, .blog-content li strong { color: #0a2342; font-weight: 700; }
.blog-content h2 {
  font-family: 'Playfair Display', serif !important;
  font-size: 1.85rem !important;
  font-weight: 700 !important;
  color: #0a2342 !important;
  margin-top: 50px !important;
  margin-bottom: 18px !important;
  padding-left: 18px !important;
  border-left: 4px solid #c9a227 !important;
  line-height: 1.3;
  scroll-margin-top: 80px;
}
.blog-content h3 {
  font-family: 'Inter', sans-serif !important;
  font-size: 1.28rem !important;
  font-weight: 700 !important;
  color: #0a2342 !important;
  margin-top: 32px !important;
  margin-bottom: 14px !important;
  letter-spacing: -0.2px;
}
.blog-content h4 {
  font-family: 'Inter', sans-serif !important;
  font-size: 1.08rem !important;
  font-weight: 700 !important;
  color: #0a2342 !important;
  margin-top: 22px;
  margin-bottom: 10px;
}
.blog-content ul, .blog-content ol {
  padding-left: 22px;
  margin-bottom: 22px;
}
.blog-content ul li, .blog-content ol li {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #364150;
  margin-bottom: 9px;
}
.blog-content a:not(.btn):not(.cta-btn):not(.county-link):not(.city-link) {
  color: #0066cc;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,102,204,0.25);
  transition: color 0.2s, border-color 0.2s;
}
.blog-content a:not(.btn):not(.cta-btn):not(.county-link):not(.city-link):hover {
  color: #c9a227;
  border-bottom-color: #c9a227;
}
.blog-content blockquote {
  border-left: 4px solid #c9a227;
  background: linear-gradient(90deg, #fff8e1, transparent);
  padding: 18px 24px;
  margin: 26px 0;
  font-style: italic;
  color: #4a5568;
  border-radius: 0 8px 8px 0;
}

/* ============== COMPONENT REFRESH ============== */
.compare-table {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin: 28px 0 !important;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(10,35,66,0.06);
  border: 1px solid #e5eaf2;
  font-size: 0.96rem;
}
.compare-table th {
  background: linear-gradient(135deg, #0a2342, #1a4480) !important;
  color: #fff !important;
  padding: 14px 18px !important;
  text-align: left !important;
  font-weight: 700;
  letter-spacing: 0.3px;
  font-size: 0.9rem;
  text-transform: uppercase;
}
.compare-table td {
  padding: 13px 18px !important;
  border-bottom: 1px solid #eef2f7 !important;
  color: #364150;
  vertical-align: top;
}
.compare-table tr:nth-child(even) td { background: #fafbfd !important; }
.compare-table tr:last-child td { border-bottom: none !important; }

.cta-box {
  background: linear-gradient(135deg, #0a2342 0%, #1a4480 100%) !important;
  color: #fff !important;
  border-radius: 14px !important;
  padding: 32px 36px !important;
  margin: 38px 0 !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(10,35,66,0.18);
  border: none !important;
}
.cta-box::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(255,209,102,0.18), transparent 50%);
  pointer-events: none;
}
.cta-box > * { position: relative; z-index: 2; }
.cta-box h4 { color: #ffd166 !important; font-family: 'Playfair Display', serif; font-size: 1.4rem !important; margin-bottom: 12px !important; font-weight: 700 !important; }
.cta-box p { color: rgba(255,255,255,0.92) !important; font-size: 1.02rem !important; margin-bottom: 18px !important; }
.cta-box .btn, .cta-box a.btn-dark, .cta-box a.btn-light {
  background: #c9a227 !important;
  color: #0a2342 !important;
  border: none !important;
  padding: 12px 26px !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.2s ease;
  display: inline-block;
}
.cta-box .btn:hover, .cta-box a.btn-dark:hover, .cta-box a.btn-light:hover {
  background: #ffd166 !important;
  transform: translateY(-2px);
}

.law-box, .tip-box, .case-box {
  background: #fff8e1 !important;
  border-left: 4px solid #c9a227 !important;
  padding: 18px 22px !important;
  margin: 24px 0 !important;
  border-radius: 0 10px 10px 0 !important;
  box-shadow: 0 3px 12px rgba(201,162,39,0.08);
}
.law-box strong, .tip-box strong, .case-box h4 { color: #0a2342 !important; }

.checklist, .pros-cons, .post-card-list {
  background: #fafbfd !important;
  border-radius: 12px !important;
  padding: 22px 26px !important;
  margin: 22px 0 !important;
  border: 1px solid #e8eef6 !important;
  border-left: 4px solid #0a2342 !important;
}
.checklist h4, .pros-cons h4 { color: #0a2342 !important; font-weight: 700; margin-bottom: 12px; }
.checklist li, .pros-cons li { margin-bottom: 8px; }

.post-grid, .duty-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 20px !important;
  margin: 28px 0 !important;
}
.post-card, .duty-card {
  background: #fff !important;
  border: 1px solid #e8eef6 !important;
  border-top: 3px solid #c9a227 !important;
  border-radius: 12px !important;
  padding: 22px !important;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(10,35,66,0.04);
}
.post-card:hover, .duty-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(10,35,66,0.10); }
.post-card h4, .duty-card h4 { color: #0a2342 !important; font-weight: 700; font-size: 1.08rem; margin-bottom: 8px; }
.post-card p, .duty-card p { font-size: 0.95rem; color: #5a6878; margin-bottom: 0; line-height: 1.6; }

.infographic {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 32px auto !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 30px rgba(10,35,66,0.12) !important;
  border: 1px solid #e8eef6;
}

/* details/summary FAQ */
details {
  background: #fff !important;
  border: 1px solid #e5eaf2 !important;
  border-radius: 10px !important;
  padding: 16px 20px !important;
  margin: 12px 0 !important;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s;
}
details[open] {
  border-left: 4px solid #c9a227 !important;
  box-shadow: 0 6px 22px rgba(10,35,66,0.07);
}
details summary {
  font-weight: 600 !important;
  color: #0a2342 !important;
  font-size: 1.02rem;
  outline: none;
}

.byline {
  font-size: 0.93rem !important;
  color: #4a5568 !important;
  background: #fafbfd !important;
  border-left: 3px solid #c9a227 !important;
  border-radius: 0 8px 8px 0 !important;
  padding: 12px 18px !important;
  margin: 0 0 28px !important;
}

.safety-note {
  font-size: 0.88rem !important;
  color: #6c757d !important;
  border-top: 1px solid #e8eef6 !important;
  padding-top: 18px !important;
  margin-top: 32px !important;
  font-style: italic;
}

/* ============== AUTHOR / TRUST BLOCK PARTIAL ============== */
.post-author-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: 12px;
  padding: 18px 22px;
  margin: 0 0 32px;
  box-shadow: 0 4px 14px rgba(10,35,66,0.05);
}
.post-author-card .avatar {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a2342, #1a4480);
  color: #ffd166;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.post-author-card .meta strong {
  display: block;
  color: #0a2342;
  font-size: 0.97rem;
  margin-bottom: 2px;
}
.post-author-card .meta span {
  display: block;
  color: #6c757d;
  font-size: 0.84rem;
  line-height: 1.55;
}
@media (max-width: 575px) {
  .post-author-card { flex-direction: column; text-align: center; }
}

/* ============== FOOTER CTA + TRUST STRIP PARTIAL ============== */
.post-footer-cta {
  margin: 50px 0 30px;
  background: linear-gradient(135deg, #081938 0%, #0f326e 100%);
  color: #fff;
  border-radius: 18px;
  padding: 50px 42px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(10,35,66,0.20);
}
.post-footer-cta::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(201,162,39,0.18), transparent 38%),
    radial-gradient(circle at 82% 78%, rgba(255,209,102,0.10), transparent 42%);
  pointer-events: none;
}
.post-footer-cta > * { position: relative; z-index: 2; }
.post-footer-cta .pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  color: #ffd166;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 1.4px; text-transform: uppercase;
  margin-bottom: 16px;
}
.post-footer-cta h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.25;
}
.post-footer-cta p {
  color: rgba(255,255,255,0.88);
  font-size: 1.04rem;
  max-width: 600px;
  margin: 0 auto 26px;
  line-height: 1.65;
}
.post-footer-cta .cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, #c9a227, #ffd166);
  color: #0a2342;
  padding: 13px 32px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  margin: 0 6px 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  font-size: 0.96rem;
}
.post-footer-cta .cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(201,162,39,0.35);
  color: #0a2342;
  text-decoration: none;
}
.post-footer-cta .cta-btn.outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.4);
  color: #fff;
  padding: 11px 30px;
}
.post-footer-cta .cta-btn.outline:hover {
  border-color: #ffd166;
  background: rgba(255,255,255,0.06);
  color: #ffd166;
}

.post-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: 14px;
  padding: 28px 22px;
  margin: 22px 0 24px;
  box-shadow: 0 6px 20px rgba(10,35,66,0.05);
}
.post-trust-strip .trust-item { text-align: center; padding: 0 6px; }
.post-trust-strip i { color: #c9a227; font-size: 1.4rem; margin-bottom: 8px; }
.post-trust-strip strong { display: block; color: #0a2342; font-size: 0.9rem; margin-bottom: 3px; }
.post-trust-strip span { color: #6c757d; font-size: 0.82rem; line-height: 1.5; }
@media (max-width: 767px) {
  .post-trust-strip { grid-template-columns: repeat(2, 1fr); padding: 22px 18px; }
}

.post-safety-note {
  text-align: center;
  font-size: 0.86rem;
  color: #6c757d;
  font-style: italic;
  background: #f7f9fc;
  border-radius: 10px;
  padding: 14px 22px;
  margin: 0 0 30px;
}

/* ============== MOBILE OVERRIDES ============== */
@media (max-width: 767px) {
  section.blog-hero { padding: 55px 0 70px !important; }
  section.blog-hero h1 { font-size: 1.85rem !important; }
  section.blog-hero p.lead { font-size: 1rem !important; }
  .blog-content h2 { font-size: 1.5rem !important; margin-top: 38px !important; }
  .blog-content h3 { font-size: 1.15rem !important; }
  .blog-content p, .blog-content li { font-size: 0.98rem !important; }
  .post-footer-cta { padding: 36px 22px; border-radius: 14px; }
  .post-footer-cta h3 { font-size: 1.5rem; }
  .compare-table { font-size: 0.88rem; }
  .compare-table th, .compare-table td { padding: 10px 12px !important; }
}

/* ============== STICKY TABLE OF CONTENTS ============== */
.post-toc {
  position: fixed;
  top: 100px;
  right: 24px;
  width: 250px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: 12px;
  padding: 18px 18px 16px;
  box-shadow: 0 8px 28px rgba(10,35,66,0.08);
  z-index: 30;
  font-size: 0.86rem;
  display: none;
}
@media (min-width: 1280px) {
  .post-toc { display: block; }
}
.post-toc-header {
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #c9a227;
  font-weight: 700;
  padding-bottom: 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid #eef2f7;
}
.post-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.post-toc-list li {
  margin: 0;
  padding: 0;
  line-height: 1.45;
}
.post-toc-list li a {
  display: block;
  padding: 7px 10px;
  color: #4a5568;
  text-decoration: none;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  font-size: 0.86rem;
}
.post-toc-list li.lvl-3 a {
  padding-left: 22px;
  font-size: 0.80rem;
  color: #6c757d;
}
.post-toc-list li a:hover {
  color: #0a2342;
  background: #fafbfd;
}
.post-toc-list li a.active {
  color: #0a2342;
  border-left-color: #c9a227;
  background: #fff8e1;
  font-weight: 600;
}

/* ============== TL;DR / KEY TAKEAWAY / PULL QUOTE ============== */
.tldr-box {
  background: linear-gradient(135deg, #fafbfd, #fff);
  border: 1px solid #e5eaf2;
  border-left: 4px solid #c9a227;
  border-radius: 12px;
  padding: 22px 26px;
  margin: 0 0 32px;
  box-shadow: 0 4px 14px rgba(10,35,66,0.05);
}
.tldr-box .tldr-label {
  display: inline-block;
  background: #c9a227;
  color: #0a2342;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.tldr-box ul, .tldr-box p { margin-bottom: 0 !important; }
.tldr-box ul li { font-size: 0.97rem !important; line-height: 1.65 !important; }

.key-takeaway {
  background: #fff8e1;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 28px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid rgba(201,162,39,0.25);
}
.key-takeaway .kt-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #c9a227;
  color: #0a2342;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.key-takeaway .kt-text strong { display: block; color: #0a2342; margin-bottom: 4px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.8px; }
.key-takeaway .kt-text p { font-size: 0.98rem !important; color: #364150 !important; margin: 0 !important; line-height: 1.6 !important; }

.pullquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  line-height: 1.45;
  color: #0a2342;
  text-align: center;
  border-top: 2px solid #c9a227;
  border-bottom: 2px solid #c9a227;
  padding: 24px 18px;
  margin: 32px 0;
  font-style: italic;
  font-weight: 600;
}

/* ============== RELATED ARTICLES WIDGET ============== */
.related-articles {
  margin: 50px 0 30px;
  padding: 36px 32px 30px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5eaf2;
  box-shadow: 0 8px 28px rgba(10,35,66,0.06);
}
.related-articles-header { margin-bottom: 24px; }
.related-articles-header .eyebrow {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: #c9a227;
  font-weight: 700;
  margin-bottom: 6px;
}
.related-articles-header h3 {
  font-family: 'Playfair Display', serif !important;
  font-size: 1.5rem !important;
  color: #0a2342 !important;
  margin: 0 !important;
  border: none !important;
  padding: 0 !important;
  line-height: 1.3;
}
.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.related-card {
  display: flex;
  flex-direction: column;
  background: #fafbfd;
  border: 1px solid #e8eef6;
  border-radius: 12px;
  padding: 20px 20px 18px;
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  border-bottom: none !important;
}
.related-card:hover {
  transform: translateY(-3px);
  border-color: #c9a227;
  box-shadow: 0 14px 30px rgba(10,35,66,0.10);
  color: inherit;
  text-decoration: none;
}
.related-card-tag {
  display: inline-block;
  align-self: flex-start;
  background: #fff8e1;
  color: #8a6d1a;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.related-card h4 {
  font-family: 'Inter', sans-serif !important;
  color: #0a2342 !important;
  font-size: 1.02rem !important;
  font-weight: 700 !important;
  margin: 0 0 8px !important;
  line-height: 1.35;
}
.related-card p {
  font-size: 0.88rem !important;
  color: #5a6878 !important;
  line-height: 1.55 !important;
  margin: 0 0 14px !important;
  flex: 1;
}
.related-card-arrow {
  font-size: 0.84rem;
  font-weight: 600;
  color: #c9a227;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid #eef2f7;
  padding-top: 12px;
  transition: gap 0.2s;
}
.related-card:hover .related-card-arrow { gap: 10px; }

@media (max-width: 991px) {
  .related-articles-grid { grid-template-columns: 1fr; }
  .related-articles { padding: 26px 22px; }
}
