/* 
 * Testimonials Styles
 * Contains styles for the testimonials carousel
 */

 .testimonials-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.testimonials-wrapper {
    overflow: hidden;
    padding: 1rem 0;
    touch-action: pan-y; /* Enable horizontal swipe, restrict vertical */
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
    cursor: grab; /* Indicates content can be swiped */
}

.testimonials-track:active {
    cursor: grabbing; /* Changes cursor when actively swiping */
}

.testimonial {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    min-width: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial blockquote {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial blockquote::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -2rem;
    left: -1rem;
    color: rgba(0, 0, 0, 0.1);
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.testimonial-author h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: var(--primary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 2;
    transition: var(--transition);
}

.testimonial-nav:hover {
    background: var(--primary-color);
    color: white;
}

.testimonial-nav.prev {
    left: -20px;
}

.testimonial-nav.next {
    right: -20px;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-dot.active {
    background: white;
    transform: scale(1.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    /* Keep navigation buttons visible on mobile */
    .testimonial-nav {
        display: flex;
        width: 36px;
        height: 36px;
    }
    
    .testimonial-nav.prev {
        left: 10px;
    }
    
    .testimonial-nav.next {
        right: 10px;
    }
    
    /* Add a slight background to make buttons more visible */
    .testimonial-nav {
        background: white;
        opacity: 0.9;
    }
    
    /* Reduce padding on mobile for better navigation button visibility */
    .testimonial {
        padding: 1.5rem;
    }
}