/*
Theme Name: AI Digital Guides
Theme URI: https://aidigitalguides.com
Author: AI Digital Guides
Description: Custom WordPress theme built pixel-for-pixel from the AI Digital Guides HTML designs. AdSense-ready, fully editable via WordPress Customizer.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: aidg
Tags: blog, custom-menu, featured-images, threaded-comments
*/

/* =====================================================
   CSS VARIABLES — from your HTML files exactly
   ===================================================== */
:root {
  --primary:        #02335d;
  --secondary:      #00658d;
  --accent-orange:  #ffa15e;
  --accent-dark:    #532500;
  --primary-container: #234a75;
  --surface:        #f9f9fd;
  --surface-low:    #f4f3f7;
  --surface-mid:    #eeedf2;
  --surface-high:   #e8e8ec;
  --white:          #ffffff;
  --on-surface:     #1a1c1f;
  --on-surface-var: #43474f;
  --muted:          #73777f;
  --outline:        #e2e2e6;
  --outline-var:    #c3c6d0;
  --font-head:      'Plus Jakarta Sans', sans-serif;
  --font-body:      'Geist', system-ui, sans-serif;
  --radius-sm:      6px;
  --radius:         8px;
  --radius-md:      12px;
  --radius-lg:      14px;
  --radius-xl:      16px;
  --radius-full:    9999px;
  --shadow-nav:     0 4px 20px rgba(0,0,0,.05);
  --shadow-card:    0 8px 24px rgba(2,51,93,.08);
  --shadow-hover:   0 10px 30px rgba(2,51,93,.1);
  --max-w:          1152px; /* max-w-6xl = 72rem */
}

/* =====================================================
   RESET
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface-low); }
::-webkit-scrollbar-thumb { background: rgba(2,51,93,.3); border-radius: 3px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* =====================================================
   LAYOUT
   ===================================================== */
.wrap {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
@media (min-width: 768px) {
  .wrap { padding-left: 48px; padding-right: 48px; }
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
.t-head-xl {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.t-head-lg {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 32px);
  line-height: 1.2;
}
.t-head-md {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
}
.t-head-sm {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
}
.t-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 12px 28px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .2s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(2,51,93,.25); }
.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: var(--radius);
  padding: 10px 24px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .2s;
  text-decoration: none;
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* =====================================================
   CARDS
   ===================================================== */
.card {
  background: var(--white);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  transition: border-color .25s, box-shadow .25s, transform .2s;
}
.card:hover {
  border-color: rgba(2,51,93,.2);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.ai-gradient-border { position: relative; }
.ai-gradient-border::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent-orange));
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* =====================================================
   PILLS / TAGS
   ===================================================== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
}
.pill-navy { background: rgba(2,51,93,.1); color: var(--primary); border: 1px solid rgba(2,51,93,.2); }
.pill-white { background: rgba(255,255,255,.15); color: #fff; }
.pill-white-solid { background: #fff; color: var(--primary); }
.tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
}
.tag-navy    { background: rgba(2,51,93,.08);   color: var(--primary); }
.tag-blue    { background: rgba(0,101,141,.08); color: var(--secondary); }
.tag-orange  { background: rgba(255,161,94,.12); color: var(--accent-dark); }
.tag-white   { background: #fff; color: var(--primary); }
.tag-wglass  { background: rgba(255,255,255,.15); color: #fff; }

/* =====================================================
   ADSENSE ZONES
   ===================================================== */
.adsense-slot {
  background: var(--surface-low);
  border: 1px dashed var(--outline-var);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  font-family: var(--font-body);
  width: 100%;
}

/* =====================================================
   NAVIGATION
   ===================================================== */
#site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--outline);
  box-shadow: var(--shadow-nav);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) { .header-inner { padding: 0 48px; } }
.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-icon .material-symbols-outlined { color: #fff; font-size: 18px; }
.logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
  color: var(--primary);
}
/* if custom logo uploaded */
.site-logo img { height: 40px; width: auto; }
.site-nav {
  display: none;
  align-items: center;
  gap: 32px;
}
@media (min-width: 768px) { .site-nav { display: flex; } }
.nav-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--on-surface-var);
  transition: color .2s;
  text-decoration: none;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link.active { border-bottom: 2px solid var(--primary); padding-bottom: 2px; }
.nav-cta {
  display: none;
}
@media (min-width: 768px) { .nav-cta { display: inline-flex; } }
.menu-toggle {
  display: flex;
  padding: 8px;
}
@media (min-width: 768px) { .menu-toggle { display: none; } }
.menu-toggle .material-symbols-outlined { color: var(--primary); font-size: 24px; }
.mobile-menu {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--outline);
  padding: 16px 24px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 10px 0;
  font-weight: 600;
  font-size: 15px;
  color: var(--on-surface-var);
  border-bottom: 1px solid var(--outline);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--primary); }

