.testimonials-container {
  position: relative;
  overflow: hidden; /* Hide testimonials that are out of view */
  width: 100%; /* Adjust as needed */
}

.testimonial-wrapper {
  display: flex; /* Arrange testimonials horizontally */
  transition: transform 0.5s ease-in-out; /* Smooth transition for sliding */
}

.testimonial{
  flex-shrink: 0; /* Prevent testimonials from shrinking */
  width: 100%; /* Each testimonial takes full width initially */
  padding: 20px; /* Add some padding */
  box-sizing: border-box; /* Include padding in width */
}

.prev-testimonial, .next-testimonial {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  padding: 10px;
  z-index: 10; /* Ensure they are above the content */
}

.prev-testimonial {
  left: 10px;
}

.next-testimonial {
  right: 10px;
}

.testimonials, .testimonials-container  {
    text-align: center;
    margin: 40px 0;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 10px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
  }
  .testimonial-container, .testimonial-wrapper{
    font-size: 1.2em;
    font-style: italic;
    color: #555;
    padding: 20px;
  }
  #testimonial-author {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    color: #333;
  }