/* Testimonials Auto-Slider Styles - 2 at a time */

.testimonials-slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  padding: 2rem 0;
}

.testimonials-slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.testimonial-slide {
  flex: 0 0 50%;
  width: 50%;
  padding: 0 1rem;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.testimonial-slide.active {
  opacity: 1;
  animation: slideIn 0.6s ease-out;
}

.testimonial-slide > div {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(217, 93, 57, 0.1);
  position: relative;
  overflow: hidden;
}

.testimonial-slide > div::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 8rem;
  color: rgba(217, 93, 57, 0.08);
  font-family: Georgia, serif;
  line-height: 1;
  z-index: 0;
}

.testimonial-slide:hover > div {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(217, 93, 57, 0.15);
  border-color: var(--burnt-orange);
}

.testimonial-rating {
  color: var(--burnt-orange);
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  letter-spacing: 0.15rem;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  position: relative;
  z-index: 1;
}

.testimonial-text {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  flex-grow: 1;
  font-size: 1rem;
  position: relative;
  z-index: 1;
  padding-left: 1.5rem;
}

.testimonial-text::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--burnt-orange), transparent);
  border-radius: 2px;
}

.testimonial-author {
  font-weight: 700;
  color: var(--burnt-orange);
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

.testimonial-role {
  font-size: 0.9rem;
  color: var(--slate-grey);
  font-weight: 500;
  position: relative;
  z-index: 1;
}

/* Controls */
.testimonials-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.testimonials-nav-btn {
  background: var(--burnt-orange);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  line-height: 1;
  padding: 0;
}

.testimonials-nav-btn:hover {
  background: #D2691E;
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.testimonials-nav-btn:active {
  transform: scale(0.95);
}

/* Dots */
.testimonials-dots {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.testimonials-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #DDD;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.testimonials-dot:hover {
  background: var(--burnt-orange);
  transform: scale(1.2);
}

.testimonials-dot.active {
  background: var(--burnt-orange);
  width: 16px;
  height: 16px;
  border-color: var(--burnt-orange-light);
}

.mobile-card-slider-wrapper {
  width: 100%;
}

.mobile-card-slider-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-card-slider-controls {
  display: none;
}

/* Animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .testimonials-slider-wrapper {
    padding: 1rem 0;
  }
  
  .testimonial-slide {
    flex: 0 0 100%;
    width: 100%;
    padding: 0 0.5rem;
  }
  
  .testimonial-slide > div {
    padding: 1.5rem;
  }
  
  .testimonial-slide > div::before {
    font-size: 5rem;
    top: -5px;
  }
  
  .testimonials-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  
  .testimonials-controls {
    gap: 1rem;
    margin-top: 1.5rem;
  }
  
  .testimonials-dot {
    width: 10px;
    height: 10px;
  }
  
  .testimonials-dot.active {
    width: 14px;
    height: 14px;
  }
  
  .testimonial-rating {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  
  .testimonial-text {
    font-size: 0.95rem;
    padding-left: 1rem;
  }

  .mobile-card-slider {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden;
  }

  .mobile-card-slider-wrapper {
    overflow: hidden;
    padding: 1.5rem 0 1rem;
  }

  .mobile-card-slider-track {
    display: flex !important;
    gap: 0;
    width: 100%;
  }

  .mobile-card-slide {
    flex: 0 0 100%;
    width: 100%;
    padding: 0 0.5rem;
    opacity: 0;
    transition: opacity 0.6s ease;
  }

  .mobile-card-slide.active {
    opacity: 1;
    animation: slideIn 0.6s ease-out;
  }

  .mobile-card-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
  }
}
