/* ============================================
   THE SIRZONE — Ghost Blog Theme
   Matching sirzone.co.za design system
   ============================================ */

:root {
  --green: #1a7a3c;
  --green-light: #22a050;
  --green-pale: #e8f5ed;
  --green-dark: #0f4d25;
  --dark: #0a1a0f;
  --dark-2: #112216;
  --text: #1a2e1f;
  --text-mid: #4a6352;
  --text-light: #7a9882;
  --white: #ffffff;
  --off-white: #f5faf6;
  --border: #d4e8da;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --shadow: 0 4px 24px rgba(10,50,20,0.10);
  --shadow-lg: 0 8px 48px rgba(10,50,20,0.16);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── UTILITIES ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius);
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600;
  cursor: pointer; border: none; transition: all .25s;
  text-decoration: none;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(26,122,60,.35); }
.btn-outline { background: transparent; color: var(--green); border: 2px solid var(--green); }
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-white { background: var(--white); color: var(--green-dark); }
.btn-white:hover { background: var(--green-pale); }
.btn-ghost { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }

.section-eyebrow {
  font-size: 12px; font-weight: 700; color: var(--green);
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px;
}
.section-headline {
  font-size: clamp(28px, 4vw, 42px); font-weight: 900;
  line-height: 1.12; letter-spacing: -.025em;
  color: var(--dark); margin-bottom: 16px;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-10px); } }
@keyframes pulse-dot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: .6; } }

.animate-on-scroll {
  opacity: 0; transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.animate-delay-1 { transition-delay: .1s; }
.animate-delay-2 { transition-delay: .2s; }
.animate-delay-3 { transition-delay: .3s; }

/* ── NAVBAR ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  transition: all .35s;
}
.nav.scrolled {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border), var(--shadow);
  padding: 12px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: 36px; }
.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text); font-size: 14px; font-weight: 500;
  padding: 8px 16px; border-radius: var(--radius); transition: all .2s;
}
.nav-links a:hover, .nav-links a.nav-blog-link { background: var(--green-pale); color: var(--green-dark); }
.nav-right { display: flex; gap: 12px; align-items: center; }
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

.mobile-menu {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--white); z-index: 200;
  flex-direction: column; align-items: center; justify-content: center; gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 22px; font-weight: 700; color: var(--text); text-decoration: none; transition: color .2s; }
.mobile-menu a:hover { color: var(--green); }
.mobile-menu-close { position: absolute; top: 24px; right: 32px; background: none; border: none; font-size: 28px; cursor: pointer; color: var(--text); }

/* ── BLOG HERO ── */
.blog-hero {
  min-height: 100vh;
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--off-white) 0%, #e0f0e8 50%, #cce8d8 100%);
  position: relative; overflow: hidden;
  padding: 130px 0 90px;
}
.hero-bg-shape {
  position: absolute; top: -100px; right: -150px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(26,122,60,.12) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero-bg-shape-2 {
  position: absolute; bottom: -80px; left: -120px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(26,122,60,.08) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.blog-hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green); color: var(--white);
  padding: 6px 16px; border-radius: var(--radius);
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeIn .6s ease both;
}
.hero-label .dot {
  display: inline-block; width: 7px; height: 7px;
  background: #7fffb0; border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}
.hero-headline {
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 900; line-height: 1.08;
  color: var(--dark); letter-spacing: -.03em;
  margin-bottom: 20px;
  animation: fadeUp .7s .1s ease both;
}
.hero-headline .accent { color: var(--green); }
.hero-sub {
  font-size: 17px; line-height: 1.7; color: var(--text-mid);
  max-width: 480px; margin-bottom: 36px;
  animation: fadeUp .7s .2s ease both;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; animation: fadeUp .7s .3s ease both; }
.hero-image-wrap { position: relative; animation: fadeUp .8s .25s ease both; }
.hero-img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: block; }
.hero-badge { 
  position: absolute; bottom: -20px; left: -20px;
  background: var(--white); border-radius: var(--radius);
  padding: 16px 20px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
  animation: float 3.5s ease-in-out infinite;
}
.hero-badge-icon {
  width: 44px; height: 44px; background: var(--green-pale);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
}
.hero-badge-text strong { display: block; font-size: 15px; font-weight: 800; color: var(--dark); }
.hero-badge-text span { font-size: 12px; color: var(--text-light); }

