/* ===== Testimonials Section ===== */
.testimonials {
  background: #1a1510;
  color: var(--color-text-inverse);
  overflow: hidden;
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.testimonials .section-heading {
  margin-bottom: var(--space-2xl);
}

.testimonials .section-heading__label {
  color: var(--color-accent-warm-light);
}

.testimonials .section-heading__label::before {
  background: var(--color-accent-warm-light);
}

.testimonials .section-heading__title {
  color: var(--color-text-inverse);
}

.testimonials .section-heading__title::after {
  background: var(--gradient-gold);
}

.testimonials .section-heading__subtitle {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--fs-sm);
  margin-top: var(--space-sm);
  font-style: italic;
}

/* Carousel layout: arrow  thumbs  card  thumbs  arrow */
.testimonials-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
}

/* Navigation arrows */
.testimonials-nav {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.testimonials-nav:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border-color: rgba(255, 255, 255, 0.35);
}

/* Thumbnail strips */
.testimonials-thumbs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}

.testimonials-thumb {
  border-radius: 50%;
  cursor: pointer;
  transition: opacity 400ms ease, transform 400ms ease, box-shadow 400ms ease;
  background: linear-gradient(135deg, #3a3020 0%, #2a2010 100%);
  border: 1px solid rgba(196, 160, 80, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  color: var(--color-accent-warm-light);
  letter-spacing: 0.05em;
  user-select: none;
}

/* Inner thumbnails (closer to center card) — larger & more visible */
.testimonials-thumbs--left .testimonials-thumb:last-child,
.testimonials-thumbs--right .testimonials-thumb:first-child {
  width: 60px;
  height: 60px;
  font-size: 1.1rem;
  opacity: 0.6;
  border-color: rgba(196, 160, 80, 0.4);
}

/* Outer thumbnails (further from center) — smaller & more faded */
.testimonials-thumbs--left .testimonials-thumb:first-child,
.testimonials-thumbs--right .testimonials-thumb:last-child {
  width: 46px;
  height: 46px;
  font-size: 0.85rem;
  opacity: 0.3;
  border-color: rgba(196, 160, 80, 0.15);
}

.testimonials-thumb:hover {
  opacity: 0.85;
  transform: scale(1.08);
  box-shadow: 0 0 0 2px rgba(196, 160, 80, 0.35);
}

/* Main card */
.testimonial-main {
  flex: 0 0 auto;
  width: 360px;
  max-width: 100%;
  overflow: hidden;
}

.testimonial-card {
  background: #2a2218;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-lg) var(--space-xl);
  height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.testimonial-card::-webkit-scrollbar {
  width: 3px;
}

.testimonial-card::-webkit-scrollbar-track {
  background: transparent;
}

.testimonial-card::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 99px;
}

.testimonial-card::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.testimonial-card::-webkit-scrollbar-button {
  display: none;
}

/* Directional slide animations */
.testimonial-card.slide-out-left {
  animation: slideOutLeft 300ms ease-in forwards;
}
.testimonial-card.slide-in-right {
  animation: slideInRight 300ms ease-out forwards;
}
.testimonial-card.slide-out-right {
  animation: slideOutRight 300ms ease-in forwards;
}
.testimonial-card.slide-in-left {
  animation: slideInLeft 300ms ease-out forwards;
}

@keyframes slideOutLeft {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(-60px); opacity: 0; }
}
@keyframes slideInRight {
  from { transform: translateX(60px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutRight {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(60px); opacity: 0; }
}
@keyframes slideInLeft {
  from { transform: translateX(-60px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

.testimonial-stars {
  font-size: 1.35rem;
  color: #f5c842;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
  line-height: 1;
}

.testimonial-name {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--color-accent-warm-light);
  margin-bottom: var(--space-sm);
}

.testimonial-quote {
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
  color: rgba(255, 255, 255, 0.7);
}

/* CTA */
.testimonials-cta {
  margin-top: var(--space-2xl);
}

.testimonials-cta__text {
  color: rgba(255, 255, 255, 0.55);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-md);
}

/* Responsive */
@media (max-width: 1023px) {
  .testimonials-thumbs--left .testimonials-thumb:last-child,
  .testimonials-thumbs--right .testimonials-thumb:first-child {
    width: 50px;
    height: 50px;
    font-size: 0.95rem;
  }

  .testimonials-thumbs--left .testimonials-thumb:first-child,
  .testimonials-thumbs--right .testimonials-thumb:last-child {
    width: 38px;
    height: 38px;
    font-size: 0.75rem;
  }

  .testimonial-main {
    width: 320px;
  }

  .testimonials-carousel {
    gap: var(--space-md);
  }
}

@media (max-width: 767px) {
  .testimonials-thumbs {
    display: none;
  }

  .testimonial-main {
    width: 100%;
    flex: 1;
  }

  .testimonials-nav {
    width: 38px;
    height: 38px;
    font-size: 1.25rem;
  }

  .testimonial-card {
    padding: var(--space-md);
    height: 240px;
  }

  .testimonials-carousel {
    gap: var(--space-sm);
  }
}
