/* Shared rotating testimonial toast */
.floating-testimonial {
  position: fixed;
  z-index: 1040;
  left: clamp(16px, 5vw, 70px);
  bottom: 18px;
  width: min(600px, calc(100vw - 32px));
  padding: 20px 40px 20px 24px;
  border: 1px solid #eadff0;
  border-radius: 14px;
  background: #fffafd;
  box-shadow: 0 14px 38px rgba(167, 84, 239, 0.14);
  color: #3e3050;
  transform: none;
  transition: opacity .28s ease, transform .28s ease;
}

.floating-testimonial.is-changing {
  opacity: 0;
  transform: translateY(8px);
}

.floating-testimonial.is-closed {
  display: none;
}

.floating-testimonial__quote,
.floating-testimonial__author {
  margin: 0;
  font-family: var(--sans, Arial, sans-serif);
}

.floating-testimonial__quote {
  font-size: 13px;
  line-height: 1.55;
}

.floating-testimonial__author {
  margin-top: 8px;
  color: var(--purple, #a754ef);
  font-size: 14px;
  font-weight: 700;
}

.floating-testimonial__close {
  position: absolute;
  top: 5px;
  right: 8px;
  padding: 4px;
  border: 0;
  background: transparent;
  color: #a1a1aa;
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.floating-testimonial__close:hover,
.floating-testimonial__close:focus-visible {
  color: var(--purple, #a754ef);
}

@media (max-width: 575px) {
  .floating-testimonial {
    left: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    padding: 16px 34px 16px 16px;
    border-radius: 12px;
  }

  .floating-testimonial__quote {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  .floating-testimonial__author {
    margin-top: 6px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-testimonial {
    transition: none;
  }
}

/* Testimonials Grid Styles - Exact Figma Match */
.testimonials-grid {
  /* margin-top: 60px; */
}

.testimonial-card {
  position: relative;
  height: 100%;
  min-height: auto;
  padding: 38px 29px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

/* Stars Row - No Gaps Between Stars */
.testimonial-card__stars {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  font-size: 24px;
  line-height: 1;
  position: relative;
  z-index: 2;
  letter-spacing: -2px;
}

.testimonial-card__stars span {
  margin: 0;
  padding: 0;
}

/* Background Quote Mark - Large and Subtle */
.testimonial-card__quote-bg {
  position: absolute;
  /* top: 20px; */
  right: 24px;
  font-size: 120px;
  line-height: 0.8;
  /* opacity: 0.06; */
  font-family: Georgia, serif;
  font-weight: 400;
  z-index: 1;
  pointer-events: none;
  color: inherit;
}

/* Author Section */
.testimonial-card__author {
  position: relative;
  z-index: 2;
  margin-top: 4px;
}

.testimonial-card__author h3 {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 2px 0;
  line-height: 1.4;
  color: inherit;
  color: #3E3050;
}

.testimonial-card__role {
  font-size: 18px;
  font-weight: 400;
  margin: 0;
  opacity: 0.65;
  line-height: 1.4;
  color: inherit;
  color: #3E3050;
}

/* Testimonial Text */
.testimonial-card__text {
  font-size: 18px;
  line-height: 1.6;
  margin-top: 4rem;
  padding-bottom: 25px;

  flex: 1;
  position: relative;
  z-index: 2;
  color: inherit;
  font-weight: 400;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Color Variants - Exact Figma Colors */
.testimonial-card--pink {
  background: #FFE4F1;
  color: #1a1a1a;
}

.testimonial-card--pink .testimonial-card__stars {
  color: #ec4899;
}

.testimonial-card--purple {
  background: #E9E4FF;
  color: #1a1a1a;
}

.testimonial-card--purple .testimonial-card__stars {
  color: #8b5cf6;
}

.testimonial-card--green {
  background: #D1FAE5;
  color: #1a1a1a;
}

.testimonial-card--green .testimonial-card__stars {
  color: #10b981;
}

.testimonial-card--orange {
  background: #FFE8D5;
  color: #1a1a1a;
}

.testimonial-card--orange .testimonial-card__stars {
  color: #f97316;
}

.testimonial-card--blue {
  background: #DBEAFE;
  color: #1a1a1a;
}

.testimonial-card--blue .testimonial-card__stars {
  color: #3b82f6;
}

.testimonial-card--yellow {
  background: #FEF9C3;
  color: #1a1a1a;
}

.testimonial-card--yellow .testimonial-card__stars {
  color: #eab308;
}

/* Load More Button */
.testimonials__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #8b5cf6;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  border: none;
  text-transform: uppercase;
}

.testimonials__cta:hover {
  background: #7c3aed;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
  color: #fff;
}

.testimonials__cta b {
  font-weight: 700;
  font-size: 16px;
}

/* Responsive */
@media (max-width: 1199px) {
  .testimonial-card {
    min-height: 300px;
    padding: 24px 20px;
  }

  .testimonial-card__quote-bg {
    font-size: 100px;
  }
}

@media (max-width: 767px) {
  .testimonials-grid {
    margin-top: 40px;
  }

  .testimonial-card {
    min-height: 280px;
    padding: 20px 18px;
  }

  .testimonial-card__stars {
    font-size: 14px;
    letter-spacing: -1px;
  }

  .testimonial-card__quote-bg {
    font-size: 80px;
    right: 18px;
    top: 18px;
  }

  .testimonial-card__author h3 {
    font-size: 15px;
  }

  .testimonial-card__role {
    font-size: 12px;
  }

  .testimonial-card__text {
    font-size: 13px;
    line-height: 1.55;
  }
}

@media (max-width: 575px) {
  .testimonial-card {
    min-height: auto;
  }
}