.teachers-carousel {
  --teachers-carousel-bg: var(--jav-azul-1-500, #e5ecf8);
  --teachers-carousel-text: var(--jav-azul-3, #103062);
  --teachers-carousel-arrow-bg: rgba(1, 4, 64, 0.4);
  --teachers-carousel-arrow-text: var(--jav-blanco, #ffffff);
  background: var(--teachers-carousel-bg);
  color: var(--teachers-carousel-text);
  padding: clamp(48px, 5.6vw, 72px) 0 42px;
}

.teachers-carousel--light {
  --teachers-carousel-bg: var(--jav-azul-1-500, #e5ecf8);
  --teachers-carousel-text: var(--jav-azul-3, #103062);
}

.teachers-carousel--medium {
  --teachers-carousel-bg: #7fa9e6;
  --teachers-carousel-text: var(--jav-blanco, #ffffff);
}

.teachers-carousel--dark {
  --teachers-carousel-bg: #5d86c5;
  --teachers-carousel-text: var(--jav-blanco, #ffffff);
}

.teachers-carousel__container {
  position: relative;
  width: 100%;
  max-width: var(--jav-max-width, 1440px);
  margin: 0 auto;
  padding: 0 clamp(52px, 7vw, 112px);
}

.teachers-carousel__header {
  margin: 0 auto clamp(28px, 3vw, 42px);
  text-align: center;
}

.teachers-carousel__title {
  margin: 0;
  color: var(--teachers-carousel-text);
  font-family: var(--jav-font-family, Helvetica, Arial, sans-serif);
  font-size: var(--jav-font-h3, 2.125rem);
  font-weight: var(--jav-font-bold, 700);
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
}

.teachers-carousel__stage {
  position: relative;
}

.teachers-carousel__viewport {
  overflow: hidden;
}

.teachers-carousel__track {
  display: flex;
  justify-content: center;
  gap: 24px;
  will-change: transform;
}

.teachers-carousel.is-overflowing .teachers-carousel__track {
  justify-content: flex-start;
}

.teachers-carousel__item {
  display: flex;
  flex: 0 0 calc((100% - 48px) / 3);
  justify-content: center;
  min-width: 0;
}

.teachers-carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 47px;
  height: 47px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--teachers-carousel-arrow-text);
  transform: translateY(-50%);
  cursor: pointer;
  transition: opacity var(--jav-transition, 0.15s ease), background var(--jav-transition, 0.15s ease);
}

.teachers-carousel__arrow:hover,
.teachers-carousel__arrow:focus-visible {
  opacity: 0.85;
}

.teachers-carousel__arrow.btn::before,
.teachers-carousel__arrow.btn::after {
  display: none !important;
  content: none !important;
}

.teachers-carousel__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.teachers-carousel__arrow--prev {
  left: -70px;
}

.teachers-carousel__arrow--prev .teachers-carousel__arrow-icon {
  transform: rotate(180deg);
}

.teachers-carousel__arrow--next {
  right: -70px;
}

.teachers-carousel__arrow-icon {
  display: block;
  width: 47px;
  height: 47px;
  max-width: none;
  background-image: url("../../assets/img/general-icons/arrow-next.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.teachers-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  min-height: 10px;
  margin-top: 22px;
}

.teachers-carousel__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 1px solid var(--teachers-carousel-text);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.teachers-carousel__dot.is-active {
  background: var(--teachers-carousel-text);
}

@media (max-width: 991px) {
  .teachers-carousel__container {
    padding-inline: 64px;
  }

  .teachers-carousel__item {
    flex-basis: calc((100% - 24px) / 2);
  }

  .teachers-carousel__arrow--prev {
    left: -48px;
  }

  .teachers-carousel__arrow--next {
    right: -48px;
  }
}

@media (max-width: 767px) {
  .teachers-carousel {
    padding: 42px 0 34px;
  }

  .teachers-carousel__container {
    padding-inline: 36px;
  }

  .teachers-carousel__header {
    margin-bottom: 24px;
  }

  .teachers-carousel__title {
    font-size: var(--jav-font-h5, 1.5rem);
  }

  .teachers-carousel__track {
    gap: 12px;
  }

  .teachers-carousel__item {
    flex-basis: 100%;
  }

  .teachers-carousel__arrow {
    width: 38px;
    height: 38px;
  }

  .teachers-carousel__arrow--prev {
    left: -26px;
  }

  .teachers-carousel__arrow--next {
    right: -26px;
  }
}
