/* ══════════════════════════════════════
   TESTIMONIALS — Scroll-driven marquee
   ══════════════════════════════════════ */

#testimonials {
  background: rgba(245,245,247,0.85);
  position: relative;
  z-index: 1;
  /* Natural scroll height — user scrolls through this section */
  padding-bottom: 80px;
}

/* Section header */
.test-header {
  text-align: center;
  padding: 100px 40px 60px;
}

.test-header .section-tag {
  justify-content: center;
  color: #4B9B44;
}

.test-header .section-title {
  color: #1D1D1D;
  margin-top: 12px;
}

/* ── Outer container — normal height, no pinning ── */
#test-sticky-outer {
  position: relative;
}

#test-sticky-inner {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Fade masks on left and right edges */
.test-fade-left,
.test-fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 160px;
  z-index: 2;
  pointer-events: none;
}

.test-fade-left {
  left: 0;
  background: linear-gradient(90deg, rgba(245,245,247,0.95) 0%, transparent 100%);
}

.test-fade-right {
  right: 0;
  background: linear-gradient(-90deg, rgba(245,245,247,0.95) 0%, transparent 100%);
}

/* ── Track wrapper ── */
#test-track-wrapper {
  width: 100%;
  overflow: visible;
  position: relative;
  z-index: 1;
}

/* ── Moving track — continuous auto-scroll, same pattern as the logos marquee ── */
#test-track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding: 40px 80px;
  will-change: transform;
  animation: test-marquee 100s linear infinite;
}

#test-track.paused {
  animation-play-state: paused;
}

@keyframes test-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Testimonial Cards ── */
.tcard {
  width: 360px;
  flex-shrink: 0;
  background: #FFFFFF;
  border: 1px solid rgba(29,29,29,0.08);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s ease,
              box-shadow 0.3s ease,
              border-color 0.3s ease;
  cursor: default;
  overflow: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.tcard:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(75,155,68,0.12);
  border-color: rgba(75,155,68,0.25);
}

/* Featured card — green gradient */
.tcard.featured {
  background: linear-gradient(197deg, #A4DE02 0%, #4B9B44 70%);
  border-color: transparent;
  box-shadow: 0 8px 40px rgba(75,155,68,0.35);
}

.tcard.featured:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 60px rgba(75,155,68,0.45);
}

/* Top row — stars + platform */
.tcard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stars {
  color: #F5C542;
  font-size: 15px;
  letter-spacing: 2px;
}

.tplatform {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #9AA0A6;
  letter-spacing: 1.5px;
}

.tcard.featured .tplatform {
  color: rgba(255,255,255,0.7);
}

/* Quote */
.tquote {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #54595F;
  margin: 0;
  flex: 1;
}

.tcard.featured .tquote {
  color: rgba(255,255,255,0.95);
  font-weight: 500;
}

/* Author */
.tauthor {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tavatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(197deg, #A4DE02 0%, #4B9B44 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.tcard.featured .tavatar {
  background: rgba(255,255,255,0.25);
  color: white;
}

.tname {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #1D1D1D;
}

.tcard.featured .tname {
  color: white;
}

.trole {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #9AA0A6;
  margin-top: 2px;
}

.tcard.featured .trole {
  color: rgba(255,255,255,0.65);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .tcard { width: 300px; padding: 24px; }
  .test-fade-left,
  .test-fade-right { width: 60px; }
  #test-track { padding: 30px 40px; gap: 16px; }
}
