/* Related Posts – Card Grid (No Image, No Radius, 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 without radius */
.rf-card {
  background: #cccccc;
  border-radius: 0; /* no radius */
  box-shadow: 0 0 0px 1px rgba(214, 218, 222, 1);
  overflow: hidden; text-decoration: none;
  height: 100%;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  display: flex;
}
.rf-card:hover {
  transform: translateY(-4px);
-webkit-box-shadow: inset 0 -2px 0 #188bf6;
    box-shadow: inset 0 -2px 0 #188bf6;box-shadow: 3px 3px 3px 3px rgb(0 0 0 / 20%);
}

/* Entire card clickable; equal heights via min-height */
.rf-card__link {
  display: flex;
  flex-direction: column; text-decoration:none !important;

  color: inherit;
  width: 100%;
  min-height: 120px;   /* ensures equal-looking heights */
  padding: 16px 18px;
  background: #fff;
}

/* Title only */
.rf-card__title {text-decoration:none !important;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}
.rf-card__title:hover {text-decoration: none; }

/* Remove underline from related cards (no-image version) */
.rf-rel .rf-card__link,
.rf-rel .rf-card__link:hover,
.rf-rel .rf-card__link:focus {
  text-decoration: none !important;
}
.rf-rel .rf-card__title {
  text-decoration: none !important;
}
