/* ============================================
   INTERACTIVE TESTIMONIALS
   ============================================ */

/* IMPORTANT OVERRIDE:
   main.css contains global rules that hide `.testimonial-card` unless it has `.active`.
   Our carousel uses translateX and needs cards visible within this section.
   Scope override to this section only (both homepage candidates share this id). */
#testimonials-carousel-section .testimonial-card,
#testimonials-carousel-section .testimonials-carousel .testimonial-card {
  display: block !important;
  opacity: 1 !important;
}

.testimonials-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.testimonials-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 48px;
}

.testimonials-header h2 {
  font-size: 36px;
  color: #00559f;
  margin-bottom: 12px;
}

.testimonials-header p {
  font-size: 16px;
  color: #64748b;
  max-width: 700px;
  margin: 0 auto;
}

/* Industry Filters */
.testimonials-filters {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.testimonial-filter-btn {
  padding: 10px 20px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  color: #475569;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-filter-btn:hover {
  background: #f0f7ff;
  border-color: #00559f;
  color: #00559f;
}

.testimonial-filter-btn.active {
  background: #00559f;
  border-color: #00559f;
  color: #ffffff;
}

/* Carousel Container */
.testimonials-carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 85, 159, 0.08);
}

.testimonials-carousel {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide {
  min-width: 100%;
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Testimonial Card */
.testimonial-card {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-quote-icon {
  font-size: 48px;
  color: #00559f;
  opacity: 0.2;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 18px;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-text.truncated {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.testimonial-read-more {
  color: #00559f;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  margin-top: 8px;
  display: inline-block;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.testimonial-read-more:hover {
  color: #003d73;
}

/* Author Section */
.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid #e2e8f0;
}

.testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00559f 0%, #0080cc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-author-info {
  text-align: left;
}

.testimonial-author-name {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.testimonial-author-title {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 4px;
}

.testimonial-author-company {
  font-size: 14px;
  color: #475569;
  font-weight: 600;
}

/* Industry Badge */
.testimonial-industry-badge {
  display: inline-block;
  padding: 6px 16px;
  background: #e0e7ff;
  color: #3730a3;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 16px;
}

/* Rating Stars */
.testimonial-rating {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 16px;
}

.testimonial-rating .star {
  color: #fbbf24;
  font-size: 20px;
}

.testimonial-rating .star.empty {
  color: #e2e8f0;
}

/* Carousel Controls */
.carousel-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  pointer-events: none;
}

.carousel-control-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  color: #00559f;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  pointer-events: auto;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-control-btn:hover {
  background: #00559f;
  color: #ffffff;
  border-color: #00559f;
  transform: scale(1.1);
}

.carousel-control-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Carousel Indicators */
.carousel-indicators {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

.carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicator.active {
  background: #00559f;
  width: 24px;
  border-radius: 5px;
}

/* Autoplay Control */
.carousel-autoplay-control {
  text-align: center;
  margin-top: 16px;
}

.carousel-autoplay-btn {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  color: #64748b;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.carousel-autoplay-btn:hover {
  border-color: #00559f;
  color: #00559f;
}

.carousel-autoplay-btn .icon {
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .testimonial-slide {
    padding: 32px 24px;
  }

  .testimonial-text {
    font-size: 16px;
  }

  .testimonial-author {
    flex-direction: column;
    text-align: center;
  }

  .testimonial-author-info {
    text-align: center;
  }

  .carousel-control-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .carousel-controls {
    padding: 0 8px;
  }

  .testimonials-header h2 {
    font-size: 28px;
  }
}

