.nd-hero-slider {
	position: relative;
	overflow: hidden;
}

.nd-hero-swiper {
	width: 100%;
	height: 100%;
}

/*
 * The shared CarouselTrait "Pagination > Position: Outside" control adds
 * `elementor-pagination-position-outside` to the widget wrapper, which
 * (via CE core's widget-image-carousel.css) sets `padding-bottom: 30px`
 * on any descendant `.swiper` - meant to make room for a *below-the-slider*
 * dot pagination. Our own `.nd-hero-pagination` is always an absolutely
 * positioned overlay, so that padding only steals height from the slider.
 */
.nd-hero-slider .nd-hero-swiper.swiper {
	padding-bottom: 0;
}

.nd-hero-slide {
	position: relative;
	display: flex;
	align-items: center;
	overflow: hidden;
	isolation: isolate;
}

.nd-hero-slide-background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #000;
	z-index: 0;
}

/*
 * Image / video layer. The per-slide "Background Animation" runs on this element only,
 * so the overlay and the text never move. z-index keeps it a stacking context in every
 * state, so the overlay always stays on top whether an animation is running or not.
 */
.nd-hero-slide-media {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	transform-origin: center center;
}

.nd-hero-slide-image,
.nd-hero-slide-video-fallback {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	z-index: 0;
}

.nd-hero-slide-image-mobile,
.nd-hero-slide-video-mobile {
	display: none;
}

@media (max-width: 767px) {
	.nd-hero-slide-image-desktop,
	.nd-hero-slide-video-desktop {
		display: none;
	}

	.nd-hero-slide-image-mobile,
	.nd-hero-slide-video-mobile {
		display: block;
	}
}

.nd-hero-slide-video {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100%;
	height: 100%;
	min-width: 100%;
	min-height: 100%;
	transform: translate(-50%, -50%);
	object-fit: cover;
	pointer-events: none;
	z-index: 1;
}

.nd-hero-slide-video-embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.nd-hero-slide-video-embed iframe {
	width: 100%;
	height: 100%;
}

.nd-hero-slide-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, .4);
	z-index: 1;
}

.nd-hero-slide-content {
	position: relative;
	z-index: 2;
	width: 100%;
	color: #fff;
	text-align: center;
	/*
	 * !important: CE core's widget-image-carousel.css ships
	 * `.elementor-widget .swiper-slide > :not(.swiper-lazy-preloader) { padding: 0 !important; }`,
	 * meant for its own image-carousel widget. It's loaded site-wide (e.g. whenever a
	 * Manufacturers/image-carousel widget shares the page) and matches this element too,
	 * since it's a direct child of our own `.swiper-slide`.
	 */
	padding: 40px 60px !important;
	display: flex;
	justify-content: center;
	box-sizing: border-box;
}

/* Boxed text area - "Content Width" limits this, never the full-bleed background */
.nd-hero-slide-content-inner {
	width: 100%;
	min-width: 0;
}

.nd-hero-slide-content-inner > * {
	text-align: inherit;
}

/*
 * Per-slide "Content Position" overrides the widget's "Text Alignment" control,
 * hence the extra `.nd-hero-slider` for specificity. "center" has no rule: it's
 * the default, so it leaves the widget-level alignment in charge.
 */
.nd-hero-slider .nd-hero-content-left .nd-hero-slide-content-inner,
.nd-hero-slider .nd-hero-content-left .nd-hero-slide-content-inner > * {
	text-align: left;
}

.nd-hero-slider .nd-hero-content-right .nd-hero-slide-content-inner,
.nd-hero-slider .nd-hero-content-right .nd-hero-slide-content-inner > * {
	text-align: right;
}

.nd-hero-slide-small-heading {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.4;
	text-transform: uppercase;
	letter-spacing: 2px;
}

.nd-hero-slide-heading {
	margin: 0 0 20px;
	font-size: 48px;
	line-height: 1.2;
}

.nd-hero-slide-subheading {
	margin: 0 0 30px;
	font-size: 18px;
	line-height: 1.6;
}

.nd-hero-slide-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	vertical-align: middle;
	padding: 14px 32px;
	border: 2px solid currentColor;
	border-radius: 2px;
	color: inherit;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: opacity .3s ease, color .3s ease, background-color .3s ease, border-color .3s ease;
}

