/* Why Choose Us */
.why-choose-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-surface);
    text-align: center;
}

.features-grid {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

.feature-box {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

/* Testimonial Slider */
.testimonial-section {
    padding: 2rem 0;
    /* Reduced from var(--spacing-xl) */
    background: white;
    text-align: center;
    position: relative;
}

.testimonial-slider-container {
    position: relative;
    max-width: 800px;
    margin: 1rem auto 0;
    /* Reduced margin-top from 3rem */
    height: 280px;
    /* Reduced fixed height from 350px */
    overflow: hidden;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.5s ease;
    transform: scale(0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.testimonial-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.testi-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--color-primary);
    background-color: #f0f0f0;
    /* Fallback */
}

.testi-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--color-text-main);
    font-style: italic;
    margin-bottom: 1rem;
    /* Reduced margin */
    max-width: 80%;
}

.testi-name {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.testi-role {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.testi-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    position: absolute;
    bottom: 0;
    width: 100%;
    padding-bottom: 10px;
}

.testi-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testi-dot.active {
    background-color: var(--color-primary);
    transform: scale(1.2);
}

/* Mobile Responsive Fixes */
@media (max-width: 768px) {
    .testimonial-slider-container {
        height: 290px;
        /* Reduced from 420px for better fit */
        margin-top: 0.5rem;
    }

    .testimonial-slide {
        padding: 0 15px;
        justify-content: flex-start;
        /* Align top to prevent center squeezing */
        padding-top: 5px;
    }

    .testi-avatar {
        width: 60px;
        height: 60px;
        margin-bottom: 0.5rem;
    }

    .testi-text {
        font-size: 0.95rem;
        /* Slightly smaller text */
        line-height: 1.4;
        max-width: 95%;
        margin-bottom: 0.8rem;
        /* Reduced space */
    }

    .testi-dots {
        bottom: 5px;
    }
}