/* Reusable Related Posts / article-cards component. */
.irp-related-posts { width: 100%; }

.irp-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.irp-head h2 {
  font-family: "Public Sans", sans-serif;
  font-weight: 700;
  font-size: 42px;
  line-height: 1.15;
  color: #1E2E4C;
  margin: 0;
  max-width: 854px;
}

.irp-btn-small {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 2px solid #6AC2B7;
  color: #1E2E4C;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.irp-btn-small:hover { background: #6AC2B7; color: #fff; }

.irp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.irp-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-decoration: none;
  color: inherit;
}

.irp-card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #EBEEF2;
}
.irp-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.irp-card:hover .irp-card-image img { transform: scale(1.04); }

.irp-card-body { display: flex; flex-direction: column; gap: 20px; }

.irp-card-title {
  font-family: "Public Sans", sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
  color: #1E2E4C;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.irp-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.irp-card-pill {
  padding: 3px 12px;
  font-size: 14px;
  color: #1E2E4C;
  white-space: nowrap;
}

.irp-card-date { font-size: 14px; color: #7B88A1; white-space: nowrap; }

@media (max-width: 900px) {
  .irp-grid { grid-template-columns: 1fr; }
  .irp-head { flex-direction: column; }
  .irp-head h2 { font-size: 28px; }
}
