/*--------------------------------------------------------------
  5. Slider
----------------------------------------------------------------*/
.cs_slider_heading.cs_style_1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cs_slider {
  position: relative;
}
.cs_slider.cs_style_1 {
  display: flex;
  flex-wrap: wrap;
  .cs_slider_left {
    width: 44%;
    padding-right: 12%;
  }
  .cs_slider_right {
    width: 56%;
  }
}
.cs_slider.cs_style3 {
  .cs_portfolio.cs_style_1 {
    padding: 50px 0;
    transition: all 0.4s ease;
    .cs_portfolio_info_bg {
      left: -20px;
      top: 20px;
      opacity: 0;
      transition: all 0.4s ease;
    }
    .cs_portfolio_title {
      opacity: 0;
      left: 20px;
      transition: all 0.5s ease;
    }
    .cs_portfolio_subtitle {
      opacity: 0;
      left: 20px;
      transition: all 0.5s ease;
    }
  }
  .slick-active {
    .cs_portfolio.cs_style_1 {
      padding: 0;
      .cs_portfolio_info_bg {
        left: 0px;
        top: 0px;
        opacity: 1;
        transition-delay: 0.4s;
      }
      .cs_portfolio_title {
        left: 0px;
        opacity: 1;
        transition-delay: 0.5s;
      }
      .cs_portfolio_subtitle {
        left: 0px;
        opacity: 1;
        transition-delay: 0.6s;
      }
    }
  }
}
.slick-slide > div {
  display: flex;
  flex-direction: column;
}

.cs_remove_overflow {
  .slick-list {
    overflow: visible;
  }

  .slick-slide {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s linear;

    &.slick-active {
      opacity: 1;
      visibility: visible;
    }
  }
}

.cs_pagination.cs_style_1 {
  display: flex;
  justify-content: center;
  margin-top: 70px;

  ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inherit !important;
  }

  li {
    height: 16px;
    width: 16px;
    background-color: $accent;
    border: 1px solid $accent;
    border-radius: 50%;
    margin: 0 8px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    &::before {
      content: '';
      position: absolute;
      height: 5px;
      width: 5px;
      border-radius: 50%;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      background-color: $accent;
    }

    &.slick-active {
      background-color: transparent;
    }
  }

  button {
    display: none;
  }
}
.cs_swiper_pagination {
  display: flex;
  justify-content: center;
  position: absolute;
  bottom: 52px;
  right: initial;
  top: initial;
  z-index: 2;

  .swiper-pagination-bullet {
    height: 16px;
    width: 16px;
    background-color: $accent;
    border: 1px solid $accent;
    border-radius: 50%;
    margin: 0 8px !important;
    cursor: pointer;
    position: relative;
    opacity: 1;
    transition: all 0.3s ease;
    &::before {
      content: '';
      position: absolute;
      height: 5px;
      width: 5px;
      border-radius: 50%;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      background-color: $accent;
    }

    &.swiper-pagination-bullet-active {
      background-color: transparent;
    }
  }
  &.cs_square_shape {
    .swiper-pagination-bullet {
      height: 15px;
      width: 15px;
      border-radius: 3px;
      &::before {
        border-radius: 1px;
      }
    }
  }
}
.swiper-horizontal > .swiper-pagination-bullets.cs_swiper_pagination,
.swiper-vertical > .swiper-pagination-bullets.cs_swiper_pagination {
  right: initial;
  top: initial;
  transform: initial;
  left: 50%;
  transform: translateX(-50%);
  bottom: 52px;
  width: initial;
}
.swiper-vertical > .swiper-pagination-bullets.cs_swiper_pagination {
  right: initial;
  top: initial;
}
.swiper-vertical
  > .swiper-pagination-bullets.cs_swiper_pagination.cs_slide_numbers {
  left: 115px;
  bottom: initial;
  transform: translateY(-50%);
  top: 50%;
  flex-direction: column;
  align-items: center;
  .swiper-pagination-bullet {
    display: block;
    height: initial;
    width: initial;
    border: none;
    background-color: transparent;
    margin: 15px 0 !important;
    font-size: 21px;
    font-weight: 600;
    color: #fff;
    &::before {
      display: none;
    }
    &.swiper-pagination-bullet-active {
      color: $accent;
    }
    &:nth-child(1) {
      &::after {
        content: '01';
      }
    }
    &:nth-child(2) {
      &::after {
        content: '02';
      }
    }
    &:nth-child(3) {
      &::after {
        content: '03';
      }
    }
    &:nth-child(4) {
      &::after {
        content: '04';
      }
    }
    &:nth-child(5) {
      &::after {
        content: '05';
      }
    }
    &:nth-child(6) {
      &::after {
        content: '06';
      }
    }
    &:nth-child(7) {
      &::after {
        content: '07';
      }
    }
    &:nth-child(8) {
      &::after {
        content: '08';
      }
    }
    &:nth-child(9) {
      &::after {
        content: '09';
      }
    }
    &:nth-child(10) {
      &::after {
        content: '10';
      }
    }
  }
}

.cs_slider_arrows.cs_style_1 {
  display: flex;
  margin: -8px;
  .slick-arrow {
    width: 60px;
    height: 35px;
    border: 2px solid currentColor;
    border-radius: 5px;
    margin: 8px;
    cursor: pointer;
    transition: all 0.3s ease;

    &:hover {
      color: $white;
      background-color: $accent;
      border-color: $accent;
    }
  }
}
.cs_slider_arrows.cs_style2 {
  .slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 50px;
    width: 50px;
    background-color: rgba($ternary, 0.5);
    border-radius: 50%;
    z-index: 5;
    cursor: pointer;
    transition: all 0.3s ease;
    &:hover {
      background-color: $ternary;
    }
    &.cs_left_arrow {
      left: 40px;
    }
    &.cs_right_arrow {
      right: 40px;
    }
  }
}

