/* Enhanced Testimonial Slider Styles */
.testimonial-slider {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 2rem;
  padding: 2rem 1rem;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  scroll-snap-type: x mandatory;
}

.testimonial-slider::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.testimonial-modern {
  min-width: 300px;
  width: calc(100% - 2rem);
  max-width: 500px;
  flex-shrink: 0;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  scroll-snap-align: center;
}

.testimonial-brand {
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.testimonial-brand img {
  max-height: 40px;
  max-width: 120px;
  object-fit: contain;
}

.testimonial-text {
  padding: 2rem;
  background-color: white;
  border-radius: 0 0 15px 15px;
}

.testimonial-stars {
  color: var(--secondary);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.testimonial-text blockquote {
  position: relative;
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: var(--dark);
}

.testimonial-text blockquote::before {
  content: '"';
  font-size: 4rem;
  color: rgba(var(--secondary-rgb), 0.2);
  position: absolute;
  top: -20px;
  left: -15px;
  font-family: Georgia, serif;
  line-height: 1;
}

.author-info {
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 1.5rem;
}

.author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1rem;
  border: 2px solid var(--primary-light);
}

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

.author-name {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.author-title {
  font-size: 0.85rem;
  color: var(--gray);
}

/* Testimonial navigation buttons */
.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.testimonial-nav button {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.testimonial-nav button:hover {
  background-color: var(--secondary);
  transform: translateY(-3px);
}

/* Make testimonials more responsive on mobile */
@media (max-width: 768px) {
  .testimonial-modern {
    min-width: 280px;
  }
  
  .testimonial-text {
    padding: 1.5rem;
  }
}

/* Add slider animation */
@keyframes testimonialSlide {
  from {
    transform: translateX(20px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.testimonial-modern {
  animation: testimonialSlide 0.5s ease forwards;
}