/* ============================================
   SCHOOL SEARCH
============================================ */

.school-page-hero {
    padding:
        110px 0
        70px;

    background:
        linear-gradient(
            135deg,
            #eefafa,
            #f8f5fa
        );
}

.school-page-heading {
    max-width: 780px;
}

.school-en {
    color: var(--primary);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: .14em;
}

.school-page-heading h1 {
    margin:
        14px 0
        20px;

    font-size:
        clamp(
            44px,
            6vw,
            76px
        );

    line-height: 1.25;
}

.school-page-heading h1 em {
    color: var(--primary);

    font-style: normal;
}

.school-page-heading p {
    color: var(--sub-text);

    font-size: 17px;

    line-height: 2;
}


/* ============================================
   FILTER
============================================ */

.school-filter-section {
    position: relative;

    z-index: 10;

    margin-top: -25px;
}

.school-filter {
    padding: 34px;

    border-radius: 26px;

    background: white;

    border:
        1px solid
        var(--border);

    box-shadow:
        0 18px 50px
        rgba(0,0,0,.08);
}

.filter-top {
    margin-bottom: 25px;

    display: flex;

    justify-content:
        space-between;

    align-items: end;

    gap: 20px;
}

.filter-title span {
    color: var(--primary);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: .12em;
}

.filter-title h2 {
    margin:
        5px 0 0;

    font-size: 24px;
}

.filter-reset {
    padding:
        9px
        15px;

    border:
        1px solid
        var(--border);

    border-radius:
        999px;

    background: white;

    cursor: pointer;

    color:
        var(--sub-text);
}

.filter-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;
}

.filter-group {
    display: grid;

    gap: 8px;
}

.filter-group label {
    font-size: 12px;

    font-weight: 700;
}

.filter-group select {
    width: 100%;

    height: 52px;

    padding:
        0 14px;

    border:
        1px solid
        var(--border);

    border-radius:
        12px;

    background: white;
}


/* ============================================
   RESULT
============================================ */

.school-results-section {
    padding:
        70px 0
        120px;
}

.result-toolbar {
    margin-bottom: 25px;

    display: flex;

    justify-content:
        space-between;

    align-items: center;

    gap: 20px;
}

#resultCount {
    color: var(--primary);

    font-size: 26px;
    font-weight: 800;
}

.compare-link {
    min-height: 44px;

    padding:
        0 18px;

    border-radius:
        999px;

    background:
        var(--blue);

    color: white;

    display:
        inline-flex;

    align-items:
        center;

    gap: 10px;

    font-weight: 700;
}

#compareCount {
    min-width: 23px;
    height: 23px;

    border-radius: 50%;

    display: grid;

    place-items: center;

    background: white;

    color:
        var(--blue);

    font-size: 11px;
}


/* ============================================
   SCHOOL CARD
============================================ */

.school-list {
    display: grid;

    gap: 24px;
}

.school-card {
    display: grid;

    grid-template-columns:
        330px 1fr;

    overflow: hidden;

    border:
        1px solid
        var(--border);

    border-radius:
        24px;

    background: white;

    transition:
        box-shadow .25s,
        transform .25s;
}

.school-card:hover {
    transform:
        translateY(-4px);

    box-shadow:
        var(--shadow);
}

.school-card-image {
    position: relative;

    min-height: 290px;
}

.school-card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.school-image-placeholder {
    width: 100%;
    height: 100%;

    min-height: 290px;

    background:
        linear-gradient(
            135deg,
            #e1f1f3,
            #eef0f8
        );

    display: grid;

    place-items: center;

    color:
        rgba(0,0,0,.25);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: .1em;
}

.favorite-heart {
    position: absolute;

    top: 15px;
    left: 15px;

    width: 44px;
    height: 44px;

    border: 0;

    border-radius: 50%;

    background:
        rgba(255,255,255,.95);

    font-size: 22px;

    cursor: pointer;

    z-index: 3;
}

.favorite-heart.is-active {
    color:
        var(--pink);
}

.school-match {
    position: absolute;

    right: 16px;
    bottom: 16px;

    width: 78px;
    height: 78px;

    border-radius: 50%;

    background:
        rgba(255,255,255,.94);

    box-shadow:
        0 8px 25px
        rgba(0,0,0,.12);

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;
}