.nd-hero-slide-button:hover {
	opacity: .8;
}

/* Icon goes after the text by default; "Icon Position: Before" adds the prefix class */
.nd-hero-slide-button-icon {
	position: relative;
	display: inline-flex;
	flex: none;
	order: 1;
	line-height: 1;
	transition: transform .3s ease, color .3s ease, background-color .3s ease;
}

.nd-hero-button-icon-before .nd-hero-slide-button-icon {
	order: 0;
}

.nd-hero-slide-button-icon svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* Numbered pagination - Swiper's native `pagination: { type: 'fraction' }` */
.nd-hero-pagination {
	position: absolute;
	bottom: 30px;
	left: 0;
	right: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 16px;
	color: #fff;
	text-align: center;
}

.nd-hero-pagination .swiper-pagination-current {
	font-weight: 700;
}

.nd-hero-pagination .swiper-pagination-total {
	opacity: .6;
}

/* Numbers + progress bar pagination: "01 ━━━ 02 ── 03" (built by JS) */
.nd-hero-progress {
	--nd-hero-progress-bar: 24px;
	--nd-hero-progress-bar-active: 64px;
	position: absolute;
	bottom: 30px;
	left: 0;
	right: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding: 0 60px;
	color: #fff;
	pointer-events: none;
}

.nd-hero-progress-item {
	display: flex;
	flex: none;
	align-items: center;
	opacity: .6;
	cursor: pointer;
	pointer-events: auto;
	transition: opacity .3s ease;
}

.nd-hero-progress-item:hover,
.nd-hero-progress-item:focus-visible,
.nd-hero-progress-item.is-active {
	opacity: 1;
}

.nd-hero-progress-item.is-hidden {
	display: none;
}

.nd-hero-progress-number {
	padding: 6px 0;
	font-size: 14px;
	line-height: 1;
	letter-spacing: 1px;
	font-variant-numeric: tabular-nums;
}

.nd-hero-progress-bar {
	position: relative;
	display: block;
	width: var(--nd-hero-progress-bar);
	height: 2px;
	margin: 0 14px;
	overflow: hidden;
	transition: width .4s ease;
}

.nd-hero-progress-item.is-active .nd-hero-progress-bar {
	width: var(--nd-hero-progress-bar-active);
}

/* No trailing bar after the last visible number, unless it's the one counting down */
.nd-hero-progress-item.is-tail:not(.is-active) .nd-hero-progress-bar {
	display: none;
}

.nd-hero-progress-bar::before,
.nd-hero-progress-fill {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: currentColor;
}

.nd-hero-progress-bar::before {
	opacity: .35;
}

.nd-hero-progress-fill {
	transform: scaleX(0);
	transform-origin: left center;
}

.nd-hero-slider[data-direction="rtl"] .nd-hero-progress-fill {
	transform-origin: right center;
}

/* Dots pagination: "• • ━━ • •" - the active dot stretches into a pill (built by JS) */
.nd-hero-dots {
	--nd-hero-dot-size: 8px;
	--nd-hero-dot-active-width: 28px;
	--nd-hero-dot-radius: 999px;
	--nd-hero-dot-color: #fff;
	--nd-hero-dot-active-color: #fff;
	--nd-hero-dot-opacity: .5;
	position: absolute;
	bottom: 30px;
	left: 0;
	right: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	padding: 0 60px;
	pointer-events: none;
}

/* Vertical padding only enlarges the click / tap target around the small dot */
.nd-hero-dot {
	display: flex;
	flex: none;
	padding: 8px 0;
	cursor: pointer;
	pointer-events: auto;
	outline: 0;
}

.nd-hero-dot-pill {
	position: relative;
	display: block;
	width: var(--nd-hero-dot-size);
	height: var(--nd-hero-dot-size);
	border-radius: var(--nd-hero-dot-radius);
	overflow: hidden;
	transition: width .4s ease;
}

.nd-hero-dot:focus-visible .nd-hero-dot-pill {
	outline: 2px solid var(--nd-hero-dot-active-color);
	outline-offset: 3px;
}

