/* =========================================
   TESTIMONIAL SECTION
========================================= */

.testimonial-section {
    padding: 110px 0;
    background: #F7FBFF;
}

.testimonial-section .container {
    position: relative;
}


/* =========================================
   SECTION HEADING
========================================= */

.testimonial-section .section-heading {
    margin-bottom: 60px;
}

.testimonial-section .section-heading span {
    display: inline-block;

    color: #0F4C81;
    font-size: 14px;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;
}

.testimonial-section .section-heading h2 {
    font-size: 42px;
    line-height: 1.2;
    font-weight: 800;

    color: #1E293B;

    margin: 15px 0;
}

.testimonial-section .section-heading p {
    max-width: 600px;

    margin: 0 auto;

    color: #64748B;

    font-size: 17px;
    line-height: 1.7;
}


/* =========================================
   TESTIMONIAL CARD
========================================= */

.testimonial-card {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;

    background: #fff;

    border-radius: 24px;

    padding: 40px;

    box-shadow: 0 15px 40px rgba(0, 0, 0, .07);

    transition:
        transform .35s ease,
        box-shadow .35s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);

    box-shadow: 0 22px 50px rgba(15, 76, 129, .10);
}


/* =========================================
   STARS
========================================= */

.stars {
    display: flex;
    align-items: center;

    color: #FDB813;

    margin-bottom: 22px;
}

.stars i {
    margin-right: 5px;

    font-size: 17px;
}

.stars i:last-child {
    margin-right: 0;
}


/* =========================================
   TESTIMONIAL TEXT
========================================= */

.testimonial-text {
    color: #555;

    font-size: 16px;
    line-height: 1.8;

    margin: 0 0 30px;

    /*
     * Keeps cards reasonably consistent when
     * testimonials have different lengths.
     */
    min-height: 130px;

    flex: 1;
}

.testimonial-text p {
    margin: 0;
}


/* =========================================
   STUDENT INFO
========================================= */

.student-info {
    display: flex;
    align-items: center;

    margin-top: auto;

    min-width: 0;
}

.student-info img {
    flex: 0 0 70px;

    width: 70px;
    height: 70px;

    border-radius: 50%;

    object-fit: cover;

    margin-right: 18px;
}

.student-info > div {
    min-width: 0;
}

.student-info h5 {
    margin: 0 0 4px;

    color: #1E293B;

    font-size: 17px;
    line-height: 1.35;

    font-weight: 700;

    overflow-wrap: anywhere;
}

.student-info span {
    display: block;

    color: #777;

    font-size: 14px;
    line-height: 1.4;

    overflow-wrap: anywhere;
}


/* =========================================
   SWIPER
========================================= */

.testimonialSwiper {
    width: 100%;

    padding-bottom: 60px;
}

.testimonialSwiper .swiper-slide {
    height: auto;

    display: flex;
}

.testimonialSwiper .swiper-slide .testimonial-card {
    width: 100%;
}


/* =========================================
   SWIPER PAGINATION
========================================= */

.testimonialSwiper .swiper-pagination {
    bottom: 15px;
}

.testimonialSwiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;

    opacity: .35;

    transition:
        width .3s ease,
        opacity .3s ease;
}

.testimonialSwiper .swiper-pagination-bullet-active {
    width: 24px;

    border-radius: 10px;

    background: #0F4C81;

    opacity: 1;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 991px) {

    .testimonial-section {
        padding: 80px 0;
    }

    .testimonial-section .section-heading {
        margin-bottom: 45px;
    }

    .testimonial-section .section-heading h2 {
        font-size: 36px;
    }

    .testimonial-section .section-heading p {
        font-size: 16px;
    }

    .testimonial-card {
        padding: 32px;
    }

    .testimonial-text {
        font-size: 15px;
        line-height: 1.7;

        min-height: 120px;
    }

    .student-info img {
        flex-basis: 62px;

        width: 62px;
        height: 62px;

        margin-right: 15px;
    }

    .student-info h5 {
        font-size: 16px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 576px) {

    .testimonial-section {
        padding: 60px 0;
    }

    .testimonial-section .container {
        padding-left: 16px;
        padding-right: 16px;
    }


    /* Section heading */

    .testimonial-section .section-heading {
        margin-bottom: 30px;
    }

    .testimonial-section .section-heading span {
        font-size: 12px;
        letter-spacing: 1.5px;
    }

    .testimonial-section .section-heading h2 {
        font-size: 30px;
        line-height: 1.2;

        margin: 10px 0;
    }

    .testimonial-section .section-heading p {
        font-size: 15px;
        line-height: 1.6;
    }


    /* Card */

    .testimonial-card {
        padding: 25px 20px;

        border-radius: 19px;

        box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
    }

    .testimonial-card:hover {
        transform: translateY(-5px);
    }


    /* Stars */

    .stars {
        margin-bottom: 16px;
    }

    .stars i {
        font-size: 15px;
        margin-right: 4px;
    }


    /* Text */

    .testimonial-text {
        font-size: 14px;
        line-height: 1.7;

        margin-bottom: 22px;

        /*
         * Don't force a tall card on mobile.
         */
        min-height: 0;
    }


    /* Student */

    .student-info img {
        flex: 0 0 55px;

        width: 55px;
        height: 55px;

        margin-right: 12px;
    }

    .student-info h5 {
        font-size: 15px;
        line-height: 1.3;
    }

    .student-info span {
        font-size: 12px;
        line-height: 1.35;
    }


    /* Swiper */

    .testimonialSwiper {
        padding-bottom: 48px;
    }

    .testimonialSwiper .swiper-pagination {
        bottom: 8px;
    }

}


/* =========================================
   VERY SMALL MOBILE
========================================= */

@media (max-width: 380px) {

    .testimonial-section {
        padding: 50px 0;
    }

    .testimonial-section .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .testimonial-section .section-heading h2 {
        font-size: 28px;
    }

    .testimonial-section .section-heading p {
        font-size: 14px;
    }

    .testimonial-card {
        padding: 22px 17px;
        border-radius: 17px;
    }

    .testimonial-text {
        font-size: 13px;
        line-height: 1.65;
    }

    .student-info img {
        flex-basis: 50px;

        width: 50px;
        height: 50px;

        margin-right: 10px;
    }

    .student-info h5 {
        font-size: 14px;
    }

    .student-info span {
        font-size: 11px;
    }

}