/* ==================== TESTIMONIALS SECTION ==================== */
.feature-box.testimonials {
    text-align: center;
    padding: var(--section-padding, 2rem 1rem);
    max-width: 600px;
    margin: 2rem auto;
    background: linear-gradient(180deg, rgba(58, 74, 58, 0.8) 0%, rgba(58, 74, 58, 0.6) 100%);
    border-radius: 12px;
    box-shadow: 0 5px 15px var(--element-shadow, rgba(63, 90, 68, 0.6)), 0 0 20px var(--glow-green, rgba(154, 184, 122, 0.4));
    border: 1px solid rgba(154, 184, 122, 0.3);
    position: relative;
    overflow: hidden;
    width: 90%;
}

.feature-box.testimonials h2 {
    font: 700 1.8rem 'Montserrat', Arial, sans-serif;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.feature-box.testimonials h2::after {
    content: '';
    display: block;
    width: 80%;
    height: 3px;
    background: var(--accent-primary, #9AB87A);
    margin: 0.5rem auto 0;
    border-radius: 2px;
    box-shadow: 0 2px 4px var(--element-shadow, rgba(63, 90, 68, 0.6));
}

/* Testimonial grid */
.testimonial-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x proximity; /* Softer snapping for smoother swipes */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    width: 100%;
    box-sizing: border-box;
    padding: 0 1rem;
}

.testimonial-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.testimonial-grid .review,
.testimonial-grid .review-clone {
    flex: 0 0 100%; /* Full width for one review */
    min-width: 100%; /* Enforce single review */
    scroll-snap-align: center;
    padding: 1rem;
    box-sizing: border-box;
    text-align: center;
}

.testimonial-grid .review p,
.testimonial-grid .review-clone p {
    font: 1rem 'Open Sans', Arial, sans-serif;
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #BCD89A;
}

.testimonial-grid .review h3,
.testimonial-grid .review-clone h3 {
    font: 700 1rem 'Montserrat', Arial, sans-serif;
    margin: 0.5rem 0;
    color: var(--accent-primary, #9AB87A);
}

.testimonial-grid .review .rating,
.testimonial-grid .review-clone .rating {
    font: 1rem 'Open Sans', Arial, sans-serif;
    color: #BCD89A;
    margin-top: 0.5rem;
}

/* Navigation dots */
.nav-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-bottom: 0.5rem;
}

.nav-dot {
    width: 10px;
    height: 10px;
    background: rgba(154, 184, 122, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nav-dot.active {
    background: var(--accent-primary, #9AB87A);
}

/* ==================== MEDIA QUERIES FOR TESTIMONIALS ==================== */

/* Media Query 1: Portrait Phone (≤ 767px) */
@media (orientation: portrait) and (max-width: 767px) {
    .feature-box.testimonials {
        padding: 1rem;
        width: 90%;
        margin: 1rem auto;
    }

    .feature-box.testimonials.card-highlight {
        transform: scale(1.1);
        box-shadow: 6px 6px 12px var(--element-shadow-hover, rgba(63, 90, 68, 0.7));
        filter: drop-shadow(0 6px 16px var(--glow-green, rgba(154, 184, 122, 0.5)));
        border-color: #BCD89A;
        border-width: 3px;
        z-index: 6;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .feature-box.testimonials h2 {
        font-size: 1.6rem;
    }

    .testimonial-grid {
        padding: 0 0.5rem;
    }

    .testimonial-grid .review p,
    .testimonial-grid .review-clone p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .testimonial-grid .review h3,
    .testimonial-grid .review-clone h3 {
        font-size: 0.9rem;
    }

    .testimonial-grid .review .rating,
    .testimonial-grid .review-clone .rating {
        font-size: 0.9rem;
    }

    .nav-dots {
        margin-top: 0.5rem;
    }

    .nav-dot {
        width: 8px;
        height: 8px;
    }
}

/* Media Query 2: Small Landscape (≤ 767px) */
@media (orientation: landscape) and (max-width: 767px) {
    .feature-box.testimonials {
        padding: 0.75rem;
        width: 80%;
        margin: 0.75rem auto;
        border-width: 3px;
        border-color: #BCD89A;
    }

    .feature-box.testimonials h2 {
        font-size: 1.2rem;
    }

    .testimonial-grid {
        padding: 0 0.5rem;
    }

    .testimonial-grid .review p,
    .testimonial-grid .review-clone p {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .testimonial-grid .review h3,
    .testimonial-grid .review-clone h3 {
        font-size: 0.8rem;
    }

    .testimonial-grid .review .rating,
    .testimonial-grid .review-clone .rating {
        font-size: 0.8rem;
    }

    .nav-dots {
        margin-top: 0.5rem;
    }

    .nav-dot {
        width: 8px;
        height: 8px;
    }
}

/* Media Query 3: Tablets and Medium Screens (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .feature-box.testimonials {
        padding: 1.5rem 1rem;
        max-width: 85%;
        margin: 1.5rem auto;
        border-width: 3px;
        border-color: #BCD89A;
    }

    .feature-box.testimonials h2 {
        font-size: 1.8rem;
    }

    .testimonial-grid .review p,
    .testimonial-grid .review-clone p {
        font-size: 0.95rem;
    }

    .testimonial-grid .review h3,
    .testimonial-grid .review-clone h3 {
        font-size: 0.95rem;
    }

    .testimonial-grid .review .rating,
    .testimonial-grid .review-clone .rating {
        font-size: 0.95rem;
    }
}

/* Media Query 4: Tablet Landscape (768px - 1023px) */
@media (orientation: landscape) and (min-width: 768px) and (max-width: 1023px) {
    .feature-box.testimonials {
        padding: 1rem;
        max-width: 85%;
        margin: 1.5rem auto;
        border-width: 3px;
        border-color: #BCD89A;
    }

    .feature-box.testimonials h2 {
        font-size: 1.6rem;
    }

    .testimonial-grid .review p,
    .testimonial-grid .review-clone p {
        font-size: 0.95rem;
    }

    .testimonial-grid .review h3,
    .testimonial-grid .review-clone h3 {
        font-size: 0.95rem;
    }

    .testimonial-grid .review .rating,
    .testimonial-grid .review-clone .rating {
        font-size: 0.95rem;
    }
}

/* Media Query 5: Larger Screens (≥ 1024px) */
@media (min-width: 1024px) {
    .feature-box.testimonials {
        padding: 2rem 1.5rem;
        max-width: 1000px;
        margin: 1.5rem auto;
        border-width: 3px;
        border-color: #BCD89A;
    }

    .feature-box.testimonials h2 {
        font-size: 2.2rem;
    }

    .testimonial-grid .review p,
    .testimonial-grid .review-clone p {
        font-size: 1.2rem;
    }

    .testimonial-grid .review h3,
    .testimonial-grid .review-clone h3 {
        font-size: 1.2rem;
    }

    .testimonial-grid .review .rating,
    .testimonial-grid .review-clone .rating {
        font-size: 1.2rem;
    }

    .nav-dots {
        margin-top: 1.5rem;
    }

    .nav-dot {
        width: 12px;
        height: 12px;
    }
}