@media screen and (min-width: 901px) {

    /**** block 2 ****/
    #block-2 {
        /* display */
        padding: 80px 0 0;
        width: 100%;
    }

    .box {
        /* display */
        position: relative;
        padding: 15px;
        margin: 30px 0;
        width: calc(100% - 30px);
        border-radius: 15px;

        /* appearance */
        background-color: #ffffff;
        box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.4);
    }

    .box h4 {
        /* display */
        margin: 35px 0 15px;

        /* appearance */
        text-align: center;
    }

    #box-2 {
        /* display */
        grid-row: 1/5;
    }

    .list-item {
        /* display */
        margin: 10px;
        display: flex;
        flex-direction: row;
        gap: 10px;
    }

    .list-item span {
        /* display */
        margin: auto;
    }

    #list-2 {
        /* display */
        width: 80%;
        margin: 0 auto;
    }

    #list-2 p {
        width: 85%;
    }

    /**** block 4 ****/
    #block-4 {
        /* display */
        padding: 80px 0 80px;
        width: 100%;
    }

    #grid::-webkit-scrollbar {
        display: none;
    }

    #grid-overlay-top {
        /* display */
        height: 70px;
        grid-row: 1/2;
        z-index: 1;

        /* appearance */
        background-image: linear-gradient(rgba(235, 235, 235, 1) 70%,
                rgba(235, 235, 235, 0) 100%);
    }

    #grid-overlay-bottom {
        /* display */
        grid-row: 6/7;
        z-index: 1;

        /* appearance */
        background-image: linear-gradient(rgba(255, 255, 255, 0) 0%,
                rgba(255, 255, 255, 1) 30%);
    }
}

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

    /**** block 2 ****/
    #block-2 {
        /* display */
        padding: 80px 0 0;
        width: 100%;
    }

    .box {
        /* display */
        position: relative;
        padding: 15px;
        margin: 30px 0;
        width: calc(100% - 30px);
        border-radius: 15px;

        /* appearance */
        background-color: #ffffff;
        box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.4);
    }

    .box h4 {
        /* display */
        margin: 35px 0 15px;

        /* appearance */
        text-align: center;
    }

    #box-2 {
        /* display */
        grid-row: 1/5;
    }

    .list-item {
        /* display */
        margin: 10px;
        display: flex;
        flex-direction: row;
        gap: 10px;
    }

    .list-item span {
        /* display */
        margin: auto;
    }

    #list-2 {
        /* display */
        width: 80%;
        margin: 0 auto;
    }

    #list-2 p {
        width: 85%;
    }

    .icon {
        /* appearance */
        color: #ffffff;
        font-weight: 300;
        width: 30px;
        height: 30px;
        border-radius: 50%;

        /* appearance */
        text-align: center;
        line-height: 30px;
    }

    news-carousel button {
        all: unset;
        cursor: pointer;

        /* animations */
        transition: opacity 300ms ease-out;
    }

    /**** block 4 ****/
    #block-4 {
        /* display */
        padding: 20px 0 80px;
        width: 100%;
    }

    #grid {
        /* display */
        display: grid;
        margin: 40px;
        grid-template-columns: calc(50% - 2.5px) calc(50% - 2.5px);
        gap: 15px 5px;
        height: 500px;
        overflow-y: scroll;
    }

    #grid img {
        /* display */
        width: 95%;

        /* appearance */
        box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.4);
    }

    #grid::-webkit-scrollbar {
        display: none;
    }

    #grid-overlay-top {
        /* display */
        display: none;
    }

    #grid-overlay-bottom {
        /* display */
        display: none;
    }
}


/* NEW */

/* Banner Section */

#home-banner {
    background-image: url("img/green-background.png");
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
}

.banner-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5vw;
    margin: 200px;
}

.title-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    position: relative;
    color: var(--paragraph-body-text-font-color);
    min-width: 40%;
    line-height: 1.3;
    letter-spacing: 0.4px;
}

.title-content h1 {
    margin: 0;
    font-weight: 600;
}

.purple-highlight {
    color: var(--color-purple);
}

.title-content a {
    padding: 16px 20px;
    background-color: #fdfbfb;
    border-radius: 30px;
    color: var(--color-green);
    font-family: var(--font-livvic);
    font-weight: 700;
}

.tree {
    width: 40%;
    max-width: 30vw;
    height: auto;
    height: fit-content;
    border-radius: 16px;
    background-size: cover;
}

.star {
    align-self: flex-start;
    top: 20px;
    width: 8vw;
    min-width: 100px;
}

.clouds {
    width: 8vw;
}

@media screen and (max-width: 1440px) {
    #home-banner .title-content h1 {
        font-size: 36px;
    }
}

@media screen and (max-width: 1200px) {
    #home-banner .banner-frame {
        flex-direction: column;
        gap: 30px;
        margin: 100px;
    }

    #home-banner .tree {
        align-self: flex-start;
        max-width: 100%;
        min-width: 250px;
        height: auto;
        margin-bottom: 50px;
    }

    #home-banner .clouds {
        display: none;
    }

    #home-banner .star {
        margin-left: -30px;
        margin-bottom: -30px;
    }
}


/* Body Section */

.home-body {
    max-width: 1800px;
    margin: 0 auto;
}

.green-highlight {
    font-weight: 700;
    display: inline;
    color: var(--color-green);
}

.home-body h2 {
    font-weight: 600;
    font-size: 34px;
    line-height: normal;
    letter-spacing: 0px;
    color: var(--color-green);
    margin: 0;
}

.home-body .ballon {
    width: 116px;
    margin-left: 100px;
}

.home-body-section-1,
.home-body-section-2 {
    display: inline-flex;
    align-items: flex-start;
    align-items: center;
    justify-content: center;
    gap: 150px;
    padding: 0 200px;
}

.home-body-section-1-content,
.home-body-section-2-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    min-width: 40%;
    max-width: 480px;
    letter-spacing: 0.32px;
    gap: 30px;
}

.home-body-section-1-content p,
.home-body-section-2-content p {
    color: black;
    line-height: 1.3;
    letter-spacing: 0.4px;
}

.img-case-consultation,
.img-training {
    width: 40%;
    min-width: 280px;
}

.home-body-section-1-content a,
.home-body-section-2-content a {
    padding: 20px 20px;
    background-color: var(--color-green);
    border-radius: 30px;
    color: #fdfbfb;
    font-family: var(--font-livvic);
    font-weight: 700;
}


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

    .home-body-section-1,
    .home-body-section-2 {
        flex-direction: column;
        align-items: center;
        padding: 0;
        gap: 0;
    }

    .home-body-section-1-content,
    .home-body-section-2-content {
        gap: 20px;
        width: 50%;
    }

    .img-case-consultation,
    .img-training {
        width: 50%;
    }

    .home-body .ballon {
        width: 116px;
        margin-left: 75vw;
    }

    .img-training {
        order: -1;
    }

}