.team-style2,
.team-style1 {
  .team-social {
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 0;
    background-color: $theme-color;
    text-align: center;
    padding: 16.5px 10px;
    line-height: 1;
    opacity: 0;
    visibility: hidden;
    transition: all ease 0.6s;

    a {
      display: inline-block;
      color: #bbd1ff;
      margin: 0 18px 0 0;
      opacity: 0;
      visibility: hidden;
      transition: all ease 0.4s;
      transform: translateY(-15px);

      &:last-child {
        margin-right: 0;
      }

      &:hover {
        color: $white-color;
      }
    }
  }

  &:hover {
    .team-social {
      opacity: 1;
      visibility: visible;

      a {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);

        @include transition-delay(5);
      }
    }
  }
}

.team-style1 {
  overflow: hidden;
  background-color: $white-color;
  box-shadow: 0px 10px 31px rgba(169, 177, 193, 0.17);
  border-radius: 5px;
  margin: 0 0 30px 0;
  transition: all ease 0.4s;

  .team-img {
    overflow: hidden;
    position: relative;

    img {
      width: 100%;
      transition: all ease 0.4s;
      transform: scale(1);
    }
  }

  .team-content {
    padding: 30px 0 23px 0;
    text-align: center;
  }

  .team-title {
    font-size: 20px;
    line-height: 1;
    margin: 0 0 10px 0;
  }

  .team-degi {
    color: $theme-color;
    margin: 0;
    font-size: 14px;
  }

  &:hover {
    background-color: #f6f7fa;
    box-shadow: none;

    .team-img {
      img {
        transform: scale(1.1);
      }
    }
  }

  &.layout2 {
    padding: 30px;
    background-color: $white-color;
    margin: 0 0 30px 0;

    .team-content {
      padding: 38px 0 4px 0;
      box-shadow: none;
    }

    .team-img {
      overflow: hidden;
      border-radius: 5px;
    }

    .team-title {
      text-transform: uppercase;
      font-size: 24px;
    }

    .team-degi {
      font-size: 16px;
      font-weight: 500;
      font-family: $title-font;
    }
  }
}

.team-style2 {
  margin: 0 0 30px 0;

  .team-img {
    overflow: hidden;
    position: relative;
    z-index: 1;
    margin: 0 30px -60px 30px;
    border-radius: 5px;

    img {
      width: 100%;
      border-radius: 5px;
      transition: all ease 0.4s;
      filter: none;
    }
  }

  .team-shape2,
  .team-shape1 {
    position: absolute;
    left: 15%;
    top: -55%;
    width: 373.37px;
    height: 549.99px;
    background: rgba(21, 30, 50, 0.41);
    transform: rotate(-34.46deg) translateX(110%);
    transition: all ease 0.4s;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
  }

  .team-shape2 {
    width: 206.12px;
    height: 391px;
    background: rgba(14, 89, 242, 0.41);
    left: 74%;
    top: -29%;
  }

  .team-social {
    left: 50px;
    right: 50px;
    bottom: 50px;
    border-radius: 5px;
    z-index: 4;

    a {
      color: #abc7fd;

      &:hover {
        color: $white-color;
      }
    }
  }

  .team-title {
    text-transform: uppercase;
    margin: 0 0 8px 0;
  }

  .team-degi {
    color: $theme-color;
    margin: 0;
    line-height: 1;
  }

  .team-content {
    background-color: $white-color;
    box-shadow: 0px 10px 31px rgba(169, 177, 193, 0.17);
    border-radius: 5px;
    padding: 97px 0 42px 0;
    text-align: center;
    transition: all ease 0.4s;
  }

  &:hover {
    .team-content {
      background-color: #f6f7fa;
      box-shadow: none;
    }

    .team-shape1,
    .team-shape2 {
      transform: rotate(-34.46deg) translateX(0);
      opacity: 1;
      visibility: visible;
    }

    .team-img {
      img {
        filter: grayscale(100%);
      }
    }
  }
}

