/* Ascend Slider */

.ascend-slider {
  width: 100%;
  max-width: 100vw;
  padding: 48px 0;
}

 
.ascend-slider__viewport{
  width: 100%;
  max-width: 100vw;
  overflow: visible;
}

.ascend-slider__swiper.swiper{
  overflow: visible;
}

.ascend-slider__swiper .swiper-wrapper{
  width: 1200px;
  max-width: calc(100vw - 40px);
  overflow: visible;
  height: auto !important;
}

/* Slides */
.ascend-slider__swiper .swiper-slide{
  width: calc(100% - 32px);
  position: relative;
}
 
.ascend-slider__inner {
  display: flex;
  align-items: stretch;
  min-height: 380px;
  padding: 60px 5vw;
  gap: 40px;
  border-radius: 6px;
  margin-bottom: 0; 
  background: var(--Ascend-Blue, #0076C8);
  height: 100%;
}

.ascend-slider__left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
}

.ascend-slider__swiper .swiper-slide.ascend-slide-1 .ascend-slider__inner {
  background: #0076C8;  
}
.ascend-slider__swiper .swiper-slide.ascend-slide-2 .ascend-slider__inner{
  background: #6E398B;
}
.ascend-slider__swiper .swiper-slide.ascend-slide-3 .ascend-slider__inner{
  background: #FFDE37;
}
.ascend-slider__swiper .swiper-slide.ascend-slide-4 .ascend-slider__inner{
  background: #F28E1E;
}
.ascend-slider__swiper .swiper-slide.ascend-slide-5 .ascend-slider__inner{
  background: #8BBB3F;
}


.ascend-slider__swiper .swiper-slide.ascend-slide-1 .ascend-slider__title,
.ascend-slider__swiper .swiper-slide.ascend-slide-1 .ascend-slider__text,
.ascend-slider__swiper .swiper-slide.ascend-slide-2 .ascend-slider__title,
.ascend-slider__swiper .swiper-slide.ascend-slide-2 .ascend-slider__text {
  color: #fff !important;
}

.ascend-slider__swiper .swiper-slide.ascend-slide-3 .ascend-slider__title,
.ascend-slider__swiper .swiper-slide.ascend-slide-3 .ascend-slider__text,
.ascend-slider__swiper .swiper-slide.ascend-slide-4 .ascend-slider__title,
.ascend-slider__swiper .swiper-slide.ascend-slide-4 .ascend-slider__text,
.ascend-slider__swiper .swiper-slide.ascend-slide-5 .ascend-slider__title,
.ascend-slider__swiper .swiper-slide.ascend-slide-5 .ascend-slider__text{
  color: #000 !important;
}

.ascend-slider__swiper .swiper-slide.ascend-slide-1 .ascend-slider__cta .cf-button,
.ascend-slider__swiper .swiper-slide.ascend-slide-2 .ascend-slider__cta .cf-button {
  color: #000 !important;
  background-color: #fff !important;
}

.ascend-slider__swiper .swiper-slide.ascend-slide-1 .ascend-slider__cta .cf-button:hover,
.ascend-slider__swiper .swiper-slide.ascend-slide-2 .ascend-slider__cta .cf-button:hover {
    background-color: #8BBB3F !important;
    color: #fff !important;
}

.ascend-slider__swiper .swiper-slide.ascend-slide-3 .ascend-slider__cta .cf-button,
.ascend-slider__swiper .swiper-slide.ascend-slide-4 .ascend-slider__cta .cf-button,
.ascend-slider__swiper .swiper-slide.ascend-slide-5 .ascend-slider__cta .cf-button{
  color: #fff !important;
  background-color: #0076C8 !important;
}

.ascend-slider__swiper .swiper-slide.ascend-slide-3 .ascend-slider__cta .cf-button:hover,
.ascend-slider__swiper .swiper-slide.ascend-slide-4 .ascend-slider__cta .cf-button:hover,
.ascend-slider__swiper .swiper-slide.ascend-slide-5 .ascend-slider__cta .cf-button:hover {
    background-color: #fff !important;
    color: #000 !important;
}
.ascend-slider__swiper .swiper-slide.ascend-slide-5 .ascend-slider__cta .cf-button{
  color: #fff !important;
  background-color: #0076C8 !important;
}

.ascend-slider__swiper .swiper-slide.ascend-slide-1 .ascend-slider__nav {
    color: #fff !important;
}
.ascend-slider__swiper  .ascend-slider__nav svg path,
.ascend-slider__swiper .ascend-slider__nav svg path{
  fill: #fff !important;
}

