.testimonials-section {
  width: 100%;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box; /* Ensure padding is included in element's total width and height */
}

/* Swiper specific styles */
.testimonials-section .testimonial-slider {
  width: 100%;
  padding-bottom: 50px; /* Space for pagination */
}

.testimonials-section .testimonial-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: auto; /* Allow height to adjust based on content */
  min-height: 250px; /* Adjust as needed to make cards similar height */
}

.testimonials-section .author-info {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.testimonials-section .author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
  border: 3px solid #ff7f50; /* Coral border */
  flex-shrink: 0; /* Prevent avatar from shrinking */
}

.testimonials-section .author-name {
  font-size: 1.3em;
  color: #333;
  margin: 0;
  font-weight: bold; /* Make name bold as in the image */
}

.testimonials-section .author-role {
  font-size: 0.9em;
  color: #777;
  margin: 5px 0 0;
}

.testimonials-section .testimonial-text {
  font-size: 1em;
  color: #555;
  line-height: 1.6;
}

/* Swiper Pagination Customization */
.testimonials-section .swiper-pagination-bullet {
  background-color: #ccc; /* Default dot color */
  opacity: 1;
}

.testimonials-section .swiper-pagination-bullet-active {
  background-color: #ff7f50; /* Active dot color (matching the coral) */
}

/* Ensure pagination is centered correctly */
.testimonials-section .swiper-pagination {
  bottom: 0px; /* Adjust if needed to position above the bottom of the section */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Responsive adjustments */
@media (max-width: 992px) { /* Adjust breakpoint for 1 or 2 cards */
  .testimonials-section .section-title {
      font-size: 3em;
  }

  .testimonials-section .section-title::before {
      font-size: 0.55em;
  }
}

@media (max-width: 768px) {
  .testimonials-section .testimonial-card {
      padding: 25px;
  }

  .testimonials-section .author-avatar {
      width: 70px;
      height: 70px;
  }

  .testimonials-section .author-name {
      font-size: 1.2em;
  }

  .testimonials-section .testimonial-text {
      font-size: 0.95em;
  }
}

@media (max-width: 576px) { 
  .testimonials-section .section-subtitle {
      font-size: 1em;
      margin-bottom: 30px;
  }

  .testimonials-section .testimonial-card {
      padding: 20px;
      min-height: unset; /* Allow height to collapse on very small screens */
  }

  .testimonials-section .author-avatar {
      width: 60px;
      height: 60px;
  }

  .testimonials-section .author-name {
      font-size: 1.1em;
  }

  .testimonials-section .testimonial-text {
      font-size: 0.9em;
  }
}