/* =====================================================
   PROGRESS BAR (single posts)
   ===================================================== */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-orange));
  z-index: 200;
  width: 0%;
  transition: width .1s linear;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--primary);
  color: #8fa3bd;
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 48px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-brand-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  color: #fff;
}
.footer-desc { font-size: 13px; line-height: 1.6; margin-top: 12px; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a { color: #8fa3bd; transition: color .2s; }
.footer-social a:hover { color: var(--accent-orange); }
.footer-col-title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 13px; color: #8fa3bd; transition: color .2s; }
.footer-links a:hover { color: var(--accent-orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 12px; }

/* =====================================================
   HOME: HERO
   ===================================================== */
.home-hero {
  background: linear-gradient(160deg, var(--surface-low) 0%, var(--surface-mid) 100%);
  padding: 80px 0;
  overflow: hidden;
}
.home-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
}
@media (min-width: 768px) {
  .home-hero-inner { flex-direction: row; align-items: center; }
  .home-hero-inner > * { width: 50%; }
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero-title { color: var(--on-surface); }
.hero-title .accent { color: var(--secondary); }
.hero-desc { font-size: 18px; line-height: 1.7; color: var(--on-surface-var); max-width: 480px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 8px; }
.hero-image-wrap { position: relative; }
.hero-image-wrap img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px rgba(2,51,93,.15);
}
.hero-stat-card {
  position: absolute;
  bottom: -24px;
  left: -16px;
  background: var(--white);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  padding: 20px;
  max-width: 220px;
  box-shadow: 0 12px 40px rgba(2,51,93,.12);
}
.hero-stat-card .label { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.hero-stat-card .label .material-symbols-outlined {
  color: var(--secondary);
  font-size: 18px;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.hero-stat-card .value { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--on-surface); }
.hero-stat-card .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* =====================================================
   HOME: ADSENSE LEADERBOARD
   ===================================================== */
.ad-leaderboard { padding: 32px 0; }
.ad-leaderboard .adsense-slot { height: 90px; }

/* =====================================================
   HOME: CATEGORIES BENTO
   ===================================================== */
.section-categories { padding: 64px 0; }
.section-header { margin-bottom: 40px; }
.section-header h2 { color: var(--on-surface); }
.section-header p { color: var(--on-surface-var); margin-top: 6px; }
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .bento-grid { grid-template-columns: repeat(12, 1fr); }
  .bento-col-4  { grid-column: span 4; }
  .bento-col-6  { grid-column: span 6; }
  .bento-col-12 { grid-column: span 12; }
}
.bento-card {
  background: var(--white);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: border-color .25s, box-shadow .25s, transform .2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}
.bento-card:hover {
  border-color: rgba(2,51,93,.2);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.bento-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.bento-icon .material-symbols-outlined { font-size: 26px; }
.bento-icon-navy   { background: rgba(2,51,93,.08); }
.bento-icon-navy .material-symbols-outlined { color: var(--primary); }
.bento-icon-blue   { background: rgba(0,101,141,.08); }
.bento-icon-blue .material-symbols-outlined { color: var(--secondary); }
.bento-icon-orange { background: rgba(255,161,94,.12); }
.bento-icon-orange .material-symbols-outlined { color: var(--accent-orange); }
.bento-title { font-family: var(--font-head); font-weight: 700; font-size: 20px; margin-bottom: 8px; }
.bento-desc  { color: var(--on-surface-var); font-size: 14px; line-height: 1.6; }
.bento-link  {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
  margin-top: 20px;
  text-decoration: none;
  transition: gap .2s;
}
.bento-link:hover { gap: 10px; }
.bento-link-navy   { color: var(--primary); }
.bento-link-blue   { color: var(--secondary); }
.bento-link-orange { color: var(--accent-orange); }
/* Horizontal bento */
.bento-card-h {
  background: var(--white);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color .25s, box-shadow .25s, transform .2s;
  cursor: pointer;
  text-decoration: none;
}
.bento-card-h:hover {
  border-color: rgba(2,51,93,.2);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.bento-card-h-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bento-card-h-title { font-family: var(--font-head); font-weight: 700; font-size: 16px; }
.bento-card-h-sub   { font-size: 13px; color: var(--muted); }

/* =====================================================
   HOME: LATEST ARTICLES
   ===================================================== */
.section-latest { background: var(--surface-low); padding: 64px 0; }
.section-latest-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}
.section-latest-header a { color: var(--primary); font-weight: 700; font-size: 13px; text-decoration: none; }
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) { .posts-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { overflow: hidden; }
.post-card-thumb { position: relative; height: 200px; overflow: hidden; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-card-thumb img { transform: scale(1.05); }
.post-card-cat {
  position: absolute;
  top: 12px; left: 12px;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
.cat-navy   { background: var(--primary); }
.cat-blue   { background: var(--secondary); }
.cat-orange { background: var(--accent-orange); color: var(--accent-dark); }
.post-card-body { padding: 24px; }
.post-card-meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.post-card-title { font-family: var(--font-head); font-weight: 700; font-size: 17px; margin-bottom: 8px; line-height: 1.4; color: var(--on-surface); }
.post-card:hover .post-card-title { color: var(--primary); }
.post-card-excerpt { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.post-card-link {
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* =====================================================
   HOME: NEWSLETTER
   ===================================================== */
.section-newsletter { padding: 64px 0; }
.newsletter-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  border-radius: 20px;
  padding: 64px 56px;
  position: relative;
  overflow: hidden;
}
.newsletter-box::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 33%; height: 100%;
  background: rgba(255,255,255,.04);
  transform: skewX(12deg);
}
.newsletter-box::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 256px; height: 256px;
  background: rgba(255,255,255,.04);
  border-radius: var(--radius-full);
  filter: blur(40px);
}
.newsletter-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
}
@media (min-width: 768px) {
  .newsletter-inner { flex-direction: row; }
  .newsletter-inner > * { width: 50%; }
}
.newsletter-copy { color: #fff; }
.newsletter-title { font-family: var(--font-head); font-weight: 800; font-size: 28px; margin-bottom: 12px; }
.newsletter-desc  { opacity: .85; font-size: 16px; line-height: 1.7; margin-bottom: 16px; }
.newsletter-checks { list-style: none; }
.newsletter-checks li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 8px;
}
.newsletter-form-wrap {
  background: var(--white);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  position: relative;
  z-index: 1;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.newsletter-form input[type="email"] {
  width: 100%;
  background: var(--surface-low);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--on-surface);
  outline: none;
  transition: border-color .2s;
}
.newsletter-form input[type="email"]:focus { border-color: var(--primary); }
.newsletter-form .btn-primary { justify-content: center; }
.newsletter-privacy { color: rgba(255,255,255,.55); font-size: 12px; margin-top: 10px; text-align: center; }

/* =====================================================
   BLOG HERO
   ===================================================== */
.blog-hero {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding-bottom: 48px;
  text-align: center;
}
.blog-hero h1 { font-family: var(--font-head); font-weight: 800; font-size: clamp(28px,5vw,42px); color: #fff; margin-bottom: 12px; }
.blog-hero p { color: rgba(255,255,255,.8); font-size: 17px; line-height: 1.7; margin-bottom: 28px; }
.cat-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cat-pill {
  display: inline-block;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
}
.cat-pill-active  { background: #fff; color: var(--primary); }
.cat-pill-default { background: rgba(255,255,255,.15); color: #fff; }
.cat-pill-default:hover { background: rgba(255,255,255,.3); }

/* =====================================================
   BLOG LAYOUT (2-col + sidebar)
   ===================================================== */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 0 0 80px;
}
@media (min-width: 1024px) {
  .blog-layout { grid-template-columns: 1fr 320px; gap: 32px; }
}
.blog-main { display: flex; flex-direction: column; gap: 32px; }

/* Featured article */
.featured-article { overflow: hidden; border-radius: 16px; }
.featured-article .feat-img { position: relative; height: 280px; overflow: hidden; }
.featured-article .feat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.featured-article:hover .feat-img img { transform: scale(1.05); }
.featured-article .feat-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--primary);
  color: #fff;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
}
.featured-article .feat-body { padding: 28px; }
.featured-article .feat-title { font-family: var(--font-head); font-weight: 800; font-size: 24px; line-height: 1.3; color: var(--on-surface); margin-bottom: 10px; }
.featured-article:hover .feat-title { color: var(--primary); }
.featured-article .feat-excerpt { font-size: 15px; color: var(--on-surface-var); line-height: 1.7; margin-bottom: 20px; }

/* Article grid */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
.article-card { overflow: hidden; }
.article-card .ac-thumb { height: 160px; overflow: hidden; }
.article-card .ac-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.article-card:hover .ac-thumb img { transform: scale(1.05); }
.article-card .ac-body { padding: 20px; }
.article-card .ac-title { font-family: var(--font-head); font-weight: 700; font-size: 16px; line-height: 1.4; margin-bottom: 6px; }
.article-card:hover .ac-title { color: var(--primary); }
.article-card .ac-excerpt { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 12px; }
.article-card .ac-link { font-size: 13px; color: var(--primary); font-weight: 700; text-decoration: none; }

/* Blog sidebar */
.blog-sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  padding: 24px;
}
.sidebar-widget-nl {
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  border-radius: 14px;
  padding: 28px;
  color: #fff;
}
.sidebar-widget-title { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.sidebar-nl-title { font-family: var(--font-head); font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.sidebar-nl-desc  { font-size: 13px; opacity: .8; line-height: 1.6; margin-bottom: 16px; }
.sidebar-nl-input {
  width: 100%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  margin-bottom: 10px;
}
.sidebar-nl-btn {
  width: 100%;
  background: var(--accent-orange);
  color: #fff;
  border-radius: var(--radius);
  padding: 11px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: filter .2s;
}
.sidebar-nl-btn:hover { filter: brightness(1.1); }
/* Trending prompts */
.prompt-item { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--surface-low); }
.prompt-item:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.prompt-key { font-family: var(--font-body); font-size: 11px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.prompt-text { font-size: 12px; color: var(--muted); line-height: 1.5; }
/* Popular posts */
.popular-post { display: flex; gap: 12px; text-decoration: none; }
.popular-post + .popular-post { margin-top: 16px; }
.popular-post img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.popular-post-title { font-family: var(--font-head); font-size: 13px; font-weight: 700; color: var(--on-surface); line-height: 1.4; }
.popular-post-reads { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--outline);
  color: var(--on-surface-var);
  transition: all .2s;
  text-decoration: none;
}
.pagination .page-numbers:hover { border-color: var(--primary); color: var(--primary); }
.pagination .page-numbers.current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .page-numbers.dots { border: none; }

/* =====================================================
   SINGLE POST
   ===================================================== */
.single-wrap { padding-bottom: 0; }
.breadcrumb {
  padding: 16px 0;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.post-header { padding-bottom: 32px; }
.post-category-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  background: rgba(2,51,93,.08);
  color: var(--primary);
  margin-bottom: 16px;
}
.post-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.2;
  color: var(--primary);
  margin-bottom: 24px;
}
.post-meta-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.post-meta-row span { font-size: 13px; color: var(--muted); }
.author-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--surface-low);
  border-radius: var(--radius-md);
  margin-bottom: 28px;
}
.author-bar img { width: 48px; height: 48px; border-radius: var(--radius-full); object-fit: cover; }
.author-bar .name { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--on-surface); }
.author-bar .role { font-size: 12px; color: var(--muted); }
.author-bar .views { margin-left: auto; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.post-hero-img {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 32px;
  box-shadow: 0 8px 30px rgba(0,0,0,.1);
}
/* Two-column layout */
.post-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 80px;
}
@media (min-width: 1024px) {
  .post-layout { grid-template-columns: 1fr 280px; }
}
/* Article body typography */
.article-body h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  color: var(--primary);
  border-bottom: 1px solid var(--outline);
  padding-bottom: 12px;
  margin: 40px 0 18px;
}
.article-body h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  color: var(--primary);
  margin: 32px 0 12px;
}
.article-body p { font-size: 16px; line-height: 1.85; color: var(--on-surface-var); margin-bottom: 18px; }
.article-body a { color: var(--secondary); border-bottom: 1px solid rgba(0,101,141,.25); }
.article-body a:hover { border-color: var(--secondary); }
.article-body blockquote {
  border-left: 4px solid var(--secondary);
  background: var(--surface-low);
  padding: 18px 24px;
  border-radius: 0 10px 10px 0;
  color: var(--primary);
  font-style: italic;
  margin: 28px 0;
}
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 18px; list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 8px; line-height: 1.7; color: var(--on-surface-var); }
.article-body code {
  background: rgba(0,101,141,.08);
  border: 1px solid rgba(0,101,141,.18);
  color: var(--secondary);
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 14px;
  font-family: 'Courier New', monospace;
}
.article-body pre {
  background: var(--surface-mid);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  padding: 20px;
  overflow-x: auto;
  margin: 20px 0;
}
.article-body pre code { background: transparent; border: none; color: var(--on-surface); }
.article-body img { border-radius: var(--radius-md); margin: 16px 0; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; padding-top: 20px; border-top: 1px solid var(--outline); }
.post-tag {
  background: var(--surface-low);
  border: 1px solid var(--outline);
  border-radius: var(--radius-full);
  padding: 4px 14px;
  font-size: 12px;
  color: var(--on-surface-var);
  text-decoration: none;
}
.post-tag:hover { background: rgba(2,51,93,.08); color: var(--primary); }
/* Related articles */
.related-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
.related-card-link {
  display: flex;
  gap: 12px;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--outline);
  border-radius: 10px;
  padding: 16px;
  transition: box-shadow .2s, transform .2s;
}
.related-card-link:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.related-card-link img { width: 64px; height: 64px; border-radius: var(--radius); object-fit: cover; flex-shrink: 0; }
.related-cat  { font-size: 11px; font-weight: 700; margin-bottom: 4px; }
.related-title { font-family: var(--font-head); font-size: 14px; font-weight: 700; color: var(--on-surface); line-height: 1.4; }
/* Post sidebar sticky */
.post-sidebar { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 1024px) { .post-sidebar { position: sticky; top: 96px; align-self: start; } }
.toc-widget { background: var(--white); border: 1px solid var(--outline); border-radius: var(--radius-md); padding: 24px; }
.toc-title { font-family: var(--font-head); font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 14px; }
.toc-list { list-style: none; font-size: 13px; color: var(--on-surface-var); line-height: 1.8; }
.toc-list li { padding: 4px 0; padding-left: 12px; margin-bottom: 4px; cursor: pointer; transition: color .2s; }
.toc-list li.active { border-left: 2px solid var(--primary); padding-left: 10px; color: var(--primary); font-weight: 600; }
.toc-list li:hover { color: var(--primary); }
/* Post bottom newsletter */
.post-nl-section {
  background: var(--primary);
  padding: 64px 0;
  text-align: center;
}
.post-nl-section h2 { font-family: var(--font-head); font-weight: 800; font-size: 28px; color: #fff; margin-bottom: 12px; }
.post-nl-section p  { color: rgba(255,255,255,.75); font-size: 16px; margin-bottom: 28px; }
.post-nl-form { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; }
.post-nl-form input {
  flex: 1;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: #fff;
  font-size: 14px;
  outline: none;
  font-family: var(--font-body);
}
.post-nl-btn {
  background: var(--accent-orange);
  color: #fff;
  border-radius: var(--radius);
  padding: 14px 24px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: filter .2s;
}
.post-nl-btn:hover { filter: brightness(1.1); }

/* =====================================================
   ABOUT PAGE
   ===================================================== */
.about-hero {
  background: linear-gradient(160deg, var(--primary) 0%, var(--secondary) 100%);
  overflow: hidden;
  position: relative;
}
.about-hero::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,.04);
  border-radius: var(--radius-full);
}
.about-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) {
  .about-hero-inner { flex-direction: row; }
  .about-hero-inner > * { width: 50%; }
}
.about-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  border-radius: var(--radius-full);
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .05em;
  margin-bottom: 20px;
}
.about-hero-title { font-family: var(--font-head); font-weight: 800; font-size: clamp(28px,4vw,40px); line-height: 1.2; color: #fff; margin-bottom: 16px; }
.about-hero-desc  { color: rgba(255,255,255,.8); font-size: 17px; line-height: 1.7; margin-bottom: 28px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-box { background: rgba(255,255,255,.12); border-radius: var(--radius-md); padding: 28px; text-align: center; }
.stat-num { font-family: var(--font-head); font-weight: 800; font-size: 28px; color: #fff; }
.stat-lbl { font-size: 12px; color: rgba(255,255,255,.65); margin-top: 4px; }
.about-hero-img { width: 100%; border-radius: var(--radius-xl); box-shadow: 0 24px 60px rgba(0,0,0,.3); }
/* Mission section */
.about-mission { padding: 64px 0; background: var(--surface-low); }
.about-mission-lead { max-width: 800px; margin: 0 auto; text-align: center; margin-bottom: 40px; }
.value-cards { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .value-cards { grid-template-columns: repeat(3, 1fr); } }
.value-card {
  background: var(--white);
  border: 1px solid var(--outline);
  border-radius: 14px;
  padding: 28px;
  transition: box-shadow .25s, transform .2s;
}
.value-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.value-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.value-icon .material-symbols-outlined { font-size: 24px; }
.value-title { font-family: var(--font-head); font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.value-desc  { font-size: 14px; color: var(--muted); line-height: 1.6; }
/* Philosophy */
.about-philosophy { padding: 64px 0; }
.philosophy-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
}
@media (min-width: 768px) {
  .philosophy-inner { flex-direction: row; }
  .philosophy-inner > * { width: 50%; }
}
.philosophy-title { font-family: var(--font-head); font-weight: 700; font-size: clamp(24px,3vw,32px); color: var(--primary); margin-bottom: 16px; }
.philosophy-img { width: 100%; border-radius: var(--radius-xl); box-shadow: 0 12px 40px rgba(2,51,93,.12); }
.chips { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.chip {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
}
.chip-navy   { background: rgba(2,51,93,.08);   color: var(--primary); }
.chip-blue   { background: rgba(0,101,141,.08); color: var(--secondary); }
.chip-orange { background: rgba(255,161,94,.12); color: var(--accent-dark); }
/* Team */
.about-team { padding: 64px 0; background: var(--surface-low); }
.team-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.team-card {
  background: var(--white);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: box-shadow .25s;
}
.team-card:hover { box-shadow: var(--shadow-card); }
.team-avatar { width: 72px; height: 72px; border-radius: var(--radius-full); object-fit: cover; margin: 0 auto 14px; }
.team-name { font-family: var(--font-head); font-weight: 700; font-size: 17px; margin-bottom: 4px; }
.team-role { font-size: 12px; color: var(--secondary); font-weight: 600; margin-bottom: 10px; }
.team-bio  { font-size: 13px; color: var(--muted); line-height: 1.6; }
/* CTA */
.about-cta { padding: 64px 0; text-align: center; }
.about-cta h2 { font-family: var(--font-head); font-weight: 800; font-size: 30px; color: var(--on-surface); margin-bottom: 12px; }
.about-cta p  { font-size: 16px; color: var(--muted); line-height: 1.7; margin-bottom: 28px; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* =====================================================
   CONTACT PAGE
   ===================================================== */
.contact-hero  { padding-bottom: 0; }
.contact-title { font-family: var(--font-head); font-weight: 800; font-size: clamp(28px,4vw,40px); line-height: 1.2; color: var(--on-surface); margin-bottom: 12px; }
.contact-title .accent { color: var(--secondary); }
.contact-sub { font-size: 17px; color: var(--muted); line-height: 1.7; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding: 48px 0 64px;
  align-items: start;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
/* Info cards */
.contact-info-stack { display: flex; flex-direction: column; gap: 16px; }
.contact-info-card {
  background: var(--white);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.ci-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ci-icon .material-symbols-outlined { font-size: 20px; }
.ci-icon-navy   { background: rgba(2,51,93,.08); }
.ci-icon-navy .material-symbols-outlined { color: var(--primary); }
.ci-icon-blue   { background: rgba(0,101,141,.08); }
.ci-icon-blue .material-symbols-outlined { color: var(--secondary); }
.ci-icon-orange { background: rgba(255,161,94,.12); }
.ci-icon-orange .material-symbols-outlined { color: var(--accent-orange); }
.ci-title { font-family: var(--font-head); font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.ci-text  { font-size: 13px; color: var(--muted); }
.contact-workspace-img { width: 100%; border-radius: 14px; box-shadow: 0 8px 30px rgba(2,51,93,.1); margin-top: 16px; }
/* Contact form */
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--outline);
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 4px 20px rgba(2,51,93,.06);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-group { margin-bottom: 14px; }
.field-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.field-input {
  width: 100%;
  background: var(--surface-low);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--on-surface);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.field-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(2,51,93,.08); }
.field-textarea { resize: vertical; min-height: 130px; }
.success-msg {
  background: rgba(16,185,129,.08);
  border: 1px solid rgba(16,185,129,.25);
  border-radius: 10px;
  color: #047857;
  padding: 14px 18px;
  font-size: 14px;
  display: none;
  margin-bottom: 20px;
}
/* Commitment section */
.commitment-section { padding: 56px 0; background: var(--surface-low); }
.commitment-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .commitment-grid { grid-template-columns: repeat(3, 1fr); } }
.commitment-card {
  background: var(--white);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  padding: 24px;
}
.commitment-card .material-symbols-outlined { font-size: 28px; display: block; margin-bottom: 10px; }
.commitment-title { font-family: var(--font-head); font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.commitment-desc  { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* =====================================================
   LEGAL PAGES
   ===================================================== */
.legal-wrap { padding-bottom: 64px; max-width: 768px; margin: 0 auto; }
.legal-title { font-family: var(--font-head); font-weight: 800; font-size: 36px; color: var(--on-surface); margin-bottom: 8px; }
.legal-date  { font-size: 13px; color: var(--muted); margin-bottom: 32px; }
.legal-body h2 { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--primary); margin: 36px 0 12px; }
.legal-body p, .legal-body li { font-size: 15px; color: var(--on-surface-var); line-height: 1.8; margin-bottom: 12px; }
.legal-body ul { padding-left: 20px; list-style: disc; }
.legal-body a { color: var(--secondary); }

/* =====================================================
   DEFAULT PAGE / 404 / SEARCH
   ===================================================== */
.page-wrap { padding-bottom: 64px; max-width: 860px; margin: 0 auto; }
.page-title { font-family: var(--font-head); font-weight: 800; font-size: clamp(28px,4vw,42px); color: var(--on-surface); margin-bottom: 24px; }
.page-content h2 { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--primary); margin: 32px 0 12px; }
.page-content p  { font-size: 16px; line-height: 1.8; color: var(--on-surface-var); margin-bottom: 16px; }

/* =====================================================
   COMMENTS
   ===================================================== */
.comments-area { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--outline); }
.comments-title, .comment-reply-title { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--on-surface); margin-bottom: 24px; }
.comment-list { list-style: none; }
.comment { margin-bottom: 24px; padding: 20px; background: var(--white); border: 1px solid var(--outline); border-radius: var(--radius-md); }
.comment-author b { font-weight: 700; color: var(--on-surface); }
.comment-metadata { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.comment-content p { font-size: 15px; color: var(--on-surface-var); line-height: 1.7; }
.comment-form label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 16px;
  background: var(--surface-low);
  outline: none;
  transition: border-color .2s;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--primary); }
.comment-form input[type="submit"] {
  background: var(--primary);
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: filter .2s;
}
.comment-form input[type="submit"]:hover { filter: brightness(1.1); }

/* =====================================================
   MATERIAL SYMBOLS
   ===================================================== */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  vertical-align: middle;
}

/* =====================================================
   UTILS
   ===================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); }
.wp-caption-text { font-size: 13px; color: var(--muted); text-align: center; margin-top: 4px; }

/* =====================================================
   CUSTOMIZER LIVE PREVIEW ANCHORS
   ===================================================== */
[data-editable] { outline: none; }


/* =====================================================
   DEFINITIVE SPACING v2.2
   ONE source of truth for all page top spacing.
   Fixed header = 80px. WP admin bar = 32px desktop / 46px mobile.
   ===================================================== */

/* ── NAV height variable ─────────────────────────── */
:root { --nav-h: 80px; --admin-h: 0px; }
.admin-bar { --admin-h: 32px; }
@media (max-width: 782px) { .admin-bar { --admin-h: 46px; } }

/* ── Fixed header position ───────────────────────── */
#site-header {
  top: 0;
}
.admin-bar #site-header {
  top: var(--admin-h);
}

