/* Testimonials Section */
.testimonials {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.testimonial-slider {
  width: 100%;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  gap: 2rem;
  padding: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

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

.testimonial-card {
  flex: 0 0 400px;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
  min-height: 300px;
}

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

.testimonial-card p {
  flex: 1;
  margin: 0;
}

.testimonial-divider {
  width: 100%;
  height: 1px;
  background: var(--glass-border);
  margin: 1.5rem 0;
}

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

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f3f4f6;
  padding: 8px;
  color: #6b7280;
  border: 2px solid #e5e7eb;
}

.testimonial-author .author-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.author-info .author-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.star-rating {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
}

.star {
  color: #fbbf24; /* Amber color for filled stars */
  font-size: 1.25rem;
}

.star-empty {
  color: #d1d5db; /* Gray color for empty stars */
  font-size: 1.25rem;
}

.testimonial-author .name {
  font-weight: 600;
  line-height: 1.2;
}

.testimonial-author .title {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.2;
}

/* Reuse the same scroll button styles from templates.css */
.testimonials .scroll-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 10;
  transition: all 0.2s ease;
}

.testimonials .scroll-button:hover {
  background: #f3f4f6;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.testimonials .scroll-button.prev {
  left: -20px;
}

.testimonials .scroll-button.next {
  right: -20px;
}

.testimonials .scroll-button svg {
  width: 24px;
  height: 24px;
  color: #4b5563;
}
