.testimonials {
  background: #e1ccad;
  padding: 40px 20px;
  text-align: center;
  font-family: Arial, sans-serif;
}

.testimonials h2 {
  font-size: 2rem;
  margin-bottom: 40px;
}

.testimonial-container {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  min-height: 180px; /* minimum height for shorter testimonials */
  transition: min-height 0.3s ease;
}

.testimonial {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transition: opacity 1s ease-in-out;
}

.testimonial.active {
  opacity: 1;
  position: relative;
}

.testimonial p {
  font-style: italic;
  font-size: 1.2rem;
  color: #333;
}

.testimonial h4 {
  margin-top: 15px;
  color: #764979;
  font-weight: bold;
}

/* Navigation arrows */
.testimonial-nav {
  margin-top: 30px;
}

.testimonial-nav button {
  background: #000;
  border: 2px solid #d580df;
  color: #d580df;
  font-size: 1.5rem;
  padding: 5px 15px;
  margin: 0 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-nav button:hover {
  background: #d580df;
  color: #fff;
}