/* ── HOME: hero clears fixed nav ──────────────────── */
.home-hero {
  margin-top: calc(var(--nav-h) + var(--admin-h));
  padding: 64px 0 80px;
}
@media (min-width: 768px) {
  .home-hero { padding: 72px 0 96px; }
}

/* ── BLOG INDEX / ARCHIVE / SEARCH: hero clears nav ─ */
.blog-hero {
  padding-top: calc(var(--nav-h) + var(--admin-h) + 48px);
}

/* ── SINGLE POST clears nav ───────────────────────── */
.single-wrap {
  padding-top: calc(var(--nav-h) + var(--admin-h));
}

/* ── ABOUT PAGE hero clears nav ───────────────────── */
.about-hero {
  padding-top: calc(var(--nav-h) + var(--admin-h) + 64px);
  padding-bottom: 64px;
}

/* ── CONTACT PAGE clears nav ──────────────────────── */
.contact-page-wrap {
  padding-top: calc(var(--nav-h) + var(--admin-h));
}

/* ── LEGAL / DEFAULT PAGES clear nav ──────────────── */
.legal-wrap    { padding-top: calc(var(--nav-h) + var(--admin-h) + 32px); }
.page-wrap     { padding-top: calc(var(--nav-h) + var(--admin-h) + 32px); }

