/* ─── POST HERO ─── */
.post-hero {
  background: linear-gradient(135deg, #1e4a22 0%, #2d6635 40%, #398141 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 64px 24px 56px;
}

.post-hero-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 13px;
}
.breadcrumb a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.18s;
  background: transparent;
}
.breadcrumb a:hover { color: #fff; background: transparent; }
.breadcrumb span { color: rgba(255,255,255,0.5); }
.breadcrumb svg { color: rgba(255,255,255,0.4); flex-shrink: 0; }

.post-category-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #c8e6c8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 5px 12px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.post-hero h1 {
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 18px;
}
.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}
.post-published-by { color: rgba(255,255,255,0.65); font-weight: 400; }
.post-author { font-weight: 600; }
.post-author-role { color: rgba(255,255,255,0.65); }
.post-meta-dot { color: rgba(255,255,255,0.4); }
.post-date { color: rgba(255,255,255,0.65); }

/* ─── ARTICLE LAYOUT ─── */
.post-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
}

/* ─── ARTICLE BODY ─── */
.post-body {}

.post-featured-img {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 36px;
}
.post-featured-img img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.18s;
}
.back-link:hover { color: var(--green); }

.post-lead {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 36px;
}

/* ─── POST CONTENT (rendered Sanity blocks) ─── */
.post-content {
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--text);
}
.post-content p { margin-bottom: 22px; }
.post-content h2 {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  margin: 42px 0 14px;
  color: var(--text);
}
.post-content h3 {
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--text);
}
.post-content h4 {
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--text);
}
.post-content blockquote {
  border-left: 3px solid var(--green);
  padding: 4px 0 4px 20px;
  margin: 28px 0;
  color: var(--text-muted);
  font-style: italic;
}
.post-content blockquote p { margin-bottom: 0; font-size: 17px; }
.post-content a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-content a:hover { color: var(--green-dark); }
.post-content strong { font-weight: 700; }
.post-content em { font-style: italic; }
.post-content ul,
.post-content ol {
  margin: 0 0 22px 0;
  padding-left: 28px;
}
.post-content ul { list-style-type: disc; }
.post-content ol { list-style-type: decimal; }
.post-content li {
  margin-bottom: 8px;
  line-height: 1.75;
}
.post-content li:last-child { margin-bottom: 0; }

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.post-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  background: var(--green-light);
  border-radius: 50px;
  padding: 4px 12px;
}

/* ─── SIDEBAR ─── */
.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 96px;
}
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.sidebar-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  font-family: "DM Sans", sans-serif;
}
.sidebar-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.author-card {
  display: flex;
  align-items: center;
  gap: 14px;
}
.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
}
.author-info {}
.author-name { font-size: 14.5px; font-weight: 700; color: var(--text); }
.author-role { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }

.share-links {
  display: flex;
  flex-direction: row;
  gap: 8px;
  flex-wrap: wrap;
}
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  color: var(--text);
  background: var(--cream);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.share-btn:hover { background: var(--green-light); color: var(--green); border-color: var(--green); }

.btn-cta {
  display: block;
  text-align: center;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  font-family: "DM Sans", sans-serif;
  transition: background 0.18s, transform 0.15s;
}
.btn-cta:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

/* ─── RELATED POSTS ─── */
.related-section {
  background: var(--cream);
  padding: 72px 24px;
}
.related-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.related-inner .section-title {
  margin-bottom: 36px;
}
.related-inner .section-title em {
  font-style: normal;
  color: var(--green);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.related-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s, box-shadow 0.22s;
}
.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.related-img {
  height: 170px;
  overflow: hidden;
  background: var(--green-mid);
}
.related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.related-card:hover .related-img img { transform: scale(1.04); }
.related-body {
  padding: 18px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.related-category {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--green);
}
.related-body h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  flex: 1;
}
.related-date {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}

/* ─── CTA STRIP ─── */
.cta-strip-blog {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff;
  padding: 72px 24px;
  text-align: center;
}
.cta-strip-blog-inner {
  max-width: 640px;
  margin: 0 auto;
}
.cta-strip-blog h2 {
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.cta-strip-blog p {
  font-size: 16px;
  color: rgba(255,255,255,0.82);
  margin-bottom: 32px;
  line-height: 1.65;
}
.cta-strip-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-cta-primary {
  background: #fff;
  color: var(--green);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.18s, transform 0.15s;
}
.btn-cta-primary:hover {
  background: var(--green-light);
  transform: translateY(-2px);
}
.btn-cta-secondary {
  background: transparent;
  color: #fff;
  padding: 12px 28px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.55);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: border-color 0.18s, background 0.18s, transform 0.15s;
}
.btn-cta-secondary:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .post-layout { grid-template-columns: 1fr; gap: 40px; }
  .post-sidebar { position: static; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .post-layout { padding: 40px 16px 60px; }
  .related-section { padding: 56px 16px; }
  .related-grid { grid-template-columns: 1fr; }
  .breadcrumb span:last-child { display: none; }
}
