.test-wrap1 {
  position: relative;
  border-bottom: 2px solid #f4f6fc;
}

.testi-style1 {
  background-color: #f8f8f9;
  padding: 1px 40px 35px 40px;
  margin: 15px 0 30px 0;
  border-radius: 5px;
  transition: all ease 0.4s;

  &:hover {
    background-color: $white-color;
    box-shadow: 0px 10px 31px rgba(169, 177, 193, 0.17);
  }

  .testi-icon {
    padding: 10px;
    width: fit-content;
    background-color: $white-color;
    border-radius: 5px;
    margin: -25px 0 20px 0;

    i {
      width: var(--icon-size, 60px);
      height: var(--icon-size, 60px);
      line-height: var(--icon-size, 60px);
      color: $white-color;
      font-size: 24px;
      border-radius: inherit;
      background-color: $theme-color;
      text-align: center;
      display: inline-block;
    }
  }

  .testi-text {
    margin: 0 0 22px 0;
  }

  .testi-name {
    margin: 0;
  }

  .testi-degi {
    font-size: 14px;
    display: block;
    color: $theme-color;
  }
}

.testi-style2 {
  background-color: $white-color;
  box-shadow: 0px 10px 31px rgba(169, 177, 193, 0.17);
  border-radius: 5px;
  padding: 50px 50px 40px 50px;
  margin: 0 0 30px 0;

  .testi-body {
    display: flex;
    margin: 0 0 12px 0;
  }

  .author-img {
    width: 80px;
    height: 80px;
    overflow: hidden;
    margin: 0 30px 0 0;
    border-radius: 5px;
  }

  .testi-text {
    font-family: $title-font;
    line-height: 30px;
    font-size: 16px;
    font-style: italic;
    margin-top: -0.4em;
  }

  .testi-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 2px 0;
  }

  .testi-degi {
    font-size: 14px;
    font-family: $title-font;
    color: $theme-color;
  }
}

.testi-style2-slide {
  margin-top: -30px;

  .testi-style2 {
    box-shadow: 0px 10px 21px rgba(169, 177, 193, 0.15);
    margin-top: 30px;
  }
}

.author-style1 {
  display: flex;
  border-radius: 15px;
  position: relative;
  padding: 25px;
  margin: 0 0 30px 0;
  transition: all ease 0.4s;
  box-shadow: none;
  background-color: transparent;
  cursor: pointer;

  &:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 5px;
    height: 20px;
    background-color: $theme-color;
    border-radius: 9999px;
    margin: -10px 0 0 0;
    transition: all ease 0.4s;
    opacity: 0;
    visibility: hidden;
  }

  .author-name {
    margin: 0;
  }

  .author-degi {
    color: $theme-color;
    font-size: 14px;
  }

  .author-img {
    margin: 0 15px 0 0;
    width: 60px;
    border-radius: 50%;
    overflow: hidden;
  }
}

.slick-current .author-style1,
.author-style1:hover {
  background-color: $white-color;
  box-shadow: 0px 17px 20px #eeeff1;
}

.slick-current .author-style1 {
  &::before {
    opacity: 1;
    visibility: visible;
  }
}

.testi-text-slide {
  .testi-text {
    font-size: 18px;
    margin: 10px 0 30px 0;
  }
}

.testimonial-arrow {
  position: absolute;
  right: -126px;
  top: 50%;
  transform: translateY(-50%);

  .icon-btn {
    display: block;
    margin: 0 0 20px 0;

    &:last-child {
      margin-bottom: 0;
    }
  }
}
.testi-shape1 {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  max-width: 1567px;
  max-height: 684px;
}

.testi-shape2 {
  position: absolute;
  right: 0;
  bottom: 0;
  top: $space;
  width: 100%;
  background-color: $white-color;
  max-width: 1670px;
  z-index: -1;
}

.test-wrap1 {
  padding-top: calc(var(--section-space) * 2);
  padding-bottom: $space-extra;
  position: relative;
}

.testi-inner1 {
  width: 750px;
}

.testi-style3 {
  background-color: $white-color;
  padding: 40px 40px 32px 40px;
  border-radius: 50px;
  box-shadow: 5px 8.66px 60px 0px rgba(187, 191, 204, 0.18);
  margin-bottom: 30px;

  .testi-author {
    display: flex;
    align-items: center;
    margin: 0 0 20px 0;
  }

  .author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;

    img {
      width: 100%;
    }
  }

  .testi-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
  }

  .testi-degi {
    color: $theme-color;
    font-size: 14px;
  }

  .testi-rating {
    font-weight: 600;
    font-family: $title-font;
    color: $title-color;
    border-top: 1px solid #e3e9ff;
    padding-top: 20px;
    margin-top: 22px;

    i {
      color: #feb519;
      margin-left: 5px;
      font-size: 14px;

      &:first-child {
        margin-left: 15px;
      }
    }
  }
}

