/* ============================================================
   14. START: BLOG
   Blog cards, grid, images, meta, excerpts and responsive styles
   ============================================================ */
/* ---------- BLOG CARD / BANNER ---------- */

.blog-post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.blog-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(31, 63, 108, 0.12);
}

.post-banner {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: var(--bg);
}

/* ---------- BLOG POSTS GRID ---------- */

/* Blog posts grid: 2 columns on desktop, 1 column on narrow screens */
.blog-posts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin: 20px 0;
}

@media (max-width: 768px) {
  .blog-posts {
    grid-template-columns: 1fr;
  }
}

/* ---------- BLOG IMAGE / META / TITLE / EXCERPT ---------- */

.post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.blog-post-card:hover .post-image {
  transform: scale(1.05);
}

.post-meta,
.post-title,
.post-excerpt,
.read-more {
  margin-left: 20px;
  margin-right: 20px;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  padding-bottom: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.post-date {
  font-weight: 600;
}

.post-index {
  font-size: 0.85rem;
}

.post-title {
  padding: 18px;
  margin: 0 0 12px 0;
  font-size: 1.25rem;
  line-height: 1.3;
}

.post-title a {
  color: var(--text);
  transition: color var(--transition-fast);
}

.post-title a:hover {
  color: var(--primary);
  text-decoration: none;
}

.post-excerpt {
  padding: 0;
  margin: 0 0 16px 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  display: inline-block;
  padding-bottom: 18px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.read-more:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ---------- BLOG MOBILE <= 768px ---------- */

@media (max-width: 768px) {
  .post-banner {
    height: 180px;
  }

  .post-meta,
  .post-title,
  .post-excerpt,
  .read-more {
    margin-left: 16px;
    margin-right: 16px;
  }

  .post-title {
    font-size: 1.1rem;
  }

  .post-excerpt {
    font-size: 0.9rem;
  }
}

/* ============================================================
   END: BLOG
   ============================================================ */

