/* =========================================================
   SARA EDUCATION
   STUDENTS / TESTIMONIAL PAGE
   Đồng bộ với style.css / index.php / about.php
========================================================= */


/* =========================================================
   HERO
========================================================= */

.students-page-hero {
    padding: 75px 0 80px;
    background: var(--light);
}

.students-hero-content {
    max-width: 780px;
}

.students-page-hero h1 {
    margin-top: 18px;
    color: var(--black);
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
}

.students-page-hero h1 span {
    display: block;
    color: var(--primary);
}

.students-page-hero p {
    max-width: 650px;
    margin-top: 22px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.8;
}


/* =========================================================
   TESTIMONIALS
========================================================= */

.students-testimonials {
    background: var(--white);
}

.students-heading {
    display: grid;
    grid-template-columns: 1fr 380px;
    align-items: end;
    gap: 50px;
    margin-bottom: 45px;
}

.students-heading > p {
    margin: 0;
    color: var(--text);
    font-size: 13px;
    line-height: 1.8;
}


/* =========================================================
   IMAGE GALLERY
========================================================= */

.students-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.student-image {
    position: relative;
    overflow: hidden;
    background: var(--light);
    border: 1px solid var(--border);
}

.student-image img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .45s ease;
}

.student-image:hover img {
    transform: scale(1.015);
}


/* Ảnh đầu tiên lớn hơn */

.student-image-large {
    grid-column: span 2;
}


/* Ảnh thứ 4 trải ngang */

.student-image-wide {
    grid-column: span 2;
}


/* =========================================================
   ZOOM BUTTON
========================================================= */

.student-zoom {
    position: absolute;
    right: 18px;
    bottom: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    border: none;
    background: rgba(255, 255, 255, .95);
    color: var(--black);

    font-size: 14px;
    cursor: pointer;

    opacity: 0;
    transform: translateY(8px);

    transition:
        opacity .25s ease,
        transform .25s ease,
        background .25s ease,
        color .25s ease;
}

.student-image:hover .student-zoom {
    opacity: 1;
    transform: translateY(0);
}

.student-zoom:hover {
    background: var(--primary);
    color: var(--white);
}


/* =========================================================
   MESSAGE
========================================================= */

.students-message {
    background: var(--light);
}



.students-message-content {
    max-width: 720px;
}

.students-message-content h2 {
    margin-top: 16px;
    color: var(--black);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.7px;
}

.students-message-content h2 span {
    display: block;
    color: var(--primary);
}

.students-message-content p {
    max-width: 650px;
    margin-top: 20px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.85;
}


/* =========================================================
   CTA
========================================================= */

.students-page-cta {
    padding: 65px 0;
    background: var(--primary);
}

.students-page-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.students-page-cta .section-label {
    color: rgba(255, 255, 255, .75);
}

.students-page-cta h2 {
    margin-top: 13px;
    color: var(--white);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.2;
}

.students-page-cta h2 span {
    display: block;
}

.students-page-cta-action {
    flex-shrink: 0;
}

.students-page-cta-action .btn {
    white-space: nowrap;
}


/* =========================================================
   LIGHTBOX
========================================================= */

.student-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px;

    background: rgba(0, 0, 0, .82);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .25s ease,
        visibility .25s ease;
}

.student-lightbox.show {
    opacity: 1;
    visibility: visible;
}

.student-lightbox img {
    display: block;

    max-width: 92vw;
    max-height: 90vh;

    width: auto;
    height: auto;

    object-fit: contain;

    transform: scale(.96);

    transition: transform .3s ease;
}

.student-lightbox.show img {
    transform: scale(1);
}

.student-lightbox-close {
    position: fixed;
    top: 22px;
    right: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 45px;
    height: 45px;

    border: none;
    background: var(--white);
    color: var(--black);

    font-size: 18px;

    cursor: pointer;
}

.student-lightbox-close:hover {
    background: var(--primary);
    color: var(--white);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .students-page-hero {
        padding: 60px 0 65px;
    }

    .students-heading {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .students-gallery {
        gap: 16px;
    }

    .students-message-inner {
        grid-template-columns: 70px 1fr;
        gap: 35px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .students-page-hero {
        padding: 50px 0 55px;
    }

    .students-page-hero h1 {
        font-size: 37px;
        letter-spacing: -.5px;
    }

    .students-page-hero p {
        font-size: 14px;
    }


    .students-heading {
        margin-bottom: 30px;
    }


    .students-gallery {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .student-image-large,
    .student-image-wide {
        grid-column: span 1;
    }


    .student-zoom {
        right: 12px;
        bottom: 12px;

        width: 40px;
        height: 40px;

        opacity: 1;
        transform: none;
    }


    .students-message-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .students-message-number span {
        font-size: 42px;
    }

    .students-message-content h2 {
        font-size: 31px;
    }


    .students-page-cta {
        padding: 55px 0;
    }

    .students-page-cta-inner {
        display: block;
    }

    .students-page-cta-action {
        margin-top: 25px;
    }

    .students-page-cta-action .btn {
        width: 100%;
        justify-content: center;
    }


    .student-lightbox {
        padding: 20px;
    }

    .student-lightbox img {
        max-width: 94vw;
        max-height: 85vh;
    }

}