#news-container .news-wrapper:first-of-type {
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
}

#news-container .news-wrapper:last-of-type {
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
}

.news-wrapper {
    position: relative;
    overflow: hidden;
}

.news-wrapper-image.news-odd {
    padding-right: 0;
}

.news-wrapper-image.news-even {
    padding-left: 0;
}

.news-wrapper-image .inner {
    position: relative;
    overflow: hidden;
    height: 400px;
    background-color: var(--white);
    padding-right: 0;
}

.news-wrapper-image img {
    width: 100%;
    height: 400px;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;

}

.news-wrapper-image img.placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: inherit;
    height: auto;
    width: auto;
    max-width: 100%;
}

.news-wrapper-content.news-odd {
    padding-left: 0;
}

.news-wrapper-content.news-even {
    padding-right: 0;
}

.news-wrapper-content-inner {
    height: 100%;
    padding: 40px 55px;
    display: flex;
    flex-direction: column;
    background-color: var(--white);

}

.news-wrapper .post-text h3 {
    margin-bottom: 20px;
}

.news-wrapper .post-text h3 a:hover {
    color: var(--orange);
    text-decoration-line: none;
}

.news-wrapper .post-date p {
    color: var(--light-grey);
    font-size: 12px;
    line-height: 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 25px;
}

.news-wrapper .post-date span {
    display: inline-flex;
    width: 18px;
    height: 18px;
    mask: url("../../images/calendar-icon.svg") no-repeat center;
    -webkit-mask: url("../../images/calendar-icon.svg") no-repeat center;
    background-color: var(--light-grey);
    margin-right: 10px;
}

.news-wrapper .post-excerpt p {
    color: var(--middle-grey);
}

.news-wrapper .post-link {
    margin-top: auto;
    font-size: 14px;
    line-height: 24px;
    text-transform: uppercase;
    color: var(--orange);
    font-weight: 800;
}

.news-wrapper .post-link span {
    margin-left: 10px;
}

.news-wrapper .post-link:hover {
    color: var(--blue);
}

#news-container .custom-pagination {
    margin-top: 40px;
}

@media screen and (max-width: 1199.9px) {
    .news-wrapper-content-inner {
        padding: 30px;
    }
}

@media screen and (max-width: 991.8px) {
    .news-wrapper-image.news-odd,
    .news-wrapper-image.news-even {
        order: 1;
    }

    .news-wrapper-content.news-even,
    .news-wrapper-content.news-odd {
        order: 2;
    }

    .news-wrapper-image,
    .news-wrapper-image .inner {
        padding: 0;
    }

    .news-wrapper-image .inner,
    .news-wrapper-image img {
        margin-right: -5px;
    }

    .news-wrapper-content-inner {
        text-align: center;
    }

    .news-wrapper .post-date p {
        justify-content: center;
        font-size: 24px;
    }

    .news-wrapper .post-text h3 {
        font-size: 34px;
    }

    .news-wrapper-content-inner {
        padding: 35px 40px 50px 40px;
    }

    .news-wrapper .post-excerpt p {
        margin-bottom: 30px;
    }
}

@media screen and (max-width: 575.8px) {
    .news-wrapper .post-text h3 {
        font-size: 30px;
    }

    .news-wrapper-image .inner,
    .news-wrapper-image img {
        height: 350px;
    }

    .news-wrapper-content-inner {
        padding: 25px 20px;
    }

    .news-wrapper .post-date p {
        font-size: 16px;
    }

    .news-wrapper .post-excerpt p {
        margin-bottom: 15px;
    }

    .news-button {
        margin-top: 20px;
    }
}