.aob-hero-slider {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  background: #111;
  color: #fff;
  font-family: var(--aob-body, "Source Sans 3", system-ui, sans-serif);
}

.aob-hero-slider *,
.aob-hero-slider *::before,
.aob-hero-slider *::after {
  box-sizing: border-box;
}

.aob-hero-slider__viewport,
.aob-hero-slider__track,
.aob-hero-slider__slide {
  height: 100%;
}

.aob-hero-slider__viewport {
  overflow: hidden;
}

.aob-hero-slider__track {
  display: flex;
  width: 100%;
  transition: transform 500ms ease;
  will-change: transform;
}

.aob-hero-slider__slide {
  position: relative;
  min-width: 100%;
  overflow: hidden;
}

.aob-hero-slider__image,
.aob-hero-slider__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.aob-hero-slider__image {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
}

.aob-hero-slider__overlay {
  background: rgba(0, 0, 0, 0.38);
}

.aob-hero-slider__link {
  position: relative;
  z-index: 1;
  width: min(900px, calc(100% - 120px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  color: #fff;
  text-align: center;
  text-decoration: none;
}

.aob-hero-slider__heading {
  max-width: 900px;
  color: #fff;
  font-family: var(--aob-display, "Eurostile", system-ui, sans-serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.aob-hero-slider__button {
  min-height: 48px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 25px;
  background: #2290ff;
  color: #fff;
  font-family: var(--aob-display, "Eurostile", system-ui, sans-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  transition: background-color 150ms ease, transform 150ms ease;
}

.aob-hero-slider__link:hover .aob-hero-slider__button,
.aob-hero-slider__link:focus-visible .aob-hero-slider__button {
  background: #1a79d9;
  transform: translateY(-1px);
}

.aob-hero-slider__link:focus-visible,
.aob-hero-slider__arrow:focus-visible {
  outline: 3px solid #00aeef;
  outline-offset: -5px;
}

.aob-hero-slider__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 52px;
  height: 64px;
  padding: 10px;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.aob-hero-slider__arrow:hover {
  background: rgba(0, 0, 0, 0.5);
}

.aob-hero-slider__arrow svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.aob-hero-slider__arrow--previous {
  left: 10px;
}

.aob-hero-slider__arrow--next {
  right: 10px;
}

@media (max-width: 767px) {
  .aob-hero-slider {
    height: 480px;
  }

  .aob-hero-slider__link {
    width: min(100% - 80px, 680px);
    gap: 20px;
  }

  .aob-hero-slider__heading {
    font-size: clamp(30px, 9vw, 46px);
  }

  .aob-hero-slider__arrow {
    width: 42px;
    height: 54px;
    padding: 8px;
  }

  .aob-hero-slider__arrow--previous {
    left: 0;
  }

  .aob-hero-slider__arrow--next {
    right: 0;
  }
}

@media (max-width: 480px) {
  .aob-hero-slider {
    height: 420px;
  }

  .aob-hero-slider__link {
    width: calc(100% - 64px);
  }

  .aob-hero-slider__button {
    min-height: 44px;
    padding: 0 22px;
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aob-hero-slider__track,
  .aob-hero-slider__button,
  .aob-hero-slider__arrow {
    transition: none;
  }
}
