/**
 * Active ETF  Why AllianzGI slider
 * Layout + active-state only. Typography/colours follow AllianzGI global style.css:
 * - body copy: #3c3c3c, 16px/24px
 * - section heading: c-heading u-text-center u-margin-bottom-xs u-text-weight-light
 * - tab heading: #003781 inactive, #f86200 active
 */

.aetf-why-slider {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 80px;
  font-family: "Allianz Neo", sans-serif;
  color: #3c3c3c;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.aetf-why-slider > .c-heading.u-text-weight-light {
  margin-bottom: 48px !important;
}

.aetf-why-slider__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.aetf-why-slider__nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.aetf-why-slider__nav-item {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.aetf-why-slider__nav-content {
  display: block;
}

.aetf-why-slider__nav-text-block {
  position: relative;
  display: block;
  padding-left: 24px;
  overflow: hidden;
}

.aetf-why-slider__nav-text-block::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 3px;
  height: auto;
  background-color: #f86200;
  opacity: 0;
  transform: translateY(calc(-100% - 3px));
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.aetf-why-slider:not(.is-initialized) .aetf-why-slider__nav-text-block::before {
  transition: none;
}

.aetf-why-slider__nav-item.is-active .aetf-why-slider__nav-text-block::before {
  opacity: 1;
  transform: translateY(0);
}

.aetf-why-slider__nav-item.is-entering-from-bottom:not(.is-active) .aetf-why-slider__nav-text-block::before {
  opacity: 1;
  transform: translateY(calc(100% + 3px));
}

.aetf-why-slider__nav-item.is-leaving-down .aetf-why-slider__nav-text-block::before {
  opacity: 1;
  transform: translateY(calc(100% + 3px));
}

.aetf-why-slider__nav-item.is-leaving-up .aetf-why-slider__nav-text-block::before {
  opacity: 1;
  transform: translateY(calc(-100% - 3px));
}

.aetf-why-slider__nav-item.no-line-transition .aetf-why-slider__nav-text-block::before {
  transition: none;
}

.aetf-why-slider__nav-item:hover .aetf-why-slider__nav-heading {
  color: #003781;
}

.aetf-why-slider__nav-item.is-active:hover .aetf-why-slider__nav-heading {
  color: #f86200;
}

.aetf-why-slider__nav-item:focus-visible {
  outline: 2px solid #003781;
  outline-offset: 2px;
}

.aetf-why-slider__nav-item .c-heading.aetf-why-slider__nav-heading {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 34px;
  letter-spacing: 0.3px;
  font-weight: 400;
  color: #003781;
  transition: color 0.3s linear;
}

.aetf-why-slider__nav-item.is-active .c-heading.aetf-why-slider__nav-heading {
  color: #f86200;
}

.aetf-why-slider__nav-text {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: #3c3c3c;
}

.aetf-why-slider__media {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.aetf-why-slider__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.aetf-why-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.aetf-why-slider__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 991px) {
  .aetf-why-slider {
    padding: 48px 20px 64px;
  }

  .aetf-why-slider > .c-heading.u-text-weight-light {
    margin-bottom: 32px !important;
  }

  .aetf-why-slider__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .aetf-why-slider__nav {
    gap: 24px;
  }

  .aetf-why-slider__media {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 767px) {
  .aetf-why-slider__nav-item .c-heading.aetf-why-slider__nav-heading {
    font-size: 22px;
    line-height: 28px;
    margin-bottom: 8px;
  }

  .aetf-why-slider__nav-text-block {
    padding-left: 16px;
  }
}
