﻿/* =========================================================
   EDUCATION PAGE
========================================================= */

.education-page {
    width: 100%;
    padding: 24px 16px 50px;
    box-sizing: border-box;
}

.education-page .school-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}


/* =========================================================
   PAGE HEADER
========================================================= */

.education-header {
    margin-bottom: 24px;
}

.education-header-inner {
    background: linear-gradient(
        135deg,
        #102a43 0%,
        #163f5f 100%
    );

    border-radius: 18px;
    padding: 28px 30px;

    color: #ffffff;

    box-shadow:
        0 8px 25px rgba(16, 42, 67, 0.12);

    position: relative;
    overflow: hidden;
}

.education-header-inner::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(21, 154, 156, 0.16);
    right: -60px;
    top: -80px;
}

.education-header-content {
    position: relative;
    z-index: 2;
}

.education-header-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: rgba(255,255,255,0.12);

    font-size: 23px;

    margin-bottom: 14px;
}

.education-header h1 {
    margin: 0 0 7px;

    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
}

.education-header p {
    margin: 0;

    color: rgba(255,255,255,0.82);

    font-size: 15px;
    line-height: 1.6;
}


/* =========================================================
   LOGIN CARD
========================================================= */

.education-login-card {
    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 18px;

    padding: 34px 28px;

    text-align: center;

    box-shadow:
        0 8px 25px rgba(16, 42, 67, 0.07);
}

.education-login-icon {
    width: 68px;
    height: 68px;

    margin: 0 auto 18px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #dff6f4;
    color: #087f81;

    font-size: 28px;
}

.education-login-card h2 {
    margin: 0 0 10px;

    color: #102a43;

    font-size: 22px;
}

.education-login-card p {
    max-width: 600px;
    margin: 0 auto 22px;

    color: #627d98;

    line-height: 1.7;
}

.education-login-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 11px 20px;

    border-radius: 10px;

    background: #159a9c;
    color: #ffffff;

    text-decoration: none;

    font-weight: 600;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.education-login-button:hover {
    background: #087f81;
    transform: translateY(-1px);
}


/* =========================================================
   TOP LAYOUT
========================================================= */

.education-top-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        300px;

    gap: 24px;

    align-items: start;
}

.education-main-rooms {
    min-width: 0;
}


/* =========================================================
   SECTIONS
========================================================= */

.education-section {
    margin-bottom: 28px;
}

.education-section:last-child {
    margin-bottom: 0;
}

.education-section-header {
    display: flex;
    align-items: center;
    gap: 11px;

    margin-bottom: 14px;
}

.education-section-header-icon {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #dff6f4;
    color: #087f81;

    font-size: 16px;
}

.education-section-header h2 {
    margin: 0;

    color: #102a43;

    font-size: 20px;
    font-weight: 700;
}

.education-section-header p {
    margin: 2px 0 0;

    color: #829ab1;

    font-size: 13px;
}


/* =========================================================
   CLASS ROOMS
========================================================= */

.education-class-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 14px;
}

.education-room-card {
    position: relative;

    display: flex;
    align-items: center;
    gap: 15px;

    min-height: 94px;

    padding: 17px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 15px;

    text-decoration: none;

    box-shadow:
        0 4px 14px rgba(16, 42, 67, 0.045);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.education-room-card:hover {
    transform: translateY(-3px);

    border-color: #b8dede;

    box-shadow:
        0 10px 24px rgba(16, 42, 67, 0.10);
}

.education-room-icon {
    width: 54px;
    height: 54px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    font-size: 21px;
}

.education-room-icon.blue {
    background: #e6f0fa;
    color: #2878b5;
}

.education-room-icon.teal {
    background: #dff6f4;
    color: #087f81;
}

.education-room-icon.purple {
    background: #eee8fa;
    color: #7355a5;
}

.education-room-icon.orange {
    background: #fff0df;
    color: #c87925;
}

.education-room-icon.green {
    background: #e6f4ea;
    color: #36824d;
}

.education-room-content {
    min-width: 0;
    flex: 1;
}

.education-room-content h3 {
    margin: 0 0 5px;

    color: #102a43;

    font-size: 17px;
    font-weight: 700;
}

.education-room-content span {
    color: #829ab1;

    font-size: 13px;
}

.education-room-arrow {
    color: #9fb3c8;

    font-size: 13px;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.education-room-card:hover .education-room-arrow {
    color: #159a9c;
    transform: translateX(3px);
}


/* =========================================================
   OLYMPIAD
========================================================= */

.education-olympiad-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 14px;
}

.education-olympiad-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;

    padding: 19px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 15px;

    text-decoration: none;

    box-shadow:
        0 4px 14px rgba(16, 42, 67, 0.045);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.education-olympiad-card:hover {
    transform: translateY(-3px);

    border-color: #b8dede;

    box-shadow:
        0 10px 24px rgba(16, 42, 67, 0.10);
}

.education-olympiad-icon {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #fff4d9;
    color: #bd8018;

    font-size: 19px;
}

.education-olympiad-content h3 {
    margin: 1px 0 6px;

    color: #102a43;

    font-size: 16px;
}

.education-olympiad-content p {
    margin: 0;

    color: #627d98;

    font-size: 13px;
    line-height: 1.55;
}


/* =========================================================
   RESOURCES
========================================================= */

.education-resource-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;
}

