/**
 * Testimonials section styles
 * Used by patterns/Home/testimonials.php
 */

:root {
  --testimonial-active-dot: rgba(0, 6, 119, 1);
  --testimonial-inactive-dot: #d1d5db;
}

/* Inner content area (inner_class: testimonial-section-inner) */
.testimonial-section-inner {
  padding: 2.5rem 0;
}

@media (min-width: 1600px) {
  .testimonial-section-inner {
    padding: 6rem 0;
  }
}

.testimonial-carousel-height {
  min-height: 520px;
}

.testimonial-mobile-height {
  min-height: 300px;
}

/* Carousel Slides */
.fade-slide,
.fade-slide-mobile {
  pointer-events: none;
}

.fade-slide.opacity-100,
.fade-slide-mobile.opacity-100 {
  pointer-events: auto;
}

/* Card Styles */
.testimonial-card,
.testimonial-card-large {
  background: #fff;
  border: 0.5px solid rgba(198, 198, 198, 1);
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.testimonial-card-large {
  padding: 24px;
}

.testimonial-quote-icon-wrapper {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.testimonial-quote {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(98, 98, 98, 0.85);
}

.testimonial-card-large .testimonial-quote {
  font-size: 14px;
}

.testimonial-name {
  font-weight: 600;
  font-size: 14px;
  color: #111;
}

.testimonial-title {
  font-weight: 300;
  font-size: 12px;
  color: #666;
}

.testimonial-author-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial-avatar,
.testimonial-avatar-large {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.testimonial-avatar-large {
  width: 48px;
  height: 48px;
}

/* Carousel Display Control - Desktop Default */
.testimonial-carousel-wrapper.mobile-carousel {
  display: none;
}

.testimonial-dots.mobile-dots {
  display: none;
}

.testimonial-carousel-wrapper.desktop-carousel {
  display: block;
}

.testimonial-dots.desktop-dots {
  display: flex;
}

/* Dots Wrapper */
.testimonial-dots-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 20px;
}

/* Hide wrapper if no dots inside */
.testimonial-dots-wrapper:empty {
  display: none;
  min-height: 0;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.fade-dot,
.fade-dot-mobile {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
  outline: none;
}

.fade-dot:hover,
.fade-dot-mobile:hover {
  transform: scale(1.1);
}

.fade-dot:focus,
.fade-dot-mobile:focus {
  outline: 2px solid var(--testimonial-active-dot);
  outline-offset: 2px;
}

.fade-dot:active,
.fade-dot-mobile:active {
  transform: scale(0.95);
}

/* Tablet and Mobile */
@media (max-width: 1024px) {
  :root {
    --testimonial-strip: 20px;
  }

  /* Hide desktop carousel and dots */
  .testimonial-carousel-wrapper.desktop-carousel {
    display: none !important;
  }

  .testimonial-dots.desktop-dots {
    display: none !important;
  }

  /* Show mobile carousel and dots */
  .testimonial-carousel-wrapper.mobile-carousel {
    display: block !important;
  }

  .testimonial-dots.mobile-dots {
    display: flex !important;
  }

  .testimonial-section-inner {
    padding: 2rem 0 3rem 0;
  }

  .testimonial-mobile-height {
    min-height: 280px;
  }
}

/* Desktop Medium */
@media (min-width: 1025px) and (max-width: 1280px) {
  .testimonial-carousel-height {
    min-height: 480px;
  }

  .testimonial-card,
  .testimonial-card-large {
    padding: 18px;
  }

  .testimonial-card-large {
    padding: 24px;
  }

  .testimonial-quote {
    font-size: 12px;
  }

  .testimonial-avatar-large {
    width: 52px;
    height: 52px;
  }
}

/* Desktop Large */
@media (min-width: 1281px) {
  .testimonial-card,
  .testimonial-card-large {
    padding: 24px;
  }

  .testimonial-card-large {
    padding: 32px;
  }

  .testimonial-quote-icon-wrapper {
    width: 80px;
    height: 80px;
  }

  .testimonial-quote {
    font-size: 14px;
  }

  .testimonial-card-large .testimonial-quote {
    font-size: 16px;
  }

  .testimonial-name {
    font-size: 16px;
  }

  .testimonial-title {
    font-size: 13px;
  }

  .testimonial-author-section {
    gap: 12px;
  }

  .testimonial-avatar {
    width: 48px;
    height: 48px;
  }

  .testimonial-avatar-large {
    width: 56px;
    height: 56px;
  }
}

/* Mobile Specific */
@media (max-width: 768px) {
  .testimonial-section-inner {
    padding: 2rem 0;
  }

  .testimonial-mobile-height {
    min-height: 320px;
  }
}

@media (max-width: 480px) {
  .testimonial-section-inner {
    padding: 1.5rem 0;
  }

  .testimonial-mobile-card {
    padding: 1.25rem !important;
  }

  .testimonial-mobile-height {
    min-height: 280px;
  }
}

@media (max-width: 375px) {
  .testimonial-mobile-height {
    min-height: 300px;
  }

  .testimonial-mobile-card {
    font-size: 13px;
  }
}

/* Landscape Mobile */
@media (max-width: 1024px) and (orientation: landscape) {
  .testimonial-mobile-height {
    min-height: 240px;
  }

  .testimonial-section-inner {
    padding: 1.5rem 0 2rem 0;
  }
}

/* Touch Devices */
@media (hover: none) and (pointer: coarse) {
  .fade-dot,
  .fade-dot-mobile {
    width: 12px;
    height: 12px;
    touch-action: manipulation;
  }

  .testimonial-dots {
    gap: 0.75rem;
  }
}

/* Print Styles */
@media print {
  .testimonial-dots-wrapper {
    display: none;
  }

  .fade-slide,
  .fade-slide-mobile {
    position: static !important;
    opacity: 1 !important;
  }
}
