.testimonial-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease-in-out, visibility 200ms ease-in-out;
  z-index: 1050;
}

.testimonial-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Modal container */
.testimonial-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.98);
  width: 90%;
  max-width: 820px;
  max-height: 85vh;
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease-in-out, transform 200ms ease-in-out, visibility 200ms ease-in-out;
  z-index: 1060;
  display: flex;
  flex-direction: column;
}

.testimonial-modal.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.testimonial-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid #eee;
  flex: 0 0 auto;

  .ratings {
    margin-bottom: 0
  }
}

.testimonial-modal .testimonial-modal-close {
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #000;
}

.testimonial-modal .testimonial-modal-content {
  margin: 0;
  color: #222;
  padding: 0 18px 8px 18px;
  flex: 1 1 auto;
  overflow: auto;
}

.testimonial-modal-body {
  line-height: 1.2;

  p {
    margin-bottom: 0;
  }
}

.testimonial-modal-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid #eee;
  flex: 0 0 auto;

  .text-right {
    text-align: left;
    color: #000;
  }
}

.testimonial-item {
  background: #431712;
  border: 2px solid #3f1e0d;
  padding-bottom: 20px;
}

.testimonial-item .testimonial-content {
  cursor: pointer;
}

/* Limit testimonial text on the page to 5 lines (ellipsis) */
.testimonial-content p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Collapse consecutive <br> on page (render as single break)
   This hides any <br> that follows another <br> so double <br>
   only shows a single line break in normal page content. */
.testimonial-content p br~br {
  display: none;
}

/* When shown inside the modal, show full content */
.testimonial-modal .testimonial-modal-content p {
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
  text-overflow: unset;
}

/* Inside the modal, allow consecutive <br> to render normally */
.testimonial-modal .testimonial-modal-content p br~br {
  display: inline;
}

.author-quote-item {
  width: 100%;
}

/* Ensure Slick-injected Lucide SVGs are visible and sized */
.testimonial-slider {
  position: relative;
}

.testimonial-slider .slick-prev svg,
.testimonial-slider .slick-next svg {
  width: 28px;
  height: 28px;
  color: #fff;
  /* controls stroke via currentColor */
  stroke: currentColor;
  fill: none;
  display: inline-block;
}

/* place both arrows below the slider on the left */
.testimonial-slider .slick-prev,
.testimonial-slider .slick-next {
  position: absolute;
  bottom: -40px;
  top: auto !important;
  transform: none !important;
  z-index: 20;
  background: #ff4e33;
  border-radius: 50%;
  height: 48px;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-slider .slick-prev {
  right: 100px;
}

.testimonial-slider .slick-next {
  right: 35px;
}

/* move dots to bottom-right */
.testimonial-slider .slick-dots {
  position: absolute;
  bottom: -15px;
  left: 50px;
  display: flex !important;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-content: flex-end;
}

.testimonial-slider .slick-dots li {
  margin: 0;
  background: #fff;
  border: 2px solid #fff;
}

.slick-dots li.slick-active {
  background-color: #ff4e33 !important;
}

.testimonial-slider .slick-dots li button {
  display: none;
}

/* If Tailwind classes on injected SVGs aren't applied, these rules ensure visibility */
.testimonial-slider .slick-prev svg.w-7,
.testimonial-slider .slick-next svg.w-7 {
  width: 28px !important;
  height: 28px !important;
}

#testimonials .quote {
  position: absolute;
  top: -25px;
  z-index: 9;
  left: 50px;
}