.nd-hero-dot-pill::before,
.nd-hero-dot-fill {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.nd-hero-dot-pill::before {
	background-color: var(--nd-hero-dot-color);
	opacity: var(--nd-hero-dot-opacity);
	transition: opacity .3s ease, background-color .3s ease;
}

.nd-hero-dot:hover .nd-hero-dot-pill::before {
	opacity: calc(var(--nd-hero-dot-opacity) + .3);
}

.nd-hero-dot.is-active .nd-hero-dot-pill {
	width: var(--nd-hero-dot-active-width);
}

.nd-hero-dot.is-active .nd-hero-dot-pill::before {
	background-color: var(--nd-hero-dot-active-color);
	opacity: 1;
}

/* With autoplay progress the active pill is a track, and the fill runs along it */
.nd-hero-dots-progress .nd-hero-dot.is-active .nd-hero-dot-pill::before {
	background-color: var(--nd-hero-dot-color);
	opacity: var(--nd-hero-dot-opacity);
}

.nd-hero-dot-fill {
	background-color: var(--nd-hero-dot-active-color);
	transform: scaleX(0);
	transform-origin: left center;
}

.nd-hero-slider[data-direction="rtl"] .nd-hero-dot-fill {
	transform-origin: right center;
}

/* "SCROLL ->" underlined link - advances to the next slide */
.nd-hero-scroll-indicator {
	position: absolute;
	bottom: 30px;
	right: 60px;
	z-index: 3;
	display: flex;
	color: #fff;
	cursor: pointer;
	background-color: transparent;
	border: 0;
	transition: color .3s ease, background-color .3s ease;
}

/* Text + arrow (+ underline); kept separate so the outer box can take padding/background */
.nd-hero-scroll-indicator-inner {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
}

.nd-hero-scroll-indicator-underline .nd-hero-scroll-indicator-inner {
	padding-bottom: 8px;
}

.nd-hero-scroll-indicator-underline .nd-hero-scroll-indicator-inner::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background-color: currentColor;
	transform-origin: right center;
	transition: transform .4s ease;
}

.nd-hero-scroll-indicator:hover .nd-hero-scroll-indicator-inner::after,
.nd-hero-scroll-indicator:focus-visible .nd-hero-scroll-indicator-inner::after {
	transform: scaleX(.5);
}

.nd-hero-scroll-indicator-text {
	font-size: 12px;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 2px;
}

.nd-hero-scroll-indicator-icon {
	display: flex;
	transition: transform .3s ease;
}

.nd-hero-scroll-indicator-icon svg {
	display: block;
	width: 24px;
	height: 12px;
}

.nd-hero-scroll-indicator:hover .nd-hero-scroll-indicator-icon,
.nd-hero-scroll-indicator:focus-visible .nd-hero-scroll-indicator-icon {
	transform: translateX(4px);
}

.nd-hero-slider[data-direction="rtl"] .nd-hero-scroll-indicator-icon svg {
	transform: scaleX(-1);
}

/*
 * Per-slide "Background Animation". A slide shows the animation's starting state while
 * it's inactive, so a slide peeking in during a drag already looks the way it will
 * when its animation starts. The JS adds .nd-hero-slide-animating as the slide comes in
 * (see startSlideAnimation() in widget-nd-hero-slider.js). The duration comes from the
 * slide's "Animation Duration" control, falling back to a per-effect default.
 */
@keyframes nd-hero-bg-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes nd-hero-bg-grow {
	from { transform: scale(1); }
	to { transform: scale(1.15); }
}

@keyframes nd-hero-bg-shrink {
	from { transform: scale(1.15); }
	to { transform: scale(1); }
}

@keyframes nd-hero-bg-pan-left {
	from { transform: scale(1.15) translateX(4%); }
	to { transform: scale(1.15) translateX(-4%); }
}

@keyframes nd-hero-bg-pan-right {
	from { transform: scale(1.15) translateX(-4%); }
	to { transform: scale(1.15) translateX(4%); }
}

@keyframes nd-hero-bg-pan-up {
	from { transform: scale(1.15) translateY(4%); }
	to { transform: scale(1.15) translateY(-4%); }
}

@keyframes nd-hero-bg-pan-down {
	from { transform: scale(1.15) translateY(-4%); }
	to { transform: scale(1.15) translateY(4%); }
}

@keyframes nd-hero-bg-blur {
	from { filter: blur(20px); transform: scale(1.1); }
	to { filter: blur(0); transform: scale(1); }
}

