/**
 * Course Tiles *
 *
 * @format
 */

/** Course/Class Toggle **/
.course-class-toggle {
  margin: 25px auto 0;
  display: block;
  max-width: -webkit-fit-content;
  max-width: -moz-fit-content;
  max-width: fit-content;
}

.course-class-toggle .switch {
  width: 300px;
  height: 50px;
  border: 1px solid #f6a6a9;
  border-radius: 16px;
}

.course-class-toggle .toggle-thumb:before {
  height: 40px;
  width: 150px;
  left: 4px;
  bottom: 4px;
  border-radius: 12px;
  background: #f27265;
}

.course-toggle-checkbox {
  opacity: 0;
  width: 0;
  height: 0;
}

.course-toggle-checkbox:checked + .toggle-thumb:before {
  transform: translateX(140px);
}

.course-class-toggle .toggle-option {
  font-size: 25px;
  font-weight: 700;
  font-family: "Crimson Text", serif;
  letter-spacing: 0.1px;
  margin-top: 0;
}

.course-class-toggle .toggle-option.active {
  color: #fff;
}

.course-class-toggle.disabled {
  cursor: not-allowed;
}

.course-class-toggle.disabled .switch {
  pointer-events: none;
}

/** END Course/Class Toggle **/

.alm-reveal,
.course-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 24px;
  justify-content: center;
}

.alm-load-more-btn {
  display: none;
}

.course-container {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 3px 3px 29px rgb(0 0 0 / 7%);
  position: relative;
  transition: 0.3s ease;
}

.course-container:hover {
  opacity: 0.7;
}

.tile-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
}

a.tile-link:hover {
  opacity: 0;
}

.featured-image {
  display: flex;
  align-items: center;
}

.course-container .featured-image img {
  -o-object-fit: cover;
  object-fit: cover;
  width: 100%;
}

.course-container .course-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding: 25px;
}

.course-container .cat-date-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  grid-column-gap: 15px;
  margin-bottom: 15px;
}

.course-container .cat {
  color: #f27265;
  font-family: "Work Sans", sans-serif;
  font-weight: 500;
  letter-spacing: 0.7px;
  font-size: 13px;
  line-height: 1;
  text-transform: uppercase;
}

.course-container .date {
  color: #657d80;
  font-family: "Work Sans", sans-serif;
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  justify-self: end;
}

.course-container .title {
  margin: 0;
  font-family: "Work Sans", sans-serif;
  color: #324945;
  font-size: 15px;
  margin-bottom: 15px;
}

.course-container .excerpt {
  font-family: "Work Sans", sans-serif;
  font-weight: 500;
  color: #657d80;
  font-size: 14px;
  line-height: 1.5;
  flex-grow: 1;
}

.course-container .course-btn {
  background: #f27265;
  color: #fff;
  padding: 10px 20px;
  border-radius: 15px;
  margin-top: 0;
  display: inline-block;
  text-align: center;
  font-weight: 500;
  line-height: 1;
  transition: 0.3s ease;
}

.course-btn:hover {
  opacity: 0.7;
}

/** Filter Popup **/
.filter-container {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 30px;
}

.filter-toggle {
  background: #009ab2;
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  line-height: 1;
  border: none;
  transition: 0.3s ease;
}

.filter-toggle:hover {
  opacity: 0.7;
}

.alm-filter--title h3 {
  font-size: 26px;
  font-family: "Crimson Text";
  color: #324945;
  letter-spacing: -0.52px;
  line-height: 1;
}

img.bar-icon {
  max-width: 18px;
}

.level-filter .field-checkbox {
  color: #657d80;
  font-size: 16px;
}

.level-filter .field-checkbox:hover {
  color: #657d80;
  font-weight: normal;
}

/** Progress / Completed Tiles **/
.progress-tab .sfwd-courses,
.completed-tab .sfwd-courses {
  display: flex;
  background: #fff;
  border-radius: 15px;
  margin-bottom: 30px;
}

.progress-tab .ribbon-enrolled,
.completed-tab .ribbon-enrolled {
  display: none;
}

.progress-tab .sfwd-courses a,
.completed-tab .sfwd-courses a {
  max-width: 300px;
  width: 100%;
}

.progress-tab .caption,
.completed-tab .caption {
  width: 100%;
  padding: 20px;
  grid-template-columns: 1fr 100px;
  grid-template-rows: 1fr 1fr 1fr;
  display: grid;
}

.progress-tab .entry-title,
.completed-tab .entry-title {
  color: #324945;
  font-size: 26px;
  letter-spacing: -0.52px;
}

.progress-tab .ld_course_grid_button .btn,
.completed-tab .ld_course_grid_button .btn {
  background: #f27265;
  color: #fff;
  border-radius: 9px;
  padding: 8px 16px;
  line-height: 1;
  font-size: 15px;
  font-weight: 700;
  display: block;
  text-align: center;
  transition: 0.3s ease;
}

.progress-tab .ld_course_grid_button .btn:hover,
.completed-tab .ld_course_grid_button .btn:hover {
  opacity: 0.7;
}

.progress-tab .sfwd-courses .learndash-wrapper,
.completed-tab .sfwd-courses .learndash-wrapper {
  grid-column-start: 1;
  grid-column-end: 3;
}

.progress-tab .sfwd-courses .ld-progress-percentage,
.completed-tab .sfwd-courses .ld-progress-percentage {
  display: none;
}

.progress-tab .sfwd-courses .ld-progress-steps,
.completed-tab .sfwd-courses .ld-progress-steps {
  font-size: 15px;
  color: grey;
  margin-top: 15px;
}

.progress-tab .caption p,
.completed-tab .caption p {
  color: #657d80;
  font-size: 16px;
  line-height: 1.5;
}

.learndash-wrapper .ld-progress .ld-progress-bar .ld-progress-bar-percentage,
.completed-tab .ld-progress .ld-progress-bar .ld-progress-bar-percentage {
  background: #f27265 !important;
}

.courses-filter {
  display: block;
}

.filter-toggle {
  background: #009ab2;
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  line-height: 1;
  border: none;
  transition: 0.3s ease;
  display: none;
}

.filter-toggle:hover {
  opacity: 0.7;
}


@media screen and (max-width: 979px) {
  #alm-filters-courses_filter {
    display: block;
  }
  #alm-filters-courses_filter .alm-filter--search {
    grid-column-start: 1;
    grid-column-end: 3;
  }

  .filter-toggle {
    display: block;
  }

  .courses-filter.guest-view {
    display: none;
    position: absolute;
    z-index: 2;
    margin-top: calc(36px + 15px);
    background: #fff;
    max-width: 385px;
    width: 100%;
    padding: 3%;
    box-shadow: 3px 3px 29px rgb(0 0 0 / 10%);
    border-radius: 15px;
  }
}

@media screen and (max-width: 580px) {
  .alm-reveal,
  .course-list {
    grid-template-columns: repeat(1, 1fr);
  }
}
