.bs-related {
  --bs-text: #202124;
  --bs-accent: #ce4651;
  box-sizing: border-box;
  width: min(1180px, calc(100% - 32px));
  margin: clamp(24px, 4vw, 44px) auto 0;
}

.bs-related *,
.bs-related *::before,
.bs-related *::after {
  box-sizing: border-box;
}

.bs-related__header {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.bs-related__eyebrow {
  margin: 0 0 10px;
  color: var(--bs-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bs-related__header h2 {
  margin: 0;
  color: var(--bs-text);
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.2;
}

.bs-related__all {
  color: var(--bs-accent);
  font-weight: 700;
  text-decoration: none;
}

.bs-related__grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 20px;
}

@media screen and (min-width: 700px) {
  .bs-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (min-width: 1100px) {
  .bs-related__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.bs-related-card {
  position: relative;
  min-height: 255px;
  overflow: hidden;
  border-radius: 8px;
  background: #202124;
  color: #fff;
  isolation: isolate;
  text-decoration: none;
}

.bs-related-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--related-image, linear-gradient(135deg, #202124 0%, #555961 100%));
  background-position: center;
  background-size: cover;
  transition: transform 220ms ease;
}

.bs-related-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(32, 33, 36, 0.08) 0%, rgba(32, 33, 36, 0.78) 100%);
}

.bs-related-card:hover::before {
  transform: scale(1.06);
}

.bs-related-card__badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(32, 33, 36, 0.54);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.bs-related-card__content {
  display: flex;
  min-height: 255px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.bs-related-card__title {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: clamp(16px, 1.45vw, 20px);
  font-weight: 700;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}
