.grid_container h2 {
    text-align: center;
    width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    margin: 0 auto 180px;
}

.grid_panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: calc((100% - 60px) / 4);
    min-height: 330px;
    background-color: var(--dark-orange);
    padding: 20px;
    border-radius: 20px;
    box-sizing: border-box;
}

.panel_wrapper {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    width: calc((100% - 60px) / 4);
}

.panel_wrapper .grid_panel {
    width: 100%;
    height: calc(50% - 10px);
}

.panel_wrapper .grid_panel:last-of-type {
    margin-bottom: 0;
}

.first_panel {
    justify-content: center;
    width: calc(50% - 10px);
    text-align: center;
}

.first_white_panel {
    margin-top: auto;
    border-radius: 10px;
    background-color: rgba(255,255,255,0.6);
    padding: 20px;
    z-index: 5;
}

.first_panel_image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 20px;
    z-index: 0;
}

.first_panel_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}

.second_panel {
    margin-bottom: 20px;
    background-color: var(--sage);
    color: var(--black);
}

.third_panel h3 {
    color: var(--black);
}

.fifth_panel {
    background-color: var(--black);
    color: var(--white);
    margin-top: 20px;
}

.fifth_panel h3 {
    color: var(--white);
}

.grid_panel .square_icon {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 46px;
    height: 46px;
    background-color: var(--sage);
    color: var(--black);
    border-radius: 5px;
    box-sizing: border-box;
    box-shadow: 0px 5px 0px #00000026;
}

.second_panel .square_icon {
    background-color: var(--dark-orange);
    color: var(--black);
}
    
.grid_panel h3 {
    margin: 15px 0 10px 0;
}

.grid_panel p {
    margin: 5px 0 0 0;
}

.grid_panel a {
    color: var(--white);
}

.grid_panel .button {
    margin: 20px auto 0;
}

@media (max-width: 1560px) {
    .first_panel,
    .panel_wrapper {
        width: calc((100% - 20px) / 2);
    }

    .fourth_panel {
        width: 100%;
        flex-direction: row;
        margin-top: 20px;
    }

    .fourth_panel .sub_panel {
        width: 600px;
    }

    .second_panel_wrapper {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }

    .second_panel_wrapper .grid_panel {
        width: calc((100% - 20px) / 2);
    }
}

@media (max-width: 750px) {
    .grid {
        flex-direction: column;
    }

    .first_panel {
        min-height: 500px;
    }

    .grid_panel,
    .panel_wrapper,
    .panel_wrapper .grid_panel {
        width: 100%;
        margin-bottom: 20px;
    }

    .panel_wrapper {
        margin-bottom: 0;
    }

    .fourth_panel {
        flex-direction: column;
        align-items: center;
        text-align: center;
        justify-content: space-between;
    }

    .fourth_panel .sub_panel {
        width: 100%;
    }

    .second_panel_wrapper {
        flex-direction: column;
    }

    .second_panel_wrapper .grid_panel {
        width: 100%;
    }

    .fifth_panel {
        margin-top: 0;
    }
}

@media (max-width: 550px) {
    .grid {
        margin-bottom: 120px;
    }
}