.testi-section {
  padding: 80px 0;
  background: #ffffff;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

.testi-header {
  text-align: center;
  margin-bottom: 48px;
  padding: 0 24px;
}

.testi-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #999999;
  margin: 0 0 10px;
}

.testi-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 600;
  color: #111111;
  margin: 0;
  line-height: 1.2;
}

/* Fade edges */
.testi-marquee-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.testi-marquee-wrap::before,
.testi-marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.testi-marquee-wrap::before {
  left: 0;
  background: linear-gradient(to right, #ffffff, transparent);
}

.testi-marquee-wrap::after {
  right: 0;
  background: linear-gradient(to left, #ffffff, transparent);
}

/*
  The track holds 2 identical sets of 6 cards.
  Animating 0 → -50% shifts exactly one full set,
  then resets instantly — perfectly seamless loop.
*/
.testi-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 12px 0 16px;
  animation: testi-loop 35s linear infinite;
}

.testi-track:hover {
  animation-play-state: paused;
}

@keyframes testi-loop {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Cards */
.testi-card {
  flex-shrink: 0;
  width: 300px;
  padding: 28px 24px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.25s ease;
  cursor: default;
}

.testi-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.testi-stars {
  color: #f4a832;
  font-size: 13px;
  letter-spacing: 2px;
}

.testi-quote {
  font-size: 14.5px;
  line-height: 1.7;
  color: #444444;
  margin: 0;
  flex: 1;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
}

.testi-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #555555;
  flex-shrink: 0;
}

.testi-author strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #111111;
}

.testi-author span {
  font-size: 12px;
  color: #999999;
}

@media (max-width: 600px) {
  .testi-section { padding: 56px 0; }
  .testi-card { width: 260px; padding: 22px 18px; }
}