@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;
    }

    /**** 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 */

#programs-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: "Livvic", Helvetica;
    font-weight: 700;
}

.banner-image {
    width: 40%;
    min-width: 400px;
    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) {
    #programs-banner .title-content h1 {
        font-size: 36px;
    }
}

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

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

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

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


/* Body Section */

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

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

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

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

.programs-body-section-1,
.programs-body-section-2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 150px;
    padding: 100px 200px;
}

.programs-body-section-3 .quotes-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    padding: 100px;
}

.programs-body-section-3-container {
    background-color: var(--color-light-purple);
    width: 100%;
}

.programs-body-section-1-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    background-color: white;
    padding: 50px;
    border-radius: 48px;
    min-width: 40%;
    max-width: 480px;
    letter-spacing: 0.32px;
    gap: 30px;
    box-shadow: 0px 2px 2px 2px rgba(0, 0, 0, 0.25);
    transition: background-color 0.3s ease-in-out;
}

.programs-body-section-1-content.active {
    background-color: var(--color-yellow);
}

.programs-body-section-1-content .img-corner {
    display: block;
}

.programs-body-section-1-content.active .img-corner {
    display: none;
}

.programs-body-section-1-content.active .view-event {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.programs-body-section-1-content .img-corner {
    position: absolute;
    top: -10px;
    right: -15px;
    width: 120px;
    height: auto;
    box-shadow: 2px rgba(0, 0, 0, 0.25);
    transition: opacity 0.3s ease-in-out;
}

.programs-body-section-2 {
    padding-top: 0px;
    transition: opacity 0.3s ease-in-out;
}

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

.programs-body-section-3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.programs-body-section-2-content h2,
.programs-body-section-3 h2 {
    color: var(--color-green);
    font-size: 34px;
}

.programs-body-section-3 h2 {
    font-weight: 600;
    padding-top: 100px;
}

.programs-body-section-1-content p,
.programs-body-section-2-content p,
.programs-body-section-3-content p {
    color: var(--color-grey);
    font-family: "Livvic", Helvetica;
    line-height: 1.3;
    letter-spacing: 0.4px;
}

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

.programs-body-section-1-content a,
.programs-body-section-2-content a {
    color: var(--color-green);
    padding: 15px 20px;
    border-radius: 30px;
    border: solid 2px var(--color-green);
    font-family: "Livvic", Helvetica;
    font-weight: 700;
    cursor: pointer;
}

.programs-body-section-2-content .sign-up-yellow {
    border: none;
    background-color: var(--color-yellow);
}

.programs-body-section-3-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: white;
    padding: 50px;
    border-radius: 48px;
    min-width: 30%;
    max-width: 350px;
    height: 250px;
    letter-spacing: 0.32px;
    gap: 30px;
    box-shadow: 0px 12px 12px 12px rgba(0, 0, 0, 0.1);
}

.programs-body-section-3-content .quote {
    font-style: italic;
}

.programs-body-section-3-content .source {
    font-weight: bold;
    align-self: end;
}

.right-arrow {
    vertical-align: middle;
    padding-left: 5px;
    width: 25px;
}

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

    .programs-body-section-1,
    .programs-body-section-2,
    .programs-body-section-3 .quotes-container {
        flex-direction: column;
        align-items: center;
        padding: 50px;
        gap: 30px;
    }

    .programs-body-section-3 .quotes-container {
        width: 90%;
        padding: 0 20px 80px;
    }

    .programs-body-section-3 h2 {
        padding-bottom: 50px;
    }

    .programs-body-section-2-content {
        gap: 20px;
        width: 80%;
    }

    .programs-body-section-1-content,
    .programs-body-section-3-content {
        width: 100%;
        max-width: none;
    }

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

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

    .img-training {
        order: -1;
    }

}

@media screen and (max-width: 600px) {
    .banner-image {
        display: none;
    }
}