/* MedRefer — GP Testimonials section styles. Scoped under .testimonials. */

.testimonials {
  padding: 80px 0 96px;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.testimonials .t-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}
.testimonials .t-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px;
  color: var(--teal-ink);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  margin-bottom: 18px;
}
.testimonials .t-kicker::before, .testimonials .t-kicker::after {
  content:""; width: 24px; height: 1px; background: var(--teal-deep); opacity: 0.5;
}
.testimonials .t-head h2 {
  font-weight: 600;
  font-size: clamp(30px, 3.8vw, 44px);
  letter-spacing: -0.028em;
  line-height: 1.1;
  color: var(--navy);
  margin: 0 0 16px;
  text-wrap: balance;
}
.testimonials .t-head p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 auto;
  max-width: 540px;
}

/* Carousel */
.testimonials .carousel {
  overflow: hidden;
  margin-bottom: 28px;
}
.testimonials .track {
  display: flex;
  gap: 20px;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}
.testimonials .quote-card {
  flex: 0 0 calc((100% - 40px) / 3);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(11,22,34,0.04);
}
.testimonials .quote-mark {
  font-family: 'Poppins', sans-serif;
  font-size: 56px;
  line-height: 0.7;
  font-weight: 600;
  color: var(--teal);
  height: 32px;
  margin-bottom: 14px;
  user-select: none;
}
.testimonials .quote-text {
  font-size: 16px;
  line-height: 1.55;
  color: var(--navy);
  margin: 0 0 22px;
  flex: 1;
  letter-spacing: -0.005em;
}
.testimonials .quote-divider {
  height: 1px;
  background: var(--rule-soft);
  border: 0;
  margin: 0 0 18px;
}
.testimonials .quote-meta {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
}
.testimonials .q-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.01em;
  flex: none;
}
.testimonials .q-avatar.teal { background: linear-gradient(135deg, #00BFA6, #008F7C); color: #053B33; }
.testimonials .q-avatar.navy { background: linear-gradient(135deg, #2E4A66, #0D1B2A); }
.testimonials .q-avatar.plum { background: linear-gradient(135deg, #7E5A7E, #4A2D4A); }
.testimonials .q-avatar.gold { background: linear-gradient(135deg, #C19A4B, #8B6E2F); }
.testimonials .q-avatar.sage { background: linear-gradient(135deg, #6B8B7E, #3D5C50); }
.testimonials .q-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 2px;
}
.testimonials .q-role {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.35;
  margin: 0;
}
.testimonials .q-role .pipe { color: var(--ink-3); margin: 0 5px; }

/* Controls */
.testimonials .carousel-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 24px;
  margin-top: 8px;
}
.testimonials .arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--navy);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, opacity .15s;
}
.testimonials .arrow:hover {
  background: var(--surface-2);
  border-color: #CFD5DE;
}
.testimonials .arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: transparent;
}
.testimonials .dots {
  display: inline-flex; align-items: center; gap: 10px;
}
.testimonials .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 0;
  background: var(--rule);
  padding: 0;
  cursor: pointer;
  transition: background .15s, width .2s;
}
.testimonials .dot:hover { background: var(--ink-3); }
.testimonials .dot.active {
  background: var(--navy);
  width: 22px;
  border-radius: 999px;
}

@media (max-width: 1080px) {
  .testimonials .quote-card { flex: 0 0 calc((100% - 20px) / 2); }
}
@media (max-width: 720px) {
  .testimonials { padding: 56px 0 64px; }
  .testimonials .quote-card { flex: 0 0 100%; }
}
