/* Cibor blog — frontend styling voor geïmporteerde berichten */
:root {
	--cibor-blue: #1457c4;
	--cibor-blue-dark: #0e3f93;
	--cibor-yellow: #ffcc00;
	--cibor-ink: #1f2733;
}

.cibor-blog-content {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
	font-size: 1.05rem;
	line-height: 1.75;
	color: var(--cibor-ink);
	word-wrap: break-word;
}

.cibor-blog-content > *:first-child {
	margin-top: 0;
}

.cibor-blog-content p {
	margin: 0 0 1.25em;
}

.cibor-blog-content a {
	color: var(--cibor-blue);
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color .15s ease;
	word-break: break-word;
}
.cibor-blog-content a:hover {
	color: var(--cibor-blue-dark);
}

.cibor-blog-content h2,
.cibor-blog-content h3,
.cibor-blog-content h4 {
	margin: 1.6em 0 .55em;
	line-height: 1.25;
	color: var(--cibor-blue-dark);
	font-weight: 700;
}

.cibor-blog-content ul,
.cibor-blog-content ol {
	margin: 0 0 1.25em;
	padding-left: 1.4em;
}
.cibor-blog-content li {
	margin: 0 0 .4em;
}

.cibor-blog-content img {
	max-width: 100%;
	height: auto;
	display: block;
	border-radius: 10px;
}

/* ---- Galerij: nette grid ---- */
.cibor-blog-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
	margin: 1.8em 0;
}
.cibor-blog-gallery figure {
	margin: 0;
}
.cibor-blog-gallery img {
	width: 100%;
	height: 230px;
	object-fit: cover;
	border-radius: 10px;
	cursor: zoom-in;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
	transition: transform .25s ease, box-shadow .25s ease;
}
.cibor-blog-gallery img:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
}

/* Eén enkele afbeelding: niet bijsnijden, gewoon mooi tonen */
.cibor-blog-gallery--single {
	display: block;
	margin: 1.8em 0;
}
.cibor-blog-gallery--single img {
	width: 100%;
	height: auto;
	max-height: 620px;
	object-fit: cover;
	cursor: zoom-in;
}

@media (max-width: 600px) {
	.cibor-blog-gallery {
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}
	.cibor-blog-gallery img {
		height: 150px;
	}
}

/* ---- Lijstweergave (kaarten) ---- */
.cibor-blog-wrap {
	max-width: 1280px;
	margin: 0 auto;
	padding: 48px 20px 64px;
	box-sizing: border-box;
}
.cibor-blog-head {
	margin: 0 0 32px;
}
.cibor-blog-head h1 {
	font-size: clamp(1.9rem, 4vw, 2.6rem);
	line-height: 1.15;
	color: var(--cibor-blue-dark);
	margin: 0;
}
.cibor-blog-head h1::after {
	content: "";
	display: block;
	width: 56px;
	height: 4px;
	border-radius: 2px;
	background: var(--cibor-yellow);
	margin-top: 14px;
}
.cibor-blog-intro {
	margin: 14px 0 0;
	color: #5a6573;
	font-size: 1.05rem;
}

.cibor-blog-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}
@media (max-width: 1100px) {
	.cibor-blog-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
	.cibor-blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
	.cibor-blog-grid { grid-template-columns: 1fr; }
}

.cibor-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(20, 40, 80, .08);
	text-decoration: none;
	color: inherit;
	transition: transform .2s ease, box-shadow .2s ease;
}
.cibor-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 34px rgba(20, 40, 80, .16);
}
.cibor-card__media {
	display: block;
	height: 170px;
	background-color: #e7edf6;
	background-size: cover;
	background-position: center;
}
.cibor-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px 18px 20px;
	flex: 1;
}
.cibor-card__date {
	font-size: .76rem;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: #8a93a3;
}
.cibor-card__title {
	font-size: 1.06rem;
	line-height: 1.3;
	font-weight: 700;
	color: var(--cibor-blue-dark);
}
.cibor-card__excerpt {
	font-size: .95rem;
	line-height: 1.6;
	color: #4c5563;
	flex: 1;
}
.cibor-card__more {
	margin-top: 4px;
	font-weight: 600;
	font-size: .92rem;
	color: var(--cibor-blue);
}

