/* Testimonials Carousel Styles */
.testimonials-section {
  padding: 6rem 0;
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.3;
  z-index: 0;
}

.testimonials-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 3rem;
}

.testimonials-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1e293b;
  position: relative;
  display: inline-block;
}

.testimonials-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #5d5dff;
  border-radius: 3px;
}

.testimonials-subtitle {
  font-size: 1.125rem;
  color: #64748b;
  max-width: 600px;
  margin: 1rem auto 0;
}

.testimonials-carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 1rem 0;
}

.testimonials-carousel {
  display: flex;
  width: 100%;
  overflow: hidden;
}

.testimonials-carousel-inner {
  display: flex;
  gap: 1.5rem;
  animation: marquee 40s linear infinite;
  padding: 1rem 0;
}

.testimonials-carousel-inner:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% / 2));
  }
}

.testimonial-card {
  flex: 0 0 auto;
  width: 350px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e2e8f0;
  position: relative;
  z-index: 1;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.testimonial-content {
  margin-bottom: 1.5rem;
}

.quote-icon {
  color: #5d5dff;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #334155;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1rem;
  border: 2px solid #5d5dff;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h5 {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.25rem;
}

.author-info p {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

.gradient-overlay-left,
.gradient-overlay-right {
  position: absolute;
  top: 0;
  height: 100%;
  width: 20%;
  pointer-events: none;
  z-index: 10;
}

.gradient-overlay-left {
  left: 0;
  background: linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0));
}

.gradient-overlay-right {
  right: 0;
  background: linear-gradient(to left, #ffffff, rgba(255, 255, 255, 0));
}

.testimonial-stats {
  margin-top: 4rem;
  text-align: center;
}

.testimonial-stats .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.testimonial-stats .col-md-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
  padding: 0 15px;
}

.stat-item {
  background-color: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #5d5dff;
  margin: 0 0 0.5rem;
}

.stat-item p {
  font-size: 1rem;
  color: #64748b;
  margin: 0;
}

@media (max-width: 768px) {
  .testimonials-section {
    padding: 4rem 0;
  }
  
  .testimonials-title {
    font-size: 2rem;
  }
  
  .testimonial-card {
    width: 300px;
    padding: 1.5rem;
  }
  
  .testimonial-stats .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 1rem;
  }
}
