/* =========================================
   EDUCATION PAGE
   ========================================= */
/* =========================================
   SCHOOL CONTAINER
   ========================================= */

.education-school-container {
    width: 100%;
}


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

.education-school-card {
    width: 100%;

    padding: 28px;

    background:
        var(--surface-secondary);

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

    border-radius: 8px;

    box-shadow:
        0 2px 8px rgba(
            0,
            0,
            0,
            0.12
        );
}

/* =========================================
   SCHOOL BANNER
   ========================================= */

.education-school-banner {
    position: relative;

    width:
        calc(100% + 56px);

    height: 160px;

    margin:
        -28px
        -28px
        26px;

    overflow: hidden;

    background:
        #25242a;

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


/* =========================================
   BANNER IMAGE
   ========================================= */

.education-school-banner img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* =========================================
   BANNER DARK MASK
   ========================================= */

.education-school-banner::before {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 1;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.06) 0%,
            rgba(0, 0, 0, 0.10) 20%,
            rgba(0, 0, 0, 0.18) 40%,
            rgba(0, 0, 0, 0.28) 60%,
            rgba(0, 0, 0, 0.42) 80%,
            rgba(0, 0, 0, 0.55) 100%
        );
}


/* =========================================
   BANNER BOTTOM FADE
   ========================================= */

.education-school-banner::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 55%;

    z-index: 2;

    pointer-events: none;

    background:
        linear-gradient(
            to bottom,
            transparent,
            rgba(37, 36, 42, 0.42)
        );
}


/* =========================================
   SCHOOL HEADER
   ========================================= */

.education-school-header {
    display: flex;
    align-items: center;

    gap: 18px;

    margin-bottom: 26px;
}


/* =========================================
   SCHOOL ICON
   ========================================= */

.education-school-icon {
    position: relative;

    width: 76px;
    height: 76px;

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

    flex-shrink: 0;

    background:
        #25242a;

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

    border-radius: 12px;

    overflow: hidden;
}


.education-school-icon img {
    width: 58px;
    height: 58px;

    object-fit: contain;
}


.education-school-icon-fallback {
    position: absolute;

    color:
        var(--accent-light);

    font-family:
        "Cascadia Code",
        "Fira Code",
        Consolas,
        monospace;

    font-size: 0.72rem;
    font-weight: 600;
}


/* =========================================
   SCHOOL HEADING
   ========================================= */

.education-school-heading {
    min-width: 0;
}


.education-school-eyebrow {
    display: block;

    margin-bottom: 5px;

    color:
        var(--accent-light);

    font-family:
        "Cascadia Code",
        "Fira Code",
        Consolas,
        monospace;

    font-size: 0.7rem;

    text-transform:
        uppercase;

    letter-spacing:
        0.06em;
}


.education-school-heading h2 {
    font-size:
        clamp(
            1.35rem,
            2.4vw,
            1.9rem
        );

    font-weight: 600;

    line-height: 1.25;
}


/* =========================================
   MAJOR
   ========================================= */

.education-major {
    margin-bottom: 14px;

    padding: 20px;

    background:
        #25242a;

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

    border-radius: 7px;
}


.education-major h3 {
    margin-top: 6px;

    color:
        var(--text-primary);

    font-size: 1.08rem;
    font-weight: 600;

    line-height: 1.4;
}


/* =========================================
   LABEL
   ========================================= */

.education-cell-label {
    display: block;

    color:
        var(--text-muted);

    font-family:
        "Cascadia Code",
        "Fira Code",
        Consolas,
        monospace;

    font-size: 0.63rem;
    font-weight: 600;

    text-transform:
        uppercase;

    letter-spacing:
        0.08em;
}


/* =========================================
   DETAIL GRID
   ========================================= */

.education-detail-grid {
    display: grid;

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

    gap: 14px;

    margin-bottom: 14px;
}


/* =========================================
   DETAIL CELL
   ========================================= */

.education-detail-cell {
    min-width: 0;

    padding: 18px;

    background:
        #25242a;

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

    border-radius: 7px;

    transition:
        background 150ms ease,
        border-color 150ms ease;
}


.education-detail-cell:hover {
    background:
        var(--surface-hover);

    border-color:
        #55545e;
}


.education-detail-cell strong {
    display: block;

    margin-top: 6px;

    color:
        var(--text-primary);

    font-size: 0.9rem;
    font-weight: 500;
}


/* =========================================
   DESCRIPTION
   ========================================= */

.education-description-cell {
    padding: 20px;

    background:
        #25242a;

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

    border-radius: 7px;
}


.education-description-cell p {
    margin-top: 8px;

    max-width: 900px;

    color:
        var(--text-secondary);

    font-size: 0.85rem;

    line-height: 1.65;
}


/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 650px) {

    .education-school-card {
        padding: 20px;
    }


    .education-school-header {
        align-items: flex-start;
    }


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

}


@media (max-width: 450px) {

    .education-school-header {
        flex-direction: column;
    }


    .education-school-icon {
        width: 64px;
        height: 64px;
    }


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

}

/* =========================================
   CERTIFICATIONS PANEL
   ========================================= */

.certifications-panel {
    width: 100%;

    padding: 26px;

    background:
        var(--surface-secondary);

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

    border-radius: 8px;

    box-shadow:
        0 2px 8px rgba(
            0,
            0,
            0,
            0.12
        );
}


/* =========================================
   CERTIFICATIONS PANEL HEADER
   ========================================= */

.certifications-panel-header {
    margin-bottom: 22px;
}


.certifications-panel-header h2 {
    margin-top: 5px;

    color:
        var(--text-primary);

    font-size: 1.35rem;
    font-weight: 600;

    line-height: 1.3;
}


