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

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

.mtteam {
  &__area {
    @media #{$xs} {
      padding-top: 0px;
    }
  }

  &__bg {
    background: rgb(196, 249, 6, 0.1);
  }

  &__thumb {
    &::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(198, 249, 6, 0.2);
      opacity: 0;
      visibility: hidden;
      transition: 0.5s;
    }

    & img {
      width: 100%;
      height: auto;
      object-fit: cover;
    }

    &:hover {
      &::before {
        opacity: 1;
        visibility: visible;
      }

      & .mtteam__content-bg {
        opacity: 1;
        visibility: visible;
        bottom: 16px;
        @include transform(scale(1));
      }

      & .mtteam__social {
        opacity: 1;
        visibility: visible;
        right: 16px;
      }
    }
  }

  &__content {
    &-bg {
      background: var(--mt-theme-1);
      padding: 16px 10px;
      position: absolute;
      left: 16px;
      right: 16px;
      bottom: 7px;
      opacity: 0;
      visibility: hidden;
      transition: 0.5s;
      @include transform(scale(0.6));
    }

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

  &__title {
    font-size: 24px;
    color: var(--mt-common-black-2);
  }

  &__social {
    position: absolute;
    top: 16px;
    right: 10px;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;

    & a {
      height: 40px;
      width: 40px;
      color: #fff;
      background: var(--mt-common-black-2);
      display: block;
      border-radius: 50%;
      line-height: 40px;
      margin: 5px 0;
      transition: 0.3s;

      &:hover {
        background-color: var(--mt-theme-1);
        color: var(--mt-common-black-2);
      }
    }
  }

  // mtteam__2
  &__2 {
    &-area {
      @media #{$xs} {
        padding-top: 80px;
      }
    }

    &:hover {
      & .mtteam__thumb::before {
        opacity: 1;
        visibility: visible;
        z-index: 1;
      }

      & .mtteam__thumb img {
        @include transform(scale(1.1));
      }

      & .mtteam__content {
        opacity: 1;
        visibility: visible;
        bottom: 16px;
        z-index: 2;
      }
    }

    & .mtteam__thumb {
      overflow: hidden;

      & img {
        transition: .7s;
      }

      &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(180deg,
            rgba(117, 147, 4, 0) 25.56%,
            #c6f906 100%);
        opacity: 0;
        visibility: hidden;
        transition: 0.4s;
      }

    }

    & .mtteam__social {
      z-index: 2;

      & a {
        background: var(--mt-common-white);
        color: var(--mt-common-black);

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

    & .mtteam__content {
      background: transparent;
      padding: 16px 10px;
      position: absolute;
      left: 16px;
      right: 16px;
      bottom: 7px;
      opacity: 0;
      visibility: hidden;
      transition: 0.4s;
    }
  }

  // mtteam__3
  &__3 {
    & .mtteam__thumb {
      &::before {
        display: none;
      }

      &:hover {
        & .mtteam__social {
          right: inherit;
          left: 25%;
        }

        & img {}
      }
    }

    & .mtteam__social {
      top: inherit;
      bottom: 17%;
      left: 25%;
      right: inherit;
      // transform: translateX(-50%);

      & a {
        display: inline-block;
      }
    }
  }
}

.mt-team-slider-space {
  margin-right: -340px;

  @media #{$md, $xs} {
    margin-right: 0px;
  }
}

.mtteam__button-prev {
  left: 70px;

  & span {
    background-color: var(--mt-common-white);
  }
}


.mt-team {
  &-details {
    &-wrapper {
      // padding: 60px;
      // background-color: #F8F8F8;
    }

    &-box {
      padding: 30px 24px;
      background-color: var(--mt-common-white);

      &-icon {
        & span {
          width: 50px;
          height: 50px;
          line-height: 50px;
          display: inline-block;
          text-align: center;
          font-size: 20px;
          background-color: var(--mt-common-black);
          color: var(--mt-common-white);
          border-radius: 50px;
        }
      }

      &-content {
        & span {
          display: inline-block;
          color: #767676;
          margin-bottom: 8px;
        }
      }

      &-title {
        font-size: 16px;
        font-weight: 700;
        color: var(--mt-common-black);
      }
    }

    &-thumb {
      @media #{$md,$xs} {
        margin-right: 0px;
      }
    }

    &-skill {
      & .mt-section-content {
        @media #{$md,$xs} {
          margin-right: 0px;
        }
      }
    }

    &-social {
      & a {
        font-size: 18px;
        height: 50px;
        width: 50px;
        line-height: 50px;
        text-align: center;
        display: inline-block;
        color: var(--mt-common-black);
        border: 1px solid var(--mt-border-1);
        border-radius: 50%;
        transition: 0.3s;
        margin-right: 5px;

        &:hover {
          background-color: var(--mt-theme-1);
          color: var(--mt-common-black);
          border: 1px solid var(--mt-theme-1);
        }
      }
    }

    &-follow {
      & p {
        font-size: 20px;
        font-weight: 700;
        color: var(--mt-common-black);
        margin-bottom: 0;

      }
    }

    &-shape {
      position: absolute;
      left: 0;
      top: 0;
    }

  }
}