/* ==========================================================
   BLOG PAGE
   ========================================================== */

/* ---- Blog Listing ---- */
.blog-listing { background: var(--cream); }

.blog-filter {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

.filter-btn {
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  background: var(--white);
  border: 2px solid var(--peach-light);
  color: var(--taupe-light);
  font-family: var(--font-heading);
  font-weight: var(--fw-semi);
  font-size: var(--fs-xs);
  cursor: pointer;
  transition: all var(--t-base) var(--ease);
}

.filter-btn:hover {
  border-color: var(--peach-deep);
  color: var(--taupe);
}

.filter-btn.active {
  background: var(--apricot);
  border-color: var(--apricot);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(244,160,122,0.35);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

/* ---- Individual Post ---- */
.post-hero {
  padding-top: calc(var(--nav-h) + var(--space-16));
  padding-bottom: var(--space-16);
  background: linear-gradient(160deg, var(--cream) 0%, var(--peach-light) 100%);
  position: relative;
  overflow: hidden;
}

.post-meta-bar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.post-date {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.post-title {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-xbold);
  color: var(--taupe);
  line-height: var(--lh-snug);
  margin-bottom: var(--space-6);
  max-width: 800px;
}

.post-intro {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  max-width: 680px;
}

.post-body {
  background: var(--white);
}

.post-body__inner {
  max-width: 760px;
  margin-inline: auto;
  padding-block: var(--space-16);
  padding-inline: var(--space-6);
}

.post-body__inner h2 {
  font-size: var(--fs-2xl);
  margin-top: var(--space-12);
  margin-bottom: var(--space-5);
  color: var(--taupe);
}

.post-body__inner h3 {
  font-size: var(--fs-xl);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  color: var(--taupe);
}

.post-body__inner p {
  margin-bottom: var(--space-5);
  color: var(--text-secondary);
}

.post-body__inner ul, 
.post-body__inner ol {
  margin-bottom: var(--space-5);
  padding-left: var(--space-6);
}

.post-body__inner ul { list-style: disc; }
.post-body__inner ol { list-style: decimal; }

.post-body__inner li {
  margin-bottom: var(--space-2);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
}

.post-body__inner strong {
  color: var(--taupe);
  font-weight: var(--fw-semi);
}

.post-callout {
  background: linear-gradient(135deg, var(--peach-light), var(--blush-light));
  border-left: 4px solid var(--apricot);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-6);
  margin-block: var(--space-8);
}

.post-callout p {
  color: var(--taupe) !important;
  font-weight: var(--fw-medium);
  margin: 0 !important;
}

/* Author bio */
.post-author {
  margin-top: var(--space-16);
  border-top: 2px solid var(--border-light);
  padding-top: var(--space-10);
}

.post-author__inner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-6);
  background: var(--cream-warm);
  border-radius: var(--radius-lg);
  border: 1px solid var(--peach-light);
  padding: var(--space-8);
}

.post-author__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--apricot), var(--blush));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: var(--fw-xbold);
  font-size: var(--fs-xl);
  color: var(--white);
  flex-shrink: 0;
}

.post-author__name {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-md);
  color: var(--taupe);
  margin-bottom: var(--space-1);
}

.post-author__role {
  font-size: var(--fs-xs);
  color: var(--apricot);
  font-weight: var(--fw-semi);
  margin-bottom: var(--space-3);
}

.post-author__bio {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
}

/* Related posts */
.related-posts {
  background: var(--bg-alt);
  padding-block: var(--space-16);
}

/* Newsletter CTA */
.newsletter-cta {
  background: linear-gradient(135deg, var(--peach), var(--blush));
  border-radius: var(--radius-xl);
  padding: var(--space-12);
  text-align: center;
  margin-top: var(--space-10);
}

.newsletter-cta__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--taupe);
  margin-bottom: var(--space-3);
}

.newsletter-cta__sub {
  font-size: var(--fs-sm);
  color: var(--taupe-light);
  margin-bottom: var(--space-6);
}

.newsletter-form {
  display: flex;
  gap: var(--space-3);
  max-width: 440px;
  margin-inline: auto;
}

.newsletter-form .form-control {
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.9);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .post-title { font-size: var(--fs-2xl); }
}
