/* =====================
   TESTIMONIALS SECTION
   ===================== */
.testimonials-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 5rem 1.25rem;
  background-color: var(--bg-light);
}

/* =====================
   TOP HEADER (Centered)
   ===================== */
.t-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
  padding-top: 1rem;
}

.t-header__title {
  font-family: var(--font-heading);
  font-size: var(--font-size-h2);
  font-weight: 600;
  line-height: 1.2;
  color: var(--charcoal-black);
  margin: 0 0 0.5rem 0;
}

.testimonial__subtitle {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  color: var(--gray-muted);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 500px;
}


/* =====================
   TESTIMONIAL CARD
   ===================== */
.t-card {
  background: var(--bg-light);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: 3px;
  transition: var(--transition-fast);
}


.t-card__stars {
  color: var(--primary);
  font-size: 1rem;
  letter-spacing: 2px;
}

.t-card__quote {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  color: var(--gray-muted);
  line-height: 1.7;
  flex: 1;
}

.t-card__author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid rgba(22, 22, 22, 0.1);
  padding-top: 0.75rem;
  margin-top: auto;
}

.t-card__name {
  font-family: var(--font-heading);
  font-size: var(--font-size-body);
  font-weight: 700;
  color: var(--charcoal-black);
}

.t-card__date {
  font-family: var(--font-body);
  font-size: var(--font-size-small);
  color: var(--gray-muted);
}

/* =====================
   CONTINUOUS CAROUSEL ANIMATION (Like Trust Section)
   ===================== */
.t-carousel-wrapper {
  overflow: hidden;
  position: relative;
  padding-bottom: 1rem;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
}

.t-carousel {
  display: flex;
  gap: 1.25rem;
  animation: scroll-testimonials 40s linear infinite;
  width: max-content;
}

.t-carousel-wrapper:hover .t-carousel {
  animation-play-state: paused;
}

@keyframes scroll-testimonials {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Duplicate cards for seamless loop */
.t-carousel .t-card {
  flex: 0 0 320px;
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 768px) {
  .testimonials-section {
    padding: 3rem 1rem;
  }

  .t-intro {
    gap: 1rem;
  }

  .t-card {
    flex: 0 0 280px;
  }
}

@media (max-width: 640px) {
  .t-card {
    flex: 0 0 270px;
  }
}
