.testimonials {
  padding: 0;
}

.testimonials__header {
  text-align: center;
  margin-bottom: 3rem;
}

.testimonials__heading {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  color: rgb(var(--color-foreground));
  margin: 0 0 1rem 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.testimonials__subheading {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(var(--color-foreground), 0.7);
  margin: 0;
}

.testimonials__grid {
  display: grid;
  gap: 1.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.testimonials__grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.testimonials__grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.testimonials__grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media screen and (max-width: 989px) {
  .testimonials__grid--3,
  .testimonials__grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 749px) {
  .testimonials__grid--2,
  .testimonials__grid--3,
  .testimonials__grid--4 {
    grid-template-columns: 1fr;
  }
}

.testimonials__card {
  background: rgba(var(--color-foreground), 0.06);
  border-radius: 1.2rem;
  padding: 2.8rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.testimonials__card:hover {
  background: rgba(var(--color-foreground), 0.1);
  transform: translateY(-4px);
}

.testimonials__quote-icon {
  width: 3.5rem;
  height: 3.5rem;
  color: rgba(var(--color-foreground), 0.1);
  margin-bottom: 1.5rem;
  flex-shrink: 0;
  transition: color 0.4s ease, transform 0.4s ease;
}

.testimonials__card:hover .testimonials__quote-icon {
  color: rgba(var(--color-foreground), 0.2);
  transform: scale(1.1);
}

.testimonials__quote {
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.7;
  color: rgb(var(--color-foreground));
  margin: 0 0 2rem 0;
  flex-grow: 1;
  border-left: 3px solid rgba(var(--color-foreground), 0.15);
  padding-left: 1.5rem;
  transition: border-color 0.4s ease;
}

.testimonials__card:hover .testimonials__quote {
  border-color: rgba(var(--color-foreground), 0.35);
}

.testimonials__author {
  margin-top: auto;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonials__card:hover .testimonials__author {
  transform: translateX(4px);
}

.testimonials__author-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgb(var(--color-foreground));
  margin: 0;
  line-height: 1.4;
}

.testimonials__author-role {
  font-size: 0.95rem;
  color: rgba(var(--color-foreground), 0.5);
  margin: 0.25rem 0 0 0;
  line-height: 1.4;
}

/* Animation support */
.testimonials__card.scroll-trigger.animate--slide-in {
  opacity: 0;
}

.testimonials__card.scroll-trigger.animate--slide-in.scroll-trigger--animate {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .testimonials__card,
  .testimonials__quote-icon,
  .testimonials__quote,
  .testimonials__author {
    transition: none;
  }
}
