/* =============================================
   TESTIMONIALS SECTION
   ============================================= */
.testimonials {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></svg>');
  border-radius: 50%;
  pointer-events: none;
}

.testimonials-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(29, 78, 216, 0.1);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 120px;
  font-family: Georgia, serif;
  color: rgba(29, 78, 216, 0.05);
  line-height: 1;
  pointer-events: none;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(29, 78, 216, 0.15);
  border-color: rgba(29, 78, 216, 0.3);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #1d4ed8;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.testimonial-card:hover .testimonial-avatar {
  transform: scale(1.1);
}

.testimonial-info {
  flex: 1;
}

.testimonial-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  margin-bottom: 0.25rem;
}

.testimonial-course {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #fbbf24;
}

.testimonial-rating i {
  transition: transform 0.2s ease;
}

.testimonial-card:hover .testimonial-rating i {
  animation: starPulse 0.6s ease infinite;
}

@keyframes starPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.testimonial-rating i:nth-child(1) { animation-delay: 0s; }
.testimonial-rating i:nth-child(2) { animation-delay: 0.1s; }
.testimonial-rating i:nth-child(3) { animation-delay: 0.2s; }
.testimonial-rating i:nth-child(4) { animation-delay: 0.3s; }
.testimonial-rating i:nth-child(5) { animation-delay: 0.4s; }

.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #475569;
  margin: 0;
  font-style: italic;
  position: relative;
  z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .testimonials {
    padding: 4rem 1.5rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .testimonial-avatar {
    width: 50px;
    height: 50px;
  }

  .testimonial-name {
    font-size: 1rem;
  }

  .testimonial-text {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .testimonials {
    padding: 3rem 1rem;
  }

  .testimonial-card::before {
    font-size: 80px;
    top: -10px;
    left: 10px;
  }
}
