[data-sf-block="sf-testimonials"] {
  --sf-testimonials-bg: #0d0d0d;
  --sf-card-bg-top: #181818;
  --sf-card-bg-bottom: #0f0f0f;
  --sf-card-bg: #161616;
  --sf-card-border: rgba(255,255,255,0.07);
  --sf-star-color: #f5c518;
  --sf-quote-color: #b8b8b8;
  --sf-name-color: #fff;
  --sf-role-color: #888;
  --sf-accent: #e63946;
  --sf-avatar-1: linear-gradient(135deg, #e63946, #ff7043);
  --sf-avatar-2: linear-gradient(135deg, #5AA9FF, #1F4A8B);
  --sf-avatar-3: linear-gradient(135deg, #B78CFF, #5A3FB7);
}

/* ── Section ── */
[data-sf-block="sf-testimonials"] .testimonials-section {
  background: var(--sf-testimonials-bg);
  padding: 160px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* ── Grid layout (manual) ── */
[data-sf-block="sf-testimonials"] .testimonials-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 80px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}
[data-sf-block="sf-testimonials"] .testimonials-grid .testimonial-card {
  width: 340px;
}

/* ── Carousel layout (manual) ── */
[data-sf-block="sf-testimonials"] .testimonials-carousel {
  position: relative;
  max-width: 1280px;
  margin: 40px auto 0;
  padding: 0 60px;
}
[data-sf-block="sf-testimonials"] .testimonials-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 14px 6px 60px;
  scroll-padding-left: 6px;
}
[data-sf-block="sf-testimonials"] .testimonials-track::-webkit-scrollbar { display: none; }
[data-sf-block="sf-testimonials"] .testimonials-track .testimonial-card {
  flex: 0 0 360px;
  scroll-snap-align: start;
  min-height: 300px;
}

/* ── Card ── */
[data-sf-block="sf-testimonials"] .testimonial-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--sf-card-bg-top) 0%, var(--sf-card-bg-bottom) 100%);
  border: 1px solid var(--sf-card-border);
  border-radius: 16px;
  padding: 32px 28px;
  text-align: left;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
[data-sf-block="sf-testimonials"] .testimonial-card:hover {
  border-color: rgba(230,57,70,0.32);
  transform: translateY(-3px);
  box-shadow: 0 18px 50px -18px rgba(230,57,70,0.35), 0 0 0 1px rgba(230,57,70,0.05);
}
[data-sf-block="sf-testimonials"] .stars {
  color: var(--sf-star-color);
  font-size: 17px;
  margin-bottom: 18px;
  letter-spacing: 2px;
}
[data-sf-block="sf-testimonials"] .testimonial-card p {
  font-size: 15px;
  color: var(--sf-quote-color);
  line-height: 1.7;
  margin: 0 0 28px;
}

/* ── Author ── */
[data-sf-block="sf-testimonials"] .testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
[data-sf-block="sf-testimonials"] .testimonial-author .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  object-fit: cover;
  background: var(--sf-accent);
}
[data-sf-block="sf-testimonials"] .testimonial-author .avatar.a-1 { background: var(--sf-avatar-1); }
[data-sf-block="sf-testimonials"] .testimonial-author .avatar.a-2 { background: var(--sf-avatar-2); }
[data-sf-block="sf-testimonials"] .testimonial-author .avatar.a-3 { background: var(--sf-avatar-3); }
[data-sf-block="sf-testimonials"] .testimonial-author .name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--sf-name-color);
  line-height: 1.2;
}
[data-sf-block="sf-testimonials"] .testimonial-author .role {
  font-size: 12.5px;
  color: var(--sf-role-color);
  line-height: 1.3;
  margin-top: 3px;
}

/* ── Carousel nav arrows ── */
[data-sf-block="sf-testimonials"] .t-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
[data-sf-block="sf-testimonials"] .t-nav:hover {
  background: rgba(230,57,70,0.18);
  border-color: rgba(230,57,70,0.55);
  box-shadow: 0 0 28px rgba(230,57,70,0.25);
}
[data-sf-block="sf-testimonials"] .t-nav:active { transform: translateY(-50%) scale(0.94); }
[data-sf-block="sf-testimonials"] .t-prev { left: 0; }
[data-sf-block="sf-testimonials"] .t-next { right: 0; }

@media (max-width: 900px) {
  [data-sf-block="sf-testimonials"] .testimonials-section { padding: 80px 20px; }
  [data-sf-block="sf-testimonials"] .testimonials-grid .testimonial-card { width: 100%; max-width: 420px; }
}
@media (max-width: 700px) {
  [data-sf-block="sf-testimonials"] .testimonials-carousel { padding: 0 16px; }
  [data-sf-block="sf-testimonials"] .t-nav { display: none; }
  [data-sf-block="sf-testimonials"] .testimonials-track .testimonial-card { flex: 0 0 calc(100vw - 64px); }
}