.slick-dotted {
  cursor: url(../img/drag.png) 16 9, ew-resize !important;
}

.cs_gap-24 {
  .slick-slide {
    padding-left: 12px;
    padding-right: 12px;
  }
  .slick-list {
    margin-left: -12px;
    margin-right: -12px;
  }
}

.cs_gap-12 {
  .slick-slide {
    padding-left: 6px;
    padding-right: 6px;
  }
  .slick-list {
    margin-left: -6px;
    margin-right: -6px;
  }
}

.cs_slider_controll {
  position: relative;
  display: flex;
  align-items: center;
  width: 320px;
  justify-content: space-between;
  .cs_controll_seperator {
    height: 1px;
    flex: 1;
    background-color: rgba($primary, 0.5);
    margin: 0 20px;
  }
  &.cs_type1 {
    margin-left: -205px;
  }
}
.slider-nav.cs_style_1 {
  width: 405px;
  .slick-list {
    padding: 50px 0 !important;
  }
  .slick-dots,
  .slick-arrow {
    display: none !important;
  }
}
.slider-nav_item {
  width: 135px;
  transition: all 0.5s ease;
  opacity: 0.5;
  padding: 20px;
}
.slick-center .slider-nav_item {
  transform: scale(1.8);
  opacity: 1;
  position: relative;
  z-index: 2;
}
.slider-for {
  .slick-arrow {
    width: 60px;
    height: 35px;
    border: 2px solid $white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    background-color: transparent;
    outline: none;
    color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    bottom: 6px;
    z-index: 2;
    &:hover {
      background-color: $accent;
      border-color: $accent;
    }
  }
  .slick-prev {
    background-image: url(../img/prev_arrow.svg);
    right: 76px;
  }
  .slick-next {
    background-image: url(../img/next_arrow.svg);
    right: 0;
  }
}
.cs_testimonial_slider {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  .cs_testimonial_slider_left {
    width: 35%;
  }
  .cs_testimonial_slider_right {
    width: 65%;
  }
}

@media screen and (max-width: 1199px) {
  .cs_gap-50 {
    .slick-slide {
      padding-left: 15px;
      padding-right: 15px;
    }

    .slick-list {
      margin-left: -15px;
      margin-right: -15px;
    }
  }
  .cs_slider.cs_style_1 {
    display: block;
    .cs_slider_left {
      width: 100%;
      padding-right: 0;
      padding-bottom: 90px;
    }
    .cs_slider_right {
      width: 100%;
    }
  }
  .cs_testimonial_slider {
    .cs_testimonial_slider_left {
      width: 45%;
    }
    .cs_testimonial_slider_right {
      width: 55%;
    }
  }
  .cs_slider.cs_style3 .slick-list {
    padding: 0 15% !important;
  }
  .swiper-horizontal > .swiper-pagination-bullets.cs_swiper_pagination,
  .swiper-vertical > .swiper-pagination-bullets.cs_swiper_pagination {
    bottom: 30px;
  }
  .swiper-vertical
    > .swiper-pagination-bullets.cs_swiper_pagination.cs_slide_numbers {
    left: 15px;
    .swiper-pagination-bullet {
      font-size: 16px;
      margin: 7px 0 !important;
    }
  }
}
@media screen and (min-width: 992px) {
  .cs_hidden_desktop {
    display: none !important;
  }
}
@media screen and (max-width: 991px) {
  .cs_hidden_mobile {
    display: none !important;
  }
  .cs_pagination.cs_style_1 {
    margin-top: 35px;
  }
  .cs_slider_nav {
    position: initial;
    width: 100%;
    transform: initial;
    padding-bottom: 80px;
  }
  .cs_gap-40,
  .cs_gap-50 {
    .slick-slide {
      padding-left: 15px;
      padding-right: 15px;
    }

    .slick-list {
      margin-left: -15px;
      margin-right: -15px;
    }
  }
  .cs_slider.cs_style_1 .cs_slider_left {
    padding-bottom: 45px;
  }
  .cs_slider_heading.cs_style_1 {
    flex-direction: column;
    align-items: flex-start;
    .cs_section_heading + .cs_slider_arrows {
      margin-top: 15px;
    }
  }
  .cs_testimonial_slider {
    display: block;
    .cs_testimonial_slider_left,
    .cs_testimonial_slider_right {
      width: 100%;
    }
    .cs_testimonial_slider_left {
      margin-bottom: 30px;
    }
  }
  .slider-nav.cs_style_1 {
    margin: auto;
  }
  .slider-nav.cs_style_1 .slick-list {
    padding: 40px 0 !important;
  }
}

@media screen and (max-width: 767px) {
  .cs_slider.cs_style3 .slick-list {
    padding: 0 15% !important;
  }
}
@media screen and (max-width: 575px) {
  .cs_hide_mobile {
    display: none;
  }
  .cs_slider.cs_style3 .slick-list {
    padding: 0 15px !important;
  }
  .swiper-vertical
    > .swiper-pagination-bullets.cs_swiper_pagination.cs_slide_numbers {
    display: none;
  }
}
@media screen and (max-width: 420px) {
  .slider-nav.cs_style_1 {
    width: 300px;
  }
  .slider-nav_item {
    width: 100px;
  }
  .cs_testimonial_slider .cs_testimonial.cs_style_1 {
    padding-bottom: 70px;
  }
  .slider-for .slick-next {
    right: initial;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 38px;
  }
  .slider-for .slick-prev {
    right: initial;
    left: 50%;
    transform: translateX(-50%);
    margin-left: -38px;
  }
}
