/* Stack Cards Effect với GSAP */
.testimonial-carousel {
  position: relative;
  width: 100%;
  min-width: 320px;
  margin: 4px;
  padding: 24px;
  overflow: hidden;
  /* Ẩn các card tràn ra ngoài */
  height: 700px;
}

/* Mỗi card sẽ được GSAP pin */
.testimonial-item {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
}

.testimonial-item__inner {
  background: linear-gradient(180deg, #c32921 0%, #C1121F 70%);
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  color: #fff;
  overflow: hidden;
  height: 520px;
}

.testimonial-item:first-child .testimonial-item__inner {
  box-shadow: 0px 10px 30px 0px rgba(0, 0, 0, 0.25);
}

/* Nội dung bên trái */
.testimonial-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-content {
  flex: 1 1 70%;
  display: flex;
  gap: 16px;
  flex-direction: column;
  justify-content: center;
}

.testimonial-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0;
  color: #fff;
  opacity: 0.9;
}

/*Content text*/
.testimonial-text {
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  text-align: justify;
  padding: 0px 68px;
}

/* Logo bên trái */
.testimonial-logo {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Ảnh bên phải */
.testimonial-image {
  flex: 1 1 30%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-image img {
  width: 320px;
  height: 320px;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 600px) {

  .testimonial-carousel {
    height: auto;
    min-height: 620px;
  }

  .testimonial-header {
    justify-content: center;
    margin-bottom: 8px;
  }

  .testimonial-item__inner {
    flex-direction: column;
    padding: 16px 8px;
    border-radius: 12px;
    box-sizing: border-box;
    height: 400px;
  }

  .testimonial-content {
    width: 100%;
    word-break: break-word;
    gap: 20px;
  }

  .testimonial-title {
    font-size: 20px;
    text-align: center;
  }

  .testimonial-text {
    font-size: 12px;
    text-align: center;
    padding: 0px 8px;
  }

  .testimonial-image img {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    display: block;
  }
}

@media (max-width: 1200px) {
  .testimonial-carousel {
    height: 1200px;
  }
}