/* ==========================================================================
   Testimonials Slider Styles
   Uses Splide.js for responsive carousel functionality
   ========================================================================== */

/* Testimonial Section Layout */
.testimonials {
  position: relative;
}

/* Slider Container */
.testimonials .splide {
  padding: 0 0 2rem 0;
}

/* Testimonial Card Styling */
.testimonials .splide__slide {
  padding: 0.5rem;
}

.testimonial-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Quote Icon Styling */
.testimonial-card .quote-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: #48cae4;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

/* Category Badge Positioning - Top Left */
.testimonial-card .category-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 0.75rem;
  width: fit-content;
}

/* Badge Color Variants */
.category-badge--retail {
  color: #48cae4;
}

.category-badge--horeca {

  color: #E7004C;
}

.category-badge--sanatate {

  color: #2C9942;
}

/* Testimonial Quote Text */
.testimonial-card .testimonial-text {
  color: #4b5563;
  font-size: 0.875rem;
  line-height: 1.625;
  margin-bottom: 1rem;
  flex-grow: 1;
}

/* Author Section */
.testimonial-card .testimonial-author {
  border-left-width: 4px;
  border-left-style: solid;
  padding-left: 0.75rem;
}

.testimonial-author--retail {
  border-left-color: #48cae4;
}

.testimonial-author--horeca {
  border-left-color: #E7004C;
}

.testimonial-author--sanatate {
  border-left-color: #2C9942;
}

.testimonial-card .author-name {
  font-weight: 600;
  color: #0a2463;
}

/* Splide Pagination (Dots) - Brand Teal Colors */
.testimonials .splide__pagination {
  bottom: 0;
  padding: 0;
  margin-top: 1.5rem;
}

.testimonials .splide__pagination__page {
width: 12px;
  height: 12px;
  background: transparent;
  border: 1px solid #64CFE3;
  margin: 0 0.25rem;
  opacity: 1;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border-radius: 10px;
}

.testimonials .splide__pagination__page.is-active {
  background: #64CFE3;
  width: 40px;
  height: 12px;
  transform: none;
  border: transparent;
  outline: none;
}

.testimonials .splide__pagination__page:hover {
  background: #64CFE3;
}

/* Splide Navigation Arrows */
.testimonials .splide__arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  padding: 0 0.5rem;
}

.testimonials .splide__arrow {
  background: white;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  opacity: 1;
  pointer-events: auto;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.testimonials .splide__arrow:hover {
  background: #48cae4;
}

.testimonials .splide__arrow:hover svg {
  fill: white;
}

.testimonials .splide__arrow svg {
  width: 1rem;
  height: 1rem;
  fill: #0a2463;
  transition: fill 0.3s ease;
}

.testimonials .splide__arrow--prev {
  left: -0.5rem;
}

.testimonials .splide__arrow--next {
  right: -0.5rem;
}

.testimonials .splide__arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Hide arrows on small screens for better touch experience */
@media (max-width: 767px) {
  .testimonials .splide__arrows {
    display: none;
  }
}

/* Graceful Fallback - Grid Layout when JS is disabled */
.testimonials .no-js-fallback {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .testimonials .no-js-fallback {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonials .no-js-fallback {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .testimonials .no-js-fallback {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* When Splide is initialized, hide the fallback pagination */
.testimonials .splide.is-initialized ~ .fallback-pagination {
  display: none;
}

/* Accessible focus styles */
.testimonials .splide__arrow:focus,
.testimonials .splide__pagination__page:focus {
  outline: none;
}