/* ── 404 PAGE ─────────────────────────────────────── */
.page-404 {
  padding-top: calc(var(--nav-h) + var(--admin-h));
  min-height: 70vh;
  display: flex;
  align-items: center;
}

/* ── HERO badge — never stretch ───────────────────── */
.hero-copy .pill {
  align-self: flex-start;
  width: auto !important;
  max-width: fit-content;
}

/* ── HERO title size ──────────────────────────────── */
.hero-title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
}

/* ── HERO image stat card clearance ──────────────── */
.hero-image-wrap { padding-bottom: 36px; }

/* ── POSTS GRID — always 3 col on desktop ─────────── */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 600px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px){ .posts-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── POST CARDS equal height ──────────────────────── */
.post-card { display: flex; flex-direction: column; }
.post-card .post-card-body { flex: 1; display: flex; flex-direction: column; }
.post-card .post-card-excerpt { flex: 1; }

/* ── ARTICLE BODY max-width ───────────────────────── */
.article-body { max-width: 740px; }

/* ── BENTO CARDS consistent padding ──────────────── */
.bento-card { min-height: 195px; padding: 28px 28px 24px; }

/* ── SECTION spacings ─────────────────────────────── */
.section-categories { padding: 56px 0 64px; }
.section-latest     { padding: 56px 0 72px; }
.section-newsletter { padding: 56px 0 72px; }

/* ── NEWSLETTER BOX mobile ────────────────────────── */
@media (max-width: 640px) {
  .newsletter-box { padding: 40px 24px; }
  .newsletter-title { font-size: 22px; }
}

/* ── CONTACT breadcrumb spacing ───────────────────── */
.contact-breadcrumb { padding-top: calc(var(--nav-h) + var(--admin-h) + 16px); padding-bottom: 0; }

/* ── FOOTER ───────────────────────────────────────── */
@media (max-width: 767px) { .footer-grid { gap: 20px; } }

/* ── MOBILE MENU top position ─────────────────────── */
#mobile-menu {
  top: calc(var(--nav-h) + var(--admin-h));
  position: fixed;
  left: 0; right: 0;
  z-index: 99;
}

