/* === TESTIMONIALS CARDS === */

/* New Header Styles */
.testimonials-header-new {
  text-align: center;
  margin-bottom: 60px;
}

.testimonials-title-new {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0a0a0a;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.testimonials-subtitle-new {
  font-size: 1.15rem;
  color: #5a5a5a;
  font-weight: 400;
  line-height: 1.6;
}

.testimonials-cards-grid,
.testimonials-cards-grid-new {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 32px;
  margin: 40px 0 50px;
  width: 100%;
  visibility: visible !important;
  opacity: 1 !important;
}

.testimonial-card,
.testimonial-card-new {
  background: #fff !important;
  padding: 32px 28px;
  border-radius: 20px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
}

.testimonial-card::before,
.testimonial-card-new::before {
  content: '"';
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 80px;
  font-family: Georgia, serif;
  color: rgba(0, 217, 255, 0.08);
  line-height: 1;
  font-weight: 700;
}

.testimonial-card:hover,
.testimonial-card-new:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 217, 255, 0.15);
  border-color: rgba(0, 217, 255, 0.3);
}

/* Card Header */
.testimonial-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.testimonial-avatar-large {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  border: 3px solid #fff;
  position: relative;
}

.testimonial-avatar-large::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.testimonial-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-author {
  flex: 1;
}

.testimonial-author h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 4px 0;
  letter-spacing: -0.3px;
}

.testimonial-author p {
  font-size: 0.85rem;
  color: #6a6a6a;
  margin: 0 0 6px 0;
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 0.95rem;
  letter-spacing: 2px;
}

/* Card Text */
.testimonial-card-text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #3a3a3a;
  margin: 0 0 20px 0;
  position: relative;
  z-index: 1;
  font-style: italic;
}

/* Card Meta */
.testimonial-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.testimonial-date {
  font-size: 0.8rem;
  color: #8a8a8a;
  font-weight: 500;
}

.testimonial-verified {
  font-size: 0.8rem;
  color: #10b981;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.08);
  padding: 4px 10px;
  border-radius: 12px;
}

/* CTA Section */
.testimonials-cta {
  text-align: center;
  margin-top: 50px;
}

.testimonials-cta .btn-primary {
  padding: 18px 40px;
  font-size: 1.05rem;
}

/* Responsive */
@media (max-width: 991px) {
  .testimonials-cards-grid,
  .testimonials-cards-grid-new {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px;
  }
}

@media (max-width: 767px) {
  .testimonials-title-new {
    font-size: 1.8rem;
  }
  
  .testimonials-subtitle-new {
    font-size: 1rem;
  }
  
  .testimonials-cards-grid,
  .testimonials-cards-grid-new {
    grid-template-columns: 1fr !important;
    gap: 20px;
    margin: 40px 0 40px;
  }
  
  .testimonial-card,
  .testimonial-card-new {
    padding: 24px 20px;
  }
  
  .testimonial-card-header {
    gap: 12px;
  }
  
  .testimonial-avatar-large {
    width: 56px;
    height: 56px;
  }
  
  .testimonial-author h4 {
    font-size: 1.05rem;
  }
  
  .testimonial-card-text {
    font-size: 0.9rem;
  }
  
  .testimonial-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

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

.testimonial-card,
.testimonial-card-new {
  animation: fadeInUp 0.6s ease-out;
}

.testimonial-card:nth-child(1),
.testimonial-card-new:nth-child(1) {
  animation-delay: 0.1s;
}

.testimonial-card:nth-child(2),
.testimonial-card-new:nth-child(2) {
  animation-delay: 0.2s;
}

.testimonial-card:nth-child(3),
.testimonial-card-new:nth-child(3) {
  animation-delay: 0.3s;
}
