/* Just Wedi hero - layout on top of Swiper bundle styles */

.jw-swiper-section {
	margin-bottom: 0;
}

.jw-swiper {
	width: 100%;
	--jw-swiper-min-h: 800px;
	/* Swiper sets flex on .swiper-wrapper; keep slides sized to viewport */
	box-sizing: border-box;
}

@media (max-width: 781px) {
	.jw-swiper {
		--jw-swiper-min-h: min(800px, 72vh);
	}
}

.jw-swiper .swiper-slide {
	height: auto;
	box-sizing: border-box;
}

.jw-swiper__slide {
	position: relative;
	min-height: var(--jw-swiper-min-h);
	overflow: hidden;
	/* Column flex: only .jw-swiper__inner is in-flow - centres copy without stretching it full width */
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding-left: clamp(1rem, 4vw, 1.5rem);
	padding-right: clamp(1rem, 4vw, 1.5rem);
}

.jw-swiper__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.jw-swiper__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.jw-swiper__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	/* Same neutral dark grey overlay on every slide */
	background: linear-gradient(
		105deg,
		rgba(17, 24, 39, 0.5) 0%,
		rgba(55, 65, 81, 0.38) 48%,
		rgba(17, 24, 39, 0.46) 100%
	);
}

.jw-swiper__inner {
	position: relative;
	z-index: 2;
	box-sizing: border-box;
	width: min(100%, 42rem);
	margin-left: auto;
	margin-right: auto;
	padding-top: clamp(1.75rem, 4vw, 3rem);
	padding-bottom: clamp(1.75rem, 4vw, 3rem);
	color: #fff;
	min-width: 0;
}

.jw-swiper__inner > * {
	min-width: 0;
}

.jw-swiper__kicker {
	margin: 0 0 0.35rem;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(226, 232, 240, 0.95);
	opacity: 1;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.jw-swiper__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.5rem, 4vw, 2.35rem);
	line-height: 1.15;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 2px 24px rgba(0, 0, 0, 0.35);
}

.jw-swiper__text {
	margin: 0 0 1.25rem;
	font-size: 1.05rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.96);
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.jw-swiper__text strong {
	color: #fff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.jw-swiper__actions {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0.65rem;
	align-items: center;
	justify-content: flex-start;
	/* Don’t let the row grow to full slide width */
	width: fit-content;
	max-width: 100%;
}

.jw-swiper__actions .wp-block-button__link,
.jw-swiper__actions a.jw-swiper__btn {
	flex: 0 0 auto;
	width: auto;
	max-width: 100%;
	white-space: normal;
	text-align: center;
}

.jw-swiper__btn--primary {
	background: #fff !important;
	color: #1a365d !important;
	border: 2px solid #fff !important;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.jw-swiper__btn--primary:hover {
	background: #e2e8f0 !important;
	color: #1a365d !important;
	border-color: #e2e8f0 !important;
}

.jw-swiper__btn--ghost {
	background: transparent !important;
	color: #fff !important;
	border: 2px solid rgba(226, 232, 240, 0.8) !important;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.jw-swiper__btn--ghost:hover {
	border-color: #fff !important;
	background: rgba(255, 255, 255, 0.12) !important;
}

.jw-swiper__pagination {
	position: relative !important;
	margin-top: 0.5rem;
	bottom: auto !important;
}

.jw-swiper__pagination .swiper-pagination-bullet {
	background: #fff;
	opacity: 0.45;
}

.jw-swiper__pagination .swiper-pagination-bullet-active {
	opacity: 1;
	background: #e2e8f0;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.jw-swiper .jw-swiper__nav {
	color: #fff;
}

.jw-swiper .jw-swiper__nav::after {
	font-size: 1.25rem;
}

@media (max-width: 781px) {
	.jw-swiper .jw-swiper__nav {
		display: none;
	}
}
