.testimonial-box {
  padding: 50px 60px;
  border-radius: 20px;
  background-color: $color-2;
  overflow: hidden;
  @include transition($transition);

  @include breakpoint(max-lg) {
    padding: 40px 50px;
  }
  @include breakpoint(max-md) {
    padding: 20px 30px;
    border-radius: 10px;
  }
  .ratings {
    li {
      color: $color-primary;

      &:last-of-type {
        color: rgba($color-primary, 0.2);
      }
    }
  }
  p {
    color: $color-white;
    font-size: 35px;
    font-style: normal;
    line-height: 1.28571;
    margin-top: 40px;

    @include breakpoint(max-lg) {
      font-size: 27px;
      margin-top: 20px;
    }
    @include breakpoint(max-md) {
      font-size: 22px;
    }
    @include breakpoint(max-sm) {
      font-size: 20px;
    }
  }
  .author {
    @extend %d-flex, %item-center;
    gap: 20px;
    margin-top: 60px;

    @include breakpoint(max-lg) {
      margin-top: 30px;
    }

    &__thumb {
      @extend %shrink-0;
      width: 80px;
      height: 80px;
      border-radius: 50%;
      overflow: hidden;
    }
    &__info {
      .author-title {
        font-weight: 500;
        line-height: 133.333%;
      }
      .author-designation {
        font-size: 16px;
        font-weight: 400;
      }
    }
  }
}

.testimonial {
  &__slider {
    padding-top: 30px;
    @include breakpoint(max-lg) {
      padding-top: 0px;
    }
    .swiper-slide {
      @include transition($transition);
    }
    .swiper-slide-active {
      margin-top: -30px;
      @include breakpoint(max-lg) {
        margin-top: 0px;
      }
      .testimonial-box {
        background-color: $color-primary;
        .ratings {
          ul {
            li {
              color: $color-1;
              &:last-of-type {
                color: rgba($color-1, 0.2);
              }
            }
          }
        }
        p {
          color: $color-1;
        }
        .author {
          &__info {
            .author-title {
              color: $color-1;
            }
            .author-designation {
              color: $color-1;
            }
          }
        }
      }
    }
  }
  &__navigation {
    @extend %d-flex, %item-center, %justify-center;
    gap: 24px;
    margin-top: 25px;

    @include breakpoint(max-lg) {
      margin-top: 20px;
    }
  }
  &__prev,
  &__next {
    @extend %d-grid, %place-center, %shrink-0;
    @include transition($transition);
    width: 60px;
    height: 60px;
    border: 1.3px solid $color-5;
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
    font-size: $fs-22;

    @include breakpoint(max-lg) {
      width: 50px;
      height: 50px;
      font-size: $fs-base;
    }
    &:hover {
      color: $color-primary;
      border-color: $color-primary;
    }
  }
  &__prev {
  }
  &__next {
  }
}

