/**
 * Helper function for downsize mixin.
 */
/**
 * Downsize a CSS property using the viewport to affect calc().
 *
 * @param {string} $property: The property to be affected.
 * @param {string|list} $min: The min value / values.
 * @param {string|list} $max: The max value / values.
 * @param {string} $viewport: The biggest viewport, which the property must be calculated. NOTE: we use media-breakpoint-down here!
 * @param {boolean} $default: True if the default property must be set, regardless of the viewport size.
 * @param {list} $min-limit: A list containing the min viewport and the min value.
 */
body.has-course-search {
  min-height: calc(100vh + 1px);
}
@media (min-width: 1200px) {
  body.has-course-search .course-search .search-result {
    min-height: 50vh;
  }
}
body #courseSearchMobileFilter .modal-body form {
  display: block !important;
}
body #courseSearchMobileFilter #reset-filter {
  display: none !important;
}
body #courseSearchMobileFilter .module-header .header {
  margin-bottom: 0;
}
body #courseSearchMobileFilter .modal-body {
  padding-top: 0;
  padding-bottom: 0;
}

.course-search .module-cards.course-card .card {
  opacity: 0;
  transform: translateY(20px);
}
.course-search .course-list,
.course-search .course-loading,
.course-search .course-no-result,
.course-search .course-error {
  overflow: hidden;
  height: 0;
}
.course-search #resetFilter {
  font-size: 1.125rem;
  font-weight: 700;
}
.course-search .course-loading-card,
.course-search .course-no-result-card,
.course-search .course-error-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 252px;
  opacity: 0;
}
.course-search .testing {
  position: fixed;
  right: 15px;
  top: 50%;
  display: flex;
  flex-direction: column;
}
.course-search .testing button {
  margin-bottom: 5px;
}
.course-search .course-list {
  padding: 1rem 1rem;
  margin: -1rem -1rem;
}
@media (max-width: 1199.98px) {
  .course-search {
    scroll-margin-top: 4.5rem;
  }
}
@media (min-width: 1200px) {
  .course-search {
    scroll-margin-top: 6.0625rem;
  }
}
