.home-banner-section {
  padding: 8px 0 4px;
  background: #fff;
  overflow: hidden;
}

.home-banner-swiper {
  overflow: hidden;
}

.home-banner-swiper .swiper-slide {
  width: auto;
  height: auto;
}

.home-banner-card {
  position: relative;
  display: block;
  width: min(72vw, 300px);
  aspect-ratio: 2 / 3;
  height: auto;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: #111;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-banner-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
  color: #111;
}

.home-banner-card__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-banner-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.55) 0%,
    rgba(15, 23, 42, 0.2) 38%,
    rgba(15, 23, 42, 0) 58%
  );
  pointer-events: none;
}

.home-banner-card__content {
  position: relative;
  z-index: 1;
  padding: 16px;
  height: 100%;
}

.home-banner-card__title {
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}

.home-banner-card__subtitle {
  margin: 6px 0 0;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: rgba(17, 17, 17, 0.72);
}

.home-banner-card--has-image {
  color: #fff;
}

.home-banner-card--has-image:hover {
  color: #fff;
}

.home-banner-card--has-image .home-banner-card__title {
  color: #fff;
  text-shadow: 0 1px 4px rgba(15, 23, 42, 0.45);
}

.home-banner-card--has-image .home-banner-card__subtitle {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 3px rgba(15, 23, 42, 0.4);
}

@media (min-width: 768px) {
  .home-banner-section {
    padding: 12px 0 8px;
  }

  .home-banner-card {
    width: 280px;
  }

  .home-banner-card__title {
    font-size: 1.375rem;
  }
}

@media (min-width: 1200px) {
  .home-banner-card {
    width: 300px;
  }
}