.team-style3 {
  margin-bottom: 30px;

  .team-img {
    border-radius: 20px;
    overflow: hidden;

    img {
      width: 100%;
      transition: all ease 0.4s;
      transform: scale(1);
    }
  }

  .team-content {
    background-color: $white-color;
    text-align: center;
    padding: 30px 0 40px 0;
    margin: -105px 40px 0 40px;
    position: relative;
    z-index: 1;
    box-shadow: 5px 8.66px 60px 0px rgba(149, 163, 213, 0.18);
    border-radius: 30px;
  }

  .team-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 5px 0;
  }

  .team-degi {
    font-size: 14px;
    color: $theme-color;
    font-weight: 400;
    display: block;
  }

  .team-social {
    a {
      i {
        display: inline-block;
        width: 38px;
        height: 38px;
        line-height: 38px;
        text-align: center;
        background-color: $theme-color;
        color: $white-color;
        font-size: 14px;
        border-radius: 50%;
        margin: 0 1.5px;
        transition: all ease 0.4s;

        &.fa-facebook-f {
          background-color: #d0e5ff;
          color: #2c6bc0;

          &:hover {
            color: #fff;
            background-color: #2c6bc0;
          }
        }

        &.fa-youtube {
          background-color: #ffd6dc;
          color: #ff0024;

          &:hover {
            color: #fff;
            background-color: #ff0024;
          }
        }

        &.fa-twitter {
          background-color: #c4e9ff;
          color: #1da1f2;

          &:hover {
            color: #fff;
            background-color: #1da1f2;
          }
        }

        &.fa-basketball-ball {
          background-color: #ffdbe9;
          color: #ea4c89;

          &:hover {
            color: #fff;
            background-color: #ea4c89;
          }
        }
      }
    }
  }

  &:hover {
    .team-img {
      img {
        transform: scale(1.1);
      }
    }
  }
}

.slick-slide {
  .team-style2 .team-content,
  .team-style1 {
    box-shadow: 0px 10px 31px rgba(169, 177, 193, 0.07);
  }
}

.team-about {
  .team-name {
    margin: -0.3em 0 0 0;
  }

  .team-degi {
    color: $theme-color;
    display: block;
    margin: 0 0 27px 0;
  }

  .team-text {
    margin: 0 0 35px 0;
  }

  .vs-btn {
    margin: 23px 0 0 0;
  }
}

.team-inner {
  padding: 110px 0 93px 0;
  margin: 90px auto 120px auto;
  max-width: 1680px;
  width: 100%;
}

.team-media {
  display: flex;
  align-items: center;
  margin: 0 0 18px 0;

  &__icon {
    display: inline-block;
    width: var(--icon-size, 50px);
    height: var(--icon-size, 50px);
    line-height: var(--icon-size, 50px);
    border: 1px solid #e8eefc;
    text-align: center;
    color: $theme-color;
    margin: 0 20px 0 0;
    font-size: 18px;
    border-radius: 50%;
  }

  &__label {
    font-size: 14px;
  }

  &__info {
    font-size: 18px;
    font-weight: 500;
    font-family: $body-font;
    margin: 0;

    a {
      color: inherit;

      &:hover {
        color: $theme-color;
      }
    }
  }
}

.team-zigzag {
  .team-style3 {
    &:nth-child(even) {
      margin-top: 50px;
    }
  }
}

