/* Testimonials Plugin Styles */
/* Horizontal scrolling testimonials with equal-sized containers */

.testimonials-container {
  position: relative;
  overflow: hidden;
  margin: 2rem 0;
  border-radius: 12px;
  padding: 1rem 0;
}

/* Fade out effects on left and right */
.testimonials-container::before,
.testimonials-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 10;
  pointer-events: none;
}

.testimonials-container::before {
  left: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.testimonials-container::after {
  right: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
}

.testimonials-track {
  display: flex;
  animation: scroll-testimonials var(--scroll-duration, 60s) linear infinite;
  will-change: transform;
}

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

/* Scroll speed variants */
.scroll-speed-slow {
  --scroll-duration: 90s;
}

.scroll-speed-medium {
  --scroll-duration: 60s;
}

.scroll-speed-fast {
  --scroll-duration: 30s;
}

/* Individual testimonial cards - all equal size */
.testimonial-card {
  min-width: 450px;
  max-width: 450px;
  width: 450px;
  margin: 0 1rem;
  padding: 2rem;
  background: #F4F4F4;
  border: 1px solid #F4F4F4;
  border-radius: 15px 0 15px 0;
  flex-shrink: 0;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 280px;
  /* Fixed height for equal containers */
  overflow: hidden;
  box-sizing: border-box;
}

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

.testimonial-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonial-text {
  flex-grow: 1;
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.testimonial-text blockquote {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #374151;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  position: relative;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  /* Limit to 5 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* Author section */
.testimonial-author {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #E0E0E0;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.company-logo-link,
.company-logo-wrapper {
  flex-shrink: 0;
  width: 144px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid #E0E0E0;
  transition: all 0.2s ease;
}

.company-logo-link:hover {
  background: #f9f9f9;
}

.company-logo {
  max-width: 144px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.author-details {
  flex-grow: 1;
  min-width: 0;
}

.author-name {
  font-weight: 600;
  font-size: 1rem;
  color: #111827;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.author-job {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* Infinite scroll animation */
@keyframes scroll-testimonials {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .testimonial-card {
    min-width: 280px;
    max-width: 280px;
    width: 280px;
    padding: 1.5rem;
    height: 260px;
    margin: 0 0.5rem;
    background: #F4F4F4;
    border: 1px solid #F4F4F4;
    border-radius: 15px 0 15px 0;
  }

  .testimonial-text blockquote {
    font-size: 1rem;
    -webkit-line-clamp: 3;
  }

  .author-name {
    font-size: 0.9rem;
  }

  .author-job {
    font-size: 0.8rem;
  }

  .company-logo-link,
  .company-logo-wrapper {
    width: 120px;
    height: 40px;
  }

  .company-logo {
    max-width: 120px;
    max-height: 40px;
  }
}

@media (max-width: 480px) {
  .testimonial-card {
    min-width: 260px;
    max-width: 260px;
    width: 260px;
    padding: 1.25rem;
    height: 240px;
    background: #F4F4F4;
    border: 1px solid #F4F4F4;
    border-radius: 15px 0 15px 0;
  }

  .company-logo-link,
  .company-logo-wrapper {
    width: 100px;
    height: 33px;
  }

  .company-logo {
    max-width: 100px;
    max-height: 33px;
  }

  .testimonials-container {
    margin: 1.5rem 0;
    padding: 0.75rem 0;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .testimonials-track {
    animation: none;
  }

  .testimonial-card {
    transition: none;
  }
}

/* Print styles */
@media print {
  .testimonials-container {
    background: none;
    overflow: visible;
  }

  .testimonials-track {
    animation: none;
    flex-wrap: wrap;
  }

  .testimonial-card {
    break-inside: avoid;
    background: #F4F4F4;
    border: 1px solid #000;
    border-radius: 15px 0 15px 0;
  }

}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .testimonial-card {
    border: 2px solid #000;
    background: #fff;
    border-radius: 15px 0 15px 0;
  }

}