/* Responsive Testimonials Styling */

.testimonials-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.05) 0%, rgba(212, 175, 55, 0) 70%);
    z-index: 0;
}

/* Background accent elements */
.testimonial-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    opacity: 0.7;
}

.bg-accent-1 {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0) 70%);
    filter: blur(40px);
}

.bg-accent-2 {
    position: absolute;
    bottom: -30px;
    left: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 58, 138, 0.08) 0%, rgba(30, 58, 138, 0) 70%);
    filter: blur(50px);
}

/* Section subtitle */
.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: #666;
    max-width: 700px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 1;
}

.section-title {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #1E3A8A;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, rgba(212, 175, 55, 0.5));
    margin: 15px auto 0;
    border-radius: 2px;
}

.testimonials-slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.testimonial {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 340px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12), 0 0 15px rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.3);
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 5px;
    left: 15px;
    font-size: 70px;
    font-family: Georgia, serif;
    color: rgba(212, 175, 55, 0.12);
    line-height: 1;
}

.testimonial::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
    z-index: -1;
}

.quote {
    font-size: 17px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    font-style: italic;
    letter-spacing: 0.3px;
}

.quote::after {
    content: '"';
    position: absolute;
    bottom: -10px;
    right: 5px;
    font-size: 40px;
    font-family: Georgia, serif;
    color: rgba(212, 175, 55, 0.12);
    line-height: 0;
}

.author {
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
    margin-top: auto;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.author::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #d4af37, rgba(212, 175, 55, 0.3));
    margin-right: 10px;
}

/* Testimonials CTA */
.testimonials-cta {
    text-align: center;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.btn-testimonials {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(45deg, #1E3A8A, #3952a0);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-testimonials:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.4);
    background: linear-gradient(45deg, #2447aa, #4a6ac2);
}

.btn-testimonials i {
    margin-left: 8px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.btn-testimonials:hover i {
    transform: translateX(4px);
}

/* Testimonial content */
.testimonial-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

/* Responsive styles */
@media (max-width: 1200px) {
    .testimonials-section {
        padding: 70px 0;
    }
    
    .testimonial {
        max-width: 320px;
    }
}

@media (max-width: 992px) {
    .testimonials-slider {
        gap: 20px;
        justify-content: space-around;
    }
    
    .testimonial {
        max-width: 45%;
        padding: 25px;
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .testimonials-slider {
        gap: 25px;
    }
    
    .testimonial {
        max-width: 100%;
        width: 90%;
        margin-bottom: 0;
        min-height: auto;
    }
}

@media (max-width: 576px) {
    .testimonials-section {
        padding: 40px 0;
    }
    
    .testimonials-slider {
        margin-top: 30px;
    }
    
    .testimonial {
        width: 95%;
        padding: 20px;
        min-height: auto;
    }
    
    .testimonial::before {
        font-size: 50px;
        top: 0;
        left: 10px;
    }
    
    .quote {
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    .quote::after {
        font-size: 30px;
    }
    
    .author {
        font-size: 12px;
    }
    
    .author::before {
        width: 20px;
    }
    
    .section-title {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .section-title::after {
        width: 60px;
        margin-top: 10px;
    }
    
    .testimonials-cta {
        margin-top: 25px;
    }
    
    .btn-testimonials {
        padding: 10px 20px;
        font-size: 14px;
    }
}