.testimonial2 {
  &__slider {
    .swiper-slide.swiper-slide-active {
      .testimonial-thumb {
        background-color: $color-primary;
      }
      .testimonial-content {
        .stars {
          color: $color-primary;
        }
      }
    }
  }
  &__navigation {
    @extend %d-flex, %item-center;
    gap: 24px;
    .testimonial2-next,
    .testimonial2-prev {
      @extend %shrink-0, %d-grid, %place-center;
      @include transition($transition);
      width: 60px;
      height: 60px;
      border-radius: 100%;
      border: 1px solid $color-5;
      cursor: pointer;

      @include breakpoint(max-md) {
        width: 50px;
        height: 50px;
      }

      &:hover {
        border-color: $color-primary;
        color: $color-primary;
      }
    }
  }
}
.testimonial2-box {
  @extend %d-flex;
  gap: 50px;
  padding: 40px;
  border-radius: 14px;
  background-color: $color-1;
  background-image: url(../images/testimonial/testimonial2-box-bg.png);
  background-position: bottom right;
  background-repeat: no-repeat;
  background-size: cover;
  @include breakpoint(max-xxxl) {
    flex-direction: column;
    align-items: center;
  }
  @include breakpoint(max-md) {
    padding: 30px 20px;
    gap: 30px;
  }

  .testimonial-thumb {
    @extend %shrink-0;
    @include transition($transition);
    border-radius: 5px;
    overflow: hidden;
    background-color: $color-3;
    max-width: 370px;
    width: 100%;
    height: max-content;
    text-align: center;
    @include breakpoint(max-xxxl) {
      max-width: 100%;
    }
  }
  .testimonial-content {
    @extend %d-flex, %flex-col, %justify-between;
    gap: 20px;
    .testimonial {
      font-size: 24px;
      font-weight: 400;
      @include breakpoint(max-md) {
        font-size: 20px;
      }
      @include breakpoint(max-sm) {
        font-size: 18px;
      }
    }
    .author-info {
      .author-title {
        margin-bottom: 5px;
      }
      .author-designation {
      }
      .stars {
        margin-top: 5px;
        ul {
          @include transition($transition);
          line-height: 1;
          li {
            &:last-child {
              opacity: 0.2;
            }
          }
        }
      }
    }
  }
}

.testimonial3 {
  &.section {
    .section-header {
      border-bottom: 1px solid rgba($color-white, 0.14);
      padding-bottom: 20px;
    }
  }
  &__thumbs {
    @extend %d-grid;
    -ms-grid-columns: 1fr 1fr;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;

    img {
      border-radius: 14px;
      overflow: hidden;
      width: 100%;
    }
    @include breakpoint(max-md) {
      gap: 20px;
    }
  }
  &__navigation {
    @extend %d-flex, %item-center;
    gap: 20px;
    margin-top: 20px;
    .button-prev,
    .button-next {
      @extend %shrink-0, %d-grid, %place-center;
      @include transition($transition);
      width: 60px;
      height: 60px;
      border-radius: 100%;
      border: 1px solid $color-5;
      cursor: pointer;

      @include breakpoint(max-md) {
        width: 50px;
        height: 50px;
      }

      &:hover {
        border-color: $color-1;
        color: $color-1;
      }
    }
  }
  &__box {
    height: 100%;
    .title {
      max-width: 440px;
      font-weight: 500;
      line-height: 133.333%;
    }
    p {
      margin-top: 40px;
      @include breakpoint(lg) {
        font-size: $fs-20;
      }
      @include breakpoint(max-lg) {
        margin-top: 30px;
      }
      @include breakpoint(max-md) {
        margin-top: 20px;
      }
    }
    .author {
      @extend %d-flex, %justify-between, %item-center;
      margin-top: 42px;

      @include breakpoint(max-lg) {
        margin-top: 30px;
      }
      @include breakpoint(max-md) {
        margin-top: 20px;
      }
    }
    .author-info {
      @extend %d-flex, %flex-wrap, %item-center;
      gap: 24px;

      @include breakpoint(max-sm) {
        gap: 10px;
      }

      .author-thumb {
        @extend %shrink-0;
        width: 80px;
        height: 80px;
        border-radius: 100%;
        overflow: hidden;

        img {
          width: 100%;
          height: 100%;
        }

        @include breakpoint(max-sm) {
          width: 60px;
          height: 60px;
        }
      }

      .author-content {
        .stars {
          margin-top: 14px;

          @include breakpoint(max-md) {
            margin-top: 5px;
          }
          ul {
            gap: 5px;
            color: $color-primary;
          }
        }
      }
    }
  }
  &__slider {
    .swiper-slide {
      height: auto;
    }
  }
}

