/* 
###
BACKSTAGE 5.1 CSS > NEWS AND CALENDAR PLUGINS
###
*/
.news-overview { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 30px; row-gap: 30px; margin-top: 45px; }

.news-overview.news-overview--is-calendar {
    /* calendar only class */
}
.news-overview.news-overview--is-news {
    /* news only class */
}
.news-overview .item { position: relative; border-radius: 8px; overflow: hidden; box-sizing: border-box; background-color: #fff; }
.news-overview .item > a { position: absolute; display: flex; flex-direction: column; top: 0; left: 0; width: 100%; height: 100%; color: var(--main); text-decoration: none; z-index: 2; }

.news-overview .item .image { position: relative; width: 100%; aspect-ratio: 4 / 3; box-sizing: border-box; }
.news-overview .item .image:before { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; content: ""; opacity: 0.25; z-index: 1; background: rgb(0,0,0); background: linear-gradient(0deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%); }
.news-overview .item .image .title { position: absolute; bottom: 0; left: 0; padding: 30px; font-size: 21px; color: #fff; font-weight: 700; line-height: 1.1; z-index: 1; }
.news-overview .item .image img { display: block; width: 100%; height: 100%; object-fit: cover; /*opacity: 0.9; filter: grayscale(0.5);*/ filter: brightness(1); transition: filter ease 0.15s; }
.news-overview .item:hover .image img { filter: brightness(0.75); }

.news-overview .item .news-overview-content { padding: 25px 30px 35px 30px; width: 100%; line-height: 1.5; box-sizing: border-box; z-index: 1; }

.news-overview .item .news-overview-content .meta,
.page_content .date { color: var(--primarycta); }

.page_content .date { margin-top: -15px; margin-bottom: 15px; margin-bottom: 30px; color: #323232; opacity: 0.5; }

.news-overview .item .news-overview-content .meta { margin-bottom: 10px; }
.news-overview .item .news-overview-content a.leesmeer { display: inline-block; margin-top: 15px; }
.news-overview .item:hover .news-overview-content a.leesmeer { text-decoration: none; }

body.news .row.first .content .page_content.news_item { padding: 0; width: 30%; }
body.news .row.first .content .page_content.news_item .media { margin: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
body.news .row.first .content .page_content.news_item .media img { display: block; width: 100%; }
body.news .row.first .content .page_content.news_item .media img:not(:first-of-type) { display: none; }
body.news .row.first .content .page_content.news_item .text { padding: 75px; }

body.news .row.first .content .page_content.news_item .text .media.bottom { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 45px; border-radius: 0; }
body.news .row.first .content .page_content.news_item .text .media.bottom a { margin: 0; }


.submenu-news { position: sticky; display: flex; flex-direction: column; top: 140px; padding: 35px 35px; width: 35%; border-radius: 10px; box-sizing: border-box; background-color: #fff; }
.submenu-news h2 { margin-bottom: 15px; }
.submenu-news .item { position: relative; display: flex; align-items: center; padding: 15px 0; border-bottom: 1px solid #efefef; }
.submenu-news .item:last-of-type { border-bottom: none; }
.submenu-news .item a { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.submenu-news .item .image { width: 60px; border-radius: 5px; overflow: hidden; }
.submenu-news .item .image img { display: block; width: 100%; }
.submenu-news .item .text { display: flex; flex-direction: column; flex: 1; justify-content: center; gap: 5px; padding-left: 20px; height: 100%; }
.submenu-news .item .text .title { font-size: 16px; font-weight: 700; line-height: 1.2; }
.submenu-news .item .text .date { font-size: 14px; line-height: 1; opacity: 0.5; }
.submenu-news a.overview { margin-top: 10px; text-decoration: underline; }
.submenu-news a.overview:hover { text-decoration: none; }


/*p a.back {
    margin-top: 40px;
    display: inline-block;
}*/
.news_item .section {
    margin-top: 40px;
    padding: 40px;
    background: var(--accents);
}
.pagination {
    display: flex;
    justify-content: center;
    width: 70%;
    margin: 60px auto;
    margin-bottom: 0;
}
.pagination div {
    margin: 0 8px;
    width: 50px;
    height: 50px;
    font-size: 18px;
    font-weight: 700;
    line-height: 50px;
    text-align: center;
    border-radius: 50%;
    background: #fff;
}
.pagination div a {
    display: block;
    color: var(--main);
    text-decoration: none!important;
}
.pagination div:hover,
.pagination div.active {
    background: var(--primarycta);
}
.pagination div:hover a,
.pagination div.active,
.pagination div.active a {
    color: var(--background);
}

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

    .news-overview { display: flex; flex-direction: column; gap: 20px; margin-top: 30px; margin-left: 0; width: 100%; }
    .news-overview .item { width: 100%; margin: 0; background-color: rgb(50 170 161 / 15%); }
    .news-overview .item:last-of-type { margin-bottom: 0; }
    .news-overview .item a { flex-direction: row; }
    .news-overview .item .image { width: 100%; }
    .news-overview .item .news-overview-content { width: 100%; padding: 0 15px; padding-right: 0; }
    .news-overview .item .news-overview-content .title { font-size: 1em; }
    .news-overview .item .news-overview-content .meta,
    .page_content .date { font-size: .9em; white-space: nowrap; }
    
    .news-overview .item .news-overview-content { padding: 25px 30px 35px 30px; width: 100%; line-height: 1.5; box-sizing: border-box; z-index: 1; }
    .news-overview .item .news-overview-content .meta,
    .page_content .date { margin-top: auto; margin-bottom: 10px; color: var(--primarycta); opacity: 1; }
    
    .pagination { margin: 30px auto; margin-bottom: 0; }
    .pagination div { width: 30px; height: 30px; font-size: 14px; border-radius: 30px; line-height: 30px; }
    
    
    body.news .row.first .content .page_content.news_item { display: flex; flex-direction: column; gap: 30px; padding: 0; width: 100%; }
    body.news .row.first .content .page_content.news_item .media { border-radius: 5px; }
    body.news .row.first .content .page_content.news_item .text { order: 2; padding: 0; }
    body.news .row.first .content .page_content.news_item .text .media.bottom { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 45px; }
    
    .submenu-news { margin-top: 45px; padding: 0; width: 100%; background-color: transparent; }
    .submenu-news .item { align-items: flex-start; border-bottom: 1px solid rgba(0, 0, 0, 0.05); }

}
