/* Testimonials Slider - Enhanced Version */

.testimonials {
    padding: 100px 0;
    background-color: #f1f5f9;
    overflow: hidden;
}

.testimonials-slider {
    position: relative;
    max-width: 1200px;
    margin: 50px auto 0;
    overflow: visible;
}

.testimonials-container {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
    margin: 0 auto;
    gap: 20px;
    padding: 20px 0;
    overflow: visible;
}

/* Card styling */
.testimonial {
    background-color: white;
    border-radius: var(--border-radius-md);
    padding: 35px;
    box-shadow: var(--box-shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    flex: 0 0 calc(33.333% - 20px);
    width: calc(33.333% - 20px);
    opacity: 1;
    transform: scale(1);
    display: block;
}

.testimonial::before {
    content: '\201C';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 5rem;
    color: rgba(74, 108, 247, 0.1);
    font-family: serif;
    line-height: 1;
    z-index: 0;
}

.testimonial:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-md);
}

.testimonial-content {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-content p {
    font-style: italic;
    position: relative;
    padding: 0 15px;
    margin: 0;
}

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

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Removed testimonial-icon class */

.testimonial-author h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    margin-top: 0;
}

.testimonial-author p {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin: 0;
}

/* Navigation arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: -25px;
}

.slider-next {
    right: -25px;
}

/* Dots navigation */
.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.slider-dot:hover {
    background-color: var(--primary-color);
    opacity: 0.7;
}

/* Responsive styles */
@media (max-width: 1200px) {
    .testimonial {
        flex: 0 0 calc(50% - 20px);
        width: calc(50% - 20px);
    }
}

@media (max-width: 992px) {
    .testimonial {
        flex: 0 0 calc(50% - 20px);
        width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .testimonials-slider {
        max-width: 90%;
        margin: 50px auto 0;
    }
    
    .testimonials-container {
        padding: 10px 0;
        gap: 15px;
    }
    
    .testimonial {
        flex: 0 0 calc(100% - 10px);
        width: calc(100% - 10px);
        padding: 25px;
        margin: 0 auto;
    }
    
    .slider-arrow {
        width: 36px;
        height: 36px;
        top: 50%;
    }
    
    .slider-prev {
        left: -18px;
    }
    
    .slider-next {
        right: -18px;
    }
    
    .testimonial-author img {
        width: 50px;
        height: 50px;
    }
}

/* Dark mode adjustments */
body.dark-mode .testimonials {
    background-color: #1a1a2e;
}

body.dark-mode .testimonial {
    background-color: #222236;
    border-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .slider-arrow {
    background-color: #222236;
    color: white;
}

body.dark-mode .slider-dot {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Animation for testimonial cards */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.testimonial {
    animation: fadeInScale 0.5s ease forwards;
}
