* {
    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-cc/ccbg.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(--mainColor4);
    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: repeat(3, 1fr);
    gap: 50px;
}

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

.rboxs {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
}

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

.box h1 {
    color: var(--mainColor2);
    font-size: 2vw;
    font-weight: 600;
    text-decoration: underline;
}

.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: 35vw;
    height: 45vh;
}

@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 {
        grid-template-columns: repeat(1, 1fr);
        height: 60vh;
    }

    .boxs {
        grid-template-rows: repeat(3, 1fr);
        gap: 40px;
    }

    .rboxs {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(1, 1fr);
        gap: 50px;
    }

    .box h1 {
        font-size: 2.3vw;
    }

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

    .right .img img {
        display: none;
    }

}

@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: 70vh;
    }

    .box h1 {
        font-size: 3.2vw;
    }

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

}

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

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

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

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

    .box h1 {
        font-size: 3.8vw;
    }

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

}

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

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

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

    .box h1 {
        font-size: 4vw;
    }

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

}