/* Testimonial Slider Styles */

/* ---- Testimonial Section ---- */
.testimonial-section {
  background: linear-gradient(135deg, var(--brand-light) 0%, rgba(236, 253, 245, 0.5) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 0;
}

/* ---- Testimonial Slider Container ---- */
.testimonial-slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-xl);
}

/* ---- Testimonial Track ---- */
.testimonial-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* ---- Testimonial Slide ---- */
.testimonial-slide {
  min-width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.testimonial-slide.active {
  opacity: 1;
}

/* ---- Testimonial Content ---- */
.testimonial-content {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 60px;
  min-height: 300px;
}

/* ---- Testimonial Avatar ---- */
.testimonial-avatar {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--brand-light);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 2px;
}

/* ---- Testimonial Text ---- */
.testimonial-text {
  flex: 1;
  text-align: left;
}

.testimonial-text .stars {
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}

.testimonial-text blockquote {
  margin: 0 0 24px;
  padding: 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  font-style: italic;
  position: relative;
}

.testimonial-text blockquote::before {
  content: '"';
  position: absolute;
  left: -20px;
  top: -10px;
  font-size: 60px;
  color: var(--brand-light);
  font-family: serif;
  line-height: 1;
}

/* ---- Testimonial Author ---- */
.testimonial-author {
  margin-top: 24px;
}

.author-name {
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 4px;
}

.author-title {
  font-size: 14px;
  color: var(--muted);
  font-style: normal;
}

/* ---- Testimonial Controls ---- */
.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: rgba(250, 250, 250, 0.8);
  border-top: 1px solid var(--border);
}

.testimonial-prev,
.testimonial-next {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.testimonial-prev:hover,
.testimonial-next:hover {
  background: var(--brand-light);
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-1px);
}

.testimonial-prev:disabled,
.testimonial-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ---- Testimonial Dots ---- */
.testimonial-dots {
  display: flex;
  gap: 12px;
  align-items: center;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.dot:hover {
  border-color: var(--brand);
  transform: scale(1.2);
}

.dot.active {
  background: var(--brand);
  border-color: var(--brand);
  transform: scale(1.3);
}

/* ---- Progress Bar ---- */
.testimonial-slider .progress-bar {
  position: relative;
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 20px;
  overflow: hidden;
}

.testimonial-slider .progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--progress-width, 0%);
  background: linear-gradient(90deg, var(--brand) 0%, #22c55e 100%);
  border-radius: 2px;
  transition: width 0.1s linear;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

/* ---- Responsive Testimonial Styles ---- */

/* Large Desktop */
@media (min-width: 1200px) {
  .testimonial-content {
    padding: 80px;
    gap: 50px;
  }
  
  .testimonial-avatar {
    width: 140px;
    height: 140px;
  }
  
  .testimonial-text blockquote {
    font-size: 20px;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .testimonial-content {
    padding: 50px 40px;
    gap: 30px;
  }
  
  .testimonial-avatar {
    width: 100px;
    height: 100px;
  }
  
  .avatar-placeholder {
    font-size: 28px;
  }
  
  .testimonial-text blockquote {
    font-size: 17px;
  }
  
  .testimonial-controls {
    padding: 16px 30px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .testimonial-section {
    padding: 60px 0;
  }
  
  .testimonial-content {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
    gap: 24px;
    min-height: auto;
  }
  
  .testimonial-avatar {
    width: 80px;
    height: 80px;
  }
  
  .avatar-placeholder {
    font-size: 24px;
  }
  
  .testimonial-text {
    text-align: center;
  }
  
  .testimonial-text blockquote {
    font-size: 16px;
  }
  
  .testimonial-text blockquote::before {
    left: 50%;
    transform: translateX(-50%);
    top: -15px;
    font-size: 50px;
  }
  
  .testimonial-controls {
    padding: 16px 20px;
  }
  
  .testimonial-prev,
  .testimonial-next {
    width: 40px;
    height: 40px;
  }
  
  .dot {
    width: 10px;
    height: 10px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .testimonial-content {
    padding: 30px 20px;
  }
  
  .testimonial-avatar {
    width: 70px;
    height: 70px;
  }
  
  .avatar-placeholder {
    font-size: 20px;
  }
  
  .testimonial-text blockquote {
    font-size: 15px;
    line-height: 1.6;
  }
  
  .author-name {
    font-size: 15px;
  }
  
  .author-title {
    font-size: 13px;
  }
  
  .testimonial-controls {
    padding: 12px 16px;
  }
  
  .testimonial-dots {
    gap: 8px;
  }
}
