.swiper {
    width: 320px;
    height: 200px;
  }

  .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .teachers__swiper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-bottom: 30px;
  }
  .teachers__swiper-wrapper {
    display: flex;
    padding-top: 30px;
  }
  .teachers__swiper-slide {
    flex-shrink: 0;
  }

  .teachers__swiper-card {
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    border-radius: 8px;
    padding-bottom: 20px;
  }

  .teachers__photo {
    top: 0;
    left: 0;
    width: calc(330 / 425 * 100vw);
    height: calc(500 / 425 * 100vw);
    margin: 0 auto;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.9);
    transition: transform 400ms ease-in-out, opacity 400ms ease-in-out,
      box-shadow 400ms ease-in-out 200ms;
  }

  .teachers__name {
    color: white;
    padding: calc(20 / 425 * 100vw);
    background-color: #202020;
    text-align: center;
    background-color: rgba(147, 36, 35, 1);
    opacity: 0;
    font-size: calc(20 / 425 * 100vw);
    transform: scale(0.9) translateY(-30px);
    transition: background-color ease-in-out 200ms, transform 400ms ease-in-out,
      opacity 400ms ease-in-out;
    margin-bottom: 10px;
  }

  .teachers__founder-text {
    color: white;
    text-align: center;
    height: calc(20 / 425 * 100vw);
    font-size: calc(15 / 425 * 100vw);
    opacity: 0;
    transform: scale(0.9) translateY(-30px);
    margin-bottom: 20px;
    transition: transform 400ms ease-in-out, opacity 400ms ease-in-out;
  }

  .teachers__card-buttons {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transform: scale(0.9) translateY(-30px);
    transition: transform 400ms ease-in-out, opacity 400ms ease-in-out;
  }

  .teachers__card-button-details {
    color: white;
    padding: calc(15 / 425 * 100vw);
    text-align: center;
    font-size: calc(15 / 425 * 100vw);
    background-color: rgba(147, 36, 35, 1);
    width: calc(50% - 40px);
  }

  .swiper-pagination {
    z-index: 1;
  }

  .swiper-pagination-bullet {
    margin: 0 20px;
    width: calc(15 / 425 * 100vw);
    height: calc(15 / 425 * 100vw);
    transition: background-color 400ms ease-in-out;
  }

  .swiper-pagination-bullet-active {
    background-color: rgba(147, 36, 35, 1);
  }

  @media (max-width: 768px) {
    .swiper-slide-active .teachers__name {
      transform: scale(1) translateY(0);
      opacity: 1;
    }

    .swiper-slide-active .teachers__photo {
      transform: scale(1);
      opacity: 1;
      box-shadow: 10px -10px 0 5px rgb(16, 16, 16);
    }

    .swiper-slide-active .teachers__founder-text {
      transform: scale(1);
      opacity: 1;
    }

    .swiper-slide-active .teachers__card-buttons {
      transform: scale(1);
      opacity: 1;
    }
  }

  @media (min-width: 576px) {
    .teachers__card-buttons {
      align-items: stretch;
    }

    .teachers__card-button-details {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 15px;
      font-size: 22px;
    }

    .swiper-pagination-bullet {
      margin: 0 20px;
      width: 20px;
      height: 20px;
      transition: background-color 400ms ease-in-out;
    }
    .teachers__photo {
      width: 445px;
      height: 675px;
      margin-bottom: 0;
    }

    .teachers__name {
      padding: 30px;
      font-size: 30px;
    }
    .teachers__founder-text {
      height: 30px;
      font-size: 20px;
    }
  }

  @media (min-width: 768px) {
    .teachers__photo {
      width: 300px;
      height: 455px;
      opacity: 1;
      transform: scale(1) translateY(0);
      margin-bottom: 0;
    }

    .teachers__name {
      transform: scale(1) translateY(-10px);
      opacity: 1;
      font-size: 20px;
      padding: 20px;
    }
    .teachers__founder-text {
      transform: scale(1) translateY(0);
      opacity: 1;
    }
    .teachers__card-buttons {
      transform: scale(1) translateY(0);
      opacity: 1;
    }
  }

  @media (min-width: 1024px) {
    .teachers__photo {
      width: 300px;
      height: 455px;
    }
    .teachers__name {
      padding: 20px;
      font-size: 22px;
    }
  }

  @media (min-width: 1440px) {
    .teachers__photo {
      width: 300px;
      height: 455px;
    }
    .teachers__name {
      font-size: 24px;
      padding: 20px;
    }
    .teachers__card-button-details {
      padding: 15px;
      font-size: 18px;
    }
  }