.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  max-width: 1300px;
  margin: 3rem auto;
  padding: 2rem 1rem 1rem;
}

.carousel h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: #49646e;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 500ms ease;
  will-change: transform;
}

.carousel-slide {
  position: relative;
  min-width: 100%;
  max-height: 500px;
  display: grid;
  place-items: center;
  background: #fff;
}

.carousel-slide img {
  height: 400px;
}

.carousel-fallback {
  color: #fff;
  font-size: 1.25rem;
}

.carousel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 1rem;
  color: #fff;
}

.carousel-control {
  position: absolute;
  top: 45%;
  width: 34px;
  height: 45px;
  cursor: pointer;
  font-size: 25px;
  background-color: #ffffff62;
  border-radius: 6px;
  border: none;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-control:hover {
  background: #fff;
  transition: 200ms ease-in-out;
}

.carousel-control.prev {
  left: 12px;
}

.carousel-control.next {
  right: 12px;
}

.carousel-indicators {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  gap: 8px;
  justify-content: center;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.indicator.active {
  background: #fff;
}

@media (max-width: 768px) {
  .carousel {
    border-radius: 12px;
    margin: 2rem 1rem;
    padding: 0.5rem;
  }

  .carousel-slide {
    height: 350px;
  }

  .carousel-caption {
    font-size: 1.3rem;
    padding: 1rem 1.5rem;
  }

  .carousel-control {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .carousel-control640px {
    .carousel {
      border-radius: 8px;
    }
    .carousel-slide {
      height: auto;
    }
  }
}
