@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

.manchetes-carousel {
	position: relative;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	background-color: var(--manchetes-cor-fundo, #000);
	color: var(--manchetes-cor-texto, #fff);
	font-family: var(--manchetes-fonte-resumo, 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
	border-radius: 6px;
	padding: 28px 52px;
	margin: 0 0 2em;
	overflow: hidden;
}

.manchetes-carousel__label {
	text-transform: uppercase;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	opacity: 0.65;
	margin-bottom: 14px;
}

.manchetes-carousel__viewport {
	overflow: hidden;
	width: 100%;
}

.manchetes-carousel__track {
	display: flex;
	transition: transform 0.45s ease;
	will-change: transform;
}

.manchetes-carousel__slide {
	flex: 0 0 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.manchetes-carousel__post {
	display: flex;
	flex-direction: column;
}

.manchetes-carousel__title {
	font-family: var(--manchetes-fonte-titulo, inherit);
	font-size: 1.75rem;
	line-height: 1.25;
	margin: 0 0 0.5em;
}

.manchetes-carousel__title a {
	color: var(--manchetes-cor-texto, #fff);
	text-decoration: none;
}

.manchetes-carousel__title a:hover {
	text-decoration: underline;
}

.manchetes-carousel__excerpt {
	font-family: var(--manchetes-fonte-resumo, inherit);
	font-size: clamp(0.929rem, 0.929rem + ((1vw - 0.2rem) * 1.108), 1.4rem);
	line-height: 1.5;
	opacity: 0.9;
	margin-bottom: 1em;
}

.manchetes-carousel__excerpt-text {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	height: calc(1.5em * 3);
}

.manchetes-carousel__leia-mais {
	display: inline-block;
	margin-left: 6px;
	color: var(--manchetes-cor-texto, #fff);
	font-weight: 600;
	text-decoration: underline;
	white-space: nowrap;
}

.manchetes-carousel__imagem {
	width: 75%;
	max-height: 250px;
	overflow: hidden;
	border-radius: 4px;
	margin-right: auto;
}

.manchetes-carousel__imagem img {
	width: 100%;
	height: 250px;
	object-fit: cover;
	display: block;
}

.manchetes-carousel__seta {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.12);
	color: var(--manchetes-cor-texto, #fff);
	border: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

.manchetes-carousel__seta:hover {
	background: rgba(255, 255, 255, 0.25);
}

.manchetes-carousel__seta--prev {
	left: 12px;
}

.manchetes-carousel__seta--next {
	right: 12px;
}

.manchetes-carousel__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 18px;
}

.manchetes-carousel__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	border: none;
	padding: 0;
	cursor: pointer;
	transition: background 0.2s ease;
}

.manchetes-carousel__dot.is-active {
	background: var(--manchetes-cor-texto, #fff);
}

@media (max-width: 768px) {
	.manchetes-carousel {
		width: 100vw !important;
		max-width: 100vw !important;
		position: relative !important;
		left: 50% !important;
		right: auto !important;
		transform: translateX(-50%) !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		border-radius: 0 !important;
		border: none !important;
		padding: 20px 24px !important;
		box-sizing: border-box !important;
	}

	.manchetes-carousel__title {
		font-size: 1.75rem;
	}

	.manchetes-carousel__excerpt {
		font-size: 20.8px;
	}

	.manchetes-carousel__imagem {
		width: 100%;
	}

	.manchetes-carousel__seta {
		width: 30px;
		height: 30px;
		font-size: 18px;
	}

	.manchetes-carousel__seta--prev {
		left: 6px;
	}

	.manchetes-carousel__seta--next {
		right: 6px;
	}
}
