/* Section — testimonials */

.testimonials {
  margin-top: 60px;
  padding: 60px 0 80px;
  background: var(--ws-bg-page);
}

.testimonials-header {
  max-width: 780px;
  margin: 0 auto;
}

.testimonials-title {
  margin: 0;
  font-family: var(--ws-font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.05;
  color: var(--ws-primary);
}

.testimonials-subtext {
  max-width: 560px;
  margin: 1rem auto 0;
  font-family: var(--ws-font-body);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1020px;
  margin: 44px auto 0;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 26px;
  background: var(--ws-bg-white);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  transition: var(--ws-ease);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
}

.testimonial-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px;
}

.testimonial-stars {
  display: flex;
  align-items: center;
  gap: 4px;
}

.testimonial-stars .star {
  font-size: 1.3rem;
  line-height: 1;
  color: #FBBF24;
}

.testimonial-stars .star::before {
  content: "★";
  display: block;
}

.testimonial-stars .star.empty {
  color: #CBD5E1;
}

.testimonial-score {
  padding-top: 5px;
  padding-left: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  color: #0F172A;
}

.testimonial-card-copy {
  flex: 1;
  padding: 0 20px 14px;
  font-size: 0.875rem;
  line-height: 1.8;
  color: #475569;
}

.testimonial-card-footer {
  position: relative;
  margin-top: auto;
}

.testimonial-card-footer svg.footer-bg {
  display: block;
  width: 100%;
  height: auto;
}

.testimonial-card-footer .footer-content {
  position: absolute;
  z-index: 1;
  top: 60%;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  text-align: left;
  transform: translateY(-50%);
}

.testimonial-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ws-bg-white);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
  font-size: 0.95rem;
  font-weight: 700;
  color: #0F172A;
}

.testimonial-avatar--sr {
  background: linear-gradient(135deg, #8B5CF6, #06B6D4);
  color: #ffffff;
}

.testimonial-avatar--ja {
  background: linear-gradient(135deg, #F59E0B, #EF4444);
  color: #ffffff;
}

.testimonial-avatar--lm {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #ffffff;
}

.testimonial-avatar--tp {
  background: linear-gradient(135deg, #EC4899, #8B5CF6);
  color: #ffffff;
}

.testimonial-avatar--na {
  background: linear-gradient(135deg, #06B6D4, #2563EB);
  color: #ffffff;
}

.testimonial-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-name {
  margin-bottom: 3px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
}

.testimonial-role {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 980px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}
