/**
 * Aha Hero Slider Pro — Extra layout styles.
 *
 * Modifiers applied to .aha-hero-slider__content:
 *   --centered  (centered_text layout)
 *   --right     (text_right layout)
 */

/* ── Centered text layout ── */
.aha-hero-slider .aha-hero-slider__content--centered {
	align-items: center;
	text-align: center;
}

.aha-hero-slider .aha-hero-slider__content--centered .aha-hero-slider__actions {
	justify-content: center;
}

/* ── Right-aligned text layout ── */
.aha-hero-slider .aha-hero-slider__content--right {
	align-items: flex-end;
	text-align: right;
}

.aha-hero-slider .aha-hero-slider__content--right .aha-hero-slider__actions {
	justify-content: flex-end;
}

/* ── Mobile: keep centered/right alignment in the card area ── */
@media (max-width: 767px) {
	.aha-hero-slider .aha-hero-slider__content--centered {
		align-items: center;
		text-align: center;
	}

	.aha-hero-slider .aha-hero-slider__content--right {
		align-items: flex-end;
		text-align: right;
	}
}

/* ── Video + text (desktop: copy left, play right; mobile: play over 200px strip) ── */
.aha-hero-slider .aha-hero-slider__content--video-text {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	text-align: left;
	gap: 24px;
	max-width: 1200px;
}

.aha-hero-slider .aha-hero-pro-video-text__row {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: 24px;
}

.aha-hero-slider .aha-hero-pro-video-text__copy {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 8px;
}

.aha-hero-slider .aha-hero-pro-video--side {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 12;
	width: 40%;
}

/* ── Play control (shared) ── */
.aha-hero-slider .aha-hero-pro-video__play {
	appearance: none;
	border: 0;
	margin: 0;
	padding: 0;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: rgb(187 186 186 / 41%);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.15s ease, background 0.15s ease;
}

.aha-hero-slider .aha-hero-pro-video__play:hover,
.aha-hero-slider .aha-hero-pro-video__play:focus-visible {
	background: rgba(0, 0, 0, 0.72);
	transform: scale(1.05);
}

.aha-hero-slider .aha-hero-pro-video__play-icon {
	display: block;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 10px 0 10px 16px;
	border-color: transparent transparent transparent #fff;
	margin-left: 4px;
}

.aha-hero-pro-video__frame {
	width: 100%;
	height: 100%;
	position: relative;
}

