/* Testimonials Section */
.testimonials-section {
    padding: 0rem 0;
    background-color: #f8f9fa;
    /* Light gray background matching common web standards */
    overflow: hidden;
    position: relative;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #617742;
    /* Primary Green */
    margin: 0.5rem auto 0;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Testimonial Carousel */
.testimonial-carousel {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 5rem;
}

.testimonial-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.testimonial-card {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 1rem;
    box-sizing: border-box;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.testimonial-card.active {
    opacity: 1;
    transform: scale(1);
}

.card-content {
    background: #fff;
    padding: 3rem;
    border-radius: 8px;
    /* Slightly sharper corners like service cards */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    text-align: center;
    /* Center align for a cleaner look */
    border-top: 4px solid #617742;
    /* Top border accent */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-content::before {
    content: '\f10d';
    /* FontAwesome Quote Left */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 2.5rem;
    color: #617742;
    opacity: 0.2;
    display: block;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
}

.client-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.client-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    object-fit: cover;
}

.client-details h4 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
}

.client-details span {
    font-size: 0.9rem;
    color: #617742;
    /* Primary color for role/company */
    font-weight: 500;
    margin-top: 0.25rem;
    display: block;
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 1.5rem;
}

.control-btn {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #555;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.control-btn:hover {
    background-color: #617742;
    border-color: #617742;
    color: #fff;
    box-shadow: 0 5px 10px rgba(97, 119, 66, 0.3);
}

.dots-container {
    display: flex;
    gap: 0.8rem;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #617742;
    transform: scale(1.2);
}

/* Clients Logo Slider */
.clients-section {
    padding-top: 3rem;
    border-top: 1px solid #eee;
}

.clients-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 2.5rem;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-slider {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 1rem 0;
}

.logo-slider::before,
.logo-slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logo-slider::before {
    left: 0;
    background: linear-gradient(to right, #f8f9fa, transparent);
}

.logo-slider::after {
    right: 0;
    background: linear-gradient(to left, #f8f9fa, transparent);
}

.logo-track {
    display: inline-block;
    animation: scroll 35s linear infinite;
}

.client-logo {
    display: inline-block;
    height: 70px;
    /* Slightly larger */
    margin: 0 3rem;
    opacity: 0.5;
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.client-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

.testimonials-container h2 {
    color: #247194;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .card-content {
        padding: 2rem 1.5rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .client-logo {
        height: 50px;
        margin: 0 1.5rem;
    }
}