/* ── FEATURED POST ── */
.featured-post-section { padding: 80px 0 40px; }
.featured-post-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center;
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.featured-post-img { height: 420px; overflow: hidden; }
.featured-post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.featured-post-img:hover img { transform: scale(1.03); }
.no-image {
  width: 100%; height: 100%; background: var(--green-pale);
  display: flex; align-items: center; justify-content: center; font-size: 64px;
}
.featured-post-info { padding: 40px 40px 40px 0; }
.featured-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green); color: var(--white);
  padding: 5px 14px; border-radius: var(--radius);
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.post-tag-pill {
  display: inline-flex; align-items: center;
  background: var(--green-pale); color: var(--green-dark);
  padding: 5px 14px; border-radius: var(--radius);
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; transition: background .2s;
}
.post-tag-pill:hover { background: var(--border); }
.featured-title {
  font-size: clamp(22px, 3vw, 32px); font-weight: 900;
  line-height: 1.15; letter-spacing: -.02em; color: var(--dark);
  margin-bottom: 14px;
}
.featured-title a { color: inherit; text-decoration: none; }
.featured-title a:hover { color: var(--green); }
.featured-excerpt { font-size: 16px; line-height: 1.7; color: var(--text-mid); margin-bottom: 24px; }

.post-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.author-avatar-wrap { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 2px solid var(--green); }
.author-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.meta-text { display: flex; flex-direction: column; }
.author-name { font-size: 14px; font-weight: 700; color: var(--dark); }
.post-date { font-size: 12px; color: var(--text-light); }
.read-more-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--green); font-weight: 700; font-size: 15px;
  text-decoration: none; transition: gap .2s;
}
.read-more-link:hover { gap: 10px; }

/* ── TOPIC FILTER ── */
.topic-filter {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-pill {
  padding: 8px 20px; border-radius: var(--radius);
  font-size: 13px; font-weight: 600;
  background: var(--off-white); color: var(--text-mid);
  border: 1px solid var(--border);
  text-decoration: none; transition: all .2s; cursor: pointer;
}
.filter-pill:hover, .filter-pill.active {
  background: var(--green); color: var(--white); border-color: var(--green);
}

/* ── POSTS SECTION ── */
.posts-section { padding: 40px 0 80px; }
.posts-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; }

.post-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  margin-bottom: 48px;
}

.post-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card-img { display: block; height: 200px; overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card-img:hover img { transform: scale(1.05); }
.post-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-card-tag {
  display: inline-block; background: var(--green-pale); color: var(--green-dark);
  padding: 3px 12px; border-radius: var(--radius); font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  margin-bottom: 10px; transition: background .2s;
}
.post-card-tag:hover { background: var(--border); }
.post-card-title { font-size: 18px; font-weight: 800; line-height: 1.3; margin-bottom: 10px; flex: 1; }
.post-card-title a { color: var(--dark); text-decoration: none; }
.post-card-title a:hover { color: var(--green); }
.post-card-excerpt { font-size: 14px; color: var(--text-mid); line-height: 1.6; margin-bottom: 16px; }
.post-card-meta { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border); margin-top: auto; }
.post-card-author { display: flex; align-items: center; gap: 8px; }
.avatar-sm { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.avatar-sm img { width: 100%; height: 100%; object-fit: cover; }
.post-card-author span { font-size: 13px; font-weight: 600; color: var(--text); }
.reading-time { font-size: 12px; color: var(--text-light); }

/* ── PAGINATION ── */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination .page-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  font-size: 14px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--border); color: var(--text); transition: all .2s;
}
.pagination a:hover { background: var(--green); color: var(--white); border-color: var(--green); }
.pagination .page-number.current { background: var(--green); color: var(--white); border-color: var(--green); }
.older-posts, .newer-posts {
  display: inline-flex; align-items: center; padding: 10px 20px; border-radius: var(--radius);
  border: 1px solid var(--border); color: var(--text); font-size: 14px; font-weight: 600;
  text-decoration: none; transition: all .2s; width: auto;
}
.older-posts:hover, .newer-posts:hover { background: var(--green); color: var(--white); border-color: var(--green); }

