/* What Our Customers Say Section - Enhanced Modern Styling */
.review-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.review-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23dee2e6" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
  z-index: 1;
}

.review-section > * {
  position: relative;
  z-index: 2;
}

.review-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.review-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e3c72;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  width: 100%;
}

.review-section h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #1e3c72, #ff6b35);
  border-radius: 2px;
}

.review-section .section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #6c757d;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.review-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.review-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid #e9ecef;
}

.review-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #1e3c72, #ff6b35);
  transition: left 0.3s ease;
}

.review-card:hover::before {
  left: 0;
}

.review-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.review-card .stars {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
  font-size: 1.5rem;
  color: #ffc107;
  position: relative;
}

.review-card .stars::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #ffc107, #ff8c42);
  border-radius: 1px;
}

.review-card .stars span[aria-hidden="true"] {
  background: linear-gradient(135deg, #ffc107, #ff8c42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

.review-card p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #495057;
  margin-bottom: 25px;
  font-style: italic;
  position: relative;
  text-align: center;
}

.review-card p::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: -10px;
  font-size: 3rem;
  color: #1e3c72;
  opacity: 0.2;
  font-family: Georgia, serif;
}

.review-card p::after {
  content: '"';
  position: absolute;
  bottom: -20px;
  right: -10px;
  font-size: 3rem;
  color: #1e3c72;
  opacity: 0.2;
  font-family: Georgia, serif;
}

.review-card h4 {
  font-size: 1rem;
  color: #1e3c72;
  font-weight: 600;
  text-align: center;
  margin: 0;
  padding: 15px 20px;
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  border-radius: 25px;
  border: 2px solid #e9ecef;
  position: relative;
  transition: all 0.3s ease;
}

.review-card:hover h4 {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #ffffff;
  border-color: #1e3c72;
  transform: scale(1.02);
}

.review-card h4 span[itemprop="name"] {
  font-weight: 700;
  color: #ff6b35;
}

.review-card:hover h4 span[itemprop="name"] {
  color: #ffffff;
}

.review-card h4 span[itemprop="jobTitle"] {
  font-weight: 500;
  font-style: italic;
}

.review-card h4 span[itemprop="address"] {
  font-weight: 400;
}

/* Trust indicators */
.testimonials-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  min-width: 150px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e3c72;
  display: block;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  .review-section {
    padding: 60px 0;
  }

  .review-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .review-section .section-subtitle {
    font-size: 1rem;
    margin-bottom: 40px;
  }

  .review-list {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }

  .review-card {
    padding: 30px 20px;
    margin: 0 10px;
  }

  .review-card p {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .review-card h4 {
    font-size: 0.9rem;
    padding: 12px 16px;
  }

  .testimonials-stats {
    gap: 20px;
    margin-top: 40px;
  }

  .stat-item {
    min-width: 120px;
    padding: 15px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .review-section {
    padding: 50px 0;
  }

  .review-section h2 {
    font-size: 1.8rem;
  }

  .review-card {
    padding: 25px 15px;
    margin: 0 5px;
  }

  .review-card .stars {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }

  .review-card p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .review-card h4 {
    font-size: 0.85rem;
    padding: 10px 14px;
  }

  .testimonials-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    justify-items: center;
  }

  .stat-item {
    width: 100%;
    max-width: 160px;
  }
}

/* Animation for review cards on scroll */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.review-card {
  animation: fadeInUp 0.6s ease forwards;
}

.review-card:nth-child(1) { animation-delay: 0.1s; }
.review-card:nth-child(2) { animation-delay: 0.2s; }
.review-card:nth-child(3) { animation-delay: 0.3s; }
.review-card:nth-child(4) { animation-delay: 0.4s; }
.review-card:nth-child(5) { animation-delay: 0.5s; }
.review-card:nth-child(6) { animation-delay: 0.6s; }

/* Accessibility improvements */
.review-card:focus-within {
  outline: 3px solid #ff6b35;
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Print styles */
@media print {
  .review-section {
    background: #ffffff;
    padding: 40px 0;
  }

  .review-section::before {
    display: none;
  }

  .review-card {
    box-shadow: none;
    border: 1px solid #dee2e6;
    break-inside: avoid;
    margin-bottom: 20px;
  }

  .testimonials-stats {
    display: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .review-card {
    border: 2px solid #000000;
  }

  .review-section h2 {
    color: #000000;
  }

  .review-card p {
    color: #000000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .review-card,
  .stat-item {
    animation: none;
    transition: none;
  }

  .review-card:hover,
  .stat-item:hover {
    transform: none;
  }
}
