/* Related product cards with square preview images */

.np-rel {
  padding: 2rem 0 2.6rem;
  background:
    radial-gradient(ellipse 50% 60% at 92% 8%, rgba(215, 231, 242, .85), transparent 62%),
    radial-gradient(ellipse 40% 50% at 6% 90%, rgba(255, 225, 208, .28), transparent 65%),
    #F7FBFE;
}
.np-rel-ssp {
  padding: 2.1rem 0 2.8rem;
}
.np-rel-head {
  margin-bottom: 1.35rem;
  max-width: 40rem;
}
.np-rel-head h2 {
  margin: 0 0 .45rem;
  letter-spacing: -0.03em;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}
.np-rel-head .lead,
.np-rel-head .ssp-lead {
  margin: 0;
}

.np-rel-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .np-rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
  .np-rel-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
}

.np-rel-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(10, 74, 115, .1);
  box-shadow: 0 10px 28px rgba(7, 30, 51, .05);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.np-rel-card:hover {
  transform: translateY(-6px);
  border-color: rgba(10, 86, 142, .26);
  box-shadow: 0 18px 40px rgba(7, 30, 51, .1);
  text-decoration: none;
  color: inherit;
}

.np-rel-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #EAF3F8;
}
.np-rel-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.np-rel-card:hover .np-rel-media img {
  transform: scale(1.05);
}

.np-rel-tag {
  position: absolute;
  top: .7rem;
  left: .7rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.45rem;
  padding: 0 .6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: #073A61;
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(7, 30, 51, .08);
}

.np-rel-body {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex: 1 1 auto;
  padding: .95rem 1rem 1.05rem;
}
.np-rel-body strong {
  display: block;
  font-size: .98rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #0A0F14;
}
.np-rel-text {
  display: block;
  flex: 1 1 auto;
  font-size: .82rem;
  line-height: 1.5;
  color: #3A4652;
}
.np-rel-cta {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: .2rem;
  font-size: .78rem;
  font-weight: 750;
  color: #0A568E;
}
.np-rel-cta::after {
  content: "↗";
  font-size: .72rem;
}
.np-rel-card:hover .np-rel-cta {
  color: #FF6713;
}