.testimonial4 {
  &.section {
    .section-header {
      img {
        animation: moveUpDown 1.5s ease-in-out infinite alternate;
      }
    }
  }
  &__slider-wrapper {
    @extend %d-flex;
    @include breakpoint(max-lg) {
      -ms-flex-wrap: wrap;
      flex-wrap: wrap;
      gap: 20px;
    }
  }
  &__content-slider {
    width: 50%;
    border-radius: 14px;
    border: 1px solid rgba($color-white, 0.1);
    @include breakpoint(lg) {
      border-top-right-radius: 0;
      border-bottom-right-radius: 0;
      border-right: 0;
    }
    .authorAndNav {
      @extend %d-flex, %justify-between, %item-center, %flex-wrap;
      gap: 10px;
    }
    @include breakpoint(max-lg) {
      width: 100%;
    }
  }
  &__navigation {
    @extend %d-flex, %item-center;
    gap: 14px;
    .testimonial4-next,
    .testimonial4-prev {
      @extend %shrink-0, %d-grid, %place-center;
      width: 44px;
      height: 44px;
      border-radius: 100%;
      border: 0.733px solid $color-white;
      color: $color-white;

      span {
        color: inherit;
        i {
          color: inherit;
        }
      }
    }
  }
  &__box {
    padding: 35px 30px;
    .stars {
      ul {
        gap: 4px;
        li {
          i {
            color: $color-white;
          }
        }
      }
    }
    .testimonial-content {
      margin-top: 30px;
      .revew-content {
        color: $color-white;
        font-family: $ff-body;
        font-weight: 400;
        line-height: 126.667%;
      }
      .authorAndNav {
        margin-top: 40px;

        .author {
          .author-position {
          }
        }
      }
    }
  }
  &__thumb-slider {
    width: 70%;
    overflow: hidden;
    @include breakpoint(max-lg) {
      width: 100%;
    }
    .swiper-wrapper {
      .swiper-slide {
        &:first-of-type {
          border-radius: 14px;
          border: 1px solid rgba($color-white, 0.1);

          @include breakpoint(lg) {
            border-top-left-radius: 0;
            border-bottom-left-radius: 0;
            border-left: 0;
          }
        }

        &:not(.swiper-slide-thumb-active) {
          width: 190px !important;
          @include breakpoint(max-xl) {
            width: 130px !important;
          }
          @include breakpoint(max-lg) {
            width: calc((100% - 2 * 25px) / 3) !important;
          }
        }
        .testimonial4__thumb {
          @extend %p-relative;
          height: 100%;
          border-radius: 14px;
          overflow: hidden;
          @include transition($transition);
          background-color: $color-3;
          z-index: 0;
          img {
            height: 100%;
            @include transition($transition);
            object-fit: cover;
            object-position: 50% 50%;
          }

          .shape {
            @extend %p-absolute;
            top: 11px;
            left: 50%;
            @include transform(translateX(-50%));
            color: $color-primary;
            z-index: -1;
          }
        }
      }
      .swiper-slide-thumb-active {
        width: calc(100% - 190px - 190px - 25px - 25px) !important;
        @include breakpoint(max-xl) {
          width: calc(100% - 2 * calc((100% - 2 * 25px) / 3) - 25px) !important;
        }
        @include breakpoint(max-lg) {
          width: calc(100% - 2 * calc((100% - 2 * 25px) / 3) - 25px) !important;
        }
        .testimonial4__thumb {
          background-color: $color-primary;

          .shape {
            @extend %d-none;
          }
        }
      }
    }
  }
}

