/* HBI Blog Berichten widget */
.hbi-blogberichten {
	--hbi-cols: 3;
	--hbi-gap: 28px;
	--hbi-accent: #EF7D00;
	--hbi-card-bg: #ffffff;
	--hbi-card-border: #ececec;
	--hbi-radius: 10px;
	--hbi-text: #1a1a1a;
	--hbi-muted: #7a7a7a;
	width: 100%;
}

.hbi-blogberichten__grid {
	display: grid;
	grid-template-columns: repeat(var(--hbi-cols), minmax(0, 1fr));
	gap: var(--hbi-gap);
}

.hbi-blogpost {
	display: flex;
	flex-direction: column;
	background: var(--hbi-card-bg);
	border: 1px solid var(--hbi-card-border);
	border-radius: var(--hbi-radius);
	overflow: hidden;
	transition: box-shadow .2s ease, transform .2s ease;
}
.hbi-blogpost:hover {
	box-shadow: 0 12px 30px rgba(0, 0, 0, .10);
	transform: translateY(-3px);
}

/* nieuwe (AJAX) kaarten faden in */
.hbi-blogpost {
	opacity: 1;
}
.hbi-blogberichten__grid > .hbi-blogpost:not(.hbi-in).hbi-fade {
	opacity: 0;
}
.hbi-blogpost.hbi-in {
	opacity: 1;
}

.hbi-blogpost__thumb {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #f2f2f2;
}
.hbi-blogpost__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}
.hbi-blogpost:hover .hbi-blogpost__thumb img {
	transform: scale(1.04);
}
.hbi-blogpost__thumb--leeg {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #ececec, #f7f7f7);
}

.hbi-blogpost__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px;
	flex: 1 1 auto;
}

.hbi-blogpost__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--hbi-muted);
}
.hbi-blogpost__cat {
	color: var(--hbi-accent);
	position: relative;
	padding-left: 14px;
}
.hbi-blogpost__cat::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--hbi-accent);
	transform: translateY(-50%);
}

.hbi-blogpost__title {
	margin: 0;
	font-size: 19px;
	line-height: 1.3;
	font-weight: 800;
}
.hbi-blogpost__title a {
	color: var(--hbi-text);
	text-decoration: none;
}
.hbi-blogpost__title a:hover {
	color: var(--hbi-accent);
}

.hbi-blogpost__excerpt {
	margin: 0;
	color: var(--hbi-muted);
	font-size: 15px;
	line-height: 1.55;
}

.hbi-blogpost__more {
	margin-top: auto;
	align-self: flex-start;
	font-weight: 700;
	text-decoration: none;
	color: var(--hbi-accent);
	padding-top: 6px;
}
.hbi-blogpost__more::after {
	content: " \2192";
	transition: margin-left .2s ease;
}
.hbi-blogpost__more:hover::after {
	margin-left: 4px;
}

.hbi-blogberichten__actions {
	display: flex;
	justify-content: center;
	margin-top: 34px;
}
.hbi-blogberichten__loadmore {
	appearance: none;
	border: 0;
	cursor: pointer;
	background: var(--hbi-accent);
	color: #fff;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	font-size: 14px;
	padding: 14px 34px;
	border-radius: 999px;
	text-decoration: none;
	transition: filter .2s ease, opacity .2s ease;
}
.hbi-blogberichten__loadmore:hover {
	filter: brightness(1.07);
}
.hbi-blogberichten__loadmore.is-loading {
	opacity: .7;
	cursor: default;
}
.hbi-blogberichten__loadmore.hbi-error {
	background: #b3261e;
}

.hbi-blogberichten--leeg {
	padding: 30px;
	text-align: center;
	color: var(--hbi-muted);
}

/* skeleton-laadstaat (lazy load) */
.hbi-blogpost--skeleton {
	pointer-events: none;
}
.hbi-blogpost--skeleton .hbi-blogpost__thumb--leeg {
	aspect-ratio: 16 / 10;
}
.hbi-skel {
	display: block;
	border-radius: 5px;
	background: linear-gradient(90deg, #ececec 25%, #f5f5f5 37%, #ececec 63%);
	background-size: 400% 100%;
	animation: hbi-shimmer 1.3s ease-in-out infinite;
}
.hbi-skel--meta  { width: 45%; height: 11px; margin-bottom: 4px; }
.hbi-skel--title { width: 85%; height: 18px; margin-bottom: 8px; }
.hbi-skel--text  { width: 100%; height: 40px; }
@keyframes hbi-shimmer {
	0%   { background-position: 100% 0; }
	100% { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
	.hbi-skel { animation: none; }
}

/* responsief */
@media (max-width: 1024px) {
	.hbi-blogberichten__grid { grid-template-columns: repeat(min(var(--hbi-cols), 2), minmax(0, 1fr)); }
}
@media (max-width: 680px) {
	.hbi-blogberichten__grid { grid-template-columns: 1fr; }
}