.testi-style4 {
  background-color: $white-color;
  padding: 50px 50px 40px 50px;
  transform: skewY(-5deg);
  border-radius: 30px;
  margin: 26px 0 56px 0;
  box-shadow: 4px 5px 60px 0px rgba(178, 180, 187, 0.05);

  .testi-body {
    transform: skewY(5deg);
  }

  .author-img {
    width: 100px;
    height: 100px;
    position: relative;
    margin-bottom: 30px;

    img {
      border-radius: 50%;
      width: 100%;
    }
  }

  .quote {
    background-color: $white-color;
    display: inline-block;
    color: $theme-color;
    line-height: 1;
    width: 30px;
    height: 30px;
    line-height: 32px;
    text-align: center;
    position: absolute;
    right: 0;
    bottom: 0;
    font-size: 14px;
    transform: skewY(-10deg);
    border-radius: 5px;
    box-shadow: 3.5px 6.062px 40px 0px rgba(0, 0, 0, 0.21);

    i::before {
      transform: skewY(10deg);
      display: block;
    }
  }

  .testi-name {
    font-weight: 600;
    margin: 0 0 0px 0;
  }

  .testi-degi {
    font-size: 14px;
    color: $theme-color;
    margin: 0;
  }
}

.testi-style5 {
  text-align: center;
  margin-bottom: 22px;

  .testi-avater {
    width: 125px;
    height: 125px;
    overflow: hidden;
    position: relative;
    margin: 0 auto 37px auto;
    box-shadow: 1.5px 2.598px 7px 0px rgba(0, 0, 0, 0.21);
    border-radius: 50%;

    img {
      width: 100%;
    }

    // &:before {
    //   content: '';
    //   position: absolute;
    //   left: 0;
    //   top: 50%;
    //   width: 100%;
    //   height: 106px;
    //   margin-top: -53px;
    //   // background-image: url("data:img/png;base64,iVBORw0KGgoAAAANSUhEUgAAAH4AAABoCAMAAAAAcrQ8AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABvFBMVEX9TRf////9TRf9TRf9TRf9TRf9TRf9TRf9TRf9TRf9TRf9TRf9TRf9TRf9TRf9TRf9TR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Pgus3IES/5IFypazMn/TB8oG+bjfQTKmg4TBquQhw/7CpIGev5q+eLltA8efoVU86Ff4J+H3JhaPvYF0754iKr9c0SU0v54yFb415DFNf81xD5+K+Odh5v/A5IjEmkUr1hLAAAAAElFTkSuQmCC");
    //   animation: rotate 30s infinite linear;
    // }
  }

  .testi-text {
    font-size: 24px;
    line-height: 35px;
    margin: 0 0 20px 0;
  }

  .testi-name {
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    margin: 0 0 4px 0;
  }

  .testi-degi {
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }

  .testi-shape {
    line-height: 1;
    margin: 0 0 14px 0;

    .arrow {
      display: inline-block;
      width: 11px;
      height: 12px;
      background-color: currentColor;
      clip-path: polygon(0 100%, 50% 0, 100% 100%, 50% 55%);
      margin: 0 2px 0 0;
    }
  }
}

.testi-slide2 {
  .slick-arrow {
    background-color: transparent;
    color: $white-color;
    font-size: 36px;
    border: none;
    border-radius: 0;
    --pos-x: -120px;

    &:hover {
      color: $title-color;
    }
  }
}

@include hd {
  .testi-shape1 {
    max-width: 85%;
  }

  .testi-shape2 {
    max-width: 90%;
  }
}

@media (max-width: 1800px) {
  .test-wrap1 {
    .offset-xxl-1 {
      margin-left: 0;
    }
  }

  .testi-inner1 {
    width: auto;
    margin-right: -150px;
  }
}

@include xl {
  .testi-shape1 {
    max-width: initial;
    width: auto;
    right: 50px;
  }

  .testi-shape2 {
    max-width: 100%;
    width: auto;
    left: 50px;
  }

  .testimonial-arrow {
    display: none !important;
  }
}

@include ml {
  .author-style1 {
    padding: 20px;

    .author-name {
      margin: 0;
      font-size: 18px;
    }
  }

  .testi-inner1 {
    margin-right: -100px;
  }

  .testi-style3 {
    padding: 40px 30px 32px 30px;
  }

  .testi-shape2,
  .testi-shape1 {
    display: none;
  }

  .test-wrap1 {
    padding-top: 0;
  }

  .testi-style4 {
    padding: 35px 30px 30px 30px;
  }
}

