/* ==========================================================================
   Testimonials Masonry Grid
   Social proof wall with 9 cards on dark violet background
   ========================================================================== */

.testimonials-grid-section {
  background-color: #1003a3;
  padding: 80px 24px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.testimonials-grid-section::before {
  content: "";
  position: absolute;
  top: -60px;
  left: -10%;
  width: 120%;
  height: 120px;
  background: radial-gradient(ellipse at 50% 100%, #1003a3 0%, transparent 70%);
  pointer-events: none;
}

.testimonials-grid-section .section-header {
  text-align: center;
  margin-bottom: 56px;
}

.testimonials-grid-section .section-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 40px;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0;
}

@media (min-width: 768px) {
  .testimonials-grid-section .section-title {
    font-size: 48px;
  }
}

/* ---------- Masonry Grid ---------- */

.testimonials-grid {
  column-count: 3;
  column-gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .testimonials-grid {
    column-count: 2;
    column-gap: 20px;
  }
}

@media (max-width: 640px) {
  .testimonials-grid-section {
    padding: 56px 16px;
  }

  .testimonials-grid {
    column-count: 1;
    column-gap: 0;
  }
}

/* ---------- Card ---------- */

.testimonial-card {
  break-inside: avoid;
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 28px 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: testimonialFadeIn 0.6s ease both;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

/* Staggered animation delays */
.testimonial-card:nth-child(1)  { animation-delay: 0.05s; }
.testimonial-card:nth-child(2)  { animation-delay: 0.10s; }
.testimonial-card:nth-child(3)  { animation-delay: 0.15s; }
.testimonial-card:nth-child(4)  { animation-delay: 0.20s; }
.testimonial-card:nth-child(5)  { animation-delay: 0.25s; }
.testimonial-card:nth-child(6)  { animation-delay: 0.30s; }
.testimonial-card:nth-child(7)  { animation-delay: 0.35s; }
.testimonial-card:nth-child(8)  { animation-delay: 0.40s; }
.testimonial-card:nth-child(9)  { animation-delay: 0.45s; }

@keyframes testimonialFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Stars ---------- */

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
}

.testimonial-stars svg {
  width: 18px;
  height: 18px;
  color: #f59e0b;
  flex-shrink: 0;
}

/* ---------- Quote ---------- */

.testimonial-quote {
  font-family: 'Titillium Web', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #1f2937;
  margin: 0 0 20px;
  font-weight: 400;
}

/* ---------- Author ---------- */

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #e6e5f6;
}

.testimonial-author-info {
  display: flex;
  flex-direction: column;
}

.testimonial-author-name {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #111827;
  line-height: 1.3;
}

.testimonial-author-role {
  font-family: 'Titillium Web', sans-serif;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.3;
  margin-top: 2px;
}

/* ---------- Responsive refinements ---------- */

@media (max-width: 640px) {
  .testimonials-grid-section .section-title {
    font-size: 28px;
  }

  .testimonials-grid-section .section-header {
    margin-bottom: 36px;
  }

  .testimonial-card {
    margin-bottom: 16px;
    padding: 24px 22px 20px;
  }
}

@media (min-width: 1024px) {
  .testimonials-grid-section {
    padding: 100px 40px;
  }
}
