#education {
    display: flex;
    flex-direction: row;
    gap: 5em;
    align-items: flex-start;
}

#education-header{
    position: sticky;
    margin: 40vh 0;
    top: 30vh;
    align-self: flex-start;
    background-color: var(--paper);
    z-index: 1;

    white-space: nowrap;
    overflow-wrap: normal;
}
#education-header h1{
    font-size: clamp(2.5rem, 20vw, 8rem);
}

#education-list {
    width: 100%;
}

@media (max-width: 1000px) {
    #education {
        flex-direction: column;
    }
    #education-header {
        top: 0em;
        width:100%;
        padding: 0.3em 0;
    }
}

.dark-overlay {
    position: absolute;
    inset: 0;
    background: black;
    opacity: 0.6;
    animation: vibrance linear both;
    animation-timeline: view();
}

@keyframes vibrance {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.education-card {
    position: relative;
    z-index: 0;

    border-radius: var(--radius);
    padding: 5em 3em;
    margin: 5em 0;

    background-color:rgb(38, 38, 38);
    list-style: none;

    /* Layout Management */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: clip;

    /* Animations */
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}
/* Container Decoration */
.diamond-overlay-1, .diamond-overlay-2{
    /* Positioning */
    position: absolute;
    z-index: -1;
    
    /* Box Model */
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255,255,255,0.28);
    /* Display */
    transform: rotate(45deg);
    pointer-events: none;
}

.diamond-overlay-1 {
    bottom: 70%;
    left: 50%;
}
.diamond-overlay-2 {
    bottom:-30%;
    left:10%;
}

.education-card h2 {
    text-align: center;
}
.education-card ul {
    padding: 1em;
}
.education-card img {
    width: 12em;
    margin: 2em;
    object-fit: contain;
    border-radius: 2em;
}

@media (max-width: 1000px) {
    .education-card img {
        width: 10em;
    }
}

/* Gradient Colors */
.education-card:nth-of-type(1){
    background-image: linear-gradient(120deg,
    rgba(0, 8, 255, 1) 0%, 
    rgba(238, 0, 255, 1) 100%);
}
.education-card:nth-of-type(2){
    background-image: linear-gradient(120deg,
    rgba(179, 0, 255, 1) 0%, 
    rgba(255, 0, 102, 1) 100%);
}
.education-card:nth-of-type(3){
    background-image: linear-gradient(120deg,
    rgba(255, 55, 0, 1) 0%, 
    rgb(237, 158, 0) 100%);
}

.education-year {
    font-size: 1.1em;
    word-spacing: 0.5em;
}

.education-description{
    margin: 1em;
    text-align: center;
    color: var(--text-muted);
}