/* =========================================
   STUDENT REVIEWS / TESTIMONIALS
========================================= */

.testimonials-section {
    padding: 90px 0;
    background: #ffffff;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* =========================================
   SECTION HEADING
========================================= */

.testimonials-section .section-heading {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 55px;

    text-align: center;

    padding: 0 20px;

    box-sizing: border-box;
}

.testimonials-section .section-heading span {
    display: block;

    color: #d4a017;

    font-size: 15px;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;

    margin-bottom: 10px;
}

.testimonials-section .section-heading h2 {
    margin: 0 0 15px;

    color: #0d2d73;

    font-size: 52px;
    line-height: 1.2;

    font-weight: 800;

    white-space: normal;
    overflow-wrap: break-word;
}

.testimonials-section .section-heading p {
    margin: 0;

    color: #666;

    font-size: 18px;
    line-height: 1.6;

    white-space: normal;
    overflow-wrap: break-word;
}

/* =========================================
   TESTIMONIAL GRID
========================================= */

.testimonial-grid {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 35px;

    padding: 0 20px;

    box-sizing: border-box;
}

/* =========================================
   TESTIMONIAL CARD
========================================= */

.testimonial-card {
    width: 100%;
    min-width: 0;

    background: #fff;

    padding: 35px;

    border-radius: 18px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;

    box-sizing: border-box;

    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-10px);

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* =========================================
   STARS
========================================= */

.stars {
    color: #f4b400;

    font-size: 22px;

    line-height: 1;

    margin-bottom: 20px;

    white-space: nowrap;
}

/* =========================================
   REVIEW TEXT
========================================= */

.testimonial-card p {
    font-size: 17px;

    line-height: 1.8;

    color: #666;

    margin: 0 0 30px;

    overflow-wrap: break-word;

    word-break: normal;
}

/* =========================================
   USER
========================================= */

.testimonial-user {
    display: flex;

    align-items: center;

    gap: 15px;

    width: 100%;

    min-width: 0;
}

.testimonial-user img {
    width: 60px;
    height: 60px;

    min-width: 60px;

    border-radius: 50%;

    object-fit: cover;
}

.testimonial-user h4 {
    font-size: 18px;

    line-height: 1.3;

    margin: 0 0 4px;

    color: #222;

    overflow-wrap: break-word;
}

.testimonial-user span {
    font-size: 15px;

    line-height: 1.4;

    color: #777;

    overflow-wrap: break-word;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 991px) {

    .testimonials-section {
        padding: 70px 0;
    }

    .testimonials-section .section-heading {
        margin-bottom: 45px;
        padding: 0 18px;
    }

    .testimonials-section .section-heading h2 {
        font-size: 42px;
    }

    .testimonials-section .section-heading p {
        font-size: 17px;
    }

    .testimonial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 22px;

        padding: 0 18px;
    }

    .testimonial-card {
        padding: 28px;
    }

    .stars {
        font-size: 21px;
    }

    .testimonial-card p {
        font-size: 16px;
        line-height: 1.7;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .testimonials-section {
        padding: 60px 0;
    }

    .testimonials-section .section-heading {
        width: 100%;
        max-width: 100%;

        margin-bottom: 35px;

        padding: 0 15px;

        box-sizing: border-box;
    }

    .testimonials-section .section-heading span {
        font-size: 13px;

        letter-spacing: 1.5px;

        margin-bottom: 8px;
    }

    .testimonials-section .section-heading h2 {
        width: 100%;
        max-width: 100%;

        font-size: 34px;

        line-height: 1.2;

        white-space: normal !important;

        word-break: normal !important;

        overflow-wrap: normal !important;

        text-align: center;
    }

    .testimonials-section .section-heading p {
        width: 100%;
        max-width: 100%;

        font-size: 15px;

        line-height: 1.6;

        white-space: normal !important;

        overflow-wrap: break-word !important;

        text-align: center;
    }

    /* ONE CARD PER ROW */
    .testimonial-grid {
        width: 100%;

        grid-template-columns: 1fr;

        gap: 20px;

        padding: 0 16px;

        margin: 0 auto;

        box-sizing: border-box;
    }

    .testimonial-card {
        width: 100%;

        padding: 25px;

        border-radius: 16px;

        box-sizing: border-box;
    }

    .stars {
        font-size: 21px;

        margin-bottom: 18px;
    }

    .testimonial-card p {
        font-size: 16px;

        line-height: 1.7;

        margin-bottom: 25px;
    }

    .testimonial-user img {
        width: 55px;
        height: 55px;

        min-width: 55px;
    }

    .testimonial-user h4 {
        font-size: 17px;
    }

    .testimonial-user span {
        font-size: 14px;
    }

    /* Remove large hover movement on mobile */
    .testimonial-card:hover {
        transform: none;

        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    .testimonials-section {
        padding: 50px 0;
    }

    .testimonials-section .section-heading {
        padding: 0 12px;

        margin-bottom: 30px;
    }

    .testimonials-section .section-heading h2 {
        font-size: 30px;

        line-height: 1.2;
    }

    .testimonials-section .section-heading p {
        font-size: 14px;

        line-height: 1.6;
    }

    .testimonial-grid {
        gap: 16px;

        padding: 0 12px;
    }

    .testimonial-card {
        padding: 22px;

        border-radius: 15px;
    }

    .stars {
        font-size: 20px;

        margin-bottom: 16px;
    }

    .testimonial-card p {
        font-size: 15px;

        line-height: 1.7;

        margin-bottom: 22px;
    }

    .testimonial-user {
        gap: 12px;
    }

    .testimonial-user img {
        width: 50px;
        height: 50px;

        min-width: 50px;
    }

    .testimonial-user h4 {
        font-size: 16px;
    }

    .testimonial-user span {
        font-size: 13px;
    }
}