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

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

body.blog {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1a2332;
  background: #fff;
  overflow-x: hidden;
  line-height: 1.6;
}
body.blog a { text-decoration: none; color: inherit; }

/* Neutralize Astra's default layout wrappers so our hero goes edge-to-edge */
body.blog .entry-content,
body.blog .ast-container,
body.blog #content,
body.blog .site-content,
body.blog .ast-article-single,
body.blog .ast-page-content,
body.blog .ast-archive-description,
body.blog .ast-row,
body.blog .blog-layout-1 {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}
body.blog .page-title,
body.blog .ast-archive-title,
body.blog .entry-header,
body.blog .post-thumbnail { display: none !important; }

/* ===== THEME VARIABLES ===== */
:root {
  --blue: #1558a8;
  --blue-pale: #e8f1fb;
  --ink: #1a2332;
  --muted: #5a6a7e;
  --border: #d8e4f0;
  --bg: #f4f8fd;
  --green: #2a9d60;
  --red: #dc2626;
  --amber: #d97706;
}

/* ===== BREADCRUMB ===== */
.breadcrumb { background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px 0; font-size: 13px; color: var(--muted); }
.breadcrumb-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.breadcrumb a { color: var(--blue); }
.breadcrumb span { margin: 0 6px; }

/* ===== PAGE HEADER ===== */
.page-header { background: linear-gradient(135deg, #0d3d7a, #1558a8); padding: 56px 32px 64px; position: relative; overflow: hidden; text-align: center; }
.page-header::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 48px; background: #fff; clip-path: ellipse(55% 100% at 50% 100%); }
.page-header-inner { max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }
.page-header-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.65); margin-bottom: 12px; }
.page-header h1 { font-family: 'Merriweather', Georgia, serif; font-size: clamp(28px, 4vw, 48px); font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 16px; }
.page-header p { font-size: 17px; color: rgba(255,255,255,0.8); line-height: 1.7; margin-bottom: 28px; }

