/* Testimonials Section CSS - Prefix: .testimonials- */

.testimonials-section {
  padding: 100px 0;
  background-color: #F8FAFC; /* Clean light slate background */
  font-family: 'Inter', sans-serif;
  position: relative;
}

.testimonials-container {
  max-width: 1280px;
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 24px;
  padding-left: 24px;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.testimonials-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #A31D24;
  letter-spacing: 2.5px;
  margin-bottom: 14px;
  display: inline-block;
}

.testimonials-title {
  font-family: 'Outfit', sans-serif;
  font-size: 38px;
  font-weight: 800;
  color: #0F172A; /* High contrast dark text */
  line-height: 1.25;
  margin: 0 0 16px 0;
}

.testimonials-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: #64748B;
  margin: 0;
}

/* Testimonial Carousel Grid Wrapper */
.testimonials-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  -webkit-overflow-scrolling: touch;
  gap: 20px;
  padding: 10px 0 20px 0;
  max-width: 850px;
  margin: 0 auto;
}

.testimonials-grid::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari/Opera */
}

/* Corporate Testimonial Card */
.testimonials-card {
  flex: 0 0 100%;
  scroll-snap-align: center;
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-top: 4px solid #A31D24; /* Professional top accent bar (like Deloitte/JLL) */
  border-radius: 12px;
  padding: 35px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.02);
}

.testimonials-card:hover {
  transform: translateY(-6px);
  border-color: #CBD5E1;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.06);
}

.testimonials-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.testimonials-company-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #0F172A;
  background-color: #F1F5F9;
  padding: 4px 12px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.testimonials-stars {
  display: flex;
  gap: 3px;
  color: #FBBF24; /* Solid gold stars */
  font-size: 14px;
}

.testimonials-quote-body {
  position: relative;
  margin-bottom: 28px;
  flex-grow: 1;
}

/* Quote Icon accent */
.testimonials-quote-icon {
  font-size: 26px;
  color: rgba(163, 29, 36, 0.15);
  display: block;
  margin-bottom: 12px;
}

.testimonials-review-text {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: #334155; /* High-readability corporate gray */
  margin: 0;
  font-style: italic; /* Professional standard italicized quote */
}

/* Metadata author section */
.testimonials-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #F1F5F9;
  padding-top: 20px;
  margin-top: auto;
}

/* Avatar box with high-contrast corporate styling */
.testimonials-avatar-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #0F172A; /* Clean dark gray corporate background */
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonials-author-details {
  display: flex;
  flex-direction: column;
}

.testimonials-author-name {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 1px;
}

.testimonials-author-meta {
  font-size: 12px;
  color: #64748B;
  font-weight: 500;
}

/* Responsiveness */
@media (max-width: 991.98px) {
  .testimonials-grid {
    max-width: 100%;
    margin: 0 -12px; /* Slight offset to let cards bleed off screen */
    padding-left: 12px;
    padding-right: 12px;
  }
  .testimonials-card {
    flex: 0 0 88%; /* Adjust card size so the next card peeks in */
    padding: 30px 24px;
  }
  .testimonials-section {
    padding: 70px 0;
  }
  .testimonials-title {
    font-size: 32px;
  }
}

/* Testimonials Controls (flanking arrows & dots) */
.testimonials-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}

.testimonials-nav-btn {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #475569;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  font-size: 14px;
  outline: none;
}

.testimonials-nav-btn:hover {
  background-color: #F1F5F9;
  color: #A31D24;
  border-color: #CBD5E1;
}

.testimonials-nav-btn:active {
  transform: scale(0.92);
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0;
}

.testimonials-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #CBD5E1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonials-dot-active {
  background-color: #A31D24;
  transform: scale(1.25);
}

