@use "../../utils" as *;

/*----------------------------------------*/
/*  7.1 Team css start
/*----------------------------------------*/

.mttestimonial {
  &__bg {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

    &-4 {
      background-repeat: no-repeat;
      background-size: cover;
      background-position: center;

      &::before {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background: rgb(0, 0, 0, 0.9);
      }
    }
  }

  &__space {
    padding-left: 210px;
    padding-right: 210px;

    @media #{$md} {
      padding-left: 20px;
      padding-right: 20px;
    }

    @media #{$xs} {
      padding-left: 0px;
      padding-right: 0px;
    }
  }

  &__border {
    border-bottom: 1px solid var(--mt-border-1);
  }

  & p {
    color: var(--mt-common-black-2);
    font-size: 32px;
    line-height: 42px;
    font-weight: 600;

    @media #{$xs} {
      font-size: 23px;
      line-height: 34px;
    }
  }

  &__ratting {
    & span {
      color: var(--mt-common-black-2);
      font-size: 15px;
      margin-right: 5px;
    }
  }

  &__author {
    &-wrap img {
      border-radius: 100%;
    }

    &-name {
      font-size: 20px;
    }
  }

  &__button {
    position: absolute;
    left: 0;
    right: auto;
    bottom: 50%;
    @include transform(translateY(-250%));

    @media #{$md} {
      bottom: 50%;
          @include transform(translateY(0%));
    }

    @media #{$xs} {
      display: none;
    }

    &-prev {
      left: auto;
      right: 0;

      & span {
        background-color: var(--mt-common-black-2);

        & svg,
        path {
          color: var(--mt-common-white);
        }
      }
    }

    & span {
      width: 60px;
      height: 60px;
      line-height: 60px;
      border: 1px solid var(--mt-text-body);
      border-radius: 100%;
      display: inline-block;
      text-align: center;
    }
  }

  &__arrow {
    &-2 {
      & .mttestimonial__button-prev span {
        background-color: var(--mt-common-white);
      }
    }

    &-3 {
      @media #{ $xs} {
        display: none !important;
      }

      & .mttestimonial__button {
        left: inherit;
        right: 23%;
        @include transform(translateY(-130%));

        &-prev {
          right: 15%;
        }
      }
    }
  }

  // for testimonial 2
  &__2 {
    & p {
      color: var(--mt-common-white);
    }

    & .mttestimonial__author {
      &-name {
        color: var(--mt-common-white);
      }

      &-position {
        color: var(--mt-text-body);
      }
    }
  }

  // for testimonial 3
  &__3 {
    &-bg {
      height: 600px;
      object-fit: cover;
    }

    &-space {
      margin-top: -220px;
      margin-right: -10px;
    }

    background: var(--mt-theme-1);
    padding: 80px;

    @media #{$md, $xs} {
      padding: 80px 10px;
    }

    & .mttestimonial__content {
      & h4 {
        font-size: 20px;

        & span {
          height: 1px;
          width: 33px;
          background: var(--mt-common-black);
          display: inline-block;
          margin-right: 10px;
          margin-bottom: 5px;
        }
      }

      & p {
        font-size: 24px;
        line-height: 34px;

        @media #{$xxxl, $xxl, $xl, $lg, $md, $xs} {
          & br {
            display: none;
          }
        }
      }
    }
  }

  // for testimonial 4
  &__4 {
    background: var(--mt-common-white);
    padding: 70px 50px;
    transition: 0.3s;

    &:hover {
      background: var(--mt-theme-1);
    }

    & p {
      color: var(--mt-common-black);
      font-size: 16px;
      line-height: 24px;
      font-weight: 500;
    }

    & .mttestimonial__author-name {
      font-size: 18px;
    }
  }

  &__shape {
    position: absolute;
    left: 0;
    top: 0;

    &-2 {
      position: absolute;
      right: 0;
      bottom: 0;
      @media #{$xs} {
        bottom: -80px;
      }
    }

    &-3 {
      position: absolute;
      left: 0;
      bottom: 0;

      @media #{$xs} {
        bottom: -80px;
      }
    }

    &-4 {
      position: absolute;
      right: 0;
      top: 0;
    }
  }
}