/* ============================================================
   RELIANCE CLUB — TESTIMONIAL CAROUSEL
   ============================================================ */

.testimonials-section {
  padding: var(--space-20) 0;
  background: #FFFFFF;
  border-bottom: var(--border-gold);
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212,175,55,0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.testimonials__inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}

.testimonials__title {
  font-size: var(--text-4xl);
  color: #011937;
  margin-bottom: var(--space-4);
}

.testimonials__subtitle {
  color: var(--gold-pale);
  font-family: var(--font-body);
  font-size: var(--text-md);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-12);
}

.carousel-container {
  position: relative;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-track {
  width: 100%;
  position: relative;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.carousel-item.is-active {
  position: relative;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.testimonial-card {
  background: rgba(1, 25, 55, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(201,169,110,0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-8);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  width: 100%;
}

.testimonial-quote {
  font-size: var(--text-xl);
  font-style: italic;
  color: #011937;
  line-height: var(--lead-relaxed);
  margin-bottom: var(--space-6);
  font-family: var(--font-body);
}

.testimonial-stars {
  color: var(--gold);
  font-size: var(--text-md);
  margin-bottom: var(--space-4);
  letter-spacing: 2px;
}

.testimonial-author {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--gold-pale);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.testimonial-source {
  font-size: var(--text-xs);
  color: #888888;
  margin-top: 4px;
}

/* Carousel Controls */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--ivory);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--charcoal-dark);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.carousel-btn--prev {
  left: -60px;
}

.carousel-btn--next {
  right: -60px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-8);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.carousel-dot.is-active {
  background: var(--gold);
  transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .carousel-btn--prev {
    left: -20px;
  }
  .carousel-btn--next {
    right: -20px;
  }
}

@media (max-width: 768px) {
  .carousel-btn {
    display: none; /* Hide arrows on small screens, rely on touch/swipe/dots */
  }
  .testimonial-card {
    padding: var(--space-8) var(--space-6);
  }
  .testimonial-quote {
    font-size: var(--text-lg);
  }
}
