/*==============================================================
  08. Slider
================================================================*/
@use "../default/breakpoints" as bp;

.swiper-slide {
  height: auto;
}

.swiper-slide-active {
  .cs_testimonial_style_1 {
    .cs_textimonial_content {
      opacity: 1;
      transform: translateY(0);
      transition: all 0.6s ease;
    }
  }
}

/*=======================================================
 Swiper Pagination
=========================================================*/
.swiper-pagination.cs_style_1 {
  display: flex;
  justify-content: center;
  gap: 24px;

  .swiper-pagination-bullet {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    background: transparent;
    opacity: 1;
    padding-inline-start: 24px;
    position: relative;
    counter-increment: accordion-counter;
    margin: 0;

    &::before {
      content: counter(accordion-counter, decimal-leading-zero);
      position: absolute;
      right: 100%;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
    }

    &::after {
      content: "";
      width: 0;
      height: 1px;
      background-color: var(--secondary-color);
      position: absolute;
      inset-inline-end: calc(100% - 3px);
      transition: all 0.3s ease;
    }
  }

  .swiper-pagination-bullet-active {
    color: var(--primary-color);
    border-color: var(--primary-color);

    &::after {
      width: 16px;
    }
  }
}

/*=======================================================
  Slider Arrow
=========================================================*/
.cs_arrow_style_1,
.cs_arrow_style_2 {
  display: flex;
  align-items: center;
  gap: 32px;

  .cs_left_arrow,
  .cs_right_arrow {
    width: 44px;
    height: 44px;
    padding: 10px;
  }
}

.cs_arrow_style_2 {
  .cs_left_arrow {
    inset-inline-start: calc((100vw - 1344px) / 2 - 18px);

    svg {
      transform: rotate(180deg);
    }
  }

  .cs_right_arrow {
    inset-inline-end: calc((100vw - 1344px) / 2 - 18px);
  }

  .cs_left_arrow,
  .cs_right_arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    transition: all 0.3s ease;

    &:hover {
      color: var(--white-color);
      background-color: var(--primary-color);
    }
  }

  @include bp.down(xxl) {
    .cs_left_arrow {
      inset-inline-start: calc((100vw - 1140px) / 2 - 10px);
    }

    .cs_right_arrow {
      inset-inline-end: calc((100vw - 1140px) / 2 - 10px);
    }
  }

  @include bp.down(xl) {
    .cs_left_arrow {
      inset-inline-start: calc((100vw - 960px) / 2 - 10px);
    }

    .cs_right_arrow {
      inset-inline-end: calc((100vw - 960px) / 2 - 10px);
    }
  }

  @media (max-width: 1023px) {
    margin-top: 40px;
    justify-content: center;

    .cs_left_arrow,
    .cs_right_arrow {
      position: initial;
      top: initial;
      transform: translateY(0);
    }
  }
}

/*=======================================================
 Partners Logo
=========================================================*/
.cs_logo_list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px 56px;

  .cs_logo {
    flex: none;
  }

  @include bp.down(xxl) {
    gap: 40px 24px;
  }

  @include bp.down(lg) {
    gap: 24px;

    .cs_logo {
      max-width: 150px;
    }
  }
}