/*
 * Premium full-width hero slider (NJI Hero Slider widget).
 * Full-bleed via the negative-margin break-out technique rather than
 * bare 100vw, which avoids the horizontal-scrollbar trap 100vw causes.
 */

.nji-hero-slider {
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	overflow: hidden;
}

.nji-hero-slider-track,
.nji-hero-slider-track .owl-stage-outer,
.nji-hero-slider-track .owl-stage,
.nji-hero-slider-track .owl-item {
	height: 100%;
}

.nji-hero-slide {
	position: relative;
	height: 720px;
	max-height: 85vh;
	overflow: hidden;
}

.nji-hero-slide-bg {
	position: absolute;
	inset: 0;
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}

.nji-hero-slide-bg-mobile {
	display: none;
}

.nji-hero-slide-overlay {
	position: absolute;
	inset: 0;
}

.nji-hero-slide-inner {
	position: relative;
	z-index: 2;
	display: flex;
	height: 100%;
}

/* The hero's .auto-container would otherwise stay centered with a
   1170px max-width (the sitewide default), leaving a wide empty gap
   before left-aligned content even starts. Anchor it to the real
   viewport edge instead, just for the hero. */
.nji-hero-slide-inner .auto-container {
	max-width: 100%;
	margin: 0;
	padding: 0 60px;
}

.nji-hero-slide-content {
	max-width: 560px;
	opacity: 0;
	transform: translateY(24px);
}

.owl-item.active .nji-hero-slide-content {
	animation: njiHeroFadeUp 700ms ease forwards;
	animation-delay: 150ms;
}

@keyframes njiHeroFadeUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.nji-hero-slide-content.nji-width-small { max-width: 440px; }
.nji-hero-slide-content.nji-width-medium { max-width: 560px; }
.nji-hero-slide-content.nji-width-large { max-width: 680px; }

.nji-hero-slide-content.nji-align-center {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.nji-hero-slide-content.nji-align-right {
	margin-left: auto;
	text-align: right;
}

.nji-hero-badge {
	display: inline-block;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: #fff;
	font-family: var(--nji-font-heading);
	font-size: 13px;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 18px;
}

.nji-hero-slide .nji-hero-eyebrow {
	display: inline-block;
	font-family: var(--nji-font-heading);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	color: var(--nji-red-light);
	margin-bottom: 18px;
}

.nji-hero-slide .nji-hero-title {
	font-family: var(--nji-font-heading);
	font-weight: 800;
	color: #fff;
	font-size: 60px !important;
	line-height: 1.1 !important;
	letter-spacing: -0.02em;
	margin-bottom: 22px;
}

.nji-hero-slide .nji-hero-text {
	font-family: var(--nji-font-body);
	font-size: 18px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.88);
	margin-bottom: 32px;
}

.nji-hero-slide .nji-hero-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.nji-hero-slide-content.nji-align-center .nji-hero-buttons {
	justify-content: center;
}

.nji-hero-slide-content.nji-align-right .nji-hero-buttons {
	justify-content: flex-end;
}

.nji-hero-slider .theme-btn-one,
.nji-hero-slider .theme-btn-two {
	font-size: 16px;
	padding: 15px 30px;
	background: linear-gradient(120deg, var(--nji-red-light) 0%, var(--nji-red) 35%, var(--nji-red-dark) 70%, var(--nji-red) 100%);
	background-size: 300% 300%;
	animation: njiGradientShift 3s ease infinite;
	position: relative;
	overflow: hidden;
	border: none;
	z-index: 1;
}

.nji-hero-slider .theme-btn-two:before {
	content: '';
	position: absolute;
	top: 0;
	left: -60%;
	width: 40%;
	height: 100%;
	background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
	transform: skewX(-20deg);
	animation: njiShimmerSweep 2.6s ease-in-out infinite;
	z-index: 2;
	pointer-events: none;
}

.nji-hero-slider .theme-btn-two span,
.nji-hero-slider .theme-btn-two i {
	position: relative;
	z-index: 3;
}

.nji-hero-slider .theme-btn-two:after {
	display: none;
}

.nji-hero-slider .theme-btn-two:hover {
	box-shadow: 0 10px 26px rgba(236, 28, 36, 0.5);
	transform: translateY(-2px);
}

@keyframes njiGradientShift {
	0% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

@keyframes njiShimmerSweep {
	0% { left: -60%; }
	100% { left: 140%; }
}

.nji-hero-slider .theme-btn-one {
	border-color: rgba(255, 255, 255, 0.55);
	color: #fff;
}

.nji-hero-slider .theme-btn-one:after {
	background: #fff;
}

.nji-hero-slider .theme-btn-one:hover {
	color: var(--nji-charcoal);
}

/* ---------- Nav arrows ---------- */

.nji-hero-nav {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 3;
}

.nji-hero-nav-prev,
.nji-hero-nav-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.4);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	cursor: pointer;
	pointer-events: auto;
	transition: background var(--nji-transition), border-color var(--nji-transition);
}

.nji-hero-nav-prev:hover,
.nji-hero-nav-next:hover {
	background: var(--nji-red);
	border-color: var(--nji-red);
}

.nji-hero-nav-prev { left: 28px; }
.nji-hero-nav-next { right: 28px; }

/* ---------- Dots ---------- */

.nji-hero-dots {
	position: absolute;
	bottom: 26px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	gap: 10px;
	z-index: 3;
}

.nji-hero-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.45);
	cursor: pointer;
	transition: background var(--nji-transition), transform var(--nji-transition);
}

.nji-hero-dot.active {
	background: var(--nji-red);
	transform: scale(1.2);
}

/* ---------- Responsive ---------- */

@media only screen and (max-width: 1400px) {
	.nji-hero-slide .nji-hero-title { font-size: 50px !important; }
}

@media only screen and (max-width: 1200px) {
	.nji-hero-slide { height: 680px; }
	.nji-hero-slide .nji-hero-title { font-size: 44px !important; }
	.nji-hero-nav-prev { left: 16px; }
	.nji-hero-nav-next { right: 16px; }
	.nji-hero-slide-inner .auto-container { padding: 0 30px; }
}

@media only screen and (max-width: 991px) {
	.nji-hero-slide { height: 640px; }
	.nji-hero-slide .nji-hero-title { font-size: 38px !important; }
	.nji-hero-slide .nji-hero-text { font-size: 16px; }
	.nji-hero-nav-prev,
	.nji-hero-nav-next { display: none; }
	.nji-hero-slide-inner .auto-container { padding: 0 24px; }
}

@media only screen and (max-width: 767px) {
	.nji-hero-slide { height: 660px; }
	.nji-hero-slide-bg-desktop.has-mobile { display: none; }
	.nji-hero-slide-bg-mobile { display: block; }
	.nji-hero-slide-content {
		max-width: 100% !important;
		text-align: center !important;
		margin-left: auto;
		margin-right: auto;
	}
	.nji-hero-slide .nji-hero-title { font-size: 32px !important; }
	.nji-hero-slide .nji-hero-text { font-size: 16px; }
	.nji-hero-slide .nji-hero-buttons { justify-content: center; }
	.nji-hero-dots { bottom: 16px; }
}

@media only screen and (max-width: 480px) {
	.nji-hero-slide { height: 620px; }
	.nji-hero-slide .nji-hero-title { font-size: 27px !important; }
	.nji-hero-slide .nji-hero-buttons {
		flex-direction: column;
		width: 100%;
	}
	.nji-hero-slider .theme-btn-one,
	.nji-hero-slider .theme-btn-two {
		width: 100%;
		text-align: center;
	}
}
