.testimonials {
  display: flex;
  width: 100%;
  padding: 0 16px;

  .testimonials-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    column-gap: 130px;
  }

  .swiper {
    padding: 20px;
    margin-right: -20px;
  }

  .swiper-slide {
    padding: 35px 40px 40px 40px;
    box-shadow: 0 6px 14px 0 #E1E3E980;
    border: 1px solid var(--shuttle-gray);
    border-radius: 16px;
  }

  .testimonials-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    height: 100%;

    h2, p {
      color: var(--black-2);
      font-family: var(--font-family);
    }

    h2 {
      font-size: var(--font-size-34);
      font-weight: 700;
      line-height: 41px;
      margin: 0;
    }

    p {
      font-size: var(--font-size-xl);
      font-weight: 400;
      line-height: 20px;
      margin: 16px 0 0 0;
    }

    > div {
      display: flex;
      flex-direction: row-reverse;
      position: absolute;
      column-gap: 24px;
      right: 0;
      bottom: 16px;

      .testimonials-swiper-next,
      .testimonials-swiper-prev {
        position: relative;
        background-color: var(--white);
        border-radius: 50%;
        width: 48px;
        height: 48px;
        border: 1px solid var(--black-2-opacity-8);
        z-index: 1;
        right: 0;

        svg {
          width: initial;
          height: initial;
        }
      }

      .testimonials-swiper-next {
        right: 0;
      }

      .testimonials-swiper-prev {
        left: 0;
      }

      .testimonials-swiper-next::after,
      .testimonials-swiper-prev:after {
        content: '';
      }
    }
  }

  .testimonial-card {
    > p {
      color: var(--black-2);
      font-family: var(--font-family);
      font-size: var(--font-size-xl);
      font-weight: 400;
      line-height: 22px;
      margin: 21px 0 0 0;
    }

    > div {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 48px;
    }
  }

  .testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 16px;

    h3, p {
      color: var(--black-2);
      font-family: var(--font-family);
    }

    h3 {
      font-size: var(--font-size-xxl);
      font-weight: 500;
      line-height: 22px;
      margin: 0;
    }

    p {
      font-size: var(--font-size-l);
      font-weight: 400;
      line-height: 16px;
      margin: 6px 0 0 0;
    }
  }

  .testimonial-rating {
    display: flex;
    flex-direction: column;
    align-items: flex-end;

    div {
      display: flex;
      align-items: center;
      column-gap: 5px;
    }

    p {
      color: var(--shuttle-gray-text);
      font-family: var(--font-family);
      font-size: var(--font-size-l);
      font-weight: 400;
      line-height: 16px;
      margin: 6px 0 0 0;
    }
  }

  @media (max-width: 1024px) {
    .testimonials-content {
      flex-direction: column;
      justify-content: flex-start;
      max-width: 60%;
      margin: 0 auto;
      height: max-content;
      position: relative;
    }

    .testimonials-text {
      position: static;
      justify-content: flex-start;

      > div {
        justify-content: center;
        bottom: -52px;
        width: 100%;
      }
    }

    .testimonials-swiper {
      display: flex;
      width: calc(100% + 40px);
      height: 100%;
      margin: 0;
    }

    .testimonial-card {
      display: flex;
      flex-direction: column;
      height: auto;

      img {
        width: fit-content;
      }
    }
  }

  @media (max-width: 767px) {
    .testimonials-content {
      max-width: 90%;
    }

    .testimonials-text {
      h2 {
        font-size: var(--font-size-24);
        line-height: 29px;
      }

      p {
        margin-top: 16px;
        font-size: var(--font-size-l);
        line-height: 20px;
      }
    }

    .swiper-slide {
      padding: 16px 12px 32px;
    }

    .testimonial-card {
      img {
        width: 24px;
      }

      > p {
        font-size: var(--font-size-m);
        line-height: 16px;
        margin: 16px 0 0 0;
      }

      > div {
        margin-top: 24px;
      }
    }

    .testimonial-author {
      img {
        display: none;
      }

      h3 {
        font-size: var(--font-size-l);
        line-height: 20px;
        margin: 0;
      }

      p {
        font-size: var(--font-size-m);
        line-height: 14px;
        margin-top: 4px;
      }
    }

    .testimonial-rating {
      img {
        width: 13px;
        height: 13px;
      }

      p {
        font-size: var(--font-size-m);
        line-height: 14px;
        margin: 4px 0 0 0;
      }
    }
  }
}