.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;
}

.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-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;
}

.nd-hero-content-left {
	text-align: left;
}

.nd-hero-content-right {
	text-align: right;
}

.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-block;
	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;
}

.nd-hero-slide-button:hover {
	opacity: .8;
}

/* 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;
}

.nd-hero-scroll-indicator {
	position: absolute;
	bottom: 30px;
	right: 30px;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	color: #fff;
	cursor: pointer;
	background: none;
	border: 0;
}

.nd-hero-scroll-indicator-text {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 2px;
}

.nd-hero-scroll-indicator-icon {
	position: relative;
	width: 20px;
	height: 32px;
	border: 2px solid currentColor;
	border-radius: 12px;
}

.nd-hero-scroll-indicator-icon::before {
	content: '';
	position: absolute;
	top: 6px;
	left: 50%;
	width: 4px;
	height: 8px;
	margin-left: -2px;
	background: currentColor;
	border-radius: 2px;
	animation: nd-hero-scroll-dot 1.6s ease infinite;
}

@keyframes nd-hero-scroll-dot {
	0% { transform: translateY(0); opacity: 1; }
	70% { transform: translateY(10px); opacity: 0; }
	100% { transform: translateY(0); opacity: 0; }
}

@media (max-width: 767px) {
	.nd-hero-slide-content {
		padding: 24px !important;
	}

	.nd-hero-slide-heading {
		font-size: 28px;
	}

	.nd-hero-slide-subheading {
		font-size: 15px;
	}

	.nd-hero-scroll-indicator {
		right: 16px;
		bottom: 16px;
	}

	.nd-hero-pagination {
		bottom: 16px;
	}
}
