.testimonial-page {
  background: #f4faff;
}

.testimonial-page .scenic-container-large.testimonial-container {
  padding: 80px 20px;
}
.testimonial-page .testimonial-slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding-top: 0;
  padding-bottom: 0;
  overflow: visible;
  max-width: 100%;
  position: static;
  flex-direction: unset;
  align-items: unset;
  align-items: start;
}

.testimonial-page .testimonial-slide {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  padding: 30px 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);

  min-height: 270px;
  position: relative;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  text-align: left;
  transition: box-shadow 0.3s ease;
}

.testimonial-page .testimonial-slide:hover {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
}
.testimonial-page .testimonial-slide .testimonial-content {
  height: auto;
}
.testimonial-page .testimonial-slide p {
  order: 0;
  flex: 1;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  min-height: calc(1.8em * 4);
  text-align: left;
}
.testimonial-page .testimonial-slide.expanded {
  align-self: start;
}
.testimonial-page .testimonial-slide.expanded p {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
  min-height: unset;
}

.testimonial-read-more {
  order: 1;
  background: none;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--primary-font);
  padding: 6px 0 0 0;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  transition: opacity 0.2s;
}

.testimonial-read-more:hover {
  opacity: 0.7;
}

.testimonial-page .testimonial-slide h3 {
  order: 2;
  flex-shrink: 0;
  margin: auto 0 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: 16px;
  font-size: 18px;
  text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
  .testimonial-page .testimonial-slider {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .testimonial-page .testimonial-slider {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .testimonial-page .testimonial-slide {
    padding: 24px 20px;
  }
}

@media (max-width: 400px) {
  .testimonial-page .testimonial-slide {
    padding: 20px 16px;
    border-radius: 12px;
  }
}
