testimonial css


/*--------------------------------------------------------------
# Testimonials
--------------------------------------------------------------*/
#testimonials {
    padding: 110px 0;
    background: rgb(248, 249, 250);
}

.section-title {
    text-align: center;
    padding-bottom: 2rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #004aad;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    color: #6182ba;
    max-width: 600px;
    margin: 0 auto;
}

/* Swiper Container */
.testimonials-swiper {
    padding: 2rem 0;
    overflow: hidden;
    position: relative;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    padding: 1rem;
}

/* Testimonial Card */
.testimonial-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
    width: 100%;
    max-width: 1200px; /* Adjust based on desired max width */
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card img {
    width: 100px;
    height: 100px;
    border-radius: 20%;
    object-fit: cover;
    margin: 0 auto 1rem;
    box-shadow: 2px 2px 6px 2px #838383;
}

.testimonial-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #004aad;
    margin-bottom: 0.5rem;
}

.testimonial-card p.role {
    font-size: 1.1rem;
    color: #47b2e4;
    margin-bottom: 1rem;
}

.testimonial-card p.testimonial-text {
    font-size: 1rem;
    color: #555;
    font-style: italic;
    line-height: 1.6;
    flex-grow: 1;
}

/* Active and Inactive States */
.swiper-slide-active .testimonial-card {
    transform: scale(1);
    opacity: 1;
}

.swiper-slide:not(.swiper-slide-active) .testimonial-card {
    transform: scale(0.95);
    opacity: 0.7;
}

/* Navigation Arrows */
.swiper-button-prev,
.swiper-button-next {
    color: #47b2e4;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transition: background 0.3s;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: #47b2e4;
    color: #fff;
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 20px;
    font-weight: bold;
}

/* Pagination */
.swiper-pagination-bullet {
    background: #47b2e4;
    opacity: 0.5;
    width: 10px;
    height: 10px;
}

.swiper-pagination-bullet-active {
    background: #004aad;
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 992px) {
    .testimonial-card {
        max-width: 90%;
        min-height: 360px;
        max-height: 500px;
    }

    .testimonial-card img {
        width: 80px;
        height: 80px;
    }

    .testimonial-card h4 {
        font-size: 1.3rem;
    }

    .testimonial-card p.role,
    .testimonial-card p.testimonial-text {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    #testimonials {
        padding: 100px 0;
    }

    .testimonials-swiper {
        padding: 1rem 0;
    }

.testimonial-card {
        max-width: 100%;
        padding: 1rem;
        max-height: none; 
        overflow-y: visible; 
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 40px;
        height: 40px;
    }

    .swiper-button-prev:after,
    .swiper-button-next:after {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .section-title h2 {
        font-size: 2rem;
    }

    .section-title p {
        font-size: 1rem;
    }

    .testimonial-card {
        max-width: 100%;
        padding: 1rem;
    }

    .testimonial-card img {
        width: 70px;
        height: 70px;
    }

    .testimonial-card h4 {
        font-size: 1.2rem;
    }

    .testimonial-card p.role,
    .testimonial-card p.testimonial-text {
        font-size: 0.9rem;
    }
}