.search-bar { display: flex; gap: 0; max-width: 520px; margin: 0 auto; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.2); }
.search-bar input { flex: 1; padding: 15px 20px; border: none; font-size: 15px; font-family: 'Inter', sans-serif; outline: none; background: #fff; color: var(--ink); }
.search-bar button { background: var(--amber); color: #fff; border: none; padding: 15px 22px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: 'Inter', sans-serif; white-space: nowrap; transition: background .2s; }
.search-bar button:hover { background: #b45309; }
.search-bar button i { margin-right: 6px; }

/* ===== MAIN LAYOUT ===== */
.blog-wrap { max-width: 1200px; margin: 0 auto; padding: 64px 32px; display: grid; grid-template-columns: 1fr 280px; gap: 48px; align-items: start; }

/* ===== CATEGORY FILTER ===== */
.category-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.cat-btn { background: #fff; border: 1.5px solid var(--border); border-radius: 20px; padding: 7px 16px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .2s; font-family: 'Inter', sans-serif; }
.cat-btn:hover, .cat-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ===== FEATURED POST ===== */
.featured-post { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin-bottom: 32px; display: grid; grid-template-columns: 1fr 1fr; transition: all .2s; box-shadow: 0 2px 12px rgba(21,88,168,0.06); }
.featured-post:hover { border-color: var(--blue); box-shadow: 0 8px 32px rgba(21,88,168,0.1); transform: translateY(-2px); }
.featured-img { background: linear-gradient(135deg, #1558a8, #0d3d7a); min-height: 280px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; background-size: cover; background-position: center; }
.featured-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.featured-img-icon { font-size: 72px; opacity: 0.15; color: #fff; position: relative; z-index: 0; }
.featured-tag { position: absolute; top: 16px; left: 16px; background: var(--amber); color: #fff; font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px; z-index: 1; }
.featured-body { padding: 32px; }
.featured-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.featured-body h2 { font-family: 'Merriweather', Georgia, serif; font-size: 24px; font-weight: 700; color: var(--ink); line-height: 1.3; margin-bottom: 12px; }
.featured-body h2 a { color: inherit; transition: color .2s; }
.featured-body h2 a:hover { color: var(--blue); }
.featured-excerpt { font-size: 15px; color: var(--muted); line-height: 1.75; margin-bottom: 20px; }
.featured-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.meta-badge { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.meta-badge i { font-size: 11px; color: var(--blue); }
.expert-badge { display: flex; align-items: center; gap: 5px; background: #f0faf7; border: 1px solid #a7f3d0; border-radius: 20px; padding: 4px 10px; font-size: 11px; font-weight: 600; color: var(--green); }
.expert-badge i { font-size: 10px; }
.read-more { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 700; font-size: 14px; margin-top: 16px; transition: gap .2s; }
.read-more:hover { gap: 10px; }

/* ===== POST GRID ===== */
.post-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 36px; }
.post-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: all .2s; display: flex; flex-direction: column; }
.post-card:hover { border-color: var(--blue); box-shadow: 0 6px 24px rgba(21,88,168,0.1); transform: translateY(-2px); }
.post-card-img { height: 180px; background: linear-gradient(135deg, #1558a8, #0d3d7a); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; background-size: cover; background-position: center; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.post-card-img.green  { background: linear-gradient(135deg, #059669, #047857); }
.post-card-img.purple { background: linear-gradient(135deg, #7c3aed, #5b21b6); }
.post-card-img.red    { background: linear-gradient(135deg, #dc2626, #991b1b); }
.post-card-img.amber  { background: linear-gradient(135deg, #d97706, #92400e); }
.post-card-img.teal   { background: linear-gradient(135deg, #0891b2, #0e7490); }
.post-card-img.slate  { background: linear-gradient(135deg, #475569, #334155); }
.post-img-icon { font-size: 48px; opacity: 0.15; color: #fff; position: relative; z-index: 0; }
.post-cat-tag { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,0.2); backdrop-filter: blur(4px); color: #fff; font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.3); text-transform: uppercase; letter-spacing: 0.5px; z-index: 1; }
.post-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-cat { font-size: 11px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.post-body h3 { font-family: 'Merriweather', Georgia, serif; font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.35; margin-bottom: 10px; flex: 1; }
.post-body h3 a { color: inherit; transition: color .2s; }
.post-body h3 a:hover { color: var(--blue); }
.post-excerpt { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 14px; }
.post-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }
.post-date { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.post-date i { font-size: 10px; color: var(--blue); }
.post-verified { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--green); }
.post-verified i { font-size: 10px; }
.post-read-link { font-size: 12px; font-weight: 700; color: var(--blue); display: flex; align-items: center; gap: 4px; transition: gap .2s; }
.post-read-link:hover { gap: 7px; }

/* ===== LIST POSTS ===== */
.post-list { display: flex; flex-direction: column; gap: 16px; }
.post-list-item { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px; display: grid; grid-template-columns: 80px 1fr; gap: 16px; align-items: start; transition: all .2s; }
.post-list-item:hover { border-color: var(--blue); box-shadow: 0 4px 16px rgba(21,88,168,0.08); }
.list-thumb { width: 80px; height: 80px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; overflow: hidden; background-size: cover; background-position: center; }
.list-thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.list-thumb i { font-size: 28px; opacity: 0.6; color: #fff; position: relative; z-index: 0; }
.list-thumb.blue   { background: linear-gradient(135deg, #1558a8, #0d3d7a); }
.list-thumb.green  { background: linear-gradient(135deg, #059669, #047857); }
.list-thumb.purple { background: linear-gradient(135deg, #7c3aed, #5b21b6); }
.list-thumb.amber  { background: linear-gradient(135deg, #d97706, #92400e); }
.list-thumb.red    { background: linear-gradient(135deg, #dc2626, #991b1b); }
.list-thumb.teal   { background: linear-gradient(135deg, #0891b2, #0e7490); }
.list-thumb.slate  { background: linear-gradient(135deg, #475569, #334155); }
.list-body h3 { font-family: 'Merriweather', Georgia, serif; font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.35; margin-bottom: 6px; }
.list-body h3 a { color: inherit; transition: color .2s; }
.list-body h3 a:hover { color: var(--blue); }
.list-excerpt { font-size: 13px; color: var(--muted); line-height: 1.65; margin-bottom: 10px; }
.list-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.list-cat { font-size: 11px; font-weight: 700; color: var(--blue); background: var(--blue-pale); padding: 3px 8px; border-radius: 10px; }
.list-date { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.list-date i { font-size: 10px; }
.list-ev { font-size: 11px; font-weight: 600; color: var(--green); display: flex; align-items: center; gap: 3px; }
.list-ev i { font-size: 10px; }

/* ===== PAGINATION ===== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.page-btn { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; border: 1.5px solid var(--border); background: #fff; color: var(--muted); cursor: pointer; transition: all .2s; font-family: 'Inter', sans-serif; text-decoration: none; }
.page-btn:hover, .page-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.page-btn.next { width: auto; padding: 0 16px; gap: 6px; display: flex; align-items: center; }

/* ===== SIDEBAR ===== */
.blog-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 20px; }
.sidebar-box { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px; overflow: hidden; }
.sidebar-box h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.sidebar-cta { background: linear-gradient(135deg, #0d3d7a, #1558a8); border-radius: 14px; padding: 24px; }
.sidebar-cta h3 { font-family: 'Merriweather', Georgia, serif; font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.sidebar-cta p { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 16px; line-height: 1.6; }
.sidebar-phone { display: flex; align-items: center; justify-content: center; gap: 8px; background: #fff; color: var(--blue); padding: 13px; border-radius: 9px; font-weight: 800; font-size: 16px; margin-bottom: 10px; transition: all .2s; }
.sidebar-phone:hover { background: #f0f6ff; }
.sidebar-verify { display: block; text-align: center; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 11px; border-radius: 9px; font-size: 13px; font-weight: 500; transition: all .2s; }
.sidebar-verify:hover { background: rgba(255,255,255,0.2); }
.sidebar-disclaimer { font-size: 10px; color: rgba(255,255,255,0.4); text-align: center; margin-top: 10px; line-height: 1.5; }

.cat-list { display: flex; flex-direction: column; gap: 0; }
.cat-list-item { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; transition: color .2s; cursor: pointer; }
.cat-list-item:last-child { border-bottom: none; }
.cat-list-item:hover { color: var(--blue); }
.cat-list-item span { background: var(--bg); border-radius: 10px; padding: 2px 8px; font-size: 11px; font-weight: 700; color: var(--muted); }

.popular-post { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.popular-post:last-child { border-bottom: none; }
.popular-thumb { width: 52px; height: 52px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.popular-thumb i { font-size: 20px; opacity: 0.6; color: #fff; }
.popular-title { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.4; margin-bottom: 4px; transition: color .2s; }
.popular-title:hover { color: var(--blue); }
.popular-meta { font-size: 11px; color: var(--muted); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pill { background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 5px 12px; font-size: 12px; font-weight: 500; color: var(--muted); transition: all .2s; cursor: pointer; text-decoration: none; display: inline-block; }
.tag-pill:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

.newsletter-box { background: linear-gradient(135deg, #f0faf7, #e8f1fb); border: 1px solid #a7f3d0; border-radius: 14px; padding: 22px; }
.newsletter-box h4 { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.newsletter-box p { font-size: 13px; color: var(--muted); margin-bottom: 14px; line-height: 1.6; }
.newsletter-input { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: 'Inter', sans-serif; outline: none; margin-bottom: 8px; }
.newsletter-input:focus { border-color: var(--blue); }
.newsletter-btn { width: 100%; background: var(--green); color: #fff; border: none; padding: 12px; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: 'Inter', sans-serif; transition: background .2s; }
.newsletter-btn:hover { background: #1e7a4a; }
.newsletter-disclaimer { font-size: 10px; color: var(--muted); text-align: center; margin-top: 8px; }

/* ===== CTA BAND ===== */
.cta-band { background: linear-gradient(135deg, #0d3d7a, #1558a8); padding: 64px 32px; text-align: center; }
.cta-band h2 { font-family: 'Merriweather', Georgia, serif; font-size: clamp(24px, 3vw, 38px); color: #fff; font-weight: 700; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.8); font-size: 16px; max-width: 480px; margin: 0 auto 32px; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.btn-white { background: #fff; color: var(--blue); padding: 16px 28px; border-radius: 8px; font-weight: 700; font-size: 17px; display: inline-flex; align-items: center; gap: 10px; transition: all .2s; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.btn-white:hover { background: #f0f6ff; transform: translateY(-2px); }
.btn-outline-w { background: transparent; border: 2px solid rgba(255,255,255,0.4); color: #fff; padding: 16px 24px; border-radius: 8px; font-weight: 500; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; transition: all .2s; }
.btn-outline-w:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1060px) {
  .blog-wrap { grid-template-columns: 1fr; padding: 48px 24px; }
  .blog-sidebar { position: static; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-img { min-height: 200px; }
}
@media (max-width: 768px) {
  .page-header { padding: 40px 16px 56px; }
  .blog-wrap { padding: 36px 16px; }
  .post-grid { grid-template-columns: 1fr; }
  .breadcrumb { padding: 10px 0; }
  .breadcrumb-inner { padding: 0 16px; }
  .cta-band { padding: 48px 16px; }
  .cta-actions { flex-direction: column; align-items: center; }
  .btn-white, .btn-outline-w { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .post-list-item { grid-template-columns: 1fr; }
  .list-thumb { display: none; }
}
