/* bootstrap tabs*/
.nav-tabs {
  border-bottom: none;
  position: relative;
  z-index: 1;
  &.aside-tab{
    @media (max-width: 1200px) and (min-width: 992px){
      display: flex;
      flex-direction: column;
    }
  }
  @media(max-width:768px){
    display: flex;
    flex-direction: column;
  }
  .nav-link {
    border-radius: 0;
    margin-right: 2px;
    color: $lightColor;
    background: $colorMain;
    text-transform: unset;
    font-size: 16px;
    border: none;
    font-weight: 400;
    &:hover {
      box-shadow: $boxShadow;
      background: #fff;
      color: $fontColor !important;
    }
    @media(max-width:768px){
      padding: 15px 35px 15px;
      margin-right: 0;
    }
  }

  .nav-item.show .nav-link,
  .nav-link.active {
    box-shadow: $boxShadow;
    background: $lightColor;
    color: $darkgreyColor !important;
  }

  &.small-section{
    @media (max-width: 1299px) and (min-width: 992px) {
      display: flex;
      flex-direction: column;
      .nav-item{
        display: flex;
        flex-direction: column;
        .nav-link{
          margin-right: 0;
        }
      }
    }
  }

  &.vertical-tabs{
    display: flex;
    flex-direction: column;
    .nav-item{
      margin-bottom: 10px;
      &:last-child{
        margin-bottom: 0;
      }
    }
    .nav-link{
      box-shadow: $boxShadow;
      background: #fff;
      color: $fontColor;
      min-width: unset;
      padding: 22px 35px;
      &:hover{
        color: $lightColor!important;
        background: $colorMain;
      }
    }
    .nav-item.show .nav-link,
    .nav-link.active {
      color: $lightColor!important;
      background: $colorMain;
    }
    &.widget{
      .nav-item:not(:last-child){
        margin-bottom: 30px;
      }
      .media{
        margin-bottom: 0;
        .media-image{
          position: relative;
          &::before{
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            display: inline-block;
            z-index: 2;
            background-color: $darkgreyColor;
            opacity: 0;
            transition: all .3s ease-in-out;
          }
        }
      }
      .nav-link{
        padding: 0;
        box-shadow: none;
        &:hover{
          background: transparent;
        }
        .media-body{
          align-items: flex-start;
          text-align: left;
        }
      }
      .nav-item .nav-link:hover,
      .nav-item.show .nav-link,
      .nav-link.active{
        background: transparent;
        .media{
          .media-image{
            &:before{
              opacity: 0.5;
            }
          }
        }
      }
    }
  }
}

.nav-link {
  @include small-text();
  font-family: 'Poppins', sans-serif;
  padding: 24px 35px;
  @media(max-width: 768px){
    min-width: 100px;
  }
  @media(max-width:450px){

    min-width: auto;
    width: 100%;
    display: block;
  }
  min-width: 200px;
  color: $darkgreyColor;
  .small-tabs & {
    padding: 12px 20px;
    min-width: unset;
  }
}

.small-tabs{
  .nav-tabs{
    .nav-item{
      width: 33.62%;
      &:last-child{
        margin-right: -3px;
      }
    }
  }
}



.tab-content {
  background-color: $lightColor;
  padding: 53px 60px;
  box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.1);
  position: relative;
  &::before{
    content: '';
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    display: inline-block;
    position: absolute;
    z-index: 3;
    background-color: $lightColor;
  }
  &.border-none{
    &::before{
      content: none;
    }
  }
  @media(max-width:450px){
    padding: 30px;
  }

  h6{
    font-size: 16px;
    font-weight: 600;
  }
}

.tab-pane {
  .media {
    img {
      max-width: 40%;
      &:first-child {
        margin-right: 10px;
      }
    }
    h3, h4, h5 {
      font-weight: 900;
    }
  }
}