/* References Page Styles */

.references-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 100px 0 60px;
  text-align: center;
}

.references-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.references-hero p {
  font-size: 1.25rem;
  opacity: 0.9;
}

.stats-bar {
  background: white;
  margin: -40px 0 0;
  position: relative;
  z-index: 10;
}

.stats-bar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.stats-bar-item {
  text-align: center;
}

.stats-bar-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stats-bar-label {
  color: #666;
  font-size: 1rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.testimonial-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.patient-info {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.patient-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.patient-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.patient-info h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
  color: #333;
}

.patient-country {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.25rem;
}

.rating {
  font-size: 1rem;
}

.treatment-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.testimonial-content p {
  color: #555;
  line-height: 1.7;
  font-size: 1rem;
}

.video-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.video-icon {
  font-size: 1.25rem;
}

/* Video Modal */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.video-modal-content {
  position: relative;
  width: 100%;
  max-width: 1000px;
}

.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  line-height: 1;
  transition: all 0.3s ease;
}

.video-modal-close:hover {
  color: #f5576c;
  transform: scale(1.1);
}

.video-modal-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
}

.video-modal-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 968px) {
  .references-hero h1 {
    font-size: 2rem;
  }

  .stats-bar-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .stats-bar-number {
    font-size: 2rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-header {
    flex-direction: column;
  }

  .treatment-badge {
    align-self: flex-start;
  }

  .video-modal {
    padding: 1rem;
  }

  .video-modal-close {
    top: -35px;
    font-size: 2.5rem;
  }
}