.cibor-blog-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 40px;
}
.cibor-blog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border-radius: 9px;
	background: #eef2f8;
	color: var(--cibor-blue-dark);
	text-decoration: none;
	font-weight: 600;
}
.cibor-blog-pagination .page-numbers.current {
	background: var(--cibor-blue);
	color: #fff;
}
.cibor-blog-pagination a.page-numbers:hover {
	background: var(--cibor-blue);
	color: #fff;
}

/* "Alle artikels" terug-link binnen losse berichten (optioneel via thema) */
.cibor-blog-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 14px;
	color: var(--cibor-blue);
	font-weight: 600;
	text-decoration: none;
}
.cibor-blog-back:hover {
	color: var(--cibor-blue-dark);
}

/* ---- Losse blogpost ---- */
/* Hero: volle breedte, afbeelding met titel eroverheen */
.cibor-hero {
	position: relative;
	width: 100%;
	min-height: 340px;
	max-height: 520px;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background: var(--cibor-blue-dark);
}
.cibor-hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transform: scale(1.04);
}
.cibor-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(8,18,38,.10) 0%, rgba(8,18,38,.35) 45%, rgba(8,18,38,.82) 100%);
}
.cibor-hero__inner {
	position: relative;
	z-index: 2;
	max-width: 1000px;
	width: 100%;
	margin: 0 auto;
	padding: 0 24px 40px;
	box-sizing: border-box;
}
.cibor-hero__date {
	display: inline-block;
	color: #fff;
	background: var(--cibor-blue);
	font-size: .76rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	font-weight: 700;
	padding: 5px 12px;
	border-radius: 6px;
	margin-bottom: 14px;
}
.cibor-hero__title {
	margin: 0;
	color: #fff;
	font-size: clamp(1.8rem, 4vw, 3rem);
	line-height: 1.12;
	font-weight: 800;
	text-shadow: 0 2px 18px rgba(0,0,0,.45);
	max-width: 22ch;
}
.cibor-hero__title::after {
	content: "";
	display: block;
	width: 64px;
	height: 5px;
	border-radius: 3px;
	background: var(--cibor-yellow);
	margin-top: 18px;
}
@media (max-width: 600px) {
	.cibor-hero { min-height: 240px; }
	.cibor-hero__inner { padding-bottom: 26px; }
}

.cibor-blog-wrap--single {
	max-width: 840px;
}
.cibor-blog-wrap--single .cibor-blog-content {
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

.cibor-blog-content p strong{
	font-weight: 600;
}

.cibor-blog-title {
	font-size: clamp(1.7rem, 3.6vw, 2.5rem);
	line-height: 1.18;
	color: var(--cibor-blue-dark);
	margin: 6px 0 10px;
}
.cibor-blog-title::after {
	content: "";
	display: block;
	width: 56px;
	height: 4px;
	border-radius: 2px;
	background: var(--cibor-yellow);
	margin-top: 14px;
}
.cibor-blog-meta {
	color: #8a93a3;
	font-size: .82rem;
	letter-spacing: .05em;
	text-transform: uppercase;
	margin: 14px 0 28px;
}
.cibor-blog-nav {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	margin-top: 44px;
	padding-top: 22px;
	border-top: 1px solid #e6eaf0;
	font-size: .95rem;
}
.cibor-blog-nav__next {
	text-align: right;
	margin-left: auto;
}
.cibor-blog-nav a {
	color: var(--cibor-blue);
	font-weight: 600;
	text-decoration: none;
}
.cibor-blog-nav a:hover {
	color: var(--cibor-blue-dark);
}

/* ---- Lightbox ---- */
.cibor-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(8, 18, 38, .92);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 24px;
}
.cibor-lightbox.open {
	display: flex;
}
.cibor-lightbox img {
	max-width: 92vw;
	max-height: 90vh;
	border-radius: 8px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
}
.cibor-lightbox__close {
	position: absolute;
	top: 16px;
	right: 24px;
	color: #fff;
	font-size: 36px;
	line-height: 1;
	cursor: pointer;
	opacity: .85;
}
.cibor-lightbox__close:hover {
	opacity: 1;
}
