/* ── Blog styles (uses variables from style.css) ───────────────── */

/* Blog listing */
.blog-hero {
  background: linear-gradient(to bottom, #F7FAFC 0%, #FFFFFF 100%);
  padding: 80px 0 40px;
}
.blog-hero-sub {
  font-size: 18px;
  color: var(--text-body);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 640px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}
.blog-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.blog-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10);
  transform: translateY(-5px);
}
.blog-card-image {
  display: block;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  background: var(--bg-light);
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Modifier: banner-shaped (1200x420) card image, shown uncropped */
.blog-card-image--wide { aspect-ratio: 1200 / 420; }
.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-meta {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 10px;
}
.blog-card-title {
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.35;
  margin-bottom: 12px;
}
.blog-card-title a { color: var(--text-heading); text-decoration: none; }
.blog-card-title a:hover { color: var(--primary-blue); }
.blog-card-excerpt {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}
.blog-read-more {
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.blog-read-more:hover { color: var(--primary-blue-hover); text-decoration: underline; }

/* Blog post */
.post-header {
  background: linear-gradient(to bottom, #F7FAFC 0%, #FFFFFF 100%);
  padding: 60px 0 30px;
}
.post-header-inner { max-width: 800px; margin: 0 auto; }
.breadcrumb { font-size: 14px; color: var(--text-light); margin-bottom: 20px; }
.breadcrumb a { color: var(--primary-blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.post-title { font-size: clamp(28px, 4vw, 42px); line-height: 1.25; margin-bottom: 16px; }
.post-hero-image { max-width: 1200px; margin: 30px auto 0; padding: 0 20px; }
.post-figure { margin: 32px 0; }
.post-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}
.post-figure figcaption {
  font-size: 14px;
  color: var(--text-light);
  text-align: center;
  margin-top: 10px;
}
.post-hero-image img { aspect-ratio: 1200 / 630; object-fit: cover; }

.post-content { max-width: 800px; margin: 0 auto; font-size: 18px; line-height: 1.8; color: var(--text-body); }
.post-content h2 { font-size: 28px; margin: 48px 0 16px; color: var(--text-heading); }
.post-content h3 { font-size: 22px; margin: 32px 0 12px; color: var(--text-heading); }
.post-content p { margin-bottom: 20px; }
.post-content ul, .post-content ol { margin: 0 0 20px 24px; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 8px; }
.post-content a { color: var(--primary-blue); }
.post-content a:hover { color: var(--primary-blue-hover); }
.post-content blockquote {
  border-left: 4px solid var(--primary-blue);
  background: var(--bg-light);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
}
.post-faq { max-width: 800px; margin: 56px auto 0; }
.post-faq-item { border: 1px solid var(--border-color); border-radius: 12px; padding: 20px 24px; margin-bottom: 14px; background: #fff; }
.post-faq-item h3 { font-size: 18px; margin: 0 0 8px; color: var(--text-heading); }
.post-faq-item p { margin: 0; font-size: 16px; color: var(--text-body); line-height: 1.7; }
.post-back { max-width: 800px; margin: 40px auto 0; }

/* Quick Answer callout */
.post-callout {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-blue);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 28px 0;
}
.post-callout p { margin: 0; }
.post-callout-label { color: var(--primary-blue); font-weight: 600; }
/* Tighten the gap between the post header and the article (blog posts only) */
.post-header + article.section { padding-top: 24px; }
@media (max-width: 768px) {
  .post-header + article.section { padding-top: 12px; }
}
