body {
  background-image: url("../images/testimonials.webp");
  background-image: linear-gradient(
      to bottom,
      rgba(16, 26, 27, 0.7),
      rgba(16, 26, 27, 0.5) 60%
    ),
    url("../images/testimonials.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: left;
}
.text {
  margin: 5%;
  margin-top: 0;
}
.text h1 {
  text-align: center;
  font-family: Montserrat;
  font-size: 32px;
  font-weight: 300;
  line-height: 39.01px;
}
.highlighted {
  font-family: Montserrat;
  font-size: 32px;
  font-weight: 700;
  line-height: 39.01px;
  color: var(--red2);
}
.text p {
  font-family: Lora;
  font-size: 16px;
  font-weight: 400;
  line-height: 22.03px;
  letter-spacing: 0.05em;
  text-align: center;
}
.carousel {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
  margin-bottom: 0;
}

.carousel-wrapper {
  overflow: hidden;
  width: 100%; /* Full width to handle the layout */
}

.carousel-inner {
  display: flex;
  gap: 20px; /* Adds gap between the items */
  transition: transform 0.3s ease-in-out;
  padding: 40px 0;
  margin-left: 20px;
  margin-bottom: 10vh;
}

.carousel-item {
  flex: 0 0 calc(33.333% - 20px); /* Three items with gaps, account for total width */
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 2em;
  color: white;
  border-radius: 10px;

  border-radius: 30px;
  /* background-color: var(--light-teal); */

  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transition: all 0.3s ease;
}
.carousel-item:nth-child(3n + 1) {
  background-image: url("../images/rect-left.png");
}

.carousel-item:nth-child(3n + 2) {
  background-image: url("../images/rect-middle.png");
}

.carousel-item:nth-child(3n) {
  background-image: url("../images/rect-right.png");
}

.carousel-item img {
  width: 70px;
  aspect-ratio: 1;
}
.carousel-item .quote {
  width: 20px;
}
.carousel-item h2 {
  font-size: 24px;
  text-align: center;
}
.carousel-item p {
  font-size: 16px;
  text-align: center;
  /* padding: 0 18%; */
  width: 300px;
  padding-bottom: 10%;
}

button {
  background-color: rgba(0, 0, 0, 0);
  color: var(--red);
  border: none;
  padding: 10px;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  border-radius: 50%;
  font-size: 50px;
}
button:focus {
  border: none;
}
.prev {
  left: 10px;
}

.next {
  right: 10px;
}
.decor {
  position: absolute;
  width: 100%;
  height: 10%;
  top: 94%;
  left: 0%;
  background-image: url("../images/line-left.svg");
  background-size: contain;
  background-repeat: no-repeat;
}
@media (max-width: 1000px) {
  .decor {
    display: none;
  }
  .carousel-wrapper {
    margin: 0 10%;
  }

  .carousel-inner {
    gap: 0; /* Remove gap on mobile */
    margin-left: 0;
  }
  .carousel-item {
    flex: 0 0 100%; /* Show one item on mobile */
  }
  .carousel-item img {
    width: 70px;
    aspect-ratio: 1;
  }
  .carousel-item h2 {
    font-size: 24px;
    text-align: center;
  }
  .carousel-item p {
    width: 280px;
    font-size: 16px;
    text-align: center;
  }
}
@media (max-width: 550px) {
  .desktopbtn {
    display: none;
  }

  .carousel-wrapper {
    margin: 0 5%;
  }

  .carousel-item img {
    width: 50px;
    aspect-ratio: 1;
  }

  .carousel-item .quote {
    width: 20px;
  }

  .carousel-item h2 {
    font-size: 20px;
    text-align: center;
  }

  .carousel-item p {
    width: 280px;
    font-size: 14px;
    text-align: center;
    padding-bottom: 5%;
  }

  button {
    font-size: 45px;
    position: static; /* Remove absolute positioning */
    margin: 10px; /* Add spacing around buttons */
  }

  .carousel {
    flex-direction: column; /* Stack carousel and buttons vertically */
    align-items: center;
  }

  .carousel-buttons {
    display: flex;
    justify-content: center;
    gap: 20px; /* Space between buttons */
    margin-top: 10px; /* Adjust spacing above the buttons */
  }
  .carousel-inner {
    margin-bottom: 0;
  }
  body {
    /* background: url("./images/testimonials.webp"); */
    background-color: #040505;
    /* background-size: 100% 50%; */
    background-position: center;
    background-repeat: no-repeat;
  }
}
