.testimonial-section {
  background-color: #f9f7fc;
  width: 100%;
  padding: 2rem 0; /* Adjust as needed */
}
.testimonial-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1rem; /* Optional: add horizontal padding on smaller screens */
  background-color: f9f7fc;
}
.testimonial-wrapper {
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
}

.scroll-row {
  overflow: hidden;
  width: 100%;
  margin-bottom: 2rem;
}

.scroll-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem;
  width: max-content;
  animation: scroll-horizontal 30s linear infinite;
}

.scroll-row.right .scroll-track {
  animation-name: scroll-horizontal-reverse;
}

@keyframes scroll-horizontal {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scroll-horizontal-reverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.testimonial-card {
  position: relative; /* Required for absolutely positioned icon */
  background: #fff;
  border: 1px solid #e2dff0; 
  border-radius: 15px;
  padding: 2rem;
  min-width: 300px;
  max-width: 700px;
  flex: 0 0 auto;
  white-space: normal;
  word-wrap: break-word;
}


.testimonial-content p {
  margin: 0.5rem 0 0 0;
  line-height: 1.5;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

.stars {
  color: #f90;
  margin-top: 0.5rem;
}

.gradient-left,
.gradient-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  pointer-events: none;
  z-index: 1;
}

/* Update gradient base color to match section background: #f9f7fc */
.gradient-left {
  left: 0;
  background: linear-gradient(to right, #f9f7fc, rgba(249, 247, 252, 0));
}

.gradient-right {
  right: 0;
  background: linear-gradient(to left, #f9f7fc, rgba(249, 247, 252, 0));
}
.quote-icon {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 5rem;
  color: #eeeeee;
  pointer-events: none;
}

@media (max-width: 768px) {
  .testimonial-section {
    display: none;
  }
}
}
