/* Reusable Digital102 testimonial component. */
.d102-home.d102-testimonials {
  --d102-purple: #742eff;
  --d102-deep: #391780;
  --d102-yellow: #ffc300;
  --d102-text: #111827;
  --d102-muted: #4b5563;
  box-sizing: border-box;
  padding: clamp(44px, 6vw, 72px) 24px;
  overflow: hidden;
  background: #f7f8fb;
  color: var(--d102-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.d102-home.d102-testimonials *,
.d102-home.d102-testimonials *::before,
.d102-home.d102-testimonials *::after {
  box-sizing: border-box;
}

.d102-home.d102-testimonials .d102-container {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.d102-home.d102-testimonials .d102-section-head {
  max-width: 840px;
  margin: 0 auto 34px;
  text-align: center;
}

.d102-home.d102-testimonials .d102-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--d102-purple);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.d102-home.d102-testimonials .d102-eyebrow::before {
  width: 28px;
  height: 3px;
  flex: 0 0 28px;
  border-radius: 999px;
  background: var(--d102-yellow);
  content: "";
}

.d102-home.d102-testimonials .d102-title {
  margin: 0;
  color: var(--d102-deep);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
}

.d102-home.d102-testimonials .d102-lead {
  margin: 16px auto 0;
  color: var(--d102-muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.d102-home.d102-testimonials .d102-testimonial-grid {
  display: grid;
  gap: 24px;
  width: 100%;
  margin: 0 auto;
}

.d102-home.d102-testimonials .d102-testimonial-grid[data-count="1"] {
  max-width: 900px;
  grid-template-columns: minmax(0, 1fr);
}

.d102-home.d102-testimonials .d102-testimonial-grid[data-count="2"] {
  max-width: 1080px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.d102-home.d102-testimonials .d102-testimonial-grid[data-count="3"] {
  max-width: 1180px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.d102-home.d102-testimonials .d102-testimonial-grid[data-layout="carousel"] {
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 380px);
  grid-template-columns: none;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
  padding: 4px 4px 14px;
}

.d102-home.d102-testimonials .d102-testimonial-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  padding: clamp(26px, 4vw, 40px);
  overflow: hidden;
  border: 1px solid rgba(57, 23, 128, 0.14);
  border-top: 4px solid var(--d102-yellow);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(57, 23, 128, 0.09);
  scroll-snap-align: start;
}

.d102-home.d102-testimonials .d102-testimonial-quote-mark {
  display: block;
  height: 42px;
  margin-bottom: 8px;
  color: var(--d102-yellow);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 0.9;
}

.d102-home.d102-testimonials .d102-testimonial-card blockquote {
  flex: 1;
  margin: 0;
  padding: 0;
  border: 0;
}

.d102-home.d102-testimonials .d102-testimonial-card blockquote p {
  margin: 0;
  color: #2f2147;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  font-weight: 500;
  line-height: 1.75;
}

.d102-home.d102-testimonials .d102-testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(57, 23, 128, 0.12);
}

.d102-home.d102-testimonials .d102-testimonial-avatar {
  display: block;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  background: #f0e8ff;
  box-shadow: 0 0 0 2px rgba(57, 23, 128, 0.16);
  object-fit: cover;
  object-position: center;
}

.d102-home.d102-testimonials .d102-testimonial-author-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
  color: #5d506f;
  font-size: 0.9rem;
  line-height: 1.4;
}

.d102-home.d102-testimonials .d102-testimonial-author-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  color: var(--d102-deep);
  text-decoration: none;
}

.d102-home.d102-testimonials .d102-testimonial-linkedin {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 4px;
  background: #0a66c2;
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.d102-home.d102-testimonials .d102-testimonial-author-copy > span a {
  color: var(--d102-deep);
  font-weight: 700;
  text-decoration: none;
}

.d102-home.d102-testimonials a:focus-visible {
  outline: 3px solid var(--d102-yellow);
  outline-offset: 4px;
}

.d102-home.d102-testimonials .d102-testimonial-author-link:hover,
.d102-home.d102-testimonials .d102-testimonial-author-link:focus-visible,
.d102-home.d102-testimonials .d102-testimonial-author-copy > span a:hover,
.d102-home.d102-testimonials .d102-testimonial-author-copy > span a:focus-visible {
  color: var(--d102-purple);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .d102-home.d102-testimonials .d102-testimonial-grid[data-count="2"],
  .d102-home.d102-testimonials .d102-testimonial-grid[data-count="3"] {
    max-width: 720px;
    grid-template-columns: minmax(0, 1fr);
  }

  .d102-home.d102-testimonials .d102-testimonial-grid[data-layout="carousel"] {
    grid-auto-columns: min(84vw, 340px);
  }
}

@media (max-width: 520px) {
  .d102-home.d102-testimonials .d102-testimonial-card {
    padding: 24px 20px;
  }

  .d102-home.d102-testimonials .d102-testimonial-author {
    align-items: flex-start;
  }
}
