/* =========================
   TESTIMONIAL SECTION
========================= */

.testimonials-section {
  background: #eff6ff;
  padding: 110px 20px;
  position: relative;
  overflow: hidden;
}

/* Container */
.testimonials-container {
  max-width: 1444px;
  margin: auto;
}

/* =========================
   HEADER
========================= */

.testimonials-header {
  text-align: center;
  margin-bottom: 70px;
}

.testimonials-header h2 {
  font-size: 40px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}

.header-line {
  width: 85px;
  height: 6px;

  background: #2563eb;

  margin: 0 auto 24px;

  border-radius: 999px;
}

.testimonials-header p {
  max-width: 720px;
  margin: auto;

  color: #64748b;

  font-size: 18px;
  line-height: 1.7;
}

/* =========================
   GRID
========================= */

.testimonials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

/* =========================
   CARD
========================= */

.testimonial-card {
  flex: 1 1 calc(33.333% - 18px);

  background: #ffffff;

  border: 1px solid #dbeafe;

  border-radius: 28px;

  padding: 34px;

  position: relative;
  overflow: hidden;

  transition: all 0.35s ease;

  cursor: pointer;
}

/* Hover */
.testimonial-card:hover {
  transform: translateY(-10px) scale(1.02);

  border-color: rgba(37, 99, 235, 0.18);

  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.08),
    0 0 0 6px rgba(37, 99, 235, 0.04);
}

/* Top glow line */
.testimonial-card::before {
  content: "";

  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 3px;

  background: linear-gradient(90deg, #2563eb, #3b82f6, #60a5fa);

  opacity: 0;

  transition: 0.3s;
}

.testimonial-card:hover::before {
  opacity: 1;
}

/* =========================
   QUOTE ICON
========================= */

.quote-icon {
  margin-bottom: 24px;
}

.quote-icon svg {
  width: 34px;
  height: 34px;

  stroke: #3b82f6;
  fill: #3b82f6;

  opacity: 0.15;
}

/* =========================
   REVIEW TEXT
========================= */

.testimonial-text {
  color: #475569;

  font-size: 15px;
  line-height: 1.9;

  font-style: italic;

  margin-bottom: 28px;
}

/* =========================
   USER
========================= */

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Image */
.user-image,
.user-avatar {
  width: 54px;
  height: 54px;

  border-radius: 50%;

  flex-shrink: 0;
}

/* Real Image */
.user-image {
  object-fit: cover;
  border: 3px solid #eff6ff;
}

/* Avatar */
.user-avatar {
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  font-weight: 700;
}

/* Avatar Colors */
.blue-avatar {
  background: #dbeafe;
  color: #2563eb;
}

.red-avatar {
  background: #fee2e2;
  color: #dc2626;
}

.green-avatar {
  background: #dcfce7;
  color: #16a34a;
}

.orange-avatar {
  background: #ffedd5;
  color: #f97316;
}

.teal-avatar {
  background: #ccfbf1;
  color: #14b8a6;
}

/* Info */
.user-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.user-info p {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 8px;
}

/* =========================
   STARS
========================= */

.stars {
  display: flex;
  gap: 3px;
}

.stars svg {
  width: 14px;
  height: 14px;

  fill: #facc15;
  stroke: #facc15;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px) {
  .testimonial-card {
    flex: 1 1 calc(50% - 13px);
  }
}

@media (max-width: 768px) {
  .testimonials-section {
    padding: 90px 20px;
  }

  .testimonials-header {
    margin-bottom: 50px;
  }

  .testimonials-header h2 {
    font-size: 32px;
  }

  .testimonials-header p {
    font-size: 16px;
  }

  .testimonial-card {
    flex: 1 1 100%;
  }

  .testimonial-card {
    padding: 28px;
  }
}
