/* React Testimonials Block Styles */

.react-testimonials {
  padding: 2rem 0;
}

.testimonials-container.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.testimonials-container.list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.testimonials-container.slider {
  display: flex;
  overflow-x: auto;
  gap: 2rem;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
}

.testimonials-container.slider .testimonial-card {
  min-width: 400px;
  scroll-snap-align: start;
}

.testimonial-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.testimonial-header {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.testimonial-avatar {
  flex-shrink: 0;
}

.testimonial-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author-info h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 0.25rem 0;
}

.testimonial-author-info .company {
  font-size: 0.9rem;
  color: #666;
  margin: 0 0 0.5rem 0;
}

.rating {
  display: flex;
  gap: 0.25rem;
}

.star {
  color: #e0e0e0;
  font-size: 1.2rem;
}

.star.filled {
  color: #ffc107;
}

.testimonial-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 1rem 0;
}

.testimonial-content p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.react-testimonials-loading,
.react-testimonials-error {
  text-align: center;
  padding: 4rem 0;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #2196f3;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .testimonials-container.grid {
    grid-template-columns: 1fr;
  }

  .testimonials-container.slider .testimonial-card {
    min-width: 300px;
  }

  .testimonial-header {
    flex-direction: column;
    text-align: center;
  }
}