@include lg {
  .testi-style1 {
    padding: 1px 25px 35px 25px;
  }

  .testi-style2 {
    padding: 40px 40px 30px 40px;
    text-align: center;

    .author-img {
      margin: 0 auto 15px auto;
    }

    .testi-body {
      display: flex;
      margin: 0 0 0 0;
      flex-direction: column-reverse;
    }
  }

  .testi-inner1 {
    margin-right: 0;
  }

  .testi-style5 {
    .testi-text {
      font-size: 20px;
      line-height: 30px;
      margin: 0 0 20px 0;
    }

    .testi-name {
      font-size: 22px;
      margin: 0 0 4px 0;
    }

    .testi-degi {
      letter-spacing: 0;
      font-size: 14px;
    }
  }
}

@include md {
  .testi-style2 {
    padding: 30px;
  }

  .testi-style1 {
    text-align: center;

    .testi-icon {
      margin-left: auto;
      margin-right: auto;
    }
  }

  .test-wrap1 {
    padding-bottom: $space-mobile-extra;
  }
}

@include sm {
  .testi-style4 {
    transform: none;

    .testi-body {
      transform: none;
    }

    .author-img {
      width: 70px;
      height: 70px;
      margin-bottom: 20px;
    }
  }
}

.testi-style6 {
  position: relative;

  .testi-body {
    background-color: $white-color;
    display: flex;
    position: relative;
    border: 1px solid #eef2fb;
    box-shadow: 0px 0px 30px 0px rgba(78, 111, 178, 0.15);
  }

  .media-body {
    align-self: center;
    padding-right: 30px;
    text-align: left;
  }

  .testi-img {
    margin-right: 45px;
  }

  .testi-rating {
    color: $theme-color;
    font-size: 18px;
    margin: 0 0 20px 0;

    i {
      margin-right: 3px;
    }
  }

  .testi-text {
    font-size: 16px;
    font-weight: 400;
    color: $title-color;
    line-height: 32px;
    margin-bottom: 5px;
  }

  .testi-name {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    line-height: 1.5;
  }

  .testi-degi {
    color: $theme-color;
    font-size: 14px;
    font-weight: 400;
    text-transform: capitalize;
  }

  .quote-icon {
    position: absolute;
    right: 5%;
    top: 10%;
  }
  .quote-icon2 {
    background-color: #eef2fb;
    padding: 20px;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 15px;
  }

  .shape-dotted {
    position: absolute;
    right: -30px;
    bottom: 20px;
    z-index: -1;
  }

  .slick-dots {
    margin-top: 48px;
    margin-bottom: 0;
  }
}

.testi-nav {
  position: relative;
  overflow: hidden;
  ::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(27, 43, 74, 0.7);
    z-index: 1;
  }
  ::after {
    content: "";
    position: absolute;
    width: 96%;
    height: 143%;
    top: -37%;
    left: 61%;
    background-color: rgba(14, 89, 242, 0.41);
    transform: rotate(-28deg);
    z-index: 2;
  }
}
.testi-nav {
  position: relative;
  margin-bottom: 48px;
  width: max-content;
  height: max-content;
  max-width: 100%;
  max-height: 100%;

  .tab-btn {
    border: none;
    padding: 0;
    background-color: transparent;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: all ease 0.8s;
    overflow: hidden;

    &:not(:first-child) {
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
    }

    img {
      width: 100%;
      transition: all ease 0.4s;
      transform: scale(1);
      position: relative;
    }

    &:hover {
      img {
        transform: scale(1.08);
      }
    }
  }

  &.nav-prev {
    .prev {
      opacity: 1;
      visibility: visible;
      z-index: 2;
    }

    .tab-btn {
      &.active:first-child {
        opacity: 0.5;
        visibility: visible;
        cursor: not-allowed;
      }
    }
  }

  &.nav-next {
    .next {
      opacity: 1;
      visibility: visible;
      z-index: 2;
    }

    .tab-btn {
      &.active:last-child {
        opacity: 0.5;
        visibility: visible;
        cursor: not-allowed;
      }
    }
  }
}
@include md {
  .order-1 {
    display: none;
  }
  .order-2 {
    display: none;
  }
}

@include sm {
  .testi-style6 {
    .testi-body {
      display: block;
      text-align: center;
      border: none;
      box-shadow: none;
      .quote-icon {
        display: none;
      }
      .testi-img {
        margin-bottom: 30px;
        margin-right: 0;
      }
    }
    .media-body {
      padding: 0 20px;
    }
  }
}
