/* Testimonials Slider Styles */
.testimonials {
    background-color: #f8f9fa;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Slider Container */
.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 50px auto 20px;
    padding: 0 20px;
}

.testimonial-slider-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    overflow: hidden;
}

.testimonial-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 10px;
    box-sizing: border-box;
}

/* Testimonial Card Styling */
.testimonial-card {
    background-color: white;
    border-radius: 8px;
    padding: 35px 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 600px;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.testimonial-card p {
    font-style: italic;
    color: #333;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 25px;
    position: relative;
}

.testimonial-card p::before {
    content: '"';
    font-size: 70px;
    color: rgba(74, 108, 247, 0.1);
    position: absolute;
    top: -40px;
    left: -15px;
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

/* SVG Avatar Styling */
.avatar-svg {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.testimonial-author span {
    font-weight: 600;
    color: #444;
    font-size: 17px;
}

/* Navigation Controls */
.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background-color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #4a6cf7;
    transition: all 0.3s ease;
}

.testimonial-nav:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    color: #ffffff;
    background-color: #4a6cf7;
}

.testimonial-prev {
    left: -10px;
}

.testimonial-next {
    right: -10px;
}

/* Indicator Dots */
.testimonial-indicators {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator.active {
    background-color: #4a6cf7;
    transform: scale(1.2);
}

.indicator:hover {
    background-color: #bbb;
}

.indicator.active:hover {
    background-color: #4a6cf7;
}

/* Animation for Testimonial Slides */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.testimonial-slide.active .testimonial-card {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .testimonial-card {
        padding: 25px 20px;
    }
    
    .testimonial-card p {
        font-size: 16px;
    }
    
    .testimonial-nav {
        width: 40px;
        height: 40px;
    }
    
    .testimonial-prev {
        left: 0;
    }
    
    .testimonial-next {
        right: 0;
    }
    
    .avatar-svg {
        width: 50px;
        height: 50px;
    }
    
    .testimonial-author span {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .testimonial-slider {
        padding: 0 10px;
    }
    
    .testimonial-nav {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}