/* ============================================================
   Event Slider Block — eh-event-slider.css
   BEM: .eh-event-slider / .eh-es__*
   ============================================================ */

/* ── Section ───────────────────────────────────────────────── */
.eh-event-slider {
	display: block;
	width: 100%;
	background: #081C2F;
	padding: 56px 0;
}

/* ── Inner container ───────────────────────────────────────── */
.eh-es__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 56px;
}

/* ── Slides wrapper ────────────────────────────────────────── */
.eh-es__slides {
	position: relative;
}

/* ── Single slide — two-column grid ───────────────────────── */
.eh-es__slide {
	display: grid;
	grid-template-columns: 55fr 45fr;
	gap: 48px;
	align-items: center;
	/* Fade-out state */
	opacity: 0;
	position: absolute;
	inset: 0;
	pointer-events: none;
	transition: opacity 300ms ease;
}

.eh-es__slide.is-active {
	opacity: 1;
	position: relative; /* takes up layout height */
	pointer-events: auto;
}

/* ── Left column ───────────────────────────────────────────── */
.eh-es__left {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

/* Badge */
.eh-es__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #22C55E;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 5px 14px;
	border-radius: 20px;
	line-height: 1;
}

/* Title */
.eh-es__title {
	font-size: 32px;
	font-weight: 800;
	color: #fff;
	line-height: 1.2;
	margin: 16px 0 0;
	padding: 0;
}

/* Subtitle */
.eh-es__subtitle {
	font-size: 15px;
	color: rgba(255, 255, 255, 0.65);
	line-height: 1.55;
	margin: 10px 0 0;
	padding: 0;
}

/* Meta row */
.eh-es__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin: 20px 0 0;
}

.eh-es__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.85);
	line-height: 1;
}

.eh-es__meta-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

/* Feature tags */
.eh-es__features {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.eh-es__feature {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 20px;
	padding: 5px 14px;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.85);
	line-height: 1;
}

.eh-es__feature-icon {
	display: inline-flex;
	align-items: center;
}

.eh-es__feature-icon img {
	width: 14px;
	height: 14px;
	object-fit: contain;
	display: block;
}

/* CTA button */
.eh-es__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	color: #081C2F;
	font-size: 13px;
	font-weight: 600;
	padding: 11px 28px;
	border-radius: 8px;
	text-decoration: none;
	margin: 28px 0 0;
	transition: background 200ms ease;
	line-height: 1;
}

.eh-es__cta:hover,
.eh-es__cta:focus-visible {
	background: #f0fdf4;
}

/* ── Right column — background-image div ──────────────────── */
.eh-es__image {
	width: 100%;
	height: 320px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: 16px;
}

/* ── Nav row: arrows + dots ────────────────────────────────── */
.eh-es__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin-top: 36px;
}

/* ── Arrow buttons ─────────────────────────────────────────── */
.eh-es__arrow {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, 0.4);
	background: rgba(255, 255, 255, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
	transition: background 200ms ease, border-color 200ms ease;
	padding: 0;
}

.eh-es__arrow:hover,
.eh-es__arrow:focus-visible {
	background: rgba(255, 255, 255, 0.2);
	border-color: rgba(255, 255, 255, 0.8);
	outline: none;
}

.eh-es__arrow svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: #ffffff;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ── Dot pagination ────────────────────────────────────────── */
.eh-es__dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
}

.eh-es__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: none;
	padding: 0;
	cursor: pointer;
	background: rgba(255, 255, 255, 0.35);
	transition: width 200ms ease, background 200ms ease, border-radius 200ms ease;
	flex-shrink: 0;
}

.eh-es__dot.is-active {
	width: 24px;
	border-radius: 4px;
	background: #fff;
}

.eh-es__dot:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* ── Responsive ≤ 768px ────────────────────────────────────── */
@media (max-width: 768px) {
	.eh-event-slider {
		padding: 36px 0;
	}

	.eh-es__inner {
		padding: 0 20px;
	}

	.eh-es__slide {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.eh-es__title {
		font-size: 24px;
		margin-top: 12px;
	}

	.eh-es__subtitle {
		font-size: 14px;
	}

	.eh-es__meta {
		gap: 14px;
		margin-top: 16px;
	}

	.eh-es__features {
		margin-top: 16px;
	}

	/* Event image — taller row on mobile so it's prominent */
	.eh-es__image {
		height: 280px;
		border-radius: 12px;
		order: -1; /* image appears above text on mobile */
	}

	.eh-es__nav {
		gap: 12px;
		margin-top: 24px;
	}

	.eh-es__arrow {
		width: 34px;
		height: 34px;
	}
}

/* ── Small phone ≤ 400px ───────────────────────────────────── */
@media (max-width: 400px) {
	.eh-es__inner {
		padding: 0 16px;
	}

	.eh-es__title {
		font-size: 21px;
	}

	.eh-es__image {
		height: 240px;
	}
}