.team-style4 {
  text-align: center;
  padding: 40px 10px 30px 10px;
  margin: 0 0 30px 0;
  border: 1px solid transparent;
  box-shadow: 0 0 20px 0 rgba(#000, 0.05);
  border-radius: 10px;
  transition: all ease 0.4s;

  .team-img {
    width: 200px;
    max-width: 100%;
    overflow: hidden;
    border-radius: 50%;
    margin: 0 auto 28px auto;

    img {
      transform: scale(1.001) rotate(0);
      transition: all ease 0.4s;
      border-radius: inherit;
    }
  }

  .team-degi {
    color: $theme-color;
    text-transform: uppercase;
    font-weight: 500;
    display: block;
    margin: 0 0 3px 0;
    font-size: 12px;
  }

  .team-name {
    padding: 0 0 10px 0;
    margin: 0 0 15px 0;
    position: relative;
    font-weight: 600;

    &:before {
      content: "";
      position: absolute;
      left: 50%;
      bottom: 0;
      height: 2px;
      width: 80px;
      margin-left: -40px;
      background-color: $theme-color;
      opacity: 0.1;
      transition: all ease 0.4s;
    }
  }

  .team-number,
  .team-email {
    display: block;
    width: max-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    color: $body-color;
    font-size: 14px;
    font-weight: 400;

    &:hover {
      color: $theme-color;
    }
  }

  .team-number {
    color: $title-color;
    margin: 6px auto 22px auto;
  }

  .team-btn {
    display: inline-block;
    padding: 10px 34px;
    background-color: $smoke-color;
    color: $title-color;
    font-size: 22px;
    line-height: 1;
    border-radius: 8px;
    transition: all ease 0.4s;

    &:hover {
      background-color: $title-color;
    }
  }

  &:hover {
    box-shadow: none;
    border-color: $theme-color;

    .team-img {
      img {
        transform: scale(1.15) rotate(5deg);
      }
    }

    .team-name {
      &::before {
        opacity: 1;
      }
    }

    .team-btn {
      background-color: $theme-color;
      color: $white-color;

      &:hover {
        background-color: $title-color;
      }
    }
  }
}

.team-style5 {
  text-align: center;
  margin: 16px 0 30px 0;

  .team-img {
    width: 327px;
    height: 327px;
    border-radius: 38% 38% 38% 38% / 38% 38% 38% 38%;
    overflow: hidden;
    transform: rotate(45deg);
    margin: 0 auto -190px auto;

    img {
      transform: rotate(-45deg) scale(1.1);
    }
  }

  .team-content {
    padding: 230px 0 30px 0;
    background-color: $white-color;
    border: 1px solid transparent;
    border-radius: 12px;
    transition: all ease 0.4s;
  }

  .team-degi {
    color: #055555;
    font-weight: 300;
    margin: 0 0 0 0;
  }

  .team-name {
    font-size: 28px;
    margin: 0 0 15px 0;
  }

  .team-number {
    display: inline-block;
    border-top: 1px solid #eaeaea;
    padding: 20px 0 0 0;
    color: $title-color;

    img {
      margin-right: 10px;
    }

    a {
      margin-left: 5px;
      color: inherit;

      &:hover {
        color: $theme-color;
      }
    }
  }

  &:hover {
    .team-content {
      border-color: rgb(224, 224, 224);
      box-shadow: 0px 21px 10px 0px rgba(4, 4, 4, 0.05);
    }
  }

  &.layout2 {
    .team-content {
      border-color: rgb(224, 224, 224);
    }
  }
}

@include ml {
  .team-style3 {
    .team-content {
      padding: 30px 0 40px 0;
      margin: -70px 20px 0 20px;
    }
  }

  .team-style5 {
    .team-img {
      width: 210px;
      height: 210px;
      margin: 0 auto -105px auto;
    }

    .team-content {
      padding: 140px 0 30px 0;
    }

    .team-name {
      font-size: 24px;
      margin: 5px 0 15px 0;
    }
  }
}

@include lg {
  .team-style2 {
    .team-social {
      left: 10px;
      right: 10px;
      bottom: 0;
    }
  }

  .team-zigzag .team-style3:nth-child(even) {
    margin-top: 0;
  }

  .team-style1 {
    &.layout2 {
      padding: 15px 15px 25px 15px;

      .team-title {
        font-size: 20px;
      }

      .team-degi {
        font-size: 14px;
      }
    }
  }
}

@include md {
  .team-about {
    .team-degi {
      margin: 0 0 17px 0;
    }

    .team-text {
      margin: 0 0 25px 0;
    }

    .vs-btn {
      margin: 13px 0 0 0;
    }
  }

  .team-inner {
    padding: 70px 0 53px 0;
    margin: 50px auto 80px auto;
  }
}

.team-style6 {
  display: flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 30px 0 30px 0;
  padding: 18px 35px 18px 20px;
  box-shadow: 0px 8px 47px 0px rgba(78, 111, 178, 0.12);
  margin-bottom: 20px;
  transition: all 0.4s ease;
  cursor: pointer;
  &:last-child {
    margin-bottom: 0;
  }
  .team-title {
    font-size: 20px;
    text-transform: uppercase;
    margin-bottom: 0;
  }
  .team-degi {
    margin-bottom: 0;
    color: $theme-color;
  }
  .team-img {
    margin-right: 20px;
    max-width: 70px;
    max-height: 70px;
    overflow: hidden;
    border-radius: 20px 0 20px 0;
  }
  &:hover {
    border: 1px solid $theme-color;
  }
  &.active {
    border: 1px solid $theme-color;
  }
}

.team-layout6 {
  position: relative;
  .team-box {
    padding: 30px;
    box-shadow: 0px 0px 47px 0px rgba(78, 111, 178, 0.25);
    border-radius: 0 150px 0 150px;
    display: none;
    transition: all 0.4s ease;
    &.active {
      display: block;
    }
    .team-img {
      img {
        border-radius: 0 120px 0 120px;
      }
    }
    .team-title {
      margin-bottom: 0;
    }
    .team-degi {
      font-family: $title-font;
      color: $theme-color;
      font-weight: 500;
    }
    .team-text {
      border-bottom: 1px solid #d5e0f5;
      padding-bottom: 18px;
      margin-bottom: 18px;
    }
  }
  .team-contact {
    display: flex;
    justify-content: space-between;
    .title {
      color: $title-color;
      font-family: $title-font;
      font-weight: 600;
      text-transform: uppercase;
      border-bottom: 1px solid #d5e0f5;
      display: inline-block;
      padding-bottom: 3px;
      margin-bottom: 20px;
    }
  }
  .team-social {
    margin-bottom: 30px;
    a {
      width: 40px;
      height: 40px;
      line-height: 44px;
      display: inline-block;
      color: $theme-color;
      margin: 0 5px 0 0;
      text-align: center;
      background-color: #eef2fb;
      border-radius: 50%;
      transition: all 0.4s ease;
      &:hover {
        color: $white-color;
        background-color: $theme-color;
      }
    }
  }
  .team-shape2 {
    position: absolute;
    left: 0;
    bottom: 0;
  }
  .about-shape4 {
    position: absolute;
    top: -30%;
    text-align: right;
  }
  .contact-email {
    .info {
      border-radius: 20px;
      background-color: #eef2fb;
      padding: 2px 20px 2px 2px;
      i {
        width: 38px;
        height: 38px;
        line-height: 38px;
        background-color: $white-color;
        border-radius: 50%;
        text-align: center;
        color: $theme-color;
        margin-right: 15px;
      }
    }
  }
  .team-style6 {
    .team-title {
      text-transform: capitalize;
    }
  }
}

.new-arrow-position {
  .slick-arrow {
    position: absolute;
    display: inline-block;
    border: none;
    text-transform: uppercase;
    text-align: center;
    background-color: var(--smoke-color);
    color: var(--theme-color);
    font-family: var(--body-font);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    padding: 15px;
    border-radius: 5px;
    z-index: 1;
    overflow: hidden;
    top: -15%;
    right: 15px;
    left: auto;
    &.slick-prev {
      right: 75px;
    }
    &::after,
    &::before {
      width: 100%;
      height: 100%;
      content: "";
      margin: auto;
      position: absolute;
      top: 0%;
      left: 0%;
      background: $title-color;
      transition: all ease 0.5s;
      z-index: -1;
      border-radius: inherit;
    }

    &:before {
      transform: rotateX(90deg);
    }

    &:after {
      transform: rotateY(90deg);
    }

    &:hover {
      color: $white-color;

      &:before {
        transform: rotateX(0);
      }

      &:after {
        transform: rotateY(0);
      }
    }
  }
}

@include md {
  .team-layout6 {
    .team-box {
      border-radius: 0;
      .team-img {
        margin-bottom: 30px;
      }
    }
    .team-contact {
      display: block;
    }
  }
}
