/* ================= SECTION ================= */

.testimonials {
  width: 100%;
  padding: 100px 20px 60px;
  background: linear-gradient(
    to bottom,
    #ffffff 0px,
    #ffffff 10px,
    #ffe7df 40px,
    #f4b7a6 70px,
    #ebada2 100px
  );
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  text-transform: uppercase;
  font-family: "Open Sans", sans-serif !important;
  color: #fff;
}

/* ================= LAYOUT (FLEX WRAP INSTEAD OF GRID) ================= */

.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

/* ================= CARD ================= */

.testimonial-card {
  width: 100%;
  max-width: 380px; /* FIXED WIDTH */
  background: linear-gradient(135deg, #ef9e83 0%, #0a2252 100%);
  color: #fff;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px);
}

/* ================= IMAGE ================= */

.card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: #000;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* .card-image img,
.card-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
} */
/* Video wrapper */
/* .video-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
} */

/* Play overlay */
/* .play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease;
} */

/* .play-overlay:hover {
  background: rgba(0, 0, 0, 0.6);
} */

/* Hide overlay when playing */
/* .video-wrapper.playing .play-overlay {
  display: none;
} */

/* ================= CONTENT ================= */

.card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
}

.card-content h4 {
  margin-bottom: 12px;
  font-weight: 600;
}

/* ================= TEXT ================= */

.text {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
  max-height: 110px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

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

/* ================= TOGGLE ================= */

.toggle-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 15px;
}

.arrow-icon {
  transition: transform 0.3s ease;
}

.testimonial-card.expanded .arrow-icon {
  transform: rotate(180deg);
}

/* ================= STARS ================= */

.stars {
  margin-top: auto;
  color: #ffd700;
  font-size: 18px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
  .testimonial-card {
    max-width: 100%;
  }

  .card-image {
    height: 220px;
  }
}
