﻿/* =========================================================
   IK EDUCATION - SPONSORED STUDENTS
========================================================= */


/* =========================================================
   HERO
========================================================= */

.sponsored-hero {
    position: relative;
    overflow: hidden;
    padding: 40px 0 45px;
    background: radial-gradient( circle at 85% 20%, rgba(8, 124, 196, .35), transparent 32% ), radial-gradient( circle at 10% 80%, rgba(245, 130, 32, .16), transparent 28% ), #032b43;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

    .sponsored-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient( rgba(255, 255, 255, .035) 1px, transparent 1px ), linear-gradient( 90deg, rgba(255, 255, 255, .035) 1px, transparent 1px );
        background-size: 38px 38px;
        pointer-events: none;
    }

    .sponsored-hero::after {
        content: "";
        position: absolute;
        width: 280px;
        height: 280px;
        right: -80px;
        top: -110px;
        border: 55px solid rgba(255, 255, 255, .025);
        border-radius: 50%;
        pointer-events: none;
    }

.sponsored-hero-content {
    position: relative;
    z-index: 1;
    max-width: 790px;
}


/* HERO KICKER */

.sponsored-kicker {
    margin-bottom: 13px;
    color: #f58220;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.6px;
}


/* HERO TITLE */

.sponsored-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(42px, 5vw, 66px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -2px;
}

    .sponsored-hero h1 span {
        color: #55c7e5;
    }


/* HERO DESCRIPTION */

.sponsored-hero p {
    max-width: 650px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.sponsored-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
    font-size: 13px;
}

    .sponsored-breadcrumb a {
        color: #8edcf0;
        font-weight: 700;
        text-decoration: none;
        transition: color .2s ease;
    }

        .sponsored-breadcrumb a:hover {
            color: #fff;
        }

    .sponsored-breadcrumb span {
        color: rgba(255, 255, 255, .45);
    }

        .sponsored-breadcrumb span:last-child {
            color: rgba(255, 255, 255, .75);
        }


/* =========================================================
   MAIN STUDENTS SECTION
========================================================= */

.sponsored-section {
    padding: 65px 0 85px;
    background: #f8fafb;
}


/* =========================================================
   STUDENT GRID
========================================================= */

.sponsored-student-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}


/* =========================================================
   STUDENT CARD
========================================================= */

.sponsored-student-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
    min-width: 0;
    min-height: 330px;
    padding: 20px;
    border: 1px solid #edf1f3;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 10px 35px rgba(3, 43, 67, .075);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

    .sponsored-student-card:hover {
        transform: translateY(-3px);
        border-color: #dce7ec;
        box-shadow: 0 16px 42px rgba(3, 43, 67, .11);
    }


/* =========================================================
   STUDENT LEFT SIDE
========================================================= */

.student-left {
    min-width: 0;
}


/* =========================================================
   STUDENT IMAGE
========================================================= */

.student-image {
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 10px;
    background: #eef3f5;
}

    .student-image img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        /*
       Keep student's face visible.
    */
        object-position: center top;
    }


/* =========================================================
   AGE / GENDER
========================================================= */

.student-basic-info {
    margin-top: 27px;
}

    .student-basic-info > div {
        display: flex;
        align-items: baseline;
        flex-wrap: wrap;
        gap: 4px;
        margin-bottom: 5px;
        color: #737373;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.6;
    }

        .student-basic-info > div:last-child {
            margin-bottom: 0;
        }

    .student-basic-info strong {
        color: #555;
        font-size: inherit;
        font-weight: 700;
    }

    .student-basic-info span {
        color: #737373;
        font-size: inherit;
        font-weight: 400;
    }


/* =========================================================
   STUDENT RIGHT SIDE
========================================================= */

.student-right {
    min-width: 0;
}


    /* STUDENT NAME */

    .student-right h3 {
        margin: 1px 0 17px;
        color: #08618f;
        font-size: 21px;
        font-weight: 800;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }


    /* ABOUT STUDENT */

    .student-right p {
        margin: 0;
        color: #737373;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.85;
        overflow-wrap: anywhere;
    }


/* =========================================================
   EMPTY STATE
========================================================= */

.sponsored-empty {
    max-width: 550px;
    margin: 20px auto;
    padding: 50px 30px;
    border: 1px solid #e0eaf0;
    border-radius: 18px;
    background: #fff;
    text-align: center;
    box-shadow: 0 10px 30px rgba(3, 43, 67, .05);
}

    .sponsored-empty h3 {
        margin: 0 0 8px;
        color: #032b43;
        font-size: 20px;
        font-weight: 800;
        line-height: 1.4;
    }

    .sponsored-empty p {
        margin: 0;
        color: #526a78;
        font-size: 13px;
        font-weight: 400;
        line-height: 1.7;
    }


/* =========================================================
   PAGINATION
========================================================= */

.student-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 45px;
}


/* PAGE NUMBER + ARROWS */

