/* Styling for the Testimonials Section */

#testimonials-section {
    margin-top: 50px;
    background-image: url('../images/testimonials/map-2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#testimonials-section .section-title .subtitle {
    color: #333; /* Dark text for the mantra/ethos */
    font-weight: normal;
    font-size: 1.1em;
    margin-bottom: 5px;
    text-align: center; /* Center the subtitle text */
}

#testimonials-section .section-title .title {
    color: #db4242; /* Accent red for the main title */
    font-size: 2.8em;
    font-weight: bold;
    margin-bottom: 50px;
    text-align: center; /* Center the title text */
}

.testimonials-slider-container {
    position: relative;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
}

.testimonial-slide {
    display: none; /* Hide slides by default, controlled by JS */
    justify-content: center; /* Center cards horizontally */
    gap: 30px;
    padding: 20px 0;
}

.testimonial-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    flex: 0 0 calc(50% - 15px); /* Two cards per slide on desktop, with gap */
    box-sizing: border-box;
    position: relative;
    min-height: 250px; /* Ensure cards have a consistent minimum height */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribute content within the card */
}

.testimonial-card .quote-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    /* background-color: #db4242; */ /* Red box for quote icon */
    border-radius: 50%; /* Make it circular if preferred */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: #db4242; /* White quote symbol */
    font-family: 'Georgia', serif; /* A classic font for quotes */
}

.testimonial-card .quote-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.testimonial-card .stars {
    color: gold; /* Yellow/gold color for stars */
    font-size: 1.2em;
    margin-bottom: 15px;
    text-align: right; /* Align stars to the right */
}

.testimonial-card .review-text {
    font-size: 1em;
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
    /* padding-top: 30px; */ /* Adjust if quote icon is absolute */
}

.testimonial-card .reviewer-name {
    font-weight: bold;
    color: #db4242; /* Accent red for reviewer name */
    margin-bottom: 5px;
    text-transform: uppercase;
}

.testimonial-card .reviewer-title {
    font-size: 0.9em;
    color: #666;
}

/* Navigation Controls */
.prev-testimonial, .next-testimonial {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: #db4242; /* Accent red for navigation arrows */
    font-weight: bold;
    font-size: 25px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(255, 255, 255, 0.7); /* Slightly transparent background */
}

.next-testimonial {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev-testimonial:hover, .next-testimonial:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .testimonial-slide {
        flex-direction: column;
        align-items: center;
    }
    .testimonial-card {
        flex: 0 0 90%; /* One card per slide on smaller screens */
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    #testimonials-section .section-title .title {
        font-size: 2em;
    }
    .testimonial-card {
        padding: 20px;
    }
    .testimonial-card .quote-icon {
        width: 30px;
        height: 30px;
        font-size: 1.5em;
    }
    .testimonial-card .stars {
        font-size: 1em;
    }
    .prev-testimonial, .next-testimonial {
        font-size: 18px;
        padding: 12px;
    }
}
