/* Section container for the testimonial slider */
.testimonials-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #f7f7f7; /* Ensure consistent background */
    position: relative; /* For potential background elements */
    overflow: hidden; /* To contain any absolute positioned elements */
}

.quote-background {
    position: absolute;
    top: 25%;
    left: 10%;
    transform: translate(-50%, -50%);
    font-size: 15em;
    color: rgba(200, 200, 200, 0.486);
    z-index: 0;
    pointer-events: none; 
    line-height: 0.8;
    font-family: serif;
}

/* Testimonial slider container */
.testimonial-slider-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    z-index: 1;
}

.testimonial-slider {
    display: flex;
    justify-content: center;
    align-items: center;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    transition: transform 0.5s ease-in-out;
    border-radius: 12px;
    user-select: none;
}

/* Individual testimonial slide */
.testimonial-slide {
    flex: 0 0 100%;
    padding: 40px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Testimonial image */
.testimonial-slide img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    margin-bottom: 20px;
    border: 3px solid #eee;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Quote symbol within the testimonial card */
.testimonial-quote-icon {
    font-size: 4em;
    color: #a0a0a0;
    margin-bottom: 10px;
    line-height: 1;
    font-family: serif;
}

.testimonial-slide p {
    font-size: 1.1em;
    line-height: 1.5;
    color: #555;
    margin-bottom: 20px;
    max-width: 700px;
}

.testimonial-slide .author {
    font-size: 1em;
    font-style: italic;
    color: #777;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Navigation arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.8em;
    color: #666;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    line-height: 0;
}

.slider-arrow:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
}

.slider-arrow.prev {
    left: 15px;
}

.slider-arrow.next {
    right: 15px;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .testimonials-section {
      padding: 40px 5px;
    }

    .testimonials-section h2 {
      font-size: 2em;
      margin-bottom: 30px;
    }

    .testimonial-slider-container {
      max-width: 100%; 
      margin: 0 10px;
    }

    .testimonial-slide {
      padding: 35px;
    }

    .testimonial-slide p {
      font-size: 1em;
      margin-bottom: 20px;
      max-width: 500px;
    }

    .testimonial-slide img {
      width: 80px;
      height: 80px;
    }

    .testimonial-quote-icon {
      font-size: 2.5em;
    }

    .slider-arrow {
      width: 35px;
      height: 35px;
      font-size: 1.5em;
    }

    .slider-arrow.prev {
      left: 5px;
    }

    .slider-arrow.next {
      right: 5px;
    }

    .quote-background {
      font-size: 8em; /* Smaller on mobile */
    }
  }

@media (max-width: 480px) {
    .testimonials-section h2 {
      font-size: 1.8em;
    }
    .testimonial-slide {
      padding: 20px;
    }
    .testimonial-slide p {
      font-size: 0.95em;
    }
    .testimonial-slide img {
      width: 70px;
      height: 70px;
    }
    .testimonial-quote-icon {
      font-size: 2em;
    }
    .quote-background {
      font-size: 6em;
      top: 20%;
      left: 8%;
    }
}