/**
 * 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.
 */
:root {
  --swiper-theme-color: #00953A;
}

.swiper.peek {
  overflow: visible;
}
.swiper + .swiper-controls .swiper-pagination {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.swiper + .swiper-controls .swiper-pagination,
.swiper + .swiper-controls .swiper-button-prev,
.swiper + .swiper-controls .swiper-button-next {
  position: initial;
}
.swiper + .swiper-controls .swiper-button-prev,
.swiper + .swiper-controls .swiper-button-next {
  --swiper-navigation-size: 48px;
  width: var(--swiper-navigation-size);
  margin-top: 0;
  padding: 1rem;
}
.swiper + .swiper-controls .swiper-button-prev:after,
.swiper + .swiper-controls .swiper-button-next:after {
  display: none;
}
.swiper + .swiper-controls .swiper-button-prev svg,
.swiper + .swiper-controls .swiper-button-next svg {
  width: 1em;
  height: 1em;
}
.swiper + .swiper-controls .swiper-pagination-bullet {
  transition: background 0.3s;
  --swiper-pagination-bullet-inactive-color: rgb(232.8, 233.4, 233.4);
  --swiper-pagination-bullet-width: 4.6875rem;
  --swiper-pagination-bullet-height: 0.25rem;
  --swiper-pagination-bullet-border-radius: 0.125rem;
  --swiper-pagination-bullet-horizontal-gap: 0.5rem;
  --swiper-pagination-bullet-inactive-opacity: 1;
  overflow: hidden;
  position: relative;
}
.swiper + .swiper-controls .swiper-pagination-bullet.swiper-pagination-bullet-active {
  background: unset;
}
.swiper + .swiper-controls .swiper-pagination-bullet:before {
  transition: transform 0.3s ease-out;
  background: #00953A;
  content: "";
  height: 100%;
  left: -100%;
  position: absolute;
  top: 0;
  transform: translate3d(calc(var(--progress) * 1%), 0, 0);
  width: 100%;
}
@media (max-width: 1199.98px) {
  .swiper + .swiper-controls .show-more {
    display: block;
    width: 100%;
  }
}
@media (min-width: 1200px) {
  .swiper + .swiper-controls .swiper-pagination-bullet {
    --swiper-pagination-bullet-width: 6rem;
  }
  .swiper.extended {
    transform: translateX(-50%);
    position: relative;
    left: 50%;
    width: min(100vw - 50px, 100% + 100px);
  }
}

.hero-swiper.full-width .module-hero .figure img {
  border-radius: 0;
}
@media (max-width: 1199.98px) {
  .hero-swiper {
    padding: 1rem 1rem;
    margin: -1rem -1rem;
  }
  .hero-swiper .module-hero .hero-content {
    opacity: 1 !important;
    transform: unset !important;
  }
  .hero-swiper .module-hero .hero-content .description {
    font-size: 1rem;
  }
  .hero-swiper + .swiper-controls .swiper-pagination-bullet:first-child {
    margin-left: 1rem !important;
  }
  .hero-swiper + .swiper-controls .swiper-pagination-bullet:last-child {
    margin-right: 1rem !important;
  }
}
@media (min-width: 1200px) {
  .hero-swiper .module-hero .hero-content {
    opacity: 0;
    transform: translateX(100px);
  }
  .hero-swiper.extended .module-hero.extended {
    transform: unset !important;
    position: unset !important;
    left: unset !important;
    width: unset !important;
  }
  .hero-swiper.full-width .module-hero .content-align [class^=align-] {
    left: 1rem;
  }
}
@media (min-width: 1400px) {
  .hero-swiper.full-width .module-hero .figure {
    aspect-ratio: 30/9;
  }
}

.course-swiper {
  padding: 1rem 1rem;
  margin: -1rem -1rem;
}
.course-swiper .card-body .card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.course-swiper .swiper-slide {
  height: auto;
  width: 33.3333333333%;
  margin-right: 30px;
}
.course-swiper .swiper-slide > .card {
  height: 100%;
}
.course-swiper .badges .badge.category {
  text-align: left;
  border: 1px solid transparent;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: balance;
  line-height: 22px;
  max-height: 30px;
  width: -moz-fit-content;
  width: fit-content;
}
.testimonial-swiper {
  padding: 1rem 1rem;
  margin: -1rem -1rem;
}
.news-swiper {
  padding: 1rem 1rem;
  margin: -1rem -1rem;
}
.brand-swiper {
  padding: 1rem 1rem;
  margin: -1rem -1rem;
}
@media (min-width: 1200px) {
  .brand-swiper .swiper-slide {
    width: unset;
  }
}

.plan-swiper {
  padding: 1rem 1rem;
  margin: -1rem -1rem;
}