.school-match small {
    font-size: 10px;

    color:
        var(--sub-text);
}

.school-match strong {
    color:
        var(--pink);

    font-size: 24px;
}

.school-match strong span {
    font-size: 11px;
}

.school-card-body {
    padding: 32px;
}

.school-location {
    color:
        var(--primary-dark);

    font-size: 12px;

    font-weight: 700;
}

.school-card-body h2 {
    margin:
        5px 0 0;

    font-size: 29px;
}

.school-campus {
    margin-top: 3px;

    color:
        var(--sub-text);

    font-size: 13px;
}

.school-summary {
    margin:
        18px 0;

    color:
        #555;

    line-height: 1.9;
}

.school-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;
}

.school-tags span {
    padding:
        5px 10px;

    border-radius:
        999px;

    font-size: 11px;

    font-weight: 700;
}

.tag-attendance {
    background:
        #eaf8f8;

    color:
        var(--primary-dark);
}

.tag-future {
    background:
        #f7eaf0;

    color:
        #b54166;
}

.school-card-footer {
    margin-top: 28px;

    padding-top: 20px;

    border-top:
        1px solid
        var(--border);

    display: flex;

    justify-content:
        space-between;

    align-items: center;

    gap: 15px;
}

.compare-check {
    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;
}

.compare-check input {
    width: 18px;
    height: 18px;
}

.school-detail-link {
    min-height: 46px;

    padding:
        0 20px;

    border-radius:
        999px;

    background:
        var(--primary);

    color: white;

    display:
        inline-flex;

    align-items: center;

    gap: 12px;

    font-weight: 800;
}


/* ============================================
   NO RESULTS
============================================ */

.no-results {
    padding: 70px 20px;

    text-align: center;

    border:
        1px dashed
        var(--border);

    border-radius: 24px;
}

.no-results h3 {
    font-size: 23px;
}

.no-results p {
    color:
        var(--sub-text);
}


/* ============================================
   CTA
============================================ */

.school-consult-cta {
    padding:
        0 0
        100px;
}

.school-consult-box {
    padding: 55px;

    border-radius: 28px;

    background:
        linear-gradient(
            135deg,
            #eefafa,
            #f8ecf2
        );

    display: flex;

    justify-content:
        space-between;

    align-items: center;

    gap: 40px;
}

.school-consult-box > div > span {
    color:
        var(--primary);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: .12em;
}

.school-consult-box h2 {
    margin:
        8px 0;

    font-size: 36px;
}

.school-consult-box p {
    color:
        var(--sub-text);
}

.school-consult-box > a {
    flex-shrink: 0;

    min-height: 54px;

    padding:
        0 25px;

    border-radius:
        999px;

    background:
        var(--pink);

    color: white;

    display:
        inline-flex;

    align-items: center;

    gap: 15px;

    font-weight: 800;
}


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

@media (max-width: 900px) {

    .filter-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .school-card {
        grid-template-columns:
            260px 1fr;
    }

}


@media (max-width: 768px) {

    .school-page-hero {
        padding:
            70px 0
            50px;
    }

    .school-page-heading h1 {
        font-size: 44px;
    }

    .school-page-heading p {
        font-size: 14px;
    }

    .school-filter {
        padding: 22px;
    }

    .filter-top {
        align-items:
            flex-start;

        flex-direction:
            column;
    }

    .filter-grid {
        grid-template-columns:
            1fr;
    }

    .school-results-section {
        padding:
            50px 0
            80px;
    }

    .result-toolbar {
        align-items:
            flex-start;

        flex-direction:
            column;
    }

    .school-card {
        grid-template-columns:
            1fr;
    }

    .school-card-image {
        min-height: 230px;
    }

    .school-image-placeholder {
        min-height: 230px;
    }

    .school-card-body {
        padding: 23px;
    }

    .school-card-body h2 {
        font-size: 24px;
    }

    .school-card-footer {
        align-items:
            stretch;

        flex-direction:
            column;
    }

    .school-detail-link {
        width: 100%;

        justify-content: center;
    }

    .school-consult-box {
        padding: 35px 24px;

        flex-direction:
            column;

        align-items:
            flex-start;
    }

    .school-consult-box h2 {
        font-size: 30px;
    }

    .school-consult-box > a {
        width: 100%;

        justify-content:
            center;
    }

}