/* Full-width carousel section */
.testimonial-carousel {
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  padding: 3em 0;
  background: #b5c2c9;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Centered testimonial box */
.carousel-box {
  width: 60vw;
  max-width: 600px;
  min-width: 280px;
  background: #23272b;
  border-radius: 14px;
  box-shadow: 0 2px 16px #0007;
  padding: 2.2em 1.5em 2.7em 1.5em;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Carousel track and testimonials */
.carousel-track {
  width: 100%;
  min-height: 120px;
  display: flex;
  overflow: hidden;
  position: relative;
}

.testimonial {
  min-width: 100%;
  opacity: 0;
  transform: translateX(30px) scale(0.98);
  transition: opacity 0.5s, transform 0.5s;
  position: absolute;
  left: 0;
  top: 0;
  padding: 0 0.5em;
  box-sizing: border-box;
  text-align: center;
  color: #f1f3f4;
  z-index: 1;
  pointer-events: none;
}

.testimonial.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  z-index: 2;
  pointer-events: auto;
}

.testimonial h3 {
  margin: 0 0 0.6em 0;
  font-size: 1.15em;
  color: #00bfae;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.testimonial p {
  margin: 0;
  font-size: 1.04em;
  color: #e2e7ea;
  line-height: 1.5;
}

/* Carousel arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #181a1b;
  color: #00bfae;
  border: none;
  border-radius: 50%;
  font-size: 1.5em;
  width: 2.2em;
  height: 2.2em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-arrow.left {
  left: -1.5em;
}

.carousel-arrow.right {
  right: -1.5em;
}

.carousel-arrow:hover,
.carousel-arrow:focus {
  background: #00bfae;
  color: #181a1b;
  outline: none;
}

/* Carousel dots */
.carousel-dots {
  display: flex;
  gap: 0.7em;
  justify-content: center;
  margin-top: 1.3em;
}

.carousel-dots .dot {
  width: 0.85em;
  height: 0.85em;
  border-radius: 50%;
  border: none;
  background: #555;
  cursor: pointer;
  transition: background 0.2s;
  outline: none;
  padding: 0;
}

.carousel-dots .dot.active,
.carousel-dots .dot:focus {
  background: #00bfae;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .carousel-box {
    width: 80vw;
    max-width: 98vw;
    padding: 1.5em 0.7em 2em 0.7em;
  }
  .carousel-arrow.left {
    left: -0.7em;
  }
  .carousel-arrow.right {
    right: -0.7em;
  }
}

@media (max-width: 500px) {
  .carousel-box {
    width: 98vw;
    min-width: 0;
    padding: 1.2em 0.3em 2em 0.3em;
  }
  .carousel-arrow {
    font-size: 1.15em;
    width: 1.7em;
    height: 1.7em;
  }
  .carousel-arrow.left,
  .carousel-arrow.right {
    left: 0.2em;
    right: 0.2em;
  }
}
