/* ainvera Hero Video */
.avhv-on {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

/* The theme's own overlay would double up with ours */
.avhv-on::before {
	display: none !important;
}

.avhv {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
	background: #061849;
	--avhv-fade: 1.2s;
	--avhv-bright: 100%;
}

.avhv__poster,
.avhv__video,
.avhv__overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.avhv__poster {
	background-size: cover;
	background-repeat: no-repeat;
	filter: brightness(var(--avhv-bright));
}

.avhv__video {
	object-fit: cover;
	opacity: 0;
	transition: opacity var(--avhv-fade) ease;
	filter: brightness(var(--avhv-bright));
	pointer-events: none;
}

.avhv__video.is-on {
	opacity: 1;
}

.avhv__overlay {
	z-index: 2;
}

.avhv--zoom .avhv__poster,
.avhv--zoom .avhv__video {
	animation: avhv-zoom 28s ease-in-out infinite alternate;
}

@keyframes avhv-zoom {
	from {
		transform: scale(1);
	}

	to {
		transform: scale(1.08);
	}
}

/* Hero content sits above the video */
.avhv-on > .e-con-inner,
.avhv-on > .elementor-widget,
.avhv-on > .e-con {
	position: relative;
	z-index: 3;
}

.avhv__btn {
	position: absolute;
	bottom: 18px;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 50%;
	background: rgba(6, 24, 73, 0.55);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: #fff;
	cursor: pointer;
	pointer-events: auto;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.avhv__btn--br {
	right: 18px;
}

.avhv__btn--bl {
	left: 18px;
}

.avhv__btn:hover,
.avhv__btn:focus-visible {
	background: #0878ef;
	transform: scale(1.06);
}

.avhv__btn:focus-visible {
	outline: 3px solid #12c4df;
	outline-offset: 2px;
}

.avhv__btn .avhv__i-play {
	display: none;
}

.avhv__btn.is-paused .avhv__i-play {
	display: block;
}

.avhv__btn.is-paused .avhv__i-pause {
	display: none;
}

@media (max-width: 767px) {
	.avhv__btn {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.avhv__video {
		display: none;
	}

	.avhv--zoom .avhv__poster {
		animation: none;
	}

	.avhv__btn {
		display: none;
	}
}
