/* ============================================================
   Testimonials Grid (Adapted for Dark Theme)
   ============================================================ */

.testimonials-section {
  padding: 80px 0;
  background: transparent;
}

/* ---------- Header ---------- */
.section-title-center {
  text-align: center;
  margin-bottom: 50px;
}

.section-title-center .eyebrow {
  display: inline-block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title-center .section-heading {
  font-size: 38px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-title-center .section-sub {
  color: var(--text-soft);
  font-size: 16px;
  max-width: 500px;
  margin: 0 auto;
}

/* ---------- Grid Layout ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* ---------- Card Design ---------- */
.testimonial-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 32px;
  border: 1px solid var(--line);
  position: relative;
  transition: 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(22, 162, 255, 0.1);
}

/* Large decorative quote mark in the top right */
.testimonial-card::before {
  content: '\201C'; /* Unicode for left double quote */
  position: absolute;
  top: 10px;
  right: 24px;
  font-size: 6rem;
  line-height: 1;
  color: rgba(22, 162, 255, 0.1); /* Faint blue */
  font-family: Georgia, serif;
  pointer-events: none;
}

/* ---------- Stars ---------- */
.testimonial-card .stars {
  color: #4ade80; /* Green matching the image */
  margin-bottom: 16px;
  font-size: 16px;
  display: flex;
  gap: 4px;
}

/* ---------- Quote Text ---------- */
.testimonial-card .quote-text {
  color: var(--text-soft);
  font-style: italic;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
  position: relative;
  z-index: 1; /* Keeps text above the quote mark */
}

/* ---------- Author Section ---------- */
.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

/* Avatar (Image) */
.testimonial-card .author .avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(22, 162, 255, 0.3);
}

/* Avatar (Fallback letter) */
.testimonial-card .author .avatar-fallback {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
}

/* Author Text */
.testimonial-card .author-info strong {
  display: block;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 700;
}

.testimonial-card .author-info span {
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 2px;
  display: block;
}

.no-testimonials {
  color: var(--text-soft);
  text-align: center;
  grid-column: 1 / -1;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .section-title-center .section-heading { font-size: 30px; }
  .testimonial-card { padding: 24px; }
}