/**
 * Enjoy Holiday Hub - Custom Customer Testimonials Stylesheet
 * Brand colors: Navy #14213D, Red #E72E2E, Gold #FFBE0B, BG #FFFFFF, Card Border #E2E8F0
 */

.testimonials-section-custom {
  position: relative;
  background-color: #ffffff;
  padding: 85px 0 85px;
  overflow: hidden;
}

/* Background subtle ambient travel glow */
.testimonials-section-custom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 380px;
  background: radial-gradient(circle, rgba(231, 46, 46, 0.035) 0%, rgba(20, 33, 61, 0.02) 65%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Section Header */
.testimonials-header {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 28px;
}

.testimonials-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(231, 46, 46, 0.08);
  color: #e72e2e;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 12px;
  border: 1px solid rgba(231, 46, 46, 0.18);
}

.testimonials-header h2 {
  font-size: 2.35rem;
  font-weight: 800;
  color: #14213d;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.testimonials-header h2 .highlight-travellers {
  color: #e72e2e;
  position: relative;
  display: inline-block;
}

.testimonials-header p.sub-title {
  color: #64748b;
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ========================================= */
/* RATING SUMMARY STRIP                      */
/* ========================================= */
.testimonials-summary-wrapper {
  position: relative;
  z-index: 1;
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
}

.testimonials-summary-bar {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  background: #f8fafc;
  padding: 12px 32px;
  border-radius: 60px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 18px rgba(20, 33, 61, 0.04);
  flex-wrap: wrap;
  justify-content: center;
}

.summary-stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.summary-stat-stars {
  color: #ffbe0b;
  font-size: 0.95rem;
}

.summary-score-bold {
  font-size: 1.15rem;
  font-weight: 800;
  color: #14213d;
}

.summary-stat-label {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
}

.summary-divider {
  width: 1px;
  height: 24px;
  background: #cbd5e1;
}

/* ========================================= */
/* CAROUSEL & REVIEW CARDS                   */
/* ========================================= */
.testimonials-carousel-wrapper {
  position: relative;
  z-index: 1;
  padding: 10px 0 20px;
}

/* Prev/Next Navigation Controls */
.testimonial-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 18px rgba(20, 33, 61, 0.12);
  color: #14213d;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
}

.testimonial-nav-arrow:hover {
  background: #e72e2e;
  color: #ffffff;
  border-color: #e72e2e;
  box-shadow: 0 8px 24px rgba(231, 46, 46, 0.35);
  transform: translateY(-50%) scale(1.08);
}

.testimonial-nav-prev {
  left: -20px;
}

.testimonial-nav-next {
  right: -20px;
}

/* Carousel Scrollable Container */
.testimonial-track-container {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 12px 6px 20px;
}

.testimonial-track-container::-webkit-scrollbar {
  display: none;
}

.testimonial-cards-grid {
  display: flex;
  gap: 24px;
  transition: transform 0.35s ease;
}

/* Single Review Card */
.testimonial-card-item {
  flex: 0 0 calc((100% - 48px) / 3); /* 3 cards on desktop */
  min-width: 320px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 6px 20px rgba(20, 33, 61, 0.05);
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.3s ease;
  position: relative;
  user-select: none;
}

.testimonial-card-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(20, 33, 61, 0.11);
  border-color: #cbd5e1;
}

/* Top Card Strip: Category Badge & Quote Icon */
.testimonial-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.testimonial-category-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: #e72e2e;
  background: rgba(231, 46, 46, 0.08);
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid rgba(231, 46, 46, 0.16);
}

.testimonial-quote-icon {
  font-size: 1.4rem;
  color: rgba(231, 46, 46, 0.22);
}

/* Rating Stars Strip */
.testimonial-card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.testimonial-stars {
  color: #ffbe0b;
  font-size: 0.88rem;
}

.testimonial-score-badge {
  background: #10b981;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}

/* Review Title & Content */
.testimonial-card-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #14213d;
  line-height: 1.35;
  margin-bottom: 10px;
}

.testimonial-card-desc {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 22px;
  flex: 1;
}

/* Card Bottom Customer Info */
.testimonial-customer-footer {
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.testimonial-customer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Customer Initials / Avatar */
.testimonial-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #14213d 0%, #e72e2e 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(20, 33, 61, 0.15);
}

.testimonial-customer-details {
  display: flex;
  flex-direction: column;
}

.testimonial-customer-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #14213d;
  line-height: 1.25;
  margin: 0;
}

.testimonial-customer-city {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.testimonial-customer-city i {
  color: #e72e2e;
  font-size: 0.72rem;
}

/* Verified Booking Badge */
.testimonial-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #059669;
  background: #ecfdf5;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #a7f3d0;
  white-space: nowrap;
}

.testimonial-verified-badge i {
  font-size: 0.78rem;
}

/* Pagination Dots */
.testimonial-dots-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 25px;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}

.testimonial-dot.active {
  width: 26px;
  border-radius: 20px;
  background: #e72e2e;
}

/* Responsive Rules */
@media (max-width: 1200px) {
  .testimonial-card-item {
    flex: 0 0 calc((100% - 24px) / 2); /* 2 cards on tablet */
    min-width: 300px;
  }
}

@media (max-width: 991px) {
  .testimonials-section-custom {
    padding: 65px 0 60px;
  }
  .testimonials-header h2 {
    font-size: 2rem;
  }
  .testimonials-summary-bar {
    gap: 16px;
    padding: 10px 20px;
  }
}

@media (max-width: 768px) {
  .testimonials-section-custom {
    padding: 50px 0 45px;
  }
  .testimonials-header h2 {
    font-size: 1.65rem;
  }
  .testimonial-nav-arrow {
    display: none; /* Swipe on mobile */
  }
  .testimonial-card-item {
    flex: 0 0 100%; /* 1 card on mobile */
    min-width: 100%;
    padding: 20px 18px;
  }
  .testimonials-summary-bar {
    flex-direction: column;
    gap: 10px;
    border-radius: 16px;
    padding: 14px 18px;
  }
  .summary-divider {
    display: none;
  }
}