/* =====================================================
   FINAL FIXES v2.3
   ===================================================== */

/* Hero badge — small, inline, proper spacing below nav */
.hero-copy {
  gap: 20px; /* tighter gap between elements */
}
.hero-copy .pill {
  align-self: flex-start;
  width: auto !important;
  max-width: fit-content;
  margin-top: 8px; /* small push down from top */
}

/* Logo in nav — constrained height so it doesn't blow up layout */
.site-logo img,
.site-logo .custom-logo {
  height: 44px !important;
  width: auto !important;
  max-width: 220px;
  object-fit: contain;
}
.header-inner { height: 80px; } /* fixed regardless of logo size */

/* Social icons in footer */
.footer-social { display: flex; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.footer-social a {
  color: #8fa3bd;
  transition: color .2s, transform .2s;
  display: flex;
  align-items: center;
}
.footer-social a:hover { color: var(--accent-orange); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }

/* Adsense slot placeholder styling */
.adsense-slot {
  background: var(--surface-low);
  border: 1px dashed var(--outline-var);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  font-family: var(--font-body);
  width: 100%;
  min-height: 90px;
}
/* Hide placeholder text when real ad is injected */
.adsense-slot ins { display: block; }

/* Trending prompts sidebar from CPT */
.prompt-item { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--surface-low); }
.prompt-item:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.prompt-key  { font-size: 11px; font-weight: 700; color: var(--primary); margin-bottom: 4px; font-family: var(--font-body); }
.prompt-text { font-size: 12px; color: var(--muted); line-height: 1.5; }