/* ── TAXONOMY HERO (author/tag pages) ── */
.taxonomy-hero { padding: 140px 0 60px; background: linear-gradient(135deg, var(--off-white) 0%, #e0f0e8 100%); }

/* ── POST PAGE ── */
.post-header { padding: 140px 0 40px; background: linear-gradient(135deg, var(--off-white) 0%, #e0f0e8 100%); }
.post-header-inner { max-width: 760px; }
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.post-tags a { background: var(--green-pale); color: var(--green-dark); padding: 4px 14px; border-radius: var(--radius); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.post-header-meta { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.post-header-meta .author-avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; border: 2px solid var(--green); }
.post-header-meta .author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.meta-info { display: flex; flex-direction: column; }
.post-date-read { font-size: 13px; color: var(--text-light); }

.post-feature-image { max-height: 520px; overflow: hidden; }
.post-feature-image img { width: 100%; object-fit: cover; display: block; }

.post-content-wrap { max-width: 760px; margin: 0 auto; padding: 56px 32px; }
.post-content { font-size: 18px; line-height: 1.8; color: var(--text); }
.post-content h2 { font-size: 28px; font-weight: 800; margin: 2em 0 .6em; color: var(--dark); }
.post-content h3 { font-size: 22px; font-weight: 700; margin: 1.8em 0 .5em; color: var(--dark); }
.post-content p { margin-bottom: 1.4em; }
.post-content a { color: var(--green); }
.post-content img { max-width: 100%; border-radius: var(--radius); margin: 1.5em 0; }
.post-content blockquote { border-left: 4px solid var(--green); padding: 16px 24px; margin: 2em 0; background: var(--green-pale); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; }
.post-content ul, .post-content ol { padding-left: 1.5em; margin-bottom: 1.4em; }
.post-content li { margin-bottom: .4em; }
.post-content pre { background: var(--dark); color: #e0ffe0; padding: 20px 24px; border-radius: var(--radius-sm); overflow-x: auto; margin: 1.5em 0; }
.post-content code { background: var(--green-pale); color: var(--green-dark); padding: 2px 6px; border-radius: var(--radius-sm); font-size: 0.9em; }
.post-content pre code { background: none; color: inherit; padding: 0; }
.post-content figure { margin: 2em 0; }
.post-content figcaption { text-align: center; font-size: 13px; color: var(--text-light); margin-top: 8px; }

/* ── POST FOOTER ── */
.post-footer { max-width: 760px; margin: 0 auto; padding: 0 32px 64px; }
.post-share { margin-bottom: 40px; }
.post-share p { font-size: 15px; color: var(--text-mid); margin-bottom: 14px; }
.share-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius); font-size: 14px; font-weight: 600;
  text-decoration: none; transition: all .2s;
}
.share-twitter { background: #000; color: #fff; }
.share-twitter:hover { background: #333; }
.share-facebook { background: #1877f2; color: #fff; }
.share-facebook:hover { background: #1460c0; }

.author-card { display: flex; gap: 20px; align-items: flex-start; padding: 28px; background: var(--off-white); border-radius: var(--radius); border: 1px solid var(--border); }
.author-card-avatar { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 3px solid var(--green); }
.author-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 64px; height: 64px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0; font-weight: 900; flex-shrink: 0; }
.avatar-lg::first-letter { font-size: 2rem; }
.author-card-label { font-size: 11px; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: .08em; }
.author-card-name { font-size: 18px; font-weight: 800; color: var(--dark); margin: 4px 0; }
.author-card-bio { font-size: 14px; color: var(--text-mid); line-height: 1.6; }

/* ── RELATED POSTS ── */
.related-posts { background: var(--off-white); padding: 64px 0; border-top: 1px solid var(--border); }
.related-posts-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.related-posts-inner h3 { font-size: 24px; font-weight: 800; margin-bottom: 32px; color: var(--dark); }

/* ── BLOG CTA ── */
.blog-cta {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  padding: 80px 0;
}
.blog-cta-inner { text-align: center; }
.blog-cta h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 900; color: var(--white); margin-bottom: 14px; letter-spacing: -.02em; }
.blog-cta p { font-size: 17px; color: rgba(255,255,255,.8); margin-bottom: 32px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ── FOOTER ── */
footer {
  background: var(--dark-2);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo { margin-bottom: 16px; }
.footer-logo img { height: 36px; }
.footer-tagline { font-size: 14px; color: rgba(255,255,255,.55); line-height: 1.6; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 12px; }
.footer-social {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; text-decoration: none;
}
.footer-social:hover { background: var(--green); color: var(--white); }
.footer-social svg { width: 16px; height: 16px; }
.footer-col-title { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.4); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,.65); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--white); }
.footer-contact-item { font-size: 14px; color: rgba(255,255,255,.65); margin-bottom: 8px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
}
.footer-copy { font-size: 13px; color: rgba(255,255,255,.35); }

/* ── PAGE ── */
.page-article { padding-top: 80px; }

/* ── ERROR 404 ── */
.error-page { text-align: center; padding: 160px 0 80px; }
.error-page h1 { font-size: 80px; font-weight: 900; color: var(--green); margin-bottom: 16px; }
.error-page p { font-size: 18px; color: var(--text-mid); margin-bottom: 32px; }

/* ── KOENIG EDITOR REQUIRED CLASSES ── */
.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin: auto calc(50% - 50vw * 0.85);
}
.kg-width-full {
  position: relative;
  width: 100vw;
  left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw;
}
.kg-image { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.kg-card { margin: 2em 0; }
.kg-gallery-container { display: flex; flex-direction: column; max-width: 1040px; width: 100%; }
.kg-gallery-row { display: flex; flex-direction: row; justify-content: center; }
.kg-gallery-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kg-bookmark-card { width: 100%; }
.kg-bookmark-container { display: flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; text-decoration: none; color: inherit; }
.kg-bookmark-content { flex: 1; padding: 1.2em; }
.kg-bookmark-title { font-weight: 700; }
.kg-bookmark-description { font-size: .9em; opacity: .7; }
.kg-bookmark-thumbnail img { width: 180px; object-fit: cover; }
.kg-video-card video { width: 100%; }
.kg-embed-card { display: flex; justify-content: center; }
.kg-embed-card iframe { max-width: 100%; }

/* ── AVATAR INITIAL (CSS-only first letter) ── */
.avatar-initial { overflow: hidden; white-space: nowrap; font-size: 0; }
.avatar-initial::first-letter { font-size: 1.4rem; font-weight: 900; text-transform: uppercase; line-height: 1; }
.avatar-initials-sm.avatar-initial::first-letter { font-size: 1rem; }
.avatar-lg.avatar-initial::first-letter { font-size: 2rem; }

/* ── READING PROGRESS ── */
#reading-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--green); z-index: 9999; width: 0%; transition: width .1s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .blog-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-image-wrap { display: none; }
  .blog-hero { min-height: auto; padding: 120px 0 60px; }
  .featured-post-card { grid-template-columns: 1fr; }
  .featured-post-img { height: 260px; }
  .featured-post-info { padding: 28px; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-right .btn { display: none; }
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .post-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topic-filter { gap: 6px; }
  .filter-pill { padding: 6px 14px; font-size: 12px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ============================================
   POST PAGE — Refined Layout
   ============================================ */

/* Header: full-width light bg, centred, generous padding */
.post-header {
  background: linear-gradient(180deg, var(--off-white) 0%, #ffffff 100%);
  padding: 120px 0 48px;
  border-bottom: 1px solid var(--border);
}

.post-header-inner {
  max-width: 760px;
  margin: 0 auto;
}

/* Tags */
.post-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.post-tags a {
  background: var(--green-pale); color: var(--green-dark);
  padding: 4px 14px; border-radius: var(--radius);
  font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; transition: background .2s;
}
.post-tags a:hover { background: var(--border); }

/* Title */
.post-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--dark);
  margin-bottom: 20px;
}

/* Excerpt subtitle */
.post-excerpt {
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-mid);
  margin-bottom: 28px;
  border-left: 3px solid var(--green);
  padding-left: 16px;
}

/* Author meta row */
.post-header-meta {
  display: flex; align-items: center; gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.post-header-meta .author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%; overflow: hidden;
  border: 2px solid var(--green); flex-shrink: 0;
}
.post-header-meta .author-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.meta-info { display: flex; flex-direction: column; gap: 2px; }
.author-name { font-size: 14px; font-weight: 700; color: var(--dark); }
.post-date-read { font-size: 13px; color: var(--text-light); }

/* Feature image: contained, rounded, breathing room */
.post-feature-image {
  padding: 40px 0 0;
  background: #fff;
}
.post-feature-image img {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-height: 520px;
  object-fit: cover;
}

/* Content body */
.post-content-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 32px 48px;
}
.post-content {
  font-size: 18px;
  line-height: 1.85;
  color: var(--text);
}
.post-content h2 {
  font-size: 28px; font-weight: 800;
  margin: 2.2em 0 .6em; color: var(--dark);
  letter-spacing: -.02em;
}
.post-content h3 {
  font-size: 22px; font-weight: 700;
  margin: 1.8em 0 .5em; color: var(--dark);
}
.post-content h4 {
  font-size: 18px; font-weight: 700;
  margin: 1.5em 0 .4em; color: var(--dark);
}
.post-content p { margin-bottom: 1.5em; }
.post-content a { color: var(--green); font-weight: 500; text-underline-offset: 3px; }
.post-content a:hover { color: var(--green-dark); }
.post-content img {
  max-width: 100%; border-radius: var(--radius);
  margin: 1.5em auto; display: block;
  box-shadow: var(--shadow);
}
.post-content blockquote {
  border-left: 4px solid var(--green);
  padding: 16px 24px;
  margin: 2em 0;
  background: var(--green-pale);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  font-size: 19px;
  color: var(--green-dark);
}
.post-content ul, .post-content ol {
  padding-left: 1.6em; margin-bottom: 1.5em;
}
.post-content li { margin-bottom: .5em; }
.post-content pre {
  background: var(--dark); color: #b9f6ca;
  padding: 24px 28px; border-radius: var(--radius-sm);
  overflow-x: auto; margin: 1.5em 0;
  font-size: 15px; line-height: 1.6;
}
.post-content code {
  background: var(--green-pale); color: var(--green-dark);
  padding: 2px 7px; border-radius: var(--radius-sm); font-size: .88em;
}
.post-content pre code { background: none; color: inherit; padding: 0; }
.post-content figure { margin: 2em 0; }
.post-content figcaption {
  text-align: center; font-size: 13px;
  color: var(--text-light); margin-top: 10px; font-style: italic;
}
.post-content hr {
  border: none; border-top: 2px solid var(--border);
  margin: 3em 0;
}

/* Post footer */
.post-footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px 64px;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}
.post-share { margin-bottom: 40px; }
.post-share p { font-size: 15px; color: var(--text-mid); margin-bottom: 14px; font-weight: 500; }
.share-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600;
  text-decoration: none; transition: all .2s;
}
.share-twitter { background: #000; color: #fff; }
.share-twitter:hover { background: #333; }
.share-facebook { background: #1877f2; color: #fff; }
.share-facebook:hover { background: #1460c0; }

.author-card {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 28px; background: var(--off-white);
  border-radius: var(--radius); border: 1px solid var(--border);
}
.author-card-avatar {
  width: 60px; height: 60px; border-radius: 50%; overflow: hidden;
  flex-shrink: 0; border: 3px solid var(--green);
}
.author-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-card-label {
  font-size: 11px; font-weight: 700; color: var(--text-light);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px;
}
.author-card-name { font-size: 17px; font-weight: 800; color: var(--dark); margin-bottom: 6px; }
.author-card-bio { font-size: 14px; color: var(--text-mid); line-height: 1.6; }

@media (max-width: 760px) {
  .post-header { padding: 100px 20px 36px; }
  .post-header-inner { padding: 0; }
  .post-content-wrap { padding: 36px 20px 36px; }
  .post-footer { padding: 32px 20px 48px; }
  .post-feature-image { padding: 24px 20px 0; }
  .post-feature-image img { border-radius: var(--radius); }
  .post-title { font-size: 28px; }
}

/* Hero proof line */
.hero-proof {
  font-size: 13px; color: var(--text-light);
  margin-bottom: 32px; font-style: italic;
  animation: fadeUp .7s .25s ease both;
}
