.testimonial-section {
  position: relative;
  width: 100%;
  font-family: "Myriad Pro", Arial, sans-serif;
}

.testimonial-image-wrapper {
  position: relative;
  width: 100%;
}

.testimonial-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.testimonial-text-top {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%); /* overlaps 50% */
  text-align: center;
  width: 80%; /* adjust text width */
  padding: 20px;
}

.testimonial-text-top h2 {
  font-size: 36px;
  margin-bottom: 10px;
  color: var(--purple-color);
}

.testimonial-text-top p {
  font-size: 16px;
}

.testimonial-container {
  display: flex;
  gap: 30px;
  justify-content: center; /* center the cards horizontally */
  flex-wrap: wrap; /* wrap on smaller screens */
  padding: 100px 20px;
  padding-bottom: 20px;
}

.testimonial-card {
  background: #faf8f5; /* light background */
  border-radius: 15px;
  padding: 30px 25px 25px;
  max-width: 320px;
  box-sizing: border-box;
  font-family: "Myriad Pro", Arial, sans-serif;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.05);
  position: relative;
  border: 10px solid var(--pink-color);
}

.testimonial-card:hover {
  transform: translateY(-4px);
}

.quote-icon {
  font-size: 40px;
  font-weight: 900;
  color: #6c2c07; /* bright blue quote */
  position: absolute;
  top: 20px;
  left: 20px;
  line-height: 1;
  user-select: none;
}

.testimonial-text {
  margin-top: 40px; /* leave space for quote */
  font-size: 16px;
  line-height: 1.5;
  color: #1a1a1a;
  font-weight: 500;
}

.testimonial-author {
  margin-top: 25px;
  text-align: right; /* Align content to the right */
  gap: 20px;
  display: flex;
  flex-direction: column; /* Stack name and role vertically */
  align-items: flex-end; /* Align items to the right */
}

.author-info strong {
  display: block;
  font-weight: 700;
  color: #000;
  font-size: 18px;
  padding-bottom: 10px;
}

.author-info span {
  font-size: 16px;
  color: #6c2c07;
}

@media (max-width: 768px) {
  .testimonial-text-top {
    position: relative;
    transform: translate(-50%, 0%);
    text-align: center;
    width: 80%; /* adjust text width */
    padding: 0px;
  }

  .testimonial-container {
    padding: 20px 20px;
  }
}

@media (max-width: 400px) {
  .testimonial-text-top {
    width: 90%;
  }

  .testimonial-text-top h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--purple-color);
  }
}
