@use "../custom" as *;

.testimonial {
  padding: 7.5rem 0;
  background-color: $background;
  overflow: hidden;

  &__content {
    margin-top: 2.75rem;
  }

  &__headline {
    font-size: clamp(1.5rem, 5vw, 2.25rem);
    font-weight: 700;
    font-family: $roobert;
    text-align: center;
    display: block;
    margin-bottom: 1rem;
    color: $label;
  }

  &__description {
    font-size: 1rem;
    font-family: $roobert;
    text-align: center;
    max-width: 59.375rem;
    margin: 0 auto;
    color: $label-200;
  }

  &__item {
    background-color: $white;
    border-radius: 1rem;
    padding: 1.875rem;

    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    height: 10.8125rem;
    box-shadow: 0 10px 19px 0 rgba(0, 0, 0, 0.03);

    &::after {
      content: "";
      position: absolute;
      top: 3rem;
      right: 2.4375rem;
      width: 1.8125rem;
      height: 1.3125rem;
      background: no-repeat url("../icons/blockquote.svg");
    }

    &-head {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    &-avatar {
      width: 3.75rem;
      min-width: 3.75rem;
      height: 3.75rem;
      border-radius: 100vh;
      overflow: hidden;

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
      }
    }

    &-name {
      display: block;
      color: $label;
      font-size: 1.25rem;
      font-weight: 700;
      font-family: $roobert;
    }

    &-location {
      display: block;
      color: $label-200;
      font-size: 0.875rem;
      font-weight: 400;
      font-family: $roobert;
    }

    &-description {
      margin: 0;
      font-size: 1rem;
      font-family: $roobert;
      font-weight: 400;
      color: $label;
      max-width: 24.6875rem;
      width: 100%;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
  }
}

.testimonialSwipper {
  overflow: visible !important;
  .swiper-wrapper {
    transition-timing-function: linear;
    padding: 1rem 0;
  }
  .swiper-slide {
    width: 455px !important;
  }
}
