/*
 * Blog Grid — post listing cards
 *
 * Matches the card-grid design used on the real navia.co.in/blog/ homepage:
 * image on top, bold title, excerpt text, in a responsive multi-column grid.
 * Pure CSS/HTML, no WordPress dependency — works identically whether the
 * cards are populated by hand (dev preview) or by a real WordPress loop
 * later, since it's scoped to generic classes (.blog-grid, .post-card) that
 * either source can output.
 *
 * SAFETY: new, separate file, scoped selectors only — same pattern as
 * entry-content.css. Cannot affect header, footer, nav, or article-page
 * styling.
 */

.blog-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(10, 18, 38, 0.08);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.post-card:hover {
  box-shadow: 0 10px 28px rgba(10, 18, 38, 0.14);
  transform: translateY(-2px);
}

.post-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #eef1f6; /* shows while the image loads */
}

.post-card__body {
  padding: 20px 22px 24px;
}

.post-card__title {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--navia-navy-900, #0a1226);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.post-card__excerpt {
  font-size: 14.5px;
  line-height: 1.6;
  color: #5a6a8a;
  margin: 0;
  /* clamp to 3 lines so cards stay a consistent height */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__meta {
  font-size: 12.5px;
  color: #93a3c4;
  margin-top: 14px;
}

@media (max-width: 980px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; gap: 22px; padding: 16px 18px 40px; }
  .post-card__title { font-size: 19px; }
}
