/* Testimonial Section - Foxbilling */
.testimonial-section {
  padding: 64px 0 54px;
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.testimonial__container {
  display: grid;
  grid-template-columns: 290px 1fr;
  align-items: center;
  gap: 44px;
}

.testimonial__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.testimonial__mascot {
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 30px rgba(14, 165, 233, 0.16));
  border-radius: 20px;
}

.testimonial__content {
  min-width: 0;
  position: relative;
}

.testimonial__header {
  margin-bottom: 22px;
}

.testimonial__badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-primary);
  background: #e0f2fe;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.testimonial__title {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.testimonial__slider {
  position: relative;
  overflow: hidden;
  padding: 10px 2px 24px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 4%, black 94%, transparent 100%);
}

.testimonial__track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scrollTestimonials 32s linear infinite;
}

.testimonial__slider:hover .testimonial__track {
  animation-play-state: paused;
}

@keyframes scrollTestimonials {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 10px));
  }
}

/* Testimonial Card */
.testimonial-card {
  width: 325px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1.5px solid #e0edfb;
  border-radius: 22px;
  padding: 24px 24px 20px;
  box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.05), 0 4px 10px -2px rgba(14, 165, 233, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  user-select: none;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -4px rgba(14, 165, 233, 0.12);
  border-color: #bae6fd;
}

.testimonial-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.testimonial-card__stars {
  display: flex;
  gap: 3px;
  color: #f59e0b;
  font-size: 1.15rem;
  line-height: 1;
}

.testimonial-card__quote {
  font-size: 2.2rem;
  line-height: 0.8;
  color: #93c5fd;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  opacity: 0.85;
}

.testimonial-card__message {
  font-size: 0.94rem;
  line-height: 1.65;
  color: #334155;
  font-weight: 500;
  margin-bottom: 20px;
  min-height: 72px;
  display: flex;
  align-items: center;
}

.testimonial-card__author {
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

.testimonial-card__name {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}

.testimonial-card__role {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 900px) {
  .testimonial-section {
    padding: 48px 0 40px;
  }

  .testimonial__container {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .testimonial__visual {
    max-width: 220px;
    margin: 0 auto;
  }

  .testimonial__header {
    text-align: center;
    margin-bottom: 16px;
  }

  .testimonial-card {
    width: 290px;
    padding: 20px 20px 18px;
  }

  .testimonial-card__message {
    min-height: 64px;
    font-size: 0.9rem;
  }
}
