/* Beroepsgroepen Carousel — frontend styles
   NOTE: the .bgc-wrapper background is intentionally NOT set here.
   The overall section background color is controlled by Elementor. */

.bgc-wrapper {
	font-family: 'Montserrat', sans-serif;
	box-sizing: border-box;
	padding: 32px 0 32px 40px;
	width: 100%;
	max-width: 100%;
	overflow: hidden; /* clips the peeking last card at the container's edge */
}

.bgc-wrapper * {
	box-sizing: border-box;
}

.bgc-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 28px;
	gap: 16px;
	padding-right: 40px;
}

.bgc-heading {
	font-family: 'Montserrat', sans-serif;
	font-weight: 800;
	font-size: 34px;
	line-height: 1.2;
	color: var(--bgc-heading-color, #ffffff);
	margin: 0;
}

.bgc-nav {
	display: flex;
	gap: 10px;
	flex-shrink: 0;
}

.bgc-arrow {
	width: 46px;
	height: 46px;
	border-radius: 12px;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color .2s ease, transform .15s ease;
	color: var(--bgc-arrow-icon, #ffffff);
	background: var(--bgc-arrow-bg, #2D3B81);
}

.bgc-arrow:hover:not(:disabled) {
	background: var(--bgc-arrow-hover-bg, #FF8D33);
	transform: translateY(-2px);
}

.bgc-arrow:disabled {
	opacity: 0.4;
	cursor: default;
	transform: none;
}

.bgc-track-viewport {
	overflow-x: auto;
	overflow-y: hidden;
	width: 100%;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* old Edge/IE */
}

.bgc-track-viewport::-webkit-scrollbar {
	display: none; /* Chrome, Safari, new Edge */
}

.bgc-track-viewport.bgc-draggable {
	cursor: grab;
}

.bgc-track-viewport.bgc-dragging {
	cursor: grabbing;
	user-select: none;
}

.bgc-track-viewport.bgc-dragging .bgc-card {
	pointer-events: none; /* stop links/images from swallowing the drag */
}

.bgc-track {
	display: flex;
	gap: 20px;
}

.bgc-card {
	/* Deliberately divides by (cards-per-view - 0.6) instead of the full
	   count, so the last visible card is intentionally cut off at the
	   right edge — a peek that signals there's more to scroll to,
	   matching the reference design. */
	flex: 0 0 calc((100% - (var(--bgc-cards-per-view) - 1) * 20px) / (var(--bgc-cards-per-view) - 0.6));
	background: var(--bgc-card-bg, #5b6bd6);
	border-radius: 18px;
	overflow: hidden; /* clips the image to the card's rounded corners, no gap around it */
	display: flex;
	flex-direction: column;
	min-height: 100%;
	scroll-snap-align: start;
}

.bgc-card:last-child {
	scroll-snap-align: end;
}

.bgc-card-body {
	padding: 30px 26px 22px;
	display: flex;
	flex-direction: column;
}

.bgc-card-title {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 22px;
	color: var(--bgc-card-title, #ffffff);
	margin: 0 0 14px 0;
}

.bgc-card-text {
	font-family: 'Montserrat', sans-serif;
	font-weight: 400;
	font-size: 15px;
	line-height: 1.5;
	color: var(--bgc-card-text, #e7e9ff);
	margin: 0;
}

.bgc-card-image {
	width: 100%;
	aspect-ratio: 4 / 3;
	margin-top: auto;
}

.bgc-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Responsive: gracefully reduce visible cards on smaller screens
   regardless of the configured desktop value. Same peek logic applies. */
@media (max-width: 1024px) {
	.bgc-card {
		flex: 0 0 calc((100% - 20px) / 1.7);
	}
	.bgc-heading {
		font-size: 26px;
	}
}

@media (max-width: 600px) {
	.bgc-wrapper {
		padding-left: 20px;
	}
	.bgc-header {
		padding-right: 20px;
		flex-direction: column;
		align-items: flex-start;
		margin-bottom: 20px;
	}
	.bgc-card {
		flex: 0 0 88%;
	}
	.bgc-heading {
		font-size: 22px;
	}
	.bgc-nav {
		margin-top: 12px;
	}
	.bgc-arrow {
		width: 40px;
		height: 40px;
	}
}