/* media   */
.ascend-slider__right {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.ascend-slider__media {
    height:calc(100% - 40px);
    aspect-ratio: 364 / 442;
    overflow: hidden;
    border-radius: 6px;
    align-self: middle;
}

.ascend-slider__img{
  /* width: 100%; */
  /* height: 100%; */
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  display: block;
  object-position: center;
}

/* Title  */
.ascend-slider__title {
  font-family: "Bebas Neue", Helvetica, Arial, sans-serif;
  font-size: 48px;
  font-style: normal;
  font-weight: 600;
  line-height: 90%;
  letter-spacing: 0.96px;
  min-width: 220px;
  text-transform: uppercase;
}

.ascend-slider__text{
  font-family: "Avenir Next", Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
}

/* BUTTON (optional, only if exists) */

.ascend-slider__cta .cf-button {
  transition: all 300ms ease;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  line-height: 0.8 !important;
  padding: 16px 20px 14px 20px !important;
  font-weight: 700 !important;
}

.ascend-slider__cta .cf-button svg {
    width: 11px !important;
    margin-bottom: 3px !important;
}
 

/* NAV / PAGINATION */
.ascend-slider__swiper .ascend-slider__nav {
  position: absolute;
  top: 50% !important;
  bottom: unset !important;
  transform: translateY(0%);
  color: transparent !important;
  width: 32px !important;
  height: 32px !important;
  right: 32px !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-color: transparent !important;
}

.ascend-slider__swiper .ascend-slider__nav.swiper-button-next{
  background-image: url('/wp-content/themes/ascend-681/blocks/ascend-slider/img/arrow-right-white.svg') !important;
  right: 36px !important;
}
.ascend-slider__swiper .ascend-slider__nav.swiper-button-prev{
  background-image: url('/wp-content/themes/ascend-681/blocks/ascend-slider/img/arrow-left-white.svg') !important;
  left: 36px !important;
}

/* IF active slide is 3, 4, 5, then nav button img is black */
.ascend-slider__swiper:has(.swiper-slide.swiper-slide-active[data-swiper-slide-index="2"]) .ascend-slider__nav.swiper-button-next,
.ascend-slider__swiper:has(.swiper-slide.swiper-slide-active[data-swiper-slide-index="3"]) .ascend-slider__nav.swiper-button-next,
.ascend-slider__swiper:has(.swiper-slide.swiper-slide-active[data-swiper-slide-index="4"]) .ascend-slider__nav.swiper-button-next {
  background-image: url('/wp-content/themes/ascend-681/blocks/ascend-slider/img/arrow-right-black.svg') !important;
}
.ascend-slider__swiper:has(.swiper-slide.swiper-slide-active[data-swiper-slide-index="2"]) .ascend-slider__nav.swiper-button-prev,
.ascend-slider__swiper:has(.swiper-slide.swiper-slide-active[data-swiper-slide-index="3"]) .ascend-slider__nav.swiper-button-prev,
.ascend-slider__swiper:has(.swiper-slide.swiper-slide-active[data-swiper-slide-index="4"]) .ascend-slider__nav.swiper-button-prev {
  background-image: url('/wp-content/themes/ascend-681/blocks/ascend-slider/img/arrow-left-black.svg') !important;
}

.ascend-slider__nav.swiper-button-next::before,
.ascend-slider__nav.swiper-button-prev::before,
.ascend-slider__nav.swiper-button-next svg,
.ascend-slider__nav.swiper-button-prev svg {
  display:none !important;
}
 

/* Pagination */
.ascend-slider__swiper .swiper-pagination-bullets.swiper-pagination-horizontal{
  position: absolute;
  top: unset !important;
  bottom: -40px !important;
  gap: 16px;
}

.ascend-slider__swiper .swiper-pagination-bullets .swiper-pagination-bullet{
  width: 12px;
  height: 12px;
  background-color: var(--Ascend-Blue, #0076C8);
  opacity: 1;
  border-radius: 50%;
}
.ascend-slider__swiper .swiper-pagination-bullets .swiper-pagination-bullet-active{
  background-color: #000;
  opacity: 1;
}

/*  Mobile  */
@media (max-width: 1024px){
    .ascend-slider__title{
    font-size: 40px;
    min-width: unset;
  }

  .ascend-slider__text{
    font-size: 18px;
  }

  .ascend-slider__cta .cf-button {
    font-size: 18px;
    padding: 10px 16px;
  }

  .ascend-slider__swiper .ascend-slider__nav {
    width: 24px !important;
    height: 24px !important;
  }

  .ascend-slider__swiper .ascend-slider__nav.swiper-button-next{
    right: 28px !important;
  }
  .ascend-slider__swiper .ascend-slider__nav.swiper-button-prev{
    left: 28px !important;
  }
}

@media (max-width: 781px){
  

.ascend-slider__swiper .swiper-slide {
    width: 100% !important;
}
  .ascend-slider__inner{
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 32px !important;
    padding: 40px 40px;
  }

  .ascend-slider__left {
    gap: 16px;
    flex: unset !important;
    height: auto !important;
  }

  .ascend-slider__right  {
    width: 100% !important;
    height: auto !important;
    flex: unset !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    max-height: 200px !important;
  }

  .ascend-slider__media {
    /* aspect-ratio: 1/1 !important;
     */
     aspect-ratio: unset !important;
     height: 100% !important;
     width: 100% !important;
     object-fit: cover !important;
     object-position: center !important;
  }

  .ascend-slider__title{
    font-size: 32px;
    min-width: unset;
  }

  .ascend-slider__text{
    font-size: 16px;
  }
 
  .ascend-slider__swiper .ascend-slider__nav {
    width: 16px !important;
    height: 16px !important;
  }

  .ascend-slider__swiper .ascend-slider__nav.swiper-button-next{
    right: 10px !important;
  }

  .ascend-slider__swiper .ascend-slider__nav.swiper-button-prev{
    left: 10px !important;
  }

  .ascend-slider__swiper .swiper-pagination-bullets .swiper-pagination-bullet{
    width: 8px;
    height: 8px;
  }
  .ascend-slider__swiper .swiper-pagination-bullets.swiper-pagination-horizontal{
    bottom: -32px !important;
  }
}
