/* ============================================================
   BLOG LISTING PAGE — loaded ONLY on page-blog.php
   ============================================================ */

.blog-cat-section { margin-bottom: 48px; }
.blog-cat-section:last-child { margin-bottom: 0; }

.blog-cat-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px; padding-bottom: 12px; border-bottom: 2px solid var(--border);
}
.blog-cat-head h2 { font-size: 1.3rem; margin: 0; position: relative; padding-left: 14px; }
.blog-cat-head h2::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px;
  background: var(--primary); border-radius: 2px;
}
.blog-cat-head .view-all { font-size: 13px; flex-shrink: 0; }

.blog-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}

.blog-post-card {
  background: #fff; border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid transparent;
  transition: all var(--transition); display: flex; flex-direction: column;
}
.blog-post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--border); }

.blog-post-card-img { position: relative; display: block; height: 160px; overflow: hidden; background: var(--bg-light); }
.blog-post-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .4s ease; }
.blog-post-card:hover .blog-post-card-img img { transform: scale(1.06); }
.blog-post-card-img .category-badge { position: absolute; top: 10px; left: 10px; z-index: 2; }

.blog-post-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.blog-post-card-body h3 {
  font-size: 14.5px; line-height: 1.4; margin-bottom: 10px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-post-card-body h3 a { color: var(--text-dark); }
.blog-post-card-body h3 a:hover { color: var(--primary); }
.blog-post-card-body .story-meta { font-size: 11.5px; margin-top: auto; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .blog-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .blog-post-card-img { height: 120px; }
  .blog-post-card-body { padding: 12px; }
  .blog-post-card-body h3 { font-size: 13px; -webkit-line-clamp: 2; }
  .blog-cat-head h2 { font-size: 1.1rem; }
}
@media (max-width: 400px) {
  .blog-cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}