/* Inactive (starting) states */
.nd-hero-bg-anim-fade-in .nd-hero-slide-media,
.nd-hero-bg-anim-fade-grow .nd-hero-slide-media,
.nd-hero-bg-anim-fade-shrink .nd-hero-slide-media {
	opacity: 0;
}

.nd-hero-bg-anim-shrink .nd-hero-slide-media,
.nd-hero-bg-anim-fade-shrink .nd-hero-slide-media {
	transform: scale(1.15);
}

.nd-hero-bg-anim-pan-left .nd-hero-slide-media {
	transform: scale(1.15) translateX(4%);
}

.nd-hero-bg-anim-pan-right .nd-hero-slide-media {
	transform: scale(1.15) translateX(-4%);
}

.nd-hero-bg-anim-pan-up .nd-hero-slide-media {
	transform: scale(1.15) translateY(4%);
}

.nd-hero-bg-anim-pan-down .nd-hero-slide-media {
	transform: scale(1.15) translateY(-4%);
}

.nd-hero-bg-anim-blur-in .nd-hero-slide-media {
	filter: blur(20px);
	transform: scale(1.1);
}

/* Running */
.nd-hero-slide-animating.nd-hero-bg-anim-fade-in .nd-hero-slide-media {
	animation: nd-hero-bg-fade var(--nd-hero-bg-anim-duration, 1.2s) ease-out both;
}

.nd-hero-slide-animating.nd-hero-bg-anim-grow .nd-hero-slide-media {
	animation: nd-hero-bg-grow var(--nd-hero-bg-anim-duration, 8s) linear both;
}

.nd-hero-slide-animating.nd-hero-bg-anim-shrink .nd-hero-slide-media {
	animation: nd-hero-bg-shrink var(--nd-hero-bg-anim-duration, 8s) ease-out both;
}

.nd-hero-slide-animating.nd-hero-bg-anim-fade-grow .nd-hero-slide-media {
	animation: nd-hero-bg-fade 1.2s ease-out both, nd-hero-bg-grow var(--nd-hero-bg-anim-duration, 8s) linear both;
}

.nd-hero-slide-animating.nd-hero-bg-anim-fade-shrink .nd-hero-slide-media {
	animation: nd-hero-bg-fade 1.2s ease-out both, nd-hero-bg-shrink var(--nd-hero-bg-anim-duration, 8s) ease-out both;
}

.nd-hero-slide-animating.nd-hero-bg-anim-pan-left .nd-hero-slide-media {
	animation: nd-hero-bg-pan-left var(--nd-hero-bg-anim-duration, 8s) linear both;
}

.nd-hero-slide-animating.nd-hero-bg-anim-pan-right .nd-hero-slide-media {
	animation: nd-hero-bg-pan-right var(--nd-hero-bg-anim-duration, 8s) linear both;
}

.nd-hero-slide-animating.nd-hero-bg-anim-pan-up .nd-hero-slide-media {
	animation: nd-hero-bg-pan-up var(--nd-hero-bg-anim-duration, 8s) linear both;
}

.nd-hero-slide-animating.nd-hero-bg-anim-pan-down .nd-hero-slide-media {
	animation: nd-hero-bg-pan-down var(--nd-hero-bg-anim-duration, 8s) linear both;
}

.nd-hero-slide-animating.nd-hero-bg-anim-blur-in .nd-hero-slide-media {
	animation: nd-hero-bg-blur var(--nd-hero-bg-anim-duration, 1.2s) ease-out both;
}

@media (prefers-reduced-motion: reduce) {
	.nd-hero-slider .nd-hero-slide-media {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
		filter: none !important;
	}
}

@media (max-width: 767px) {
	.nd-hero-slide-content {
		padding: 24px !important;
	}

	.nd-hero-slide-small-heading {
		font-size: 12px;
	}

	.nd-hero-slide-heading {
		font-size: 28px;
	}

	.nd-hero-slide-subheading {
		font-size: 15px;
	}

	.nd-hero-progress {
		--nd-hero-progress-bar: 12px;
		--nd-hero-progress-bar-active: 36px;
	}

	.nd-hero-progress-bar {
		margin: 0 8px;
	}

	.nd-hero-scroll-indicator-inner {
		gap: 8px;
	}
}
