/*
 * Sana Background Video: fills the section it sits in (the section needs
 * position: relative; the SANA heroes have it). Poster first, video on top
 * once it plays. No fade: the poster is the video's first frame, so the swap
 * is seamless (and site-wide Elementor content has no transitions).
 */
.elementor-widget-sana-bg-video {
	position: absolute !important;
	inset: 0;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.elementor-widget-sana-bg-video > .elementor-widget-container {
	height: 100%;
}

.sana-bgv {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background-color: #123F46;
}

.sana-bgv__poster,
.sana-bgv__video,
.sana-bgv img.sana-bgv__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	border: 0;
	border-radius: 0;
}

.sana-bgv--top .sana-bgv__poster,
.sana-bgv--top .sana-bgv__video {
	object-position: center top;
}

.sana-bgv--bottom .sana-bgv__poster,
.sana-bgv--bottom .sana-bgv__video {
	object-position: center bottom;
}

/* Right: portrait clips composed into a wide frame with the sharp clip at the
   right (tools/encode_video.sh). Narrower screens then crop the left side. */
@media (min-width: 768px) {
	.sana-bgv--right .sana-bgv__poster,
	.sana-bgv--right .sana-bgv__video {
		object-position: right center;
	}
}

.sana-bgv__video {
	visibility: hidden;
	pointer-events: none;
}

.sana-bgv.is-playing .sana-bgv__video,
.sana-bgv.is-paused .sana-bgv__video {
	visibility: visible;
}

/* Pause / play, top right of the section, above the shade and the text.
   Top, not bottom (v1.36.2): on the taller homepage hero the bottom-right
   corner is where the fixed WhatsApp button sits. */
.sana-bgv__toggle {
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	min-height: 0;
	padding: 0;
	border: 1px solid rgba(242, 237, 226, 0.5);
	border-radius: 50%;
	background: rgba(11, 38, 43, 0.45);
	color: #F2EDE2;
	cursor: pointer;
	box-shadow: none;
}

.sana-bgv__toggle[hidden] {
	display: none;
}

.sana-bgv__toggle:hover {
	background: rgba(11, 38, 43, 0.7);
	border-color: #F2EDE2;
	color: #F2EDE2;
}

.sana-bgv__toggle:focus-visible {
	outline: 3px solid #E3A64C;
	outline-offset: 2px;
}

.sana-bgv__icon-play,
.sana-bgv.is-paused .sana-bgv__icon-pause {
	display: none;
}

.sana-bgv.is-paused .sana-bgv__icon-play {
	display: block;
}

@media (max-width: 767px) {
	.sana-bgv__toggle {
		top: 16px;
		right: 16px;
		width: 36px;
		height: 36px;
	}
}

.sana-bgv--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	color: #F2EDE2;
	font-size: 14px;
	text-align: center;
}
