/* ============================================================
   Testimonials Carousel Component
   - Card height limited to 180px (collapsed)
   - Read more / קרא עוד pinned inside the card (never clipped)
============================================================ */

/* Section spacing from the original */
.testimonials-section {
  padding: 90px 0;
}

.carousel-wrapper {
  overflow: hidden;
  position: relative;
}

.testimonials-carousel {
  direction: ltr;
  display: flex;
  gap: 24px;
  overflow-x: scroll;
  scroll-behavior: auto;
  width: 100%;
  padding-bottom: 10px;
  align-items: baseline;
  padding: 0;
  @media screen and (max-width: 800px) {
    align-items: normal;
  }
}

.testimonials-carousel::-webkit-scrollbar {
  display: none;
}

/* CARD */
.testimonial-card {
  min-width: 360px;
  max-width: 360px;
  background: #111216;
  border-radius: 18px;
  padding: 20px;
  padding-bottom: 52px; /* reserve space for read-more */
  flex-shrink: 0;

  /* keep your transitions */
  transition: transform 0.25s ease, max-height 0.3s ease;

  /* collapsed height limit */
  max-height: 350px;
  overflow: hidden;
  position: relative; 
  &:hover{
    .testimonial-text{
      color: white;
    }
  }
  @media screen and (max-width: 800px) {
    max-width: 90%;
    min-width: 90%;
  }
}

/* Expanded state */
.testimonial-card.is-expanded {
  max-height: 1000px; /* safe large value */
}

/* Optional fade at bottom when collapsed (helps UX) */
.testimonial-card:not(.is-expanded)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(17, 18, 22, 0),
    rgba(17, 18, 22, 1)
  );
}

/* Hover */
.testimonial-card:hover {
  transform: translateY(-4px);
  background: #18191f;
}

/* Header */
.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.testimonial-photo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.testimonial-card:hover .testimonial-photo {
  transform: scale(1.09);
}

.testimonial-owner-link {
  text-decoration: none;
}

.testimonial-owner {
  color: #d6d6d6;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.testimonial-owner .owner-name {
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
}

.testimonial-owner .owner-title {
  font-size: 1.1rem;
  font-weight: lighter;
  color: #d6d6d6;
}

.testimonial-card:hover .testimonial-owner {
  border-color: #fff;
}

/* Quote + Text */
.testimonial-quote {
  color: #fff;
  font-size: 22px;
  margin-bottom: 12px;
  line-height: 1.4;
  direction: rtl;
  margin-top: 20px;
  font-weight: 400;
}

.testimonial-text {
  color: #bbbbbb;
  line-height: 1.3;
  direction: rtl;
  overflow: hidden;
  font-size: 1.2rem;
}

/* Read more button (pinned inside card so it never gets clipped) */
.testimonial-read-more {
  position: absolute;
  right: 24px;
  bottom: 18px;
  z-index: 1;
  display: inline-block;
  font-size: 16px;
  color: var(--accent, #f1c453);
  cursor: pointer;
  user-select: none;
}

.testimonial-read-more:hover {
  text-decoration: underline;
}
