/* Related Posts – Elegant Card Grid (equal height) */
.rf-rel { margin-top: 2.5rem; }
.rf-rel__heading { margin: 0 0 1rem; font-size: 1.125rem; font-weight: 700; }

.rf-rel__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
@media (min-width: 640px) { .rf-rel__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px){ .rf-rel__grid { grid-template-columns: repeat(4, 1fr); } }

/* Card */
.rf-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  overflow: hidden;
  height: 100%;
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
}
.rf-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.10);
}

/* Clickable card */
.rf-card__link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

/* Fixed aspect ratio keeps cards equal height */
.rf-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  background: #f5f6f7;
}
.rf-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rf-card__img--blank {
  display:block;
  width:100%;
  height:100%;
  background: linear-gradient(135deg, #f2f2f2, #eaeaea);
}

/* Title */
.rf-card__title {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
  padding: 12px 14px 14px;
  margin: 0;
}
.rf-card__title:hover { text-decoration: underline; }
