.carousel-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.testimonial {
  background-color: #fff; /* White background */
  border: 1px solid #ddd; /* Light grey border */
  margin-bottom: 2rem; /* Spacing between testimonials */
  width: 25em;
}

/* Custom CSS for Testimonials */
/*
.testimonial:hover {
    background-color: #f0f0f0; !* Light grey background on hover *!
}
*/

.avatar-initials,
.br-100.h3.w3 {
  width: 48px; /* Avatar size */
  height: 48px; /* Avatar size */
  object-fit: cover; /* For avatars */
  display: inline-block;
  vertical-align: middle; /* Center avatar/initials vertically */
}

.avatar-initials {
  background-color: #513a83; /* Custom purple background */
  color: white; /* White text */
  font-size: 1.5em; /* Adjust size as needed */
  display: flex;
  justify-content: center;
  align-items: center;
}

.testimonial-name {
  color: #513a83;
  display: inline-block;
  font-weight: bolder;
  vertical-align: middle; /* Center name vertically with avatar */
  margin-left: 1rem; /* Spacing between avatar and name */
}

.rating {
  width: 140px;
  height: 27px;
  display: block;
}

@media (max-width: 600px) {
  .main-content-wrapper {
    margin-left: 0;
    max-width: none;
  }
}

.carousel-container {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 800px;
  /* padding: 0px 25px; */
  /* padding-bottom: 25px; */
  /* border-radius: 10px; */
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
  overflow: hidden;
}

.carousel-content {
  overflow: hidden;
  position: relative;
  height: 270px;
}

.testimonial {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.avatar-initials {
  line-height: 48px; /* Centering initials vertically */
  text-align: center; /* Centering initials horizontally */
}

.carousel-button {
  display: flex;
  gap: 100px;
  margin-top: 5px;
  margin-bottom: 10px;
}

.carousel-prev,
.carousel-next {
  cursor: pointer;
  /* position: absolute; */
  /* bottom: 10px; */
  width: 30px; /* Smaller button width */
  height: 30px; /* Smaller button height */
  color: white;
  background-color: #553e8c;
  font-weight: bold;
  font-size: 24px;
  transition: 0.6s ease;
  border-radius: 50%;
  user-select: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-prev {
  left: 20px;
  /* bottom: 20px; */
}

.carousel-next {
  right: 20px;
  /* bottom: 20px; */
}

.read-more-link {
  margin-top: 10px;
  text-align: right;
  color: #007bff;
  /* text-decoration: underline; */
}

/* Ensure hovering does not affect button size */
.carousel-prev:hover,
.carousel-next:hover {
  background-color: #3f2779;
}

@media screen and (max-width: 768px) {
  .carousel-content {
    height: 290px;
  }
}
@media screen and (max-width: 426px) {
  .carousel-content {
    height: 350px;
  }
}
