* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
}

:root {
    --mainColor1: #101916;
    --mainColor2: #1c312a;
    --mainColor3: #648374;
    --mainColor4: #e3e5d8;
    --mainColor5: #afc1b6;
    --mainColor6: #fff;
    --mainColor7: #000;
}

.s1 {
    background: linear-gradient(#1419184d, #1418164b), url(../img/edu-mp/mpbg.webp) no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    width: 100%;
    height: 100vh;
    background-color: var(--mainColor5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.heading h1 {
    text-align: center;
    font-size: 60px;
    color: var(--mainColor6);
    text-shadow: 0px 4px var(--mainColor7);
    transition: .2s;
}

.heading h1:hover {
    font-size: 62px;
    color: var(--mainColor3);
    text-shadow: 0px 7px var(--mainColor2);
    transition: .2s;
}

.s2 {
    background-color: var(--mainColor6);
    width: 100%;
    height: 100vh;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.left {
    width: 100%;
    height: 100%;
    padding: 40px;
    display: grid;
    align-items: center;
    justify-content: center;
}

.boxs {
    display: grid;
    grid-template-rows: 3fr 1fr;
    gap: 50px;
}

.box {
    width: 100%;
    height: 100%;
}

.box p {
    color: var(--mainColor3);
    font-size: 1.1vw;
    font-weight: 500;
    padding: 0 40px;
}

.right {
    width: 100%;
    height: 100%;
    display: grid;
    justify-content: center;
    align-items: center;
}

.right .img img {
    width: 45vw;
    height: 55vh;
}

@media only screen and (max-width: 1200px) {

    .box p {
        font-size: 1.2vw;
        padding: 0 40px;
    }

}

@media only screen and (max-width: 1000px) {

    .heading h1 {
        font-size: 50px;
    }

    .heading h1:hover {
        font-size: 52px;
    }

    .s2 {
        margin-top: 30px;
        grid-template-columns: repeat(1, 1fr);
        height: 114vh;
    }

    .boxs {
        grid-template-rows: 3fr 1fr;
        gap: 10px;
    }

    .box p {
        font-size: 1.8vw;
        padding: 0 40px;
    }

    .left {
        padding: 0 40px;
    }


    .right .img img {
        width: 60vw;
        height: 70vh;
    }

}

@media only screen and (max-width: 700px) {

    .heading h1 {
        font-size: 40px;
    }

    .heading h1:hover {
        font-size: 42px;
    }

    .s2 {
        grid-template-columns: repeat(1, 1fr);
        height: 128vh;
    }

    .box p {
        font-size: 2.4vw;
        padding: 0 40px;
    }

    .right .img img {
        width: 75vw;
        height: 55vh;
    }

}

@media only screen and (max-width: 500px) {

    .s2 {
        grid-template-columns: repeat(1, 1fr);
        height: 50vh;
    }

    .heading h1 {
        font-size: 30px;
    }

    .heading h1:hover {
        font-size: 32px;
    }

    .box p {
        font-size: 2.6vw;
        padding: 0 40px;
    }

    .right .img img {
        display: none;
    }

}

@media only screen and (max-width: 400px) {

    .heading h1 {
        font-size: 28px;
    }

    .heading h1:hover {
        font-size: 30px;
    }

    .box p {
        font-size: 2.9vw;
        padding: 0 10px;
    }

}