/* Enhanced Testimonials section with brand appeal */
.testimonials {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    var(--color-brand-primary) 0%,
    var(--color-brand-primary-soft) 50%,
    #0a7a87 100%
  );
  z-index: 0;
}

.testimonials::after {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  top: -400px;
  right: -300px;
  z-index: 0;
}

/* Brand badge styling */
.testimonials-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 1.5rem;
  color: white;
  font-weight: var(--font-weight-semibold);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.testimonials-badge i {
  color: #ffd700;
  font-size: 0.9rem;
}

.testimonials .container {
  position: relative;
  z-index: 1;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.testimonials .section-title {
  position: relative;
  color: white !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.testimonials .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  max-width: 600px;
  margin: 1.5rem auto 3rem;
  font-weight: var(--font-weight-medium);
}

/* Enhanced testimonial card styling */
.testimonial {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.testimonial::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ffd700 0%, rgba(255, 255, 255, 0.8) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.testimonial:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.25);
}

.testimonial:hover::before {
  transform: scaleX(1);
}

/* Star rating styling */
.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.testimonial-rating i {
  color: #ffd700;
  font-size: 1.2rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.testimonial__content p,
.testimonial-content p {
  color: var(--color-text-invert);
  font-style: italic;
  line-height: var(--leading-relaxed);
  font-size: 1.125rem;
  font-weight: var(--font-weight-medium);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.01em;
  position: relative;
  padding: 0 0.5rem;
}

.testimonial__content p::before,
.testimonial-content p::before {
  content: '"';
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.2);
  position: absolute;
  top: -1.5rem;
  left: -0.5rem;
  font-family: Georgia, serif;
}

/* Enhanced author section */
.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.author-info h3 {
  color: var(--color-text-invert);
  font-weight: var(--font-weight-bold);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.author-info p {
  color: rgba(255, 255, 255, 0.85);
  font-weight: var(--font-weight-medium);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.testimonial-icon {
  background: rgba(255, 255, 255, 0.2);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.testimonial-icon i {
  color: #ffd700;
  font-size: 1.3rem;
} /* Add these styles to the end of testimonials-enhanced.css */

.testimonials-slider.grid {
  gap: 2rem;
  margin-top: 1rem;
}

/* Add additional spacing around testimonial elements */
.testimonial {
  padding: 2rem;
}

.testimonial-author {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.25rem;
}

/* Ensure consistent spacing between testimonial content and author */
.testimonial__content,
.testimonial-content {
  margin-bottom: 1.5rem;
}

/* Add a highlight effect on the brand name within testimonials */
.testimonial__content em,
.testimonial-content em,
.testimonial__content strong,
.testimonial-content strong {
  color: white;
  font-weight: var(--font-weight-bold);
}

/* Add a subtle animation for the testimonials on page load */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.testimonials-slider .testimonial:nth-child(1) {
  animation: fadeIn 0.6s 0.1s ease-out forwards;
}

.testimonials-slider .testimonial:nth-child(2) {
  animation: fadeIn 0.6s 0.3s ease-out forwards;
}

.testimonials-slider .testimonial:nth-child(3) {
  animation: fadeIn 0.6s 0.5s ease-out forwards;
}

/* Make sure testimonials start with opacity 0 for the animation */
.testimonials-slider .testimonial {
  opacity: 0;
}

/* Stats section at bottom of testimonials */
.testimonials-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 4rem;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
  text-align: center;
  color: white;
}

.stat-number {
  font-size: 3rem;
  font-weight: var(--font-weight-extrabold);
  color: #ffd700;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label {
  font-size: 1.1rem;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 968px) {
  .testimonials-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem;
  }

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

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

@media (max-width: 768px) {
  .testimonials-slider.grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .testimonial {
    padding: 2rem;
  }

  .testimonial__content p,
  .testimonial-content p {
    font-size: 1rem;
  }

  .testimonials-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

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

  .testimonials-badge {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}
