/* Testimonials Section Styling */

.testimonials {
    padding: 80px 0;
    background-color: var(--section-alt-bg);
}

.testimonial-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.testimonial-card {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    background-color: var(--background-color);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 500px;
    width: 100%;
}

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

.testimonial-card-wide {
    max-width: calc(1000px + 30px); /* Width of 2 cards + gap */
    flex-basis: 100%;
}

.testimonial-image-container {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    position: relative;
}

.testimonial-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.testimonial-image:hover {
    transform: scale(1.05);
}

.testimonial-content {
    flex: 1;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 20px;
    font-style: italic;
    white-space: pre-line; /* Respects line breaks */
}

.testimonial-author h4 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.testimonial-position {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 2px;
}

.testimonial-company {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .testimonial-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        max-width: 480px;
    }
    
    .testimonial-card-wide {
        max-width: 480px; /* Same as regular cards on smaller screens */
    }
}

@media (max-width: 768px) {
    .testimonial-container {
        flex-direction: column;
        align-items: center;
    }
    
    .testimonial-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
    
    .testimonial-image-container {
        width: 100px;
        height: 100px;
        margin-bottom: 20px;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .testimonials {
        padding: 60px 0;
    }
    
    .testimonial-card {
        padding: 15px;
    }
    
    .testimonial-image-container {
        width: 100px;
        height: 100px;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
    }
    
    .testimonial-author h4 {
        font-size: 1.2rem;
    }
}