/* ───── TESTIMONIALS SECTION ───── */
#testimonials-section {
  position: relative;
}

/* Wrapper holds the blurred bg + grid */
.testimonials-wrap {
  position: relative;
}

/* Dark background panel with feathered/blurred edges */
.testimonials-bg {
  position: absolute;
  inset: -40px -60px;
  background: #060608;
  z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse 54% 52% at 50% 50%, black 35%, transparent 70%);
  mask-image: radial-gradient(ellipse 54% 52% at 50% 50%, black 35%, transparent 70%);
}

.testimonials-grid {
  position: relative;
  z-index: 1;
}

/* ───── TESTIMONIALS HORIZONTAL CAROUSEL ───── */
.testimonials-grid {
  position: relative;
  display: flex;
  direction: ltr;
  padding: 40px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

/* All cards sit inside a scrolling slide wrapper (built by JS) */
.testimonials-slide {
  display: flex;
  gap: 20px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  animation: tscroll 90s linear infinite;
}

.testimonials-slide:hover {
  animation-play-state: paused;
}

@keyframes tscroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}

.testimonial-card {
  position: relative;
  width: 320px;
  min-width: 320px;
  flex-shrink: 0;
  border-radius: 16px;
  border: 1px solid #333;
  background: #111;
  overflow: hidden;
  transition: border-color 0.3s;
  cursor: default;
}

.testimonial-card:hover {
  border-color: var(--card-border, #B8963E);
}

/* Spotlight effect on card hover */
.testimonial-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--card-border, rgba(184,150,62,0.15)), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 1;
}

.testimonial-card:hover::before {
  opacity: 1;
}

/* Card gradient background — creative banner */
.testimonial-card-bg {
  height: 90px;
  background: var(--card-gradient, linear-gradient(145deg, #B8963E, #000));
  position: relative;
  overflow: hidden;
}

.testimonial-card-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(255,255,255,0.05) 0%, transparent 40%);
}

.testimonial-card-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to top, #111, transparent);
}

.testimonial-content {
  padding: 20px 24px 24px;
  position: relative;
  z-index: 2;
  direction: inherit;
}

/* Restore text direction from document */
[dir="rtl"] .testimonial-content { direction: rtl; text-align: right; }

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid rgba(17,17,17,0.95);
  margin-top: -48px;
  object-fit: cover;
  display: block;
}

.testimonial-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #e8e8e8;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-top: 12px;
}

.testimonial-role {
  font-family: 'IBM Plex Serif', serif;
  font-size: 0.78rem;
  color: #888;
  margin-top: 2px;
}

.testimonial-text {
  font-family: 'IBM Plex Serif', serif;
  font-size: 0.85rem;
  color: #aaa;
  line-height: 1.6;
  margin-top: 14px;
}

/* Responsive */
@media (max-width: 480px) {
  .testimonial-card {
    width: 280px;
    min-width: 280px;
  }
}
