#testimonials {
  background: var(--cream);
  color: var(--black);
  padding: var(--section-pad);
}

.test-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.test-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: 2px;
  color: var(--black);
  margin-bottom: 56px;
  line-height: 1;
}

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  padding: 0;
}

.test-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  align-items: start;
}

.test-photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
}

.test-photo-link {
  display: block;
  border-radius: 50%;
  transition: opacity 0.2s;
}

.test-photo-link:hover {
  opacity: 0.8;
}

.test-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 2px solid #ddd;
}

.test-body {
  display: flex;
  flex-direction: column;
}

.test-quote {
  font-family: var(--font-body);
  font-size: 19px;
  font-style: italic;
  color: #333;
  line-height: 1.85;
  margin-bottom: 24px;
}

.test-quote::before { content: '\201C'; }
.test-quote::after  { content: '\201D'; }

.test-attribution {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.test-name {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--black);
  text-decoration: none;
  transition: color 0.2s;
}

.test-name:hover {
  color: var(--green);
}

.test-role {
  font-family: var(--font-ui);
  font-size: 14px;
  color: #888;
  letter-spacing: 0.5px;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 48px;
}

.carousel-btn {
  background: none;
  border: 1px solid var(--green);
  color: var(--green);
  width: 40px;
  height: 40px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.carousel-btn:hover {
  background: var(--green);
  color: var(--cream);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active {
  background: var(--green);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  #testimonials {
    padding: 64px 24px;
  }

  .test-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .test-photo-col {
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }

  .test-photo {
    width: 80px;
    height: 80px;
  }

  .test-quote {
    font-size: 16px;
  }
}
