.hero-slider {
  position: relative;
  height: 520px;
  overflow: hidden;
  border-radius: 16px;
  background: #0a2348;
  box-shadow: 0 18px 50px #071d4930;
  isolation: isolate;
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  display: grid;
  place-items: center;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease, visibility .7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero .hero-slide__backdrop {
  position: absolute;
  inset: -24px;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  object-fit: cover;
  border-radius: 0;
  filter: blur(22px) brightness(.58) saturate(.85);
  transform: scale(1.08);
  box-shadow: none;
}

.hero .hero-slide__image {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #ffffff8c;
  border-radius: 50%;
  background: #071d49cc;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .2s ease, transform .2s ease;
}

.hero-control:hover {
  background: #e30613;
  transform: translateY(-50%) scale(1.06);
}

.hero-control.prev {
  left: 14px;
}

.hero-control.next {
  right: 14px;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 16px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ffffff99;
  cursor: pointer;
  transition: width .2s ease, border-radius .2s ease, background .2s ease;
}

.hero-dot.is-active {
  width: 28px;
  border-radius: 999px;
  background: #e30613;
}

.hero-slider.single .hero-control,
.hero-slider.single .hero-dots {
  display: none;
}

@media (max-width: 800px) {
  .hero-slider {
    grid-row: 1;
    height: min(88vw, 420px);
    margin-bottom: 28px;
  }

  .hero .hero-slider img {
    grid-row: auto;
    height: 100%;
    margin-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
}
