/* Minimal Testimonials Section */
#reddit-testimonials {
  position: relative;
  padding: 2rem 0;
}

.testimonials-container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
}

.testimonials-wrapper {
  padding: 0 1.5rem;
  position: relative;
  overflow: hidden;
}

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

.testimonials-header h2 {
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.testimonials-header p {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 0;
}

@media (min-width: 640px) {
  .testimonials-header h2 {
    font-size: 2.25rem;
  }
  .testimonials-header p {
    font-size: 1rem;
  }
}

.testimonials-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.testimonials-scroll::-webkit-scrollbar {
  display: none;
}

/* Hide partial cards with precise clipping */
.testimonials-wrapper {
  position: relative;
  overflow: hidden;
}

.testimonials-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50px;
  background: linear-gradient(to left, rgba(251, 251, 255, 1), rgba(251, 251, 255, 0.8), transparent);
  pointer-events: none;
  z-index: 10;
}

.testimonial-card {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: calc(100vw - 3rem);
  min-width: 280px;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  transition: box-shadow 0.15s ease-in-out;
}

@media (min-width: 480px) {
  .testimonial-card {
    width: 350px;
  }
}

@media (min-width: 640px) {
  .testimonial-card {
    width: 380px;
  }
}

@media (min-width: 768px) {
  .testimonial-card {
    width: 400px;
  }
  
  .testimonials-wrapper::after {
    width: 80px;
  }
}

@media (min-width: 1024px) {
  .testimonial-card {
    width: 420px;
  }
}

.testimonial-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  height: 2.25rem;
  width: 2.25rem;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.9);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.testimonial-meta {
  min-width: 0;
}

.testimonial-user {
  font-size: 0.875rem;
  font-weight: 500;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.testimonial-details {
  font-size: 0.75rem;
  color: #64748b;
}

.testimonial-text {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #374151;
}

@media (min-width: 640px) {
  .testimonial-text {
    font-size: 0.9375rem;
    line-height: 1.6;
  }
}

.testimonials-fade-left {
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 2.5rem;
  background: linear-gradient(to right, white, transparent);
  border-radius: 1rem 0 0 1rem;
}

.testimonials-fade-right {
  pointer-events: none;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2.5rem;
  background: linear-gradient(to left, white, transparent);
  border-radius: 0 1rem 1rem 0;
}

.testimonials-indicators {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #64748b;
}

.testimonials-dot {
  display: inline-flex;
  height: 0.375rem;
  width: 0.375rem;
  border-radius: 50%;
  background: #cbd5e1;
}