.fc-testimonials {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--fc-border, rgba(255, 255, 255, 0.08));
  border-bottom: 1px solid var(--fc-border, rgba(255, 255, 255, 0.08));
  background:
    radial-gradient(circle at 8% 46%, rgba(124, 58, 237, 0.16), transparent 31%),
    radial-gradient(circle at 94% 28%, rgba(6, 182, 212, 0.1), transparent 28%),
    #0f0f20;
}

.fc-testimonials::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}

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

.fc-testimonial-eyebrow {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 8px 14px;
  color: #a5b4fc;
  border: 1px solid rgba(129, 140, 248, 0.18);
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.58);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.025em;
}

.fc-testimonials .fc-section-heading {
  margin-bottom: 44px;
}

.fc-testimonial-slider {
  position: relative;
}

.fc-testimonial-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 40px) / 3);
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 2px 18px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

.fc-testimonial-track::-webkit-scrollbar {
  display: none;
}

.fc-testimonial-card {
  position: relative;
  min-width: 0;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(9, 11, 25, 0.9);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.fc-testimonial-card::after {
  content: "“";
  position: absolute;
  top: 60px;
  right: 20px;
  color: rgba(124, 58, 237, 0.16);
  font-family: Georgia, serif;
  font-size: 6.5rem;
  line-height: 1;
  pointer-events: none;
}

.fc-testimonial-card:hover {
  border-color: rgba(103, 232, 249, 0.24);
  box-shadow: 0 24px 65px rgba(6, 182, 212, 0.09), 0 18px 45px rgba(76, 29, 149, 0.16);
  transform: translateY(-4px);
}

.fc-testimonial-company {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.fc-testimonial-logo {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  padding: 7px;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.2);
  font-size: 0.92rem;
  font-weight: 900;
}

.fc-testimonial-logo.is-fallback {
  padding: 0;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #0891b2);
}

.fc-testimonial-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.fc-testimonial-company-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fc-testimonial-company-copy strong {
  overflow: hidden;
  color: #fff;
  font-size: 0.97rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fc-testimonial-company-copy span {
  color: rgba(255, 255, 255, 0.47);
  font-size: 0.72rem;
  font-weight: 650;
}

.fc-testimonial-rating {
  display: flex;
  gap: 4px;
  margin: 22px 0 15px;
  color: #fbbf24;
  font-size: 0.85rem;
}

.fc-testimonial-quote {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.97rem;
  font-style: italic;
  font-weight: 560;
  line-height: 1.72;
}

.fc-testimonial-footer {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: auto;
  padding-top: 22px;
}

.fc-testimonial-person {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  overflow: hidden;
  color: #c4b5fd;
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.12);
}

.fc-testimonial-person img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fc-testimonial-author {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
}

.fc-testimonial-author strong {
  overflow: hidden;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fc-testimonial-author span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.68rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fc-testimonial-tag {
  max-width: 110px;
  overflow: hidden;
  padding: 5px 9px;
  color: #a5b4fc;
  border: 1px solid rgba(129, 140, 248, 0.14);
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.09);
  font-size: 0.65rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fc-testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.fc-testimonial-arrow {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.fc-testimonial-arrow:hover,
.fc-testimonial-arrow:focus-visible {
  color: #fff;
  border-color: rgba(103, 232, 249, 0.38);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.32), rgba(6, 182, 212, 0.16));
  outline: none;
  transform: translateY(-2px);
}

.fc-testimonial-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.fc-testimonial-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.fc-testimonial-dot.is-active {
  width: 24px;
  background: linear-gradient(90deg, #7c3aed, #06b6d4);
}

@media (max-width: 940px) {
  .fc-testimonial-track {
    grid-auto-columns: calc((100% - 20px) / 2);
  }
}

@media (max-width: 640px) {
  .fc-testimonials::before {
    background-size: 48px 48px;
  }

  .fc-testimonial-track {
    grid-auto-columns: 88%;
    gap: 14px;
  }

  .fc-testimonial-card {
    min-height: 330px;
    padding: 22px;
  }

  .fc-testimonial-tag {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fc-testimonial-track {
    scroll-behavior: auto;
  }

  .fc-testimonial-card,
  .fc-testimonial-arrow,
  .fc-testimonial-dot {
    transition-duration: 0.001ms !important;
  }
}
