/**
 * Hero Slider — Page Builder
 * CSS mínimo: pré-init CLS guard, pagination custom, glow do painel, overrides Swiper.
 */

/* Pré-init: reserva layout antes do Swiper carregar (evita CLS) */
.cortex-pb-hero-slider:not(.swiper-initialized) {
	overflow: hidden;
}

.cortex-pb-hero-slider:not(.swiper-initialized) .swiper-wrapper {
	display: flex;
	flex-direction: row;
}

.cortex-pb-hero-slider:not(.swiper-initialized) .swiper-slide {
	flex: 0 0 100%;
	width: 100%;
}

/* Zoom sutil na imagem do slide ativo (desktop) */
@media (min-width: 768px) {
	.cortex-pb-hero-slider .swiper-slide-active .cortex-pb-hero-slider__img {
		transform: scale(1.04);
	}
}

/* Glow decorativo no painel de conteúdo (desktop) */
@media (min-width: 768px) {
	.cortex-pb-hero-slider__content::before {
		content: '';
		position: absolute;
		top: -120px;
		right: -80px;
		width: 360px;
		height: 360px;
		background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
		pointer-events: none;
	}
}

/* Remove setas padrão do Swiper (usamos SVG custom) */
.cortex-pb-hero-slider .swiper-button-prev::after,
.cortex-pb-hero-slider .swiper-button-next::after {
	display: none;
}

.cortex-pb-hero-slider .swiper-button-prev,
.cortex-pb-hero-slider .swiper-button-next {
	margin: 0;
	width: 2rem;
	height: 2rem;
}

/* Pagination — centralizado (Swiper sobrescreve left/transform inline) */
.cortex-pb-hero-slider__pagination.swiper-pagination {
	position: absolute !important;
	bottom: 24px !important;
	left: 50% !important;
	right: auto !important;
	width: auto !important;
	transform: translateX(-50%) !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	z-index: 10;
}

/* Dots estilo protótipo (pill ativa laranja) */
.cortex-pb-hero-slider__pagination .cortex-pb-hero-slider__dot {
	display: block;
	flex-shrink: 0;
	width: 8px;
	height: 8px;
	border-radius: 40px;
	background: rgba(255, 255, 255, 0.3);
	opacity: 1;
	cursor: pointer;
	padding: 0;
	margin: 0;
	border: none;
	transition: width 0.3s ease, background 0.3s ease;
}

.cortex-pb-hero-slider__pagination .cortex-pb-hero-slider__dot.is-active {
	width: 28px;
	background: var(--cortex-primary, #ff6b00);
}

/* Barra de progresso do autoplay */
.cortex-pb-hero-slider__progress-bar {
	transition: width 0.1s linear;
}
