*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.education-section{
    display: grid;
    width: 100%;
    height: 100vh;
    grid-template-columns: repeat(4,1fr);
    position: relative;

}

.education-section h1{
    font-size: 55px;
    grid-column: 1/-1;
    color: white;
    justify-self: center;
    position: relative;
    top: 60px;

}

.education-card{
    width: 23vw;
    height: 45vh;
    background-color: rgba(255, 215, 0, 0.48);
    margin-left: 15px;
    border-radius: 20px;
    position: relative;
    border: 2px solid gold;
    align-items: center;
    cursor: pointer;
    transition-duration: 800ms;
    overflow: hidden;
    /*z-index: 1000;*/
    box-shadow: 0 0 10px gold;

}

.education-card::before{
    content: "";
    position: absolute;
    width: 23vw;
    background-image: linear-gradient(gold, rgb(241, 255, 0));
    box-shadow: 0 0 10px gold;
    height: 45vh;
    z-index: -2;
    animation: border2 10s linear infinite;
}

@keyframes border2 {
    from{
        transform: translateX(100%);
    }

    to{
        transform: translateX(-100%);
        box-shadow: 0 0 10px gold;

    }
}

.education-card:hover{
    transform: translatey(-15px);
}

.education-card img{
    width: 75px;
    height: 75px;
    border-radius: 20px;
    position: absolute;
    left: 0;
    right: 0    ;
    top: 0;
    bottom: 70%;
    margin: auto;
}

.education-card p{
    width: 95%;
    font-size: 18px;
    line-height: 1.6;
    font-weight: 500;
    position: absolute;
    top: 30%;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
}
@media (min-width: 1024px) and (max-width: 1250px){
    .education-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .education-card {
        width: 45vw;
        height: 40vh;
        margin: 20px;
    }

    .education-card p {
        font-size: 17px;
        text-align: center;
    }

    .education-card img{
        width: 60px;
        height: 60px;
    }

    .education-section h1{
        font-size: 52px;
        top: 10px;
    }
}

@media (min-width: 651px) and (max-width: 1023px){
    .education-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .education-card {
        width: 45vw;
        height: 40vh;
        margin: 20px;
    }

    .education-card p {
        font-size: 17px;
        text-align: center;
    }

    .education-card img{
        width: 60px;
        height: 60px;
    }

    .education-section h1{
        font-size: 40px;
        top: 10px;
    }
}

@media (min-width: 379px) and (max-width: 650px){
    .education-section {
        grid-template-columns: repeat(1, 1fr);
    }
    .education-card {
        width: 90vw;
        height: 40vh;
        margin: 10px;
        left: 13px;
    }

    .education-card p {
        font-size: 15px;
    }

    .education-card img{
        width: 60px;
        height: 60px;
    }

    .education-section h1{
        font-size: 35px;
        top: 10px;
    }
}

@media (min-width: 300px) and (max-width: 376px) {
    .education-section {
        grid-template-columns: repeat(1, 1fr);
    }

    .education-card {
        width: 90vw;
        height: 40vh;
        margin: 10px;
        left: 13px;
    }

    .education-card p {
        font-size: 15px;
    }

    .education-card img{
        width: 60px;
        height: 60px;
    }

    .education-section h1{
        font-size: 35px;
        top: 10px;
    }
}
