/* ── HERO ─────────────────────────────────────────── */
.blog-hero {
  padding: 56px 0 24px;
  background: #fff;
}

.blog-hero .eyebrow-sm {
  font-size: 12px;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.blog-hero h1 {
  font-size: 36px;
  font-weight: 700;
  color: #212529;
}

/* ── SECTION ──────────────────────────────────────── */
.section-blog {
  padding: 32px 0 80px;
  background: #fff;
}

/* ── CATEGORY FILTER ──────────────────────────────── */
.blog-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-cat {
  display: inline-block;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #495057;
  background: #f1f3f5;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.blog-cat:hover {
  background: #e9ecef;
  color: #212529;
}

.blog-cat.active {
  background: #212529;
  color: #fff;
}

/* ── POST GRID CARD ───────────────────────────────── */
.blog-card {
  display: block;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  color: inherit;
}

.blog-card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f3f5;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 18px 18px 20px;
}

.blog-card-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #198754;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.blog-card-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: #212529;
  margin: 0 0 8px;
}

.blog-card-excerpt {
  font-size: 14px;
  color: #6c757d;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-meta {
  display: flex;
  gap: 6px;
  font-size: 12px;
  color: #6c757d;
}

/* ── DETAIL PAGE ──────────────────────────────────── */
.blog-back {
  font-size: 13px;
  color: #6c757d;
  text-decoration: none;
}

.blog-back:hover {
  color: #212529;
}

.blog-detail-cat {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #198754;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.blog-detail-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: #212529;
  margin: 8px 0 12px;
}

.blog-detail-meta {
  display: flex;
  gap: 6px;
  font-size: 13px;
  color: #6c757d;
}

.blog-detail-img {
  border-radius: 12px;
  overflow: hidden;
  background: #f1f3f5;
  aspect-ratio: 16 / 9;  /* reserve space to prevent CLS */
}

.blog-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-detail-excerpt {
  font-size: 18px;
  color: #495057;
  font-weight: 500;
  line-height: 1.55;
}

.blog-detail-content {
  font-size: 16px;
  color: #343a40;
  line-height: 1.75;
}

.blog-detail-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 32px 0 14px;
  color: #212529;
}

.blog-detail-content h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 28px 0 12px;
  color: #212529;
}

.blog-detail-content p {
  margin-bottom: 16px;
}

.blog-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
}

.blog-detail-content ul,
.blog-detail-content ol {
  padding-left: 22px;
  margin-bottom: 16px;
}

.blog-detail-content li {
  margin-bottom: 6px;
}

.blog-detail-content blockquote {
  border-left: 3px solid #198754;
  padding: 4px 0 4px 16px;
  margin: 20px 0;
  color: #495057;
  font-style: italic;
}

/* ── SIDEBAR ──────────────────────────────────────── */
.blog-sidebar {
  position: sticky;
  /* Clear the fixed site header (slim ~48px) + breathing room */
  top: 100px;
  padding-top: 24px;
}

/* CTA card */
.blog-cta-card {
  background: #212529;
  color: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.blog-cta-eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.blog-cta-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.blog-cta-body {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
  margin-bottom: 16px;
}

.blog-cta-btn {
  display: inline-block;
  background: #fff;
  color: #212529;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.blog-cta-btn:hover {
  opacity: 0.9;
  color: #212529;
}

/* Related posts */
.blog-related-title {
  font-size: 12px;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.blog-related-item {
  display: flex;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  padding: 12px 0;
  border-top: 1px solid #e9ecef;
}

.blog-related-item:first-of-type {
  border-top: none;
  padding-top: 0;
}

.blog-related-item:hover {
  color: inherit;
}

.blog-related-item:hover .blog-related-name {
  color: #198754;
}

.blog-related-img {
  flex-shrink: 0;
  width: 84px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  background: #f1f3f5;
}

.blog-related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-related-body {
  flex: 1;
  min-width: 0;
}

.blog-related-cat {
  font-size: 10px;
  font-weight: 600;
  color: #198754;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.blog-related-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: #212529;
  margin-bottom: 4px;
  transition: color 0.15s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-related-meta {
  font-size: 11px;
  color: #6c757d;
}

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 991px) {
  .blog-detail-title {
    font-size: 28px;
  }

  .blog-sidebar {
    position: static;
    margin-top: 32px;
  }
}
