/* ==========================================================================
   Testimonials Section
   ========================================================================== */

/* Section Container */
.testimonials-section {
    padding: 60px 20px;
    text-align: center;
    position: relative;
    background-color: transparent;
    border-radius: 10px;
    overflow: visible;
}

/* Remove unnecessary pseudo-element */
.testimonials-section::before {
    display: none;
}

/* Section Title */
.testimonials-section h2 {
    font-size: 2.4em;
    color: var(--nature-blue);
    margin-bottom: 40px;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Title Decoration */
.testimonials-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    margin: 15px auto;
    border-radius: 2px;
}

/* Cards Container */
.testimonials-container {
    display: flex;
    gap: 30px;
    padding: 0 20px 20px;
    margin: 0 -20px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* Individual Testimonial Card */
.testimonial-card {
    /* Layout */
    display: flex;
    flex-direction: column;
    width: 400px;
    margin: 0;
    text-align: left;
    position: relative;
    overflow: hidden;
    
    /* Visual Design */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    
    /* Animation */
    transition: all 0.4s ease;
}

/* Card Hover Effect */
.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Content Wrapper */
.testimonial-content-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Author Section */
.testimonial-author {
    order: -1;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Author Image */
.testimonial-author img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.testimonial-author-text {
   color: var(--nature-blue);
}

/* Author Image Hover Effect */
.testimonial-card:hover .testimonial-author img {
    transform: scale(1.05);
}

/* Author Name */
.testimonial-author p {
    margin: 15px 0;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1em;
    position: relative;
}

/* Testimonial Text */
.testimonial-text {
    font-size: 1em;
    line-height: 1.8;
    color: var(--text-color) !important;
    margin: 0;
    padding: 25px;
    position: relative;
    flex-grow: 1;
}

/* Ensure text alignment consistency */
.testimonial-text p {
    text-align: left !important;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    /* Section adjustments for mobile */
    .testimonials-section {
        padding: 40px 15px;
    }

    /* Container adjustments for mobile */
    .testimonials-container {
        gap: 25px;
    }

    /* Card adjustments for mobile */
    .testimonial-card {
        width: 100%;
        max-width: 450px;
    }

    /* Author image adjustments for mobile */
    .testimonial-author img {
        height: 300px;
    }

    /* Text adjustments for mobile */
    .testimonial-text {
        font-size: 0.95em;
        padding: 20px;
    }
    .testimonial-content-wrapper {
        padding: 1rem;
    }
}

/* ==========================================================================
   Accessibility & Performance
   ========================================================================== */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .testimonial-card,
    .testimonial-author img {
        transition: none;
    }
    
    .testimonial-card:hover {
        transform: none;
    }
    
    .testimonial-card:hover .testimonial-author img {
        transform: none;
    }
}

/* Focus states for keyboard navigation */
.testimonial-card:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

