.hbp-1594-container {
	width: 100%;
	overflow: hidden;
}

.hbp-1594-track {
	display: flex;
	align-items: flex-start; /* Prevents cards from stretching to equal height automatically */
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none;  /* IE and Edge */
	--hbp-cols: 4; /* Default fallback */
	gap: 20px; /* Default fallback */
	padding-bottom: 20px; /* Space for shadow/scroll */
}

.hbp-1594-track::-webkit-scrollbar {
	display: none; /* Chrome, Safari and Opera */
}

.hbp-1594-card {
	flex: 0 0 calc((100% - (var(--hbp-cols) - 1) * var(--gap, 20px)) / var(--hbp-cols));
	min-width: 250px; /* Prevent shrinking too much */
	scroll-snap-align: start;
	border-radius: 8px; /* Fallback */
	overflow: hidden;
	position: relative;
	display: flex;
	flex-direction: column;
	height: auto; /* Height depends on content */
}

/* Cas client needs specific minimum height */
.hbp-1594-card.is-cas-client {
	min-height: 450px; /* Fallback, controllable via widget settings */
}

.hbp-1594-card {
	width: calc((100% / var(--hbp-cols)) - (20px * (var(--hbp-cols) - 1) / var(--hbp-cols)));
	flex: 0 0 auto;
}

.hbp-1594-card-inner {
	padding: 30px; /* Fallback */
	display: flex;
	flex-direction: column;
	height: 100%;
	z-index: 2;
	position: relative;
}

.hbp-1594-title {
	margin-top: 0;
	margin-bottom: auto; /* Pushes the link to the bottom if container has height, but here container fits content */
	font-size: 1.2rem;
	line-height: 1.4;
}

.hbp-1594-card.is-cas-client .hbp-1594-title {
	margin-bottom: auto; /* Pushes link to bottom in tall card */
}

.hbp-1594-link {
	margin-top: 20px; /* Fallback */
	font-weight: 600;
	text-decoration: none;
	display: inline-block;
}

.hbp-1594-link:hover {
	text-decoration: underline;
}

/* Category: Blog Post (Colors) */
.hbp-1594-card.hbp-color-1 { background-color: var(--hbp-color-1, #e8eff2); color: #333; }
.hbp-1594-card.hbp-color-2 { background-color: var(--hbp-color-2, #000000); color: #fff; }
.hbp-1594-card.hbp-color-3 { background-color: var(--hbp-color-3, #a3c4c9); color: #333; }

.hbp-1594-card.hbp-color-2 .hbp-1594-link { color: #fff; }
.hbp-1594-card.hbp-color-1 .hbp-1594-link,
.hbp-1594-card.hbp-color-3 .hbp-1594-link { color: #333; }

/* Category: Cas Client (Image Bg) */
.hbp-1594-card.is-cas-client {
	background-size: cover;
	background-position: center;
	color: #fff;
}

.hbp-1594-card.is-cas-client::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0,0,0,0.4);
	z-index: 1;
}

.hbp-1594-card.is-cas-client .hbp-1594-title,
.hbp-1594-card.is-cas-client .hbp-1594-link,
.hbp-1594-card.is-cas-client .hbp-1594-label {
	color: #fff;
}

.hbp-1594-label {
	text-transform: uppercase;
	font-size: 0.7rem;
	letter-spacing: 1px;
	margin-bottom: 10px;
	font-weight: 700;
}