/**
 * Artigos recentes slider — Page Builder
 * CSS mínimo: pré-init CLS guard, pagination pill, overrides Swiper.
 */

.cortex-pb-artigos-recentes-slider:not(.swiper-initialized) {
	overflow: hidden;
}

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

.cortex-pb-artigos-recentes-slider:not(.swiper-initialized) .swiper-slide {
	flex: 0 0 86.956%;
	width: 86.956%;
	margin-right: 16px;
}

@media (min-width: 768px) {
	.cortex-pb-artigos-recentes-slider:not(.swiper-initialized) .swiper-slide {
		flex: 0 0 calc(50% - 10px);
		width: calc(50% - 10px);
		margin-right: 20px;
	}
}

@media (min-width: 1024px) {
	.cortex-pb-artigos-recentes-slider:not(.swiper-initialized) .swiper-slide {
		flex: 0 0 calc(33.333% - 16px);
		width: calc(33.333% - 16px);
		margin-right: 24px;
	}
}

.cortex-pb-artigos-recentes-slider .swiper-button-prev::after,
.cortex-pb-artigos-recentes-slider .swiper-button-next::after,
.cortex-pb-artigos-recentes-slider__arrow.swiper-button-prev::after,
.cortex-pb-artigos-recentes-slider__arrow.swiper-button-next::after {
	display: none;
}

.cortex-pb-artigos-recentes-slider__arrow.swiper-button-prev,
.cortex-pb-artigos-recentes-slider__arrow.swiper-button-next {
	position: static;
	margin: 0;
	width: 2rem;
	height: 2rem;
}

.cortex-pb-artigos-recentes-slider__pagination.swiper-pagination {
	position: static !important;
	width: auto !important;
	transform: none !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.cortex-pb-artigos-recentes-slider__pagination .cortex-pb-artigos-recentes-slider__dot {
	display: block;
	flex-shrink: 0;
	width: 8px;
	height: 8px;
	border-radius: 40px;
	background: #d0d5dd;
	opacity: 1;
	cursor: pointer;
	padding: 0;
	margin: 0;
	border: none;
	transition: width 0.3s ease, background 0.3s ease;
}

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

.cortex-pb-artigos-recentes-slider__controls:has(.swiper-button-disabled.swiper-button-lock) {
	display: none;
}
