@use "mixins/mixins-master" as *;
@use "mixins/flex" as *;
@use "variables" as *;
.thim-instructors {
  padding-top: 100px;
  body.home & {
    padding-top: 0;
  }
  .item {
    @include flexbox();
    @include transition(0.3s ease-in-out);
  }
  .avatar-item {
    width: 100%;
    margin-bottom: 30px;
    @include transition(0.3s ease-in-out);
    &:hover {
      // @include box-shadow(12.9px 15.3px 18px 0 rgba(0, 0, 0, 0.08));
      .avatar-instructors {
        .author-social {
          opacity: 1;
          visibility: visible;
        }
      }
    }
    .avatar-instructors {
      position: relative;
      // max-height: 323px;
      overflow: hidden;
      border-radius: $thim_border_radius;
      .avatar-small {
        img {
          width: 100%;
        }
      }
      .author-social {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 40px;
        text-align: center;
        @include transition(all 0.5s);
        opacity: 0;
        visibility: hidden;
        &:after {
          content: "";
          background: #fff;
          height: 20px;
          position: absolute;
          bottom: 0;
          left: 0;
          width: 100%;
          @include transition(all 0.5s);
        }
        a {
          width: 40px;
          height: 40px;
          display: inline-block;
          border-radius: 50%;
          border: 1px solid $border-color;
          text-align: center;
          background: #fff;
          line-height: 38px;
          font-size: 16px;
          color: #878787;
          z-index: 1;
          position: relative;
          margin: 0 5px;
          @include transition(all 0.6s);
          &:hover {
            color: #fff;
          }
        }
      }
    }
    .avartar-info {
      // background: #fff;
      text-align: center;
      // padding: 21px 20px 24px;
      h5 {
        margin-top: 20px;
        margin-bottom: 5px;
        a {
          color: $thim_font_title_color;
          font-size: 20px;
          font-weight: 500;
          line-height: 1.25;
          text-transform: capitalize;
        }
        .author-major {
          color: #878787;
          font-size: 16px;
          text-transform: capitalize;
        }
      }
    }
  }
  .button-load {
    margin-top: 30px;
    width: 100%;
    display: inline-block;
    position: relative;
    .sk-chasing-dots {
      margin: 0 auto;
    }
  }
  .load-more {
    padding: 0 86px;
    height: 55px;
    line-height: 55px;
    border-radius: 30px;
    color: #fff;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: normal;
    display: inline-block;
    cursor: pointer;
    @include transition(all 0.5s);
  }
  .thim-loading-icon {
    display: none;
    height: 55px;
    line-height: 55px;
    position: relative;
  }
  &.loadmore {
    .thim-loading-icon {
      margin-top: 0;
      display: block !important;
      position: relative;
      z-index: 9;
      top: auto;
      left: 0;
      right: 0;
      transform: translateY(0);
    }
    .load-more {
      opacity: 0;
      visibility: hidden;
      margin-top: 0;
      height: 0;
    }
  }

  .home_courses_instructor {
    text-align: center;

    .avatar-item {
      .avatar-instructors {
        margin-bottom: 15px;
        overflow: visible;
        .avatar-small img {
          max-height: 332px;
          width: auto;
          margin: 0 auto;
        }
        .author-social {
          opacity: 1;
          visibility: visible;
          z-index: 9;
          bottom: -20px;
          a {
            border: none;
            line-height: 40px;
            &:hover {
              color: #fff;
            }
          }
        }
      }
      .avartar-info {
        padding: 21px 20px 24px;
        position: relative;

        h5 {
          margin-bottom: 0;
          a {
            font-size: 18px;
          }
        }
      }

      .description {
        margin-top: 12px;
      }
      &:hover {
        box-shadow: none;
      }
    }
  }

  .home1_courses_instructor {
    .wrap-teachers {
      padding-left: 5%;
      padding-right: 5%;
    }
    .avatar-item {
      box-shadow: none !important;
      margin-bottom: 25px;
      &:hover {
        .avatar-instructors:before {
          opacity: 0.8;
        }
        .avatar-instructors .avartar-info > a {
          display: inline-block;
        }
        .avatar-instructors .avartar-info .description {
          color: #fff;
        }
      }

      .avatar-instructors {
        max-height: 300px;
        &:before {
          width: 100%;
          height: 100%;
          content: "";
          opacity: 0.4;
          position: absolute;
          top: 0;
          left: 0;
          right: 0;
          bottom: 0;
          @include transition(all 0.5s);
        }

        img {
          width: 100%;
        }

        .avartar-info {
          position: absolute;
          top: 38px;
          bottom: 40px;
          padding: 0;
          text-align: left;
          left: 40px;
          background: 0;
          width: 70%;
          h5 {
            margin-bottom: 8px;
            a {
              position: relative;
              color: #fff;
              font-weight: 500;
              font-size: 30px;
              letter-spacing: normal;
              text-transform: none;
              &:after {
                content: "";
                width: 100%;
                height: 1px;
                background: #fff;
                position: absolute;
                left: 0;
                bottom: 4px;
                @include opacity(0);
              }
              &:hover {
                &:after {
                  @include opacity(1);
                }
              }
            }
          }
          .author-major {
            font-weight: 400;
            color: #fff;
            letter-spacing: normal;
          }
          .description {
            font-weight: 400;
            margin-top: 23px;
            letter-spacing: normal;
            color: #abafb1;
            line-height: 1.5;
          }

          > a {
            color: #fff;
            display: none;
            font-weight: 300;
            margin-top: 36px;
            line-height: 1.5;
            letter-spacing: 0.3px;
            @include transition(all 0.5s);
            i {
              margin-left: 12px;
              vertical-align: middle;
            }
            &:hover {
              span:after {
                opacity: 1;
                visibility: visible;
              }
            }
            span {
              position: relative;
              &:after {
                content: "";
                width: 100%;
                height: 1px;
                background: #fff;
                position: absolute;
                left: 0;
                bottom: 1px;
                opacity: 0;
                visibility: hidden;
              }
            }
          }
        }
      }
    }
    .view-more {
      margin-top: 35px;
      text-align: center;
      a {
        display: inline-block;
        padding: 0 44px;
        height: 56px;
        line-height: 56px;
        border-radius: 30px;
        color: #fff;
        font-size: 16px;
        text-transform: uppercase;
        font-weight: normal;
        cursor: pointer;
        background-size: 220% 100%;
        @include transition(all 0.4s ease-in-out);
        &:hover {
          background-position: right center;
        }
        i {
          vertical-align: middle;
          margin-left: 15px;
        }
      }
    }
  }
}

.sk-three-bounce {
  margin: 0 auto;
  width: 80px;
  text-align: center;

  .sk-child {
    width: 20px;
    height: 20px;
    background-color: #333;
    border-radius: 100%;
    display: inline-block;
    animation: sk-three-bounce 1.4s ease-in-out 0s infinite both;
  }

  .sk-bounce1 {
    animation-delay: -0.32s;
  }
  .sk-bounce2 {
    animation-delay: -0.16s;
  }
}

@keyframes sk-three-bounce {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}