/* =========================================
   CERTIFICATION GRID
   ========================================= */

.certification-grid {
    width: 100%;

    display: grid;

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

    gap: 14px;
}


/* =========================================
   CERTIFICATION CARD
   ========================================= */

.certification-card {
    min-width: 0;

    min-height: 310px;

    display: flex;
    flex-direction: column;

    padding: 22px;

    background:
        #25242a;

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

    border-radius: 7px;

    transition:
        background 150ms ease,
        border-color 150ms ease,
        transform 150ms ease;
}


.certification-card:hover {
    background:
        var(--surface-hover);

    border-color:
        #55545e;

    transform:
        translateY(-2px);
}


/* =========================================
   CARD TOP
   ========================================= */

.certification-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 22px;
}


/* =========================================
   CERTIFICATION ICON
   ========================================= */

.certification-icon {
    position: relative;

    width: 58px;
    height: 58px;

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

    flex-shrink: 0;

    background:
        var(--surface-secondary);

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

    border-radius: 10px;

    overflow: hidden;
}


.certification-icon img {
    width: 42px;
    height: 42px;

    display: block;

    object-fit: contain;
}


.certification-icon-fallback {
    position: absolute;

    color:
        var(--accent-light);

    font-family:
        "Cascadia Code",
        "Fira Code",
        Consolas,
        monospace;

    font-size: 0.72rem;
    font-weight: 600;
}


/* =========================================
   CERTIFICATION STATUS
   ========================================= */

.certification-status {
    max-width: 165px;

    padding:
        5px 8px;

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

    border-radius: 5px;

    font-family:
        "Cascadia Code",
        "Fira Code",
        Consolas,
        monospace;

    font-size: 0.61rem;
    font-weight: 600;

    line-height: 1.25;

    text-align: center;

    text-transform:
        uppercase;

    letter-spacing:
        0.05em;

    white-space: nowrap;
}


/* =========================================
   STATUS - ACTIVE
   ========================================= */

.certification-status-active {
    color:
        #91d394;

    background:
        rgba(
            107,
            189,
            110,
            0.08
        );

    border-color:
        rgba(
            107,
            189,
            110,
            0.25
        );
}


/* =========================================
   STATUS - IN PROGRESS
   ========================================= */

.certification-status-in-progress {
    color:
        var(--accent-light);

    background:
        rgba(
            123,
            131,
            235,
            0.08
        );

    border-color:
        rgba(
            123,
            131,
            235,
            0.25
        );
}


/* =========================================
   STATUS - AWAITING RECERTIFICATION
   ========================================= */

.certification-status-awaiting-recertification {
    color:
        #e4bf72;

    background:
        rgba(
            228,
            191,
            114,
            0.08
        );

    border-color:
        rgba(
            228,
            191,
            114,
            0.25
        );
}


/* =========================================
   STATUS - EXPIRED
   ========================================= */

.certification-status-expired {
    color:
        #d78383;

    background:
        rgba(
            215,
            131,
            131,
            0.08
        );

    border-color:
        rgba(
            215,
            131,
            131,
            0.25
        );
}


/* =========================================
   CERTIFICATION TITLE
   ========================================= */

.certification-card h2 {
    margin-bottom: 20px;

    color:
        var(--text-primary);

    font-size: 1.05rem;
    font-weight: 600;

    line-height: 1.35;
}


/* =========================================
   CERTIFICATION DATES
   ========================================= */

.certification-dates {
    display: grid;

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

    gap: 8px;

    margin-bottom: 18px;
}


/* =========================================
   DATE ITEM
   ========================================= */

.certification-date-item {
    min-width: 0;

    padding: 11px;

    background:
        var(--surface-secondary);

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

    border-radius: 6px;
}


.certification-date-label {
    display: block;

    margin-bottom: 5px;

    color:
        var(--text-muted);

    font-family:
        "Cascadia Code",
        "Fira Code",
        Consolas,
        monospace;

    font-size: 0.58rem;
    font-weight: 600;

    text-transform:
        uppercase;

    letter-spacing:
        0.07em;
}


.certification-date-item strong {
    display: block;

    color:
        var(--text-primary);

    font-size: 0.77rem;
    font-weight: 500;

    line-height: 1.4;

    overflow-wrap: anywhere;
}


/* =========================================
   DESCRIPTION
   ========================================= */

.certification-description {
    margin-top: auto;

    color:
        var(--text-secondary);

    font-size: 0.8rem;

    line-height: 1.55;
}


/* =========================================
   EMPTY / IN PROGRESS DATE TEXT
   ========================================= */

.certification-date-item strong:empty::after {
    content: "—";

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


/* =========================================
   RESPONSIVE - 1050PX
   ========================================= */

@media (max-width: 1050px) {

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

}


/* =========================================
   RESPONSIVE - 700PX
   ========================================= */

@media (max-width: 700px) {

    .certifications-panel {
        padding: 20px;
    }


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


    .certification-card {
        min-height: auto;
    }

}


/* =========================================
   RESPONSIVE - 450PX
   ========================================= */

@media (max-width: 450px) {

    .certifications-panel {
        padding: 16px;
    }


    .certification-card {
        padding: 18px;
    }


    .certification-card-top {
        margin-bottom: 18px;
    }


    .certification-icon {
        width: 52px;
        height: 52px;
    }


    .certification-icon img {
        width: 38px;
        height: 38px;
    }


    .certification-status {
        max-width: 135px;

        white-space: normal;
    }


    .certification-dates {
        grid-template-columns:
            1fr;
    }

}