.education-resource-card {
    display: flex;
    align-items: center;
    gap: 13px;

    padding: 15px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 13px;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.education-resource-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(16, 42, 67, 0.08);
}

.education-resource-icon {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #f0f4f8;
    color: #486581;

    font-size: 16px;
}

.education-resource-card h3 {
    margin: 0 0 3px;

    color: #102a43;

    font-size: 14px;
}

.education-resource-card p {
    margin: 0;

    color: #829ab1;

    font-size: 12px;
    line-height: 1.45;
}


/* =========================================================
   BEST RESULTS — RIGHT SIDE
========================================================= */

.education-top-honor-card {
    position: sticky;
    top: 20px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 17px;

    overflow: hidden;

    box-shadow:
        0 7px 22px rgba(16, 42, 67, 0.07);
}

.education-honor-header {
    padding: 19px 18px;

    background: linear-gradient(
        135deg,
        #102a43,
        #163f5f
    );

    color: #ffffff;
}

.education-honor-header-top {
    display: flex;
    align-items: center;
    gap: 11px;
}

.education-honor-header-icon {
    width: 39px;
    height: 39px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: rgba(255,255,255,0.12);

    color: #ffffff;
}

.education-honor-header h2 {
    margin: 0;

    font-size: 17px;
}

.education-honor-header p {
    margin: 9px 0 0;

    color: rgba(255,255,255,0.72);

    font-size: 12px;
    line-height: 1.5;
}

.education-honor-list {
    padding: 7px 0;
}

.education-honor-item {
    display: flex;
    align-items: center;
    gap: 11px;

    padding: 12px 15px;

    border-bottom: 1px solid #edf2f7;
}

.education-honor-item:last-child {
    border-bottom: none;
}

.education-honor-medal {
    width: 32px;
    height: 32px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #f0f4f8;

    color: #627d98;

    font-size: 12px;
    font-weight: 700;
}

.education-honor-class {
    flex: 1;
    min-width: 0;
}

.education-honor-class strong {
    display: block;

    color: #102a43;

    font-size: 13px;

    margin-bottom: 3px;
}

.education-honor-class span {
    display: block;

    color: #829ab1;

    font-size: 11px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.education-honor-score {
    text-align: right;

    white-space: nowrap;
}

.education-honor-score strong {
    display: block;

    color: #159a9c;

    font-size: 14px;
}

.education-honor-score span {
    color: #9fb3c8;

    font-size: 10px;
}

.education-honor-empty {
    color: #9fb3c8;

    font-size: 11px;

    font-style: italic;
}


/* =========================================================
   INFO CARD
========================================================= */

.education-info-card {
    margin-top: 14px;

    padding: 17px;

    border-radius: 15px;

    background: #f5f9fc;

    border: 1px solid #e2e8f0;
}

.education-info-card-icon {
    color: #159a9c;

    font-size: 17px;

    margin-bottom: 9px;
}

.education-info-card h3 {
    margin: 0 0 6px;

    color: #102a43;

    font-size: 14px;
}

.education-info-card p {
    margin: 0;

    color: #627d98;

    font-size: 12px;

    line-height: 1.6;
}


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

@media (max-width: 900px) {

    .education-top-layout {
        grid-template-columns: 1fr;
    }

    .education-top-honor-card {
        position: static;

        order: -1;
    }

    .education-honor-list {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .education-honor-item {
        border-bottom: 1px solid #edf2f7;
    }
}


@media (max-width: 650px) {

    .education-page {
        padding: 15px 10px 35px;
    }

    .education-header-inner {
        padding: 23px 20px;

        border-radius: 15px;
    }

    .education-header h1 {
        font-size: 23px;
    }

    .education-header p {
        font-size: 13px;
    }

    .education-class-grid,
    .education-olympiad-grid,
    .education-resource-grid {
        grid-template-columns: 1fr;
    }

    .education-honor-list {
        grid-template-columns: 1fr;
    }

    .education-honor-item {
        padding: 11px 14px;
    }

    .education-section-header h2 {
        font-size: 18px;
    }

    .education-room-card {
        min-height: 82px;
    }

    .education-room-icon {
        width: 48px;
        height: 48px;
    }
