/* =========================================================
   AHA Blog Stylesheet
   File: blog-styles.css
   Path: /wp-content/themes/astra-child/blog-styles.css
   Enqueued only on single posts (see functions-snippet.php)
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.single-post {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1a2332;
  background: #fff;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Override Astra's default content padding on single posts so our hero goes edge-to-edge */
body.single-post .entry-content,
body.single-post .ast-container,
body.single-post #content,
body.single-post .site-content,
body.single-post .ast-article-single {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}
body.single-post .entry-header,
body.single-post .entry-meta,
body.single-post .post-thumbnail { display: none !important; }

/* ===== THEME VARIABLES ===== */
:root {
  --blue: #1558a8;
  --blue-lt: #1e6ecc;
  --blue-pale: #e8f1fb;
  --ink: #1a2332;
  --muted: #5a6a7e;
  --border: #d8e4f0;
  --bg: #f4f8fd;
  --white: #ffffff;
  --green: #2a9d60;
}

/* ===== BREADCRUMB ===== */
.breadcrumb { background: var(--bg); border-bottom: 1px solid var(--border); padding: 11px 0; }
.breadcrumb-inner { max-width: 1140px; margin: 0 auto; padding: 0 32px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb-inner a { color: var(--blue); text-decoration: none; }
.breadcrumb-inner i { font-size: 10px; }

/* ===== HERO ===== */
.page-hero { background: linear-gradient(135deg, #0d3d7a, #1558a8); padding: 52px 32px 48px; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 48px; background: #fff; clip-path: ellipse(55% 100% at 50% 100%); }
.page-hero-inner { max-width: 1140px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; padding: 5px 13px; border-radius: 20px; margin-bottom: 16px; }
.page-hero h1 { font-family: 'Merriweather', Georgia, serif; font-size: clamp(26px, 3.5vw, 44px); font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 14px; max-width: 760px; }
.page-hero-sub { font-size: 16px; color: rgba(255,255,255,0.82); line-height: 1.7; max-width: 660px; margin-bottom: 24px; }
.page-hero-meta { display: flex; flex-wrap: wrap; gap: 20px; }
.meta-item { display: flex; align-items: center; gap: 7px; font-size: 13px; color: rgba(255,255,255,0.75); }
.meta-item i { color: #4ade80; font-size: 12px; }

/* ===== EDITORIAL BAR ===== */
.editorial-bar-top { background: var(--bg); border-bottom: 1px solid var(--border); padding: 14px 0; }
.editorial-bar-inner { max-width: 1140px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.reviewer-chip { display: flex; align-items: center; gap: 10px; }
.reviewer-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.reviewer-avatar i { color: #fff; font-size: 14px; }
.reviewer-info { font-size: 12px; line-height: 1.4; }
.reviewer-info strong { color: var(--ink); font-size: 12px; }
.reviewer-info span { color: var(--muted); }
.editorial-divider { width: 1px; height: 32px; background: var(--border); }
.updated-chip { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.updated-chip i { color: var(--blue); }
.expert-badge { display: flex; align-items: center; gap: 6px; background: #e8f7ef; border: 1px solid #b7e0cb; border-radius: 20px; padding: 4px 12px; font-size: 11px; font-weight: 700; color: #1a6e40; margin-left: auto; }

/* ===== MAIN LAYOUT ===== */
.article-wrap { max-width: 1140px; margin: 0 auto; padding: 48px 32px; display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.article-body h2 { font-family: 'Merriweather', Georgia, serif; font-size: 26px; font-weight: 700; color: var(--ink); margin: 44px 0 16px; padding-top: 8px; }
.article-body h3 { font-family: 'Merriweather', Georgia, serif; font-size: 19px; font-weight: 700; color: var(--ink); margin: 30px 0 12px; }
.article-body p { font-size: 15px; color: #2d3a4a; line-height: 1.85; margin-bottom: 16px; }
.article-body ul, .article-body ol { margin: 0 0 18px 20px; }
.article-body li { font-size: 15px; color: #2d3a4a; line-height: 1.8; margin-bottom: 6px; }
.article-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.article-body strong { font-weight: 700; color: var(--ink); }

/* ===== KEY TAKEAWAYS ===== */
.key-takeaways { background: var(--blue-pale); border: 1px solid #c2d8f5; border-left: 4px solid var(--blue); border-radius: 10px; padding: 22px 24px; margin-bottom: 36px; }
.key-takeaways h3 { font-size: 14px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.key-takeaways ul { margin: 0; padding: 0; list-style: none; }
.key-takeaways li { font-size: 14px; color: var(--ink); line-height: 1.7; padding: 6px 0 6px 22px; position: relative; border-bottom: 1px solid rgba(21,88,168,0.1); }
.key-takeaways li:last-child { border-bottom: none; }
.key-takeaways li::before { content: '\f058'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--blue); position: absolute; left: 0; top: 8px; font-size: 12px; }

/* ===== TABLE OF CONTENTS ===== */
.toc { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 20px 22px; margin-bottom: 36px; }
.toc h3 { font-size: 13px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.toc ol { margin: 0; padding: 0 0 0 18px; }
.toc li { font-size: 13px; line-height: 1.6; margin-bottom: 7px; }
.toc a { color: var(--blue); text-decoration: none; font-weight: 500; }
.toc a:hover { text-decoration: underline; }

/* ===== CALLOUTS ===== */
.callout { border-radius: 10px; padding: 20px 22px; margin: 28px 0; display: flex; gap: 16px; align-items: flex-start; }
.callout-warning { background: #fff8e6; border: 1px solid #f5c842; border-left: 4px solid #f5c842; }
.callout-info    { background: var(--blue-pale); border: 1px solid #c2d8f5; border-left: 4px solid var(--blue); }
.callout-success { background: #e8f7ef; border: 1px solid #b7e0cb; border-left: 4px solid var(--green); }
.callout-danger  { background: #fff0f0; border: 1px solid #f5c2c2; border-left: 4px solid #d94040; }
.callout-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.callout-warning .callout-icon { color: #c8940a; }
.callout-info    .callout-icon { color: var(--blue); }
.callout-success .callout-icon { color: var(--green); }
.callout-danger  .callout-icon { color: #d94040; }
.callout-content h4 { font-size: 14px; font-weight: 700; margin-bottom: 5px; color: var(--ink); }
.callout-content p, .callout-content li { font-size: 13px; line-height: 1.7; color: #2d3a4a; }
.callout-content ul { margin: 6px 0 0 16px; }

/* ===== STAT BOXES ===== */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0; }
.stat-box { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 18px 14px; text-align: center; }
.stat-box-num { font-family: 'Merriweather', Georgia, serif; font-size: 28px; font-weight: 700; color: var(--blue); line-height: 1; }
.stat-box-label { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.4; }

/* ===== INLINE CTA ===== */
.inline-cta { background: linear-gradient(135deg, #0d3d7a, #1558a8); border-radius: 12px; padding: 26px 28px; margin: 36px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.inline-cta-text h4 { font-family: 'Merriweather', Georgia, serif; font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.inline-cta-text p { font-size: 13px; color: rgba(255,255,255,0.8); }
.inline-cta-btn { display: flex; align-items: center; gap: 8px; background: #fff; color: var(--blue); padding: 13px 22px; border-radius: 8px; font-weight: 700; font-size: 15px; white-space: nowrap; transition: all .2s; flex-shrink: 0; text-decoration: none; }
.inline-cta-btn:hover { background: #f0f6ff; transform: translateY(-1px); }

/* ===== FAQ ACCORDION ===== */
.faq-wrap { margin-top: 16px; }
.faq-item { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.faq-btn { width: 100%; background: #fff; border: none; padding: 17px 20px; text-align: left; cursor: pointer; font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; align-items: center; transition: background .2s; }
.faq-btn:hover { background: var(--bg); }
.faq-btn span { font-size: 20px; font-weight: 300; color: var(--blue); transition: transform .3s; flex-shrink: 0; margin-left: 12px; }
.faq-btn.open span { transform: rotate(45deg); }
.faq-body { display: none; padding: 0 20px 16px; font-size: 14px; color: var(--muted); line-height: 1.75; background: #fff; }
.faq-body.open { display: block; }
.faq-body a { color: var(--blue); text-decoration: underline; }

/* ===== SOURCES BOX ===== */
.sources-box { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 20px 22px; margin-top: 44px; }
.sources-box h3 { font-size: 13px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.sources-box ol { margin: 0; padding: 0 0 0 18px; }
.sources-box li { font-size: 12px; color: var(--muted); line-height: 1.65; margin-bottom: 8px; }
.sources-box a { color: var(--blue); text-decoration: underline; }

/* ===== REVIEWER BOX ===== */
.reviewer-box { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 22px 24px; margin-top: 32px; display: flex; gap: 18px; align-items: flex-start; }
.reviewer-box-avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #1558a8, #0d3d7a); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.reviewer-box-avatar i { color: #fff; font-size: 22px; }
.reviewer-box-info h4 { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.reviewer-box-info .title { font-size: 13px; color: var(--blue); font-weight: 600; margin-bottom: 6px; }
.reviewer-box-info p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ===== TAGS ===== */
.tags-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag { background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 5px 13px; font-size: 12px; color: var(--muted); font-weight: 500; text-decoration: none; }
.tag:hover { border-color: var(--blue); color: var(--blue); }

/* ===== RELATED GRID ===== */
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.related-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px; transition: all .2s; text-decoration: none; display: block; }
.related-card:hover { border-color: var(--blue); box-shadow: 0 4px 16px rgba(21,88,168,0.1); }
.related-card h4 { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 5px; line-height: 1.4; }
.related-card p { font-size: 12px; color: var(--muted); }
.rc-link { font-size: 12px; font-weight: 600; color: var(--blue); margin-top: 8px; display: flex; align-items: center; gap: 4px; }

/* ===== SIDEBAR ===== */
.sidebar { position: sticky; top: 90px; align-self: start; }
.sidebar-cta { background: linear-gradient(135deg, #0d3d7a, #1558a8); border-radius: 14px; padding: 26px 22px; margin-bottom: 20px; }
.sidebar-cta h3 { font-family: 'Merriweather', Georgia, serif; font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.sidebar-cta p { font-size: 13px; color: rgba(255,255,255,0.8); margin-bottom: 18px; line-height: 1.6; }
.sidebar-phone { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: var(--blue); padding: 15px; border-radius: 10px; font-weight: 800; font-size: 18px; margin-bottom: 10px; transition: all .2s; text-decoration: none; }
.sidebar-phone:hover { background: #f0f6ff; transform: translateY(-1px); }
.sidebar-verify { display: block; text-align: center; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); color: #fff; padding: 11px; border-radius: 8px; font-weight: 600; font-size: 13px; transition: all .2s; text-decoration: none; }
.sidebar-feats { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.sidebar-feat { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,0.8); }
.sidebar-feat i { color: #4ade80; font-size: 11px; }
.sidebar-widget { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.sidebar-widget h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.sidebar-widget h4 i { color: var(--blue); }
.sw-links { display: flex; flex-direction: column; gap: 0; }
.sw-link { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 500; color: var(--ink); transition: color .2s; text-decoration: none; }
.sw-link:last-child { border-bottom: none; }
.sw-link:hover { color: var(--blue); }
.sw-link i { color: var(--blue); font-size: 11px; }

/* ===== WARNING WIDGET ===== */
.warning-widget { background: #fff0f0; border: 1px solid #f5c2c2; border-radius: 12px; padding: 18px 20px; margin-bottom: 20px; }
.warning-widget h4 { font-size: 13px; font-weight: 700; color: #991b1b; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.warning-widget p { font-size: 12px; color: #7f1d1d; line-height: 1.6; margin-bottom: 10px; }
.warning-widget a { display: flex; align-items: center; justify-content: center; gap: 8px; background: #d94040; color: #fff; padding: 11px; border-radius: 8px; font-weight: 700; font-size: 14px; text-decoration: none; }

/* ===== EDITORIAL FOOTER BAR ===== */
.editorial-bar { background: var(--bg); border-top: 1px solid var(--border); padding: 20px 0; }
.editorial-inner { max-width: 1140px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.editorial-inner i { color: var(--blue); font-size: 18px; flex-shrink: 0; }
.editorial-inner p { font-size: 12px; color: var(--muted); line-height: 1.6; }
.editorial-inner a { color: var(--blue); text-decoration: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .article-wrap { grid-template-columns: 1fr; padding: 32px 24px; }
  .sidebar { position: static; top: auto; }
  .related-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .breadcrumb { padding: 10px 0; }
  .breadcrumb-inner { padding: 0 16px; }
  .page-hero { padding: 36px 20px 40px; }
  .editorial-bar-top { padding: 12px 0; }
  .editorial-bar-inner { padding: 0 16px; }
  .article-wrap { padding: 32px 16px; }
  .expert-badge { display: none; }
  .inline-cta { flex-direction: column; }
  .inline-cta-btn { width: 100%; justify-content: center; }
  .callout { flex-direction: column; gap: 10px; }
  .editorial-inner { padding: 0 16px; }
}
@media (max-width: 580px) {
  .stat-row { grid-template-columns: 1fr; }
}
