/* Testimonials Section Styling - Ultra simplified */
.testimonials {
    padding: 30px 0 15px;
    background: linear-gradient(to bottom, rgba(67, 97, 238, 0.05), transparent);
    position: relative;
    margin-bottom: -5px;
}

.testimonial-slider {
    max-width: 800px;
    margin: 25px auto 0;
    position: relative;
    padding: 0 50px;
    height: 280px; /* Fixed height to prevent any resizing */
}

/* Ultra-simplified slide transitions - no animations */
.testimonial-slide {
    display: none; /* Hide all slides by default */
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    height: auto;
    box-sizing: border-box;
}

.testimonial-slide.active {
    display: block; /* Simply show the active slide */
}

/* Fixed dimensions for content to prevent sizing issues */
.testimonial-content {
    width: 100%;
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(230, 230, 250, 0.7);
    height: 250px;
    box-sizing: border-box;
}

.dark-theme .testimonial-content {
    background: #1e293b;
    border-color: rgba(55, 65, 81, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Quote styling */
.testimonial-quote {
    margin-bottom: 20px;
    position: relative;
}

.testimonial-quote i {
    color: var(--primary-color);
    font-size: 24px;
    opacity: 0.5;
    margin-bottom: 10px;
    display: block;
}

.testimonial-quote p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--dark-color);
    font-style: italic;
}

.dark-theme .testimonial-quote p {
    color: #e2e8f0;
}

/* Author info */
.testimonial-author {
    display: flex;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(230, 230, 250, 0.7);
}

.dark-theme .testimonial-author {
    border-color: rgba(55, 65, 81, 0.5);
}

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

.dark-theme .testimonial-author img {
    border-color: #1e293b;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.testimonial-author h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    font-weight: 600;
}

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

/* Navigation buttons */
.testimonial-nav {
    width: 100%;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    justify-content: space-between;
}

.testimonial-nav button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 1px solid rgba(230, 230, 250, 0.7);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: var(--dark-color);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-theme .testimonial-nav button {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

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

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

/* Simple dots */
.testimonial-indicators {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    margin-bottom: 20px;
    gap: 10px;
}

.testimonial-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(67, 97, 238, 0.2);
    cursor: pointer;
}

.testimonial-indicator.active {
    background-color: var(--primary-color);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .testimonials {
        padding: 25px 0;
    }
    
    .testimonial-slider {
        margin: 15px auto 0;
        padding: 0 30px;
        height: 280px;
    }
    
    .testimonial-content {
        padding: 20px;
    }
    
    .testimonial-quote p {
        font-size: 0.95rem;
        margin-bottom: 0;
    }
    
    .testimonial-author img {
        width: 45px;
        height: 45px;
    }
    
    .testimonial-nav button {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .testimonial-nav .prev {
        margin-left: -18px;
    }
    
    .testimonial-nav .next {
        margin-right: -18px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .testimonial-slider {
        padding: 0 25px;
    }
    
    .testimonial-content {
        padding: 15px;
    }
}

/* Fix for old browsers */
.testimonial-slider.fixed-height {
    height: 280px;
}