.student-page-number,
.student-page-arrow {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    border: 1px solid #dce7ed;
    border-radius: 10px;
    background: #fff;
    color: #032b43;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}


    /* PAGINATION HOVER */

    .student-page-number:hover,
    .student-page-arrow:hover {
        border-color: #087cc4;
        background: #eef8ff;
        color: #087cc4;
        text-decoration: none;
    }


    /* ACTIVE PAGE */

    .student-page-number.active {
        border-color: #087cc4;
        background: #087cc4;
        color: #fff;
        cursor: default;
    }


    /* ARROW SVG */

    .student-page-arrow svg {
        width: 17px;
        height: 17px;
        display: block;
    }


/* =========================================================
   LARGE TABLET
========================================================= */

@media (max-width: 1199px) {

    .sponsored-student-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .sponsored-section {
        padding: 55px 0 75px;
    }

    .sponsored-student-card {
        grid-template-columns: 140px minmax(0, 1fr);
        gap: 20px;
        min-height: 310px;
        padding: 18px;
    }

    .student-image {
        width: 140px;
        height: 140px;
    }

    .student-basic-info {
        margin-top: 22px;
    }

    .student-right h3 {
        font-size: 20px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    /* HERO */

    .sponsored-hero {
        padding: 45px 0 50px;
    }

        .sponsored-hero .container,
        .sponsored-section .container {
            width: 100%;
            max-width: 100%;
            padding-left: 15px;
            padding-right: 15px;
            box-sizing: border-box;
        }

    .sponsored-hero-content {
        max-width: 100%;
    }

    .sponsored-kicker {
        margin-bottom: 10px;
        font-size: 10px;
        letter-spacing: 1.4px;
    }

    .sponsored-hero h1 {
        font-size: 38px;
        line-height: 1.08;
        letter-spacing: -1px;
    }

    .sponsored-hero p {
        margin-top: 15px;
        font-size: 14px;
        line-height: 1.7;
    }

    .sponsored-breadcrumb {
        margin-top: 20px;
        font-size: 12px;
    }


    /* MAIN */

    .sponsored-section {
        padding: 35px 0 60px;
    }


    /* GRID */

    .sponsored-student-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }


    /* CARD */

    .sponsored-student-card {
        grid-template-columns: 125px minmax(0, 1fr);
        gap: 17px;
        min-height: auto;
        padding: 16px;
        border-radius: 8px;
    }

        .sponsored-student-card:hover {
            transform: none;
        }


    /* IMAGE */

    .student-image {
        width: 125px;
        height: 125px;
        border-radius: 9px;
    }


    /* AGE/GENDER */

    .student-basic-info {
        margin-top: 18px;
    }

        .student-basic-info > div {
            margin-bottom: 4px;
            font-size: 12px;
            line-height: 1.55;
        }


    /* NAME */

    .student-right h3 {
        margin-top: 0;
        margin-bottom: 10px;
        font-size: 18px;
        line-height: 1.3;
    }


    /* DESCRIPTION */

    .student-right p {
        font-size: 13px;
        line-height: 1.7;
    }


    /* PAGINATION */

    .student-pagination {
        gap: 6px;
        margin-top: 32px;
    }

    .student-page-number,
    .student-page-arrow {
        width: 39px;
        height: 39px;
        flex-basis: 39px;
        border-radius: 9px;
        font-size: 12px;
    }

        .student-page-arrow svg {
            width: 16px;
            height: 16px;
        }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .sponsored-hero {
        padding: 38px 0 43px;
    }

        .sponsored-hero h1 {
            font-size: 32px;
        }

        .sponsored-hero p {
            font-size: 13px;
        }


    /* CARD */

    .sponsored-student-card {
        grid-template-columns: 105px minmax(0, 1fr);
        gap: 14px;
        padding: 13px;
    }


    /* IMAGE */

    .student-image {
        width: 105px;
        height: 105px;
        border-radius: 8px;
    }


    /* DETAILS */

    .student-basic-info {
        margin-top: 14px;
    }

        .student-basic-info > div {
            margin-bottom: 3px;
            font-size: 11px;
        }


    /* NAME */

    .student-right h3 {
        margin: 0 0 8px;
        font-size: 17px;
        line-height: 1.3;
    }


    /* DESCRIPTION */

    .student-right p {
        font-size: 12px;
        line-height: 1.65;
    }


    /* PAGINATION */

    .student-page-number,
    .student-page-arrow {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        font-size: 11px;
    }
}


/* =========================================================
   EXTRA SMALL MOBILE
========================================================= */

@media (max-width: 360px) {

    .sponsored-student-card {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .student-image {
        width: 92px;
        height: 92px;
    }

    .student-basic-info {
        margin-top: 12px;
    }

        .student-basic-info > div {
            font-size: 10px;
        }

    .student-right h3 {
        font-size: 16px;
    }

    .student-right p {
        font-size: 11.5px;
        line-height: 1.6;
    }
}