/* Full-image video layout */
.aha-hero-slider .aha-hero-pro-video--full {
	position: absolute;
	inset: 0;
	z-index: 12;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.aha-hero-slider .aha-hero-pro-video--full .aha-hero-pro-video__play,
.aha-hero-slider .aha-hero-pro-video--full .aha-hero-pro-video__poster-hit {
	pointer-events: auto;
}

.aha-hero-slider .aha-hero-pro-video__poster-hit {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.aha-hero-slider .aha-hero-pro-video--full .aha-hero-pro-video__poster-hit {
	z-index: 2;
}

/* Iframe host while playing */
.aha-hero-slider .aha-hero-pro-video.is-playing {
	pointer-events: auto;
}

/* video_full: iframe lives inside .aha-hero-pro-video */
.aha-hero-slider .aha-hero-slider__item--video-full .aha-hero-pro-video.is-playing {
	position: absolute;
	inset: 0;
	z-index: 25;
	display: flex;
	align-items: stretch;
	justify-content: stretch;
}

.aha-hero-slider .aha-hero-pro-video.is-playing .aha-hero-pro-video__play,
.aha-hero-slider .aha-hero-pro-video.is-playing .aha-hero-pro-video__poster-hit {
	display: none;
}

.aha-hero-slider .aha-hero-slider__item--video-full .aha-hero-pro-video.is-playing .aha-hero-pro-video__frame {
	flex: 1 1 auto;
	width: 100%;
	min-height: 200px;
	position: relative;
}

.aha-hero-slider .aha-hero-slider__item--video-full .aha-hero-pro-video.is-playing .aha-hero-pro-video__frame iframe {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
}

/* video_text: frame is a sibling of .aha-hero-pro-video--side; JS adds overlay class on the slide item */
.aha-hero-slider__item--video-text.aha-hero-slider__item--pro-video-text-overlay .aha-hero-pro-video__frame:not([hidden]) {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 30;
	background: #000;
}

.aha-hero-slider__item--video-text.aha-hero-slider__item--pro-video-text-overlay .aha-hero-pro-video__frame:not([hidden]) iframe {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
}

@media (max-width: 767px) {
	.aha-hero-slider .aha-hero-slider__content--video-text {
		flex-direction: column;
		align-items: stretch;
		height: auto;
		position: relative;
	}

	.aha-hero-slider .aha-hero-slider__item--video-text .aha-hero-pro-video-text__row {
		flex-direction: column;
		align-items: stretch;
	}

	/* Play control centered over the 200px mobile image strip (reset desktop 40% width). */
	.aha-hero-slider .aha-hero-slider__item--video-text .aha-hero-pro-video--side {
		position: absolute;
		top: -200px;
		left: 0;
		right: 0;
		width: 100%;
		max-width: none;
		flex: none;
		height: 200px;
		margin: 0;
		pointer-events: none;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.aha-hero-slider .aha-hero-slider__item--video-text .aha-hero-pro-video--side .aha-hero-pro-video__play {
		pointer-events: auto;
	}

	/*
	 * YouTube ativo: o iframe usa inset:0 no slide — o content não pode ser position:relative
	 * (senão o frame fica só na caixa de texto). Escondemos o strip da imagem e deixamos o vídeo
	 * cobrir todo o cartão (largura + altura do item).
	 */
	.aha-hero-slider__item--video-text.aha-hero-slider__item--pro-video-text-overlay .aha-hero-slider__content--video-text {
		position: static;
	}

	.aha-hero-slider__item--video-text.aha-hero-slider__item--pro-video-text-overlay .aha-hero-slider__mobile {
		height: 0;
		min-height: 0;
		margin: 0;
		padding: 0;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		overflow: hidden;
		border: 0;
	}

	.aha-hero-slider__item--video-text.aha-hero-slider__item--pro-video-text-overlay .aha-hero-pro-video-text__row {
		position: static;
		min-height: 0;
	}

	/*
	 * Video — full image (mobile): poster strip grows to fill the card; play stays centred on
	 * that area (the overlay is absolute on the item, matching the same box).
	 */
	.aha-hero-slider .aha-hero-slider__item--video-full {
		display: flex;
		flex-direction: column;
		min-height: 520px;
	}

	.aha-hero-slider .aha-hero-slider__item--video-full .aha-hero-slider__mobile {
		flex: 1 1 auto;
		min-height: 480px;
		height: auto;
		width: 100%;
		background-size: cover;
		background-position: center center;
	}
}

/* ── YouTube `video_behavior="lock"`: hide arrows/dots while the iframe reports PLAYING ── */
.aha-hero-slider.aha-hero-slider--pro-video-nav-lock .aha-hero-slider__arrow,
.aha-hero-slider.aha-hero-slider--pro-video-nav-lock .aha-hero-slider__dots {
	visibility: hidden;
	pointer-events: none;
}

/* Close control: exits inline video on the same slide (hybrid + lock) */
.aha-hero-slider .aha-hero-slider__item .aha-hero-pro-video-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 45;
	width: 40px;
	height: 40px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	appearance: none;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, transform 0.15s ease;
}

.aha-hero-slider .aha-hero-slider__item .aha-hero-pro-video-close::before,
.aha-hero-slider .aha-hero-slider__item .aha-hero-pro-video-close::after {
	content: '';
	position: absolute;
	width: 16px;
	height: 2px;
	background: currentColor;
	border-radius: 1px;
}

.aha-hero-slider .aha-hero-slider__item .aha-hero-pro-video-close::before {
	transform: rotate(45deg);
}

.aha-hero-slider .aha-hero-slider__item .aha-hero-pro-video-close::after {
	transform: rotate(-45deg);
}

.aha-hero-slider .aha-hero-slider__item .aha-hero-pro-video-close:hover,
.aha-hero-slider .aha-hero-slider__item .aha-hero-pro-video-close:focus-visible {
	background: rgba(0, 0, 0, 0.78);
	transform: scale(1.05);
}
