/* AGS homepage hero carousel */

.hero-wrap.homepage.ags-hero-carousel {
  position: relative;
  isolation: isolate;
  background-image: none !important;
  overflow: hidden;
}

.ags-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.ags-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(49, 55, 63, 0.82) 0%,
    rgba(49, 55, 63, 0.55) 42%,
    rgba(49, 55, 63, 0.2) 68%,
    rgba(49, 55, 63, 0.08) 100%
  );
}

.ags-hero-bg__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.ags-hero-bg__img.is-active {
  opacity: 1;
}

.hero-wrap.homepage.ags-hero-carousel .heading-wrap-left,
.hero-wrap.homepage.ags-hero-carousel .ags-hero-controls {
  position: relative;
  z-index: 2;
}

.ags-hero-copy {
  opacity: 1 !important;
  transform: none !important;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.ags-hero-copy.is-transitioning {
  opacity: 0 !important;
  transform: translateY(12px) !important;
}

.ags-hero-copy .heading-text-left,
.ags-hero-copy .p2-left,
.ags-hero-copy .button-wrap {
  opacity: 1 !important;
  transform: none !important;
}

.ags-hero-ui {
  position: absolute;
  left: 56px;
  right: 56px;
  bottom: 28px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}

.ags-hero-ui > * {
  pointer-events: auto;
}

.ags-hero-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(49, 55, 63, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.ags-hero-arrow {
  position: static;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.ags-hero-arrow:hover,
.ags-hero-arrow:focus-visible {
  background: var(--delta-accent, #ff2d16);
  border-color: rgba(255, 255, 255, 0.65);
  outline: none;
}

.ags-hero-arrow svg {
  width: 18px;
  height: 18px;
}

.ags-hero-dots {
  position: static;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.ags-hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: width 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.ags-hero-dot.is-active {
  width: 32px;
  background: var(--delta-accent, #ff2d16);
  border-color: var(--delta-accent, #ff2d16);
}

.ags-hero-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.ags-hero-counter {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(49, 55, 63, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.hero-wrap.homepage.ags-hero-carousel .button-wrap.option-1 {
  width: 100%;
  max-width: 360px;
}

.hero-wrap.homepage.ags-hero-carousel .main-button:not(.white-version) {
  background-color: var(--delta-accent) !important;
  border: 1px solid var(--delta-accent) !important;
  border-radius: 0 0 32px 0 !important;
  width: 100%;
  min-height: 64px !important;
  padding: 14px 20px 14px 28px !important;
  justify-content: space-between !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.hero-wrap.homepage.ags-hero-carousel .main-button:not(.white-version) .p2-left,
.hero-wrap.homepage.ags-hero-carousel .main-button:not(.white-version) .p1-left {
  color: #fff !important;
  font-size: 18px;
  font-weight: 600;
}

.hero-wrap.homepage.ags-hero-carousel .main-button:not(.white-version) .filled-icon-block {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin-left: auto;
}

.hero-wrap.homepage.ags-hero-carousel .main-button:not(.white-version) .filled-icon-block .icon {
  width: 42px;
  height: 42px;
}

.hero-wrap.homepage.ags-hero-carousel .main-button:not(.white-version) .filled-icon-block .icon path {
  fill: #fff !important;
}

.hero-wrap.homepage.ags-hero-carousel .main-button:not(.white-version) .filled-icon-block._2 {
  display: none !important;
}

.hero-wrap.homepage.ags-hero-carousel .main-button.white-version,
.hero-wrap.homepage.ags-hero-carousel .main-button.white-version.ags-hero-secondary-quote.is-visible {
  width: 100%;
  min-height: 56px !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.hero-wrap.homepage.ags-hero-carousel .main-button.white-version .filled-icon-block.option-3-navy:not(._2),
.hero-wrap.homepage.ags-hero-carousel .main-button.white-version .filled-icon-block.option-3-white:not(._2) {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
}

.hero-wrap.homepage.ags-hero-carousel .line-button.white-version {
  width: 100%;
  min-height: 56px;
  border-radius: 0 0 32px 0 !important;
  justify-content: space-between !important;
}

@media screen and (max-width: 991px) {
  .hero-wrap.homepage.ags-hero-carousel .button-wrap.option-1 {
    max-width: none;
  }
}

/* Must beat .hero-wrap .main-button.white-version { display: inline-flex !important } */
.hero-wrap.homepage.ags-hero-carousel .main-button.white-version.ags-hero-secondary-quote:not(.is-visible) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.hero-wrap.homepage.ags-hero-carousel .main-button.white-version.ags-hero-secondary-quote.is-visible {
  display: inline-flex !important;
  visibility: visible !important;
  pointer-events: auto !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  border-radius: 999px !important;
}

[data-ags-hero="secondary-intro"].is-hidden {
  display: none !important;
}

@media screen and (max-width: 991px) {
  .ags-hero-ui {
    left: 28px;
    right: 28px;
    bottom: 20px;
  }
}

@media screen and (max-width: 767px) {
  .ags-hero-ui {
    left: 20px;
    right: 20px;
    bottom: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .ags-hero-counter {
    order: -1;
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ags-hero-bg__img,
  .ags-hero-copy {
    transition: none !important;
  }
}
