//
//  INSTRUCTOR WIDGET
//
.ps-ld__instructor {
  padding: 10px;
  border: 2px solid rgba(0,0,0, .05);

  // ROUNDED CORNERS
  @if $scss-rounded == true {
    border-radius: 6px;
  }

  .ps-avatar {
    @if $scss-direction == rtl {
      margin-left: 10px;
    } @else {
      margin-right: 10px;
    }

    vertical-align: middle;

    > a {
      display: block;
      width: 64px;
    }
  }

  .ps-img-vipicons {
    max-width: 14px !important;
    height: auto !important;
    font-size: 16px;
    vertical-align: middle !important;
  }
}


.ps-ld__instructor-header {
  display: flex;
  align-items: center;
}


.ps-ld__instructor-name {
  font-size: 16px;
  line-height: 1.2;
}


.ps-ld__instructor-desc {
  margin-top: 5px;
  padding-top: 10px;
  line-height: 1.4;
  text-align: justify;
  border-top: 2px solid rgba(0,0,0, .025);
}


.ps-ld__instructor-chat {
  display: block;
  width:100%;
  clear: both;
  margin-top: 10px !important;
}


//
//  COURSES WIDGET
//
.ps-ld__group {
  margin-bottom: 10px;

  &:last-child {
    margin-bottom: 0;
  }
}


.ps-ld__group-inner {
  display: flex;
  align-items: center;
}


.ps-ld__group-avatar {
  display: block;

  > img {
    width: 64px;
  }
}


.ps-ld__group-thumbnail {
  display: block;
  width: 64px;
  height: 64px;
  background-color: rgba(0,0,0, .02);

  // ROUNDED CORNERS
  @if $scss-rounded == true {
    border-radius: 6px;
  }

  > img {
    width: 64px;
    height: 64px;
    max-width: 64px;
    vertical-align: middle;
    
    // ROUNDED CORNERS
    @if $scss-rounded == true {
      border-radius: 6px;
    }
  }
}


.ps-ld__group-name {
  @if $scss-direction == rtl {
    padding-right: 10px;
  } @else {
    padding-left: 10px;
  }

  line-height: 1.2;
}


.ps-ld__group-privacy {
  margin-top: 5px;
  font-size: $font-size-sm;
  color: $color-text-light;

  i {
    &:before {
      @if $scss-direction == rtl {
        margin-right: 0;
      } @else {
        margin-left: 0;
      }
    }
  }
}


/*  Wrapping all courses on the profile page  */
.ps-learndash {}

/*  Clearfix for 2 columns layout  */
.ps-learndash:after {
  display: table;
  clear: both;
  content: " ";
}

/*  Modify posts view to 2 colums layout  */
.ps-learndash--half {}

@media only screen and (min-width:481px) {
  .ps-learndash--half {
    margin-left: -7px;
    margin-right: -7px;
  }
}

/*  Wrapping single course  */
.ps-learndash__course {
  margin-bottom: 14px;
}

@media only screen and (max-width:480px) {
  .ps-learndash__course {
    height: auto !important;
  }
}

/*  Remove margin from the last course on 1 column layout  */
.ps-learndash__course:last-child {
  margin-bottom: 0;
}

@media only screen and (min-width:481px) {
  /*  Modify single course to 2 columns layout  */
  .ps-learndash--half .ps-learndash__course {
    float: left;
    width: 50%;
    margin: 0;
    padding: 7px;
  }

  /*  Force every 3rd course to start with new line  */
  .ps-learndash--half .ps-learndash__course:nth-child(2n+1) {
    clear: both;
  }
}

/*  Wrapping single course body and styling course box  */
.ps-learndash__course-inside {
  position: relative;
  height: 100%;
  padding: 14px;
  background-color: transparent;
  border: 1px solid #0000001a;
}

/*  Wrapping content inside single course container
    and hide overflow content  */
.ps-learndash__course-body {
  height: 100%;
  overflow: hidden;
}

/*  Wrapping featured image  */
.ps-learndash__course-image {
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
  background-color: #f5f5f5;
  background-position: center center;
  -webkit-background-size: cover;
  background-size: cover;
}

/*  Align featured image to the left side  */
.ps-learndash__course-image--left {
  float: left;
  margin-right: 14px;
}

/*  Align featured image to the right side  */
.ps-learndash__course-image--right {
  float: right;
  margin-left: 14px;
}

/*  Makes featured image clickable URL  */
.ps-learndash__course-image > a {
  display: block;
  height: 100%;
  content: " ";
}

/*  Wrapping single course title  */
.ps-learndash__course-title {
  margin-bottom: 7px !important;
  padding: 0 !important;
  font-size: 20px !important;
  line-height: 1.4 !important;
}

/*  Wrapping single course meta  */
.ps-learndash__course-meta {
  margin-bottom: 7px;
  line-height: 1.4;
  opacity: .65;
}

/*  Wrapping content of the single course  */
.ps-learndash__course-content {
  line-height: 1.4;
}

/*  Clearfix for image aligment  */
.ps-learndash__course-content:after {
  display: table;
  clear: both;
  content: " ";
}

.ps-ld__group-thumbnail {
  min-width: 64px;
  background-position: center center;
  -webkit-background-size: cover;
  background-size: cover;
}
.ps-ld__group-thumbnail > img {
  width: auto;
  height: auto;
}
