/* ==============================================================
   TESTIMONIALS SECTION - DARK LUXURY EDITORIAL
   ============================================================== */

.testimonials-editorial {
  background: #0b132b;
  color: #ffffff;
  padding: 50px var(--site-gutter, 24px);
  position: relative;
  overflow: hidden;
}

/* Subtle background ambient glow */
.testimonials-editorial::before {
  content: "";
  position: absolute;
  top: -120px;
  right: 12%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(234, 77, 38, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.testimonials-editorial .site-wrap {
  position: relative;
  z-index: 1;
}

/* Heading Row */
.testimonials-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 36px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.testimonials-heading-content {
  max-width: 650px;
}

.testimonials-kicker {
  display: inline-block;
  background: #ea4d26;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin: 0 0 14px;
}

.testimonials-heading-row h2 {
  font-family: var(--font-heading, "Plus Jakarta Sans", sans-serif);
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.035em;
  color: #ffffff;
  margin: 0 0 14px;
}

.testimonials-heading-row h2 span {
  color: #94a3b8;
  font-weight: 400;
}

.testimonials-intro {
  margin: 0;
  font-size: clamp(14px, 1.1vw, 15.5px);
  line-height: 1.6;
  color: #cbd5e1;
}

/* Rating Badge Pill on Right */
.testimonials-rating-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  align-self: flex-end;
}

.rating-badge-stars {
  color: #f59e0b;
  font-size: 16px;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
}

.rating-badge-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.rating-score {
  font-weight: 800;
  font-size: 15px;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.rating-count {
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 500;
}

/* Card Grid */
.testimonials-editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.2vw, 32px);
}

/* Individual Glassmorphic Luxury Card */
.testimonial-card {
  background: #111827;
  background: linear-gradient(180deg, rgba(21, 27, 42, 0.95) 0%, rgba(15, 20, 34, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: clamp(26px, 2.4vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Glowing Top Accent Border */
.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(234, 77, 38, 0.8), transparent);
  opacity: 0.6;
  transition: opacity 0.3s ease, height 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(234, 77, 38, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 20px rgba(234, 77, 38, 0.08);
}

.testimonial-card:hover::before {
  opacity: 1;
  height: 3px;
}

/* Card Header */
.testimonial-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.testimonial-stars {
  display: inline-flex;
  gap: 3px;
  color: #f59e0b;
  font-size: 15px;
}

/* Card Body */
.testimonial-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.testimonial-quote-mark {
  font-family: Georgia, serif;
  font-size: 38px;
  line-height: 1;
  color: rgba(234, 77, 38, 0.4);
  user-select: none;
}

.testimonial-quote-text {
  font-size: clamp(14.5px, 1.15vw, 16px);
  line-height: 1.7;
  font-weight: 400;
  color: #e2e8f0;
  margin: 0 0 28px;
}

/* Card Author */
.testimonial-card-author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
  margin-top: auto;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(234, 77, 38, 0.3), rgba(255, 255, 255, 0.08));
  border: 1.5px solid rgba(234, 77, 38, 0.45);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}

.testimonial-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(234, 77, 38, 0.45);
  flex-shrink: 0;
}

.testimonial-author-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.testimonial-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.testimonial-author-name {
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.testimonial-verified-badge {
  color: #ea4d26;
  flex-shrink: 0;
}

.testimonial-author-role {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.4;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mobile Slider Dots (hidden on desktop) */
.testimonials-slider-dots {
  display: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .testimonials-editorial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .testimonials-editorial {
    padding: 28px 16px;
    overflow-x: clip;
  }
  .testimonials-editorial-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-padding: 0 16px;
    scrollbar-width: none;
    gap: 14px;
    margin-inline: -16px;
    padding-inline: 16px;
    padding-bottom: 6px;
  }
  .testimonials-editorial-grid::-webkit-scrollbar {
    display: none;
  }
  .testimonial-card {
    flex: 0 0 85%;
    max-width: 340px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: 20px 18px;
    border-radius: 14px;
  }
  .testimonials-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
  }
  .testimonial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s ease;
  }
  .testimonial-dot.active {
    width: 22px;
    border-radius: 999px;
    background: #ea4d26;
  }
  .testimonials-heading-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
  }
  .testimonials-heading-row h2 {
    font-size: clamp(24px, 6vw, 32px);
    line-height: 1.2;
    margin-bottom: 8px;
  }
  .testimonials-intro {
    font-size: 13.5px;
    line-height: 1.5;
  }
  .testimonials-rating-badge {
    align-self: flex-start;
    padding: 8px 14px;
    gap: 10px;
    max-width: 100%;
    flex-wrap: wrap;
  }
  .testimonial-quote-text {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
  }
  .testimonial-card-author {
    padding-top: 14px;
    gap: 12px;
  }
  .testimonial-author-role {
    white-space: normal;
    font-size: 11.5px;
    line-height: 1.35;
  }
}

@media (max-width: 480px) {
  .testimonials-editorial {
    padding: 24px 14px;
  }
  .testimonial-card {
    flex: 0 0 86%;
    max-width: 310px;
    padding: 18px 15px;
  }
  .testimonial-quote-text {
    font-size: 13.5px;
    line-height: 1.55;
  }
}
