.testimonial-item {
  color: $primary-color;
  background-color: $gray-bluish;
  padding: 48px $gutter;

  @include sm {
    padding: 150px $gutter-mobile 48px;

    .testimonials-list & {
      padding: 80px $gutter-mobile 48px;

      &:first-child {
        padding: 150px $gutter-mobile 48px;
      }
    }

    &.no-image {
      padding: 48px $gutter-mobile;
    }
  }

  &--background-white {
    background-color: $white;
  }

  &.color--primary {
    color: $primary-color;
  }

  &.color--secondary {
    color: $secondary-color;
  }

  &.color--white {
    color: $white;
  }

  &.color--orange {
    color: $orange;
  }

  &.color--yellow {
    color: $yellow;
  }

  &.color--green {
    color: $green;
  }

  &.color--blue {
    color: $medium-color;
  }

  &.color--vivid-blue {
    color: $blue;
  }

  &.testimonial-item--luumo {
    color: $primary-color;
  }

  &__wrapper {
    width: 100%;
    max-width: $projects-detail-width;
    margin: 0 auto;
  }

  &__container {
    position: relative;
    width: 100%;
  }

  &__info {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;

    .testimonial-item--invert & {
      align-items: flex-end;
      justify-content: flex-start;
    }

    .no-image & {
      align-items: center;
      justify-content: center;
    }
  }

  &__left {
    position: absolute;
    width: 205px;
    height: 205px;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    z-index: 1;

    .testimonial-item--invert & {
      right: 0;
      left: unset;

      @include sm {
        left: 50%;
        right: unset;
      }
    }

    @include sm {
      width: 155px;
      height: 155px;
      left: 50%;
      transform: translate(-50%, -50%);
      top: 0;
    }

    .testimonial-item__border-effect {
      position: absolute;
      top: 0;
      left: 1px;
      width: 100%;
      height: 100%;
      border-radius: 50%;
      background: conic-gradient(transparent 0deg, transparent 90deg, currentColor 90deg, currentColor 360deg);
      z-index: 0;

      .testimonial-item--invert & {
        right: 1px;
        left: unset;
        background: conic-gradient(currentColor 0deg, currentColor 270deg, transparent 270deg);
      }
    }

    img {
      position: relative;
      z-index: 1;
      width: 186px;
      height: 186px;
      overflow: hidden;
      object-fit: cover;
      display: block;
      border-radius: 100%;

      @include sm {
        width: 136px;
        height: 136px;
      }
    }
  }

  &__right {
    position: relative;
    width: 100%;
    padding: 48px 64px 64px 120px;
    background-color: $white;
    max-width: 1035px;
    margin-left: 102.5px;

    .testimonial-item--invert & {
      padding: 48px 120px 64px 64px;
      margin-left: unset;
      margin-right: 102.5px;

      @include sm {
        padding: 64px 48px 48px 48px;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
      }
    }

    .no-image & {
      margin-left: 0;
      margin-right: 0;
      padding: 48px;
      max-width: unset;
    }

    @include sm {
      padding: 64px 48px 48px 48px;
      max-width: 100%;
      margin-left: 0;
      margin-right: 0;
    }

    .testimonial-item--background-white & {
      background-color: $gray-bluish;
    }
  }

  &__quote-icon {
    display: block;
    width: 52px;
    height: 48px;
    margin-bottom: 16px;

    @include sm {
      width: 40px;
      height: 36px;
    }

    svg {
      fill: currentColor;
    }
  }

  &__quote {
    color: currentColor;
    font-family: $font-heading;
    font-size: 3.8rem;
    font-weight: 600;
    line-height: 120%;
    margin: 0 0 32px;

    @include sm {
      font-size: 3rem;
    }

    .testimonial-item--luumo & {
      font-size: 2.4rem;
      font-weight: 600;

      @include sm {
        font-size: 2.1rem;
      }

      &::before,
      &::after {
        content: '';
        position: absolute;
        margin-top: 8px;
        margin-left: -22px;
        width: 22px;
        height: 24px;
        background: url(../assets/img/svg/luumo-quote.svg) no-repeat;
      }

      &::after {
        margin-left: -5px;
      }
    }
  }

  &__content {
    color: $primary-color;
    font-family: $font-default;
    font-size: 2.1rem;
    font-weight: 400;
    line-height: 150%;
    margin: 0 0 32px;

    @include sm {
      font-size: 1.6rem;
    }
  }

  &__name-role {
    margin: 0;
  }

  &__name-title {
    display: block;
    font-family: $font-default;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 150%;
    letter-spacing: -0.16px;

    @include sm {
      font-size: 1.4rem;
    }

    .testimonial-item--luumo & {
      font-size: 1.6rem;
    }
  }

  &__name-role {
    display: block;
    font-family: $font-default;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 150%;
    letter-spacing: -0.16px;

    @include sm {
      font-size: 1.4rem;
    }

    .testimonial-item--luumo & {
      font-size: 1.6rem;
    }
  }
}
