/* C4E hero carousel — self-contained, no dependencies. */
.c4e-hero {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: var(--wp--preset--color--accent-2, #003366);
	line-height: 0;
}

.c4e-hero__track {
	position: relative;
	width: 100%;
}

.c4e-hero__slide {
	position: absolute;
	inset: 0;
	display: block;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease;
}

.c4e-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
}

/* The first slide always stays in flow so it defines the carousel height;
   every other slide is absolutely positioned on top and cross-fades in. */
.c4e-hero__slide:first-child {
	position: relative;
}

.c4e-hero__slide img {
	display: block;
	width: 100%;
	height: auto;
}

/* Prev / next arrows */
.c4e-hero__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 51, 102, 0.55);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease;
}

.c4e-hero__nav:hover,
.c4e-hero__nav:focus-visible {
	background: var(--wp--preset--color--accent-1, #45b6ed);
}

.c4e-hero__prev { left: 16px; }
.c4e-hero__next { right: 16px; }

/* Dots */
.c4e-hero__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 14px;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 10px;
	line-height: 0;
}

.c4e-hero__dot {
	width: 11px;
	height: 11px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition: background 0.2s ease;
}

.c4e-hero__dot.is-active {
	background: var(--wp--preset--color--accent-1, #45b6ed);
	border-color: var(--wp--preset--color--accent-1, #45b6ed);
}

@media (max-width: 600px) {
	.c4e-hero__nav { width: 34px; height: 34px; font-size: 20px; }
	.c4e-hero__prev { left: 8px; }
	.c4e-hero__next { right: 8px; }
}
