/* Testimonials Section Styling */

.testimonials-section {
  margin: 3rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, #f0f7ff 0%, #e3f2fd 100%);
  border-radius: 8px;
  border-left: 4px solid #1565C0;
}

.testimonials-section h2 {
  color: #0D47A1;
  font-size: 1.5rem;
  margin: 0 0 2rem 0;
  text-align: center;
}

/* Testimonials Grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(21, 101, 192, 0.1);
  border: 1px solid #b3d9ff;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: 0 4px 16px rgba(21, 101, 192, 0.15);
  transform: translateY(-2px);
}

/* Testimonial Header */
.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e8f1ff;
}

.testimonial-avatar {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.testimonial-author {
  flex: 1;
  min-width: 0;
}

.testimonial-author strong {
  display: block;
  color: #0D47A1;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* Ratings */
.testimonial-rating {
  font-size: 0.9rem;
  color: #666;
  letter-spacing: 0.1em;
}

.testimonial-rating meta {
  display: none;
}

/* Quote */
.testimonial-quote {
  flex: 1;
  font-style: italic;
  color: #333;
  margin: 0 0 1rem 0;
  line-height: 1.6;
  font-size: 0.95rem;
  border-left: 3px solid #1565C0;
  padding-left: 1rem;
}

/* Result */
.testimonial-result {
  margin: 0;
  color: #1565C0;
  font-weight: 500;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Footer */
.testimonials-footer {
  text-align: center;
  color: #0D47A1;
  font-weight: 500;
  margin: 1rem 0 0 0;
  font-size: 0.95rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .testimonials-section {
    padding: 1.5rem;
    margin: 2rem 0;
    border-left-width: 3px;
  }

  .testimonials-section h2 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }

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

  .testimonial-card {
    padding: 1.25rem;
  }

  .testimonial-avatar {
    font-size: 2rem;
  }

  .testimonial-quote {
    font-size: 0.9rem;
    padding-left: 0.75rem;
    margin-bottom: 0.75rem;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .testimonials-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-left-color: #64b5f6;
  }

  .testimonials-section h2 {
    color: #64b5f6;
  }

  .testimonial-card {
    background: #2a2a2a;
    border-color: #424242;
    box-shadow: 0 2px 8px rgba(100, 181, 246, 0.1);
  }

  .testimonial-card:hover {
    box-shadow: 0 4px 16px rgba(100, 181, 246, 0.15);
  }

  .testimonial-header {
    border-bottom-color: #424242;
  }

  .testimonial-author strong {
    color: #64b5f6;
  }

  .testimonial-quote {
    color: #e0e0e0;
    border-left-color: #64b5f6;
  }

  .testimonial-result {
    color: #64b5f6;
  }

  .testimonials-footer {
    color: #64b5f6;
  }
}

/* Print Styling */
@media print {
  .testimonials-section {
    background: white;
    border-left: 2px solid #333;
    page-break-inside: avoid;
  }

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

  .testimonial-card {
    background: white;
    border: 1px solid #ccc;
    box-shadow: none;
    page-break-inside: avoid;
  }

  .testimonial-card:hover {
    box-shadow: none;
    transform: none;
  }
}

/* Accessibility */
.testimonials-section {
  scroll-margin-top: 2rem;
}

.testimonial-card:focus-within {
  outline: 2px solid #1565C0;
  outline-offset: 2px;
}
