/**
 * Compact card-slider styles for [nfsi_remote_hero_slider].
 * Designed for a narrow column (e.g. 1/3 width), independent of the
 * theme's full-width ".hero-slider" hero-banner styles.
 */

/*
 * Elementor's bundled Swiper CSS (swiper.min.css) sets ".swiper-slide { height: 100%; }".
 * Since our ".swiper"/".swiper-wrapper" ancestors have no explicit height, that resolves
 * to 0 and collapses the whole slider - so we pin an explicit height on the outer
 * container too, and use higher-specificity + !important on the slide height so this
 * still wins no matter which stylesheet happens to load/print last.
 */
.nfsi-hero-slider.swiper {
	position: relative;
	width: 100%;
	height: 320px;
	overflow: hidden;
	border-radius: 4px;
}

.nfsi-hero-slider .swiper-wrapper {
	display: flex;
	height: 100%;
}

.nfsi-hero-slider.swiper .swiper-slide.nfsi-hero-slide {
	position: relative;
	width: 100%;
	height: 320px !important;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

.nfsi-hero-slide::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 75%;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0) 100%);
	pointer-events: none;
}

.nfsi-hero-slide-link {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.nfsi-hero-overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 16px;
	pointer-events: none;
}

.nfsi-hero-overlay a {
	pointer-events: auto;
}

.nfsi-hero-cat {
	display: inline-block;
	background-color: #d72924;
	color: #fff !important;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	padding: 3px 10px;
	border-radius: 2px;
	margin-bottom: 8px;
	text-decoration: none;
}

.nfsi-hero-title {
	margin: 0;
	font-size: 16px;
	line-height: 1.35;
	font-weight: 700;
}

.nfsi-hero-title a {
	color: #fff !important;
	text-decoration: none;
}

.nfsi-hero-nav .swiper-button-prev,
.nfsi-hero-nav .swiper-button-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 30px;
	height: 30px;
	line-height: 30px;
	text-align: center;
	background: rgba(255, 255, 255, 0.85);
	border-radius: 50%;
	cursor: pointer;
	font-size: 13px;
}

.nfsi-hero-nav .swiper-button-prev {
	left: 10px;
}

.nfsi-hero-nav .swiper-button-next {
	right: 10px;
}

.nfsi-hero-nav .swiper-button-prev::after,
.nfsi-hero-nav .swiper-button-next::after {
	content: none;
}