.testimonial5 {
  &.section {
  }
  &__thumb-box {
    background-color: $color-primary;
    border-radius: 40px;
    overflow: hidden;
    @include breakpoint(max-lg) {
      border-radius: 20px;
    }
    .author-avatar {
      @extend %d-block;
    }
    .author-info {
      padding-inline: 34px;
      padding-block: 25px 35px;

      @include breakpoint(max-md) {
        padding-inline: 25px;
        padding-block: 20px 25px;
      }
      .title {
        color: $color-1;
      }
      .designation {
        color: $color-1;
        margin-top: 5px;
        @extend %d-inline-block;
        @include breakpoint(max-md) {
          margin-top: 3px;
        }
      }
    }
  }
  &__content-box {
    background-color: $color-2;
    padding: 80px;
    height: 100%;
    border-radius: 20px;

    @include breakpoint(max-xl) {
      padding: 70px;
    }
    @include breakpoint(max-lg) {
      padding: 40px;
    }
    @include breakpoint(max-sm) {
      padding: 30px;
    }

    .quote {
      @extend %d-inline-block;
      -webkit-text-stroke-width: 1.7391303777694702px;
      -webkit-text-stroke-color: $color-primary;
      font-family: "Font Awesome 6 Pro";
      font-size: 79.599px;
      font-style: normal;
      font-weight: 900;
      line-height: 0.7;
      color: $color-2;
    }
    .comment {
      color: $color-white;
      font-family: $ff-body;
      font-weight: 400;
      line-height: 128.571%;
      margin-top: 20px;

      @include breakpoint(xl) {
        font-size: 35px;
      }
      @include breakpoint(max-sm) {
        margin-top: 10px;
      }
    }
  }
  &__navigation {
    @extend %d-flex, %justify-center, %item-center;
    gap: 50px;
    .testimonial-prev,
    .testimonial-next {
      @extend %d-grid, %place-center;
      width: 60px;
      height: 60px;
      border-radius: 100%;
      border: 1.333px solid $color-primary;
      font-size: 22px;
      @include transition($transition);

      i {
        color: $color-primary;
        @include transition($transition);
      }

      &:hover {
        background-color: $color-primary;

        i {
          color: $color-1;
        }
      }
    }
  }
}

.testimonial6 {
  &.section {
  }
  &__box-wrapper {
    @extend %d-flex,%no-wrap,%justify-start,%p-relative;
    gap: 30px;

    @include breakpoint(max-md) {
      gap: 20px;
    }

    @include breakpoint(max-xl) {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    @include breakpoint(max-md) {
      display: grid;
      grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    .testimonial-box6 {
      min-width: 40%;

      @include breakpoint(max-xxl) {
        min-width: 50%;
      }
    }
  }
}
.testimonial-box6 {
  border-radius: 20px;
  padding: 30px;
  background: $color-2;

  @include breakpoint(max-md) {
    border-radius: 10px;
    padding: 20px;
  }

  .testimonial-content {
    .quote-icon {
      i {
        -webkit-text-stroke-width: 2px;
        -webkit-text-stroke-color: $color-primary;
        font-size: 79.599px;
        font-weight: 900;
        line-height: normal;
        color: transparent;

        @include breakpoint(max-lg) {
          font-size: 50px;
        }
      }
    }
    .quote {
      font-family: $ff-body;
      font-weight: 400;
      line-height: 128.571%;
      margin-top: 30px;
      @include breakpoint(lg) {
        font-size: 35px;
      }
      @include breakpoint(max-lg) {
        margin-top: 10px;
      }
    }
  }
  .testimonial-thumb {
    @extend %p-relative;
    overflow: hidden;
    border-radius: 20px;
    margin-top: 40px;

    @include breakpoint(max-lg) {
      border-radius: 10px;
      margin-top: 25px;
    }

    img {
      @include transition($transition);
    }
    .author-info {
      @extend %p-absolute;
      left: 20px;
      bottom: 20px;
      color: $color-1;
      background-color: $color-primary;
      border-radius: 20px;
      padding: 20px;

      @include breakpoint(lg) {
        max-width: 382px;
        width: 100%;
      }
      @include breakpoint(max-lg) {
        border-radius: 10px;
        padding: 10px;
        left: 10px;
        bottom: 10px;
      }

      > * {
        color: inherit;
      }
    }
  }

  &:hover {
    .testimonial-thumb {
      img {
        @include transform(scale(1.1));
      }
    }
  }
}
