/* ==========================================================
   TESTIMONIALS CAROUSEL
   Place this file in: /assets/css/sv-testimonials.css
========================================================== */

/* Section Container */
.sv-testimonials{
  position: relative;
  padding: 2px 0;
  background-color: #eed5bc;
  text-align: center;
}

/* Section Title */
.sv-testimonials-title{
  font-family: "Garamond Premier Pro", "Adobe Garamond Pro", Garamond, "EB Garamond", serif;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.1;
  color: rgba(0,0,0,.92);
  margin: -40px 0 30px 0;
}

/* Carousel Container */
.sv-testimonials-carousel{
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  overflow: hidden;
}

/* Testimonials Track (uses fade, not slide) */
.sv-testimonials-track{
  position: relative;
  min-height: 160px; /* Prevents layout shift during transitions */
}

/* Individual Testimonial */
.sv-testimonial{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 0 40px;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  pointer-events: none;
}

.sv-testimonial.active{
  opacity: 1;
  pointer-events: auto;
}

/* Testimonial Text */
.sv-testimonial-text{
  font-family: "Garamond Premier Pro", "Adobe Garamond Pro", Garamond, "EB Garamond", serif;
  font-size: 20px;
  line-height: 1.4;
  color: rgba(0,0,0,.85);
  margin: 0 0 20px 0;
  font-style: italic;
}

/* Author Attribution */
.sv-testimonial-author{
  font-family: "Garamond Premier Pro", "Adobe Garamond Pro", Garamond, "EB Garamond", serif;
  font-size: 18px;
  font-weight: 600;
  color: rgba(0,0,0,.75);
  margin: 0;
}

/* Navigation Dots */
.sv-testimonials-dots{
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.sv-testimonials-dot{
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,.4);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.sv-testimonials-dot:hover{
  background: rgba(0,0,0,.2);
}

.sv-testimonials-dot.active{
  background: rgba(0,0,0,.7);
  border-color: rgba(0,0,0,.7);
}

/* Arrow Navigation */
.sv-testimonials-prev,
.sv-testimonials-next{
  position: absolute;
  top: 20%;
  transform: translateY(-30%);
  width: 20px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,.3);
  background: rgba(255,255,255, .44);
  color: rgba(0,0,0,.8);
  font-size: 56px;
  line-height: 1;
  padding-bottom: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.sv-testimonials-prev:hover,
.sv-testimonials-next:hover{
  background: rgba(255,255,255,.1);
  border-color: rgba(0,0,0,.1);
  transform: translateY(-50%) scale(.80);
}

.sv-testimonials-prev{
  left: 0;
}

.sv-testimonials-next{
  right: 0;
}

/* Responsive */
@media (max-width: 1024px){
  .sv-testimonials-title{
    font-size: 40px;
  }
  
  .sv-testimonial-text{
    font-size: 20px;
  }
  
  .sv-testimonials-prev,
  .sv-testimonials-next{
    width: 30px;
    height: 30px;
    font-size: 36px;
  }
}

@media (max-width: 767px){
  .sv-testimonials{
    padding: 50px 0;
  }
  
  .sv-testimonials-title{
    font-size: 32px;
    margin-bottom: 30px;
  }
  
  .sv-testimonial{
    padding: 0 20px;
  }
  
  .sv-testimonial-text{
    font-size: 18px;
  }
  
  .sv-testimonial-author{
    font-size: 16px;
  }
  
  /* Hide arrows on mobile, show dots only */
  .sv-testimonials-prev,
  .sv-testimonials-next{
    display: none;
  }
}
