/* Testimonials Section Styles */

.testimonials-section {
  padding: 150px 0 0 0;
  background: #f8f7ec url("../assets/images/testimonials-vector.svg") no-repeat;
  background-size: calc(100% - 320px) auto;
  background-position: left;
  background-blend-mode: difference;
}

.testimonials-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.testimonials-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.testimonials-text {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 570px;
}

.testimonials-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 1;
  color: #1f1f1f;
  margin: 0;
}

.testimonials-description {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #484848;
  margin: 0;
}

.testimonials-navigation {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.testimonials-navigation.mobile-nav {
  display: none;
}

.testimonial-nav-btn {
  width: 24px;
  height: 24px;
  background: #ffcc29;
  border: none;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.testimonial-nav-btn:hover {
  opacity: 0.8;
}

.testimonial-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.testimonial-nav-btn.prev-btn svg {
  transform: rotate(180deg);
}

.testimonial-nav-btn.next-btn svg {
  transform: rotate(0deg);
}

.testimonials-carousel-wrapper {
  overflow: hidden;
  width: 100%;
}

.testimonials-carousel {
  display: flex;
  gap: 41px;
  transition: transform 0.5s ease;
}

.testimonial-card {
  flex-shrink: 0;
  width: 346px;
  height: 320px;
  background: #e7e5dc;
  border-radius: 8px;
  padding: 24px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-content {
  flex: 1;
  display: flex;
  align-items: flex-start;
}

.testimonial-text {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #1f1f1f;
  margin: 0;
  max-height: 150px;
  overflow: hidden;
}

.testimonial-footer {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.testimonial-divider {
  width: 100%;
  height: 1px;
  border-top: 0.8px dashed #1f1f1f;
  opacity: 0.5;
}

.testimonial-author {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #1f1f1f;
  margin: 0;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .testimonials-section {
    padding: 150px 0 0 0;
  }

  .testimonials-container {
    gap: 48px;
    padding: 0;
  }

  .testimonials-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
  }

  .testimonials-text {
    max-width: 311px;
    gap: 24px;
    align-items: center;
  }

  .testimonials-title {
    font-size: 24px;
  }

  /* Hide desktop navigation, show mobile navigation */
  .testimonials-header .testimonials-navigation {
    display: none;
  }

  .testimonials-navigation.mobile-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
  }

  .testimonials-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin: 0 -30px;
    padding: 0 30px;
  }

  .testimonials-carousel {
    gap: 16px;
    justify-content: flex-start;
  }

  .testimonial-card {
    width: 311px;
    flex-shrink: 0;
  }

  /* Fade overlays for mobile */
  .testimonials-carousel-wrapper::before,
  .testimonials-carousel-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px;
    z-index: 1;
    pointer-events: none;
  }

  .testimonials-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #f8f7ec, transparent);
  }

  .testimonials-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #f8f7ec, transparent);
  }
}
