/* Client Testimonials Section */
.client-testimonials-section {
    padding: 60px 0;
    background-color: #f8f9fa;
    width: 100%;
    overflow: hidden;
}

/* Fix for About Us Page Testimonials Section */
.page-template-page-about-us .testimonials-section,
body.about-us .testimonials-section,
.page-id-39 .testimonials-section {
    background-color: #f8f9fa !important;
    margin-bottom: 50px !important;
    padding-bottom: 20px !important;
}

/* Fix double background issue */
.page-template-page-about-us .testimonials-section:before,
.page-template-page-about-us .testimonials-section:after,
body.about-us .testimonials-section:before,
body.about-us .testimonials-section:after {
    display: none !important;
}

.page-template-page-about-us .testimonials-row,
body.about-us .testimonials-row {
    background: transparent !important;
}

.page-template-page-about-us .testimonial,
body.about-us .testimonial {
    background-color: #ffffff !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08) !important;
    border-radius: 8px !important;
    padding: 25px !important;
    margin: 15px !important;
}

.client-testimonials-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.client-testimonials-section .section-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.client-testimonials-section .section-subtitle {
    font-size: 16px;
    color: #666;
}

.testimonials-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 300px;
    max-width: 400px;
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    position: relative;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.testimonial-header {
    background-color: var(--testimonial-color, #2196F3);
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-title {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
    font-family: "Times New Roman", serif;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    text-align: center;
}

.testimonial-profile {
    display: flex;
    align-items: center;
    padding: 10px 0;
    background-color: #fff;
    border-radius: 10px;
    position: relative;
    margin-top: 10px;
    width: 100%;
    padding: 15px;
    margin: 0 auto;
}

.testimonial-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    border: 2px solid var(--testimonial-color, #2196F3);
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-meta {
    flex-grow: 1;
}

.testimonial-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px;
    color: #333;
}

.testimonial-rating {
    color: #FFD700;
    font-size: 14px;
}

.testimonial-content {
    padding: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    background-color: #fff;
    position: relative;
    flex-grow: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.testimonial-content::before {
    content: open-quote;
    font-size: 50px;
    position: absolute;
    left: 10px;
    top: -10px;
    color: rgba(0, 0, 0, 0.1);
    font-family: serif;
}

.testimonial-content p {
    position: relative;
    z-index: 1;
}

.testimonial-footer {
    padding: 0 20px 20px;
    text-align: center;
}

.testimonial-button {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--testimonial-color, #2196F3);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.testimonial-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Responsive styles */
@media (max-width: 991px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 767px) {
    .testimonial-card {
        flex: 0 0 100%;
        max-width: 450px;
        margin: 0 auto 20px;
    }
    
    .testimonial-header {
        flex-direction: column;
        align-items: center;
    }
    
    .testimonial-title {
        margin-bottom: 15px;
    }
    
    .testimonial-profile {
        margin-left: 0;
    }
}
