.section-testimonials {
  padding: 50px 0;
  text-align: center;
}

.section-testimonials .heading {
  text-align: center;
  font-size: 24px;
  margin-bottom: 30px;
}

.container-testimonials {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Ensures items wrap on smaller screens */
}

.testimonial-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 350px; /* Set a max width for items */
  padding: 20px;
  margin-bottom: 20px;
}

.testimonial-image {
  border-radius: 50%;
  width: 80px;
  height: 80px;
}

.testimonial-content h3 {
  font-size: 1.2rem;
  margin-top: 10px;
  text-align: left;
}

.testimonial-content p {
  color: #666;
  text-align: left;
}

.testimonial-content h4 {
  font-size: 1.1rem;
  margin: 10px 0;
  color: #333;
  text-align: left;
}

.testimonial-content-profile {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  align-items: center;
  padding-bottom: 1rem;
}

.testimonial-content-profile-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Responsive styles */
@media screen and (min-width: 768px) {
  .section-testimonials {
    padding: 40px 20px;
  }

  .section-testimonials .heading {
    font-size: 36px;
  }

  .container-testimonials {
    justify-content: space-between;
  }

  .testimonial-item {
    width: 30%;
    margin-bottom: 0; /* Remove margin between items on larger screens */
  }
}

@media screen and (max-width: 767px) {
  .testimonial-item {
    width: 100%;
    margin-bottom: 20px; /* Add spacing between items on small screens */
  }

  .testimonial-image {
    width: 60px;
    height: 60px;
  }

  .testimonial-content h3 {
    font-size: 1rem;
  }

  .testimonial-content h4 {
    font-size: 1rem;
  }
}
