.testimonial-section {
  /* Background image removed - using glassmorphic styling instead */
}

.testimonial-text {
  transition: max-height 0.3s ease-out;
  max-height: 4.5em;
  overflow: hidden;
}

.testimonial-text.expanded {
  max-height: 1000px;
}

.full-text {
  display: none;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.full-text:not(.hidden) {
  display: inline;
}

.testimonial-text.expanded .full-text {
  display: inline;
}

.testimonial-card {
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.client-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.testimonial-card:hover .client-overlay {
  opacity: 0.3;
}

#toggleButton {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  outline: inherit;
  cursor: pointer;
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

#toggleButton:hover {
  opacity: 0.8;
}

#toggleButton:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.avatar-container {
  position: relative;
}

.avatar-container img:first-child {
  position: absolute;
  bottom: -0.25rem;
  right: -0.25rem;
}

.avatar-container img:last-child {
  position: absolute;
  z-index: 10;
}

/* Hide content for screen readers only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}