.hero-carousel {
	position: relative;
	overflow: hidden;
	border-radius: 6px;
}

.hero-carousel .hero-slide {
	display: none;
	position: relative;
	overflow: hidden;
	height: 400px;
	border-radius: 6px;
}

/* Imagem vira fundo full-bleed (a classe fica direto na tag <img>) */
.hero-slide img.hero-bg-image {
	position: absolute;
	inset: 0;
	margin: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Gradiente escuro por cima da imagem, pra dar legibilidade ao texto */
.hero-slide::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.92) 100%);
	z-index: 1;
	pointer-events: none;
}

/* Texto (categoria + título + resumo) posicionado sobre a imagem */
.hero-slide .hero-content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 28px;
	z-index: 2;
	color: #fff;
	max-width: 760px;
}

.hero-slide .hero-content h1,
.hero-slide .hero-content h2,
.hero-slide .hero-content h3 {
	color: #fff !important;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}

.hero-slide .hero-content a {
	color: #fff !important;
	font-weight: 500;
	text-decoration: none !important;
}

/* Garantir que TODOS os elementos dentro do hero sejam brancos */
.hero-slide .hero-content * {
	color: #fff !important;
}

/* Selo da categoria (adiciona a classe hero-category no bloco de categoria) */
.hero-slide .hero-category,
.hero-slide .hero-category a {
	display: inline-block;
	background: #E42B26;
	color: #fff;
	font-weight: 800;
	font-style: italic;
	text-transform: uppercase;
	text-decoration: none;
	padding: 3px 12px;
	border-radius: 3px;
	font-size: 13px;
	margin-bottom: 10px;
}

/* Antes do JS carregar, mostra a primeira noticia (evita tela em branco) */
.hero-carousel:not(.is-ready) .hero-slide:first-child {
	display: block;
}

.hero-carousel .hero-slide.is-active {
	display: block;
}

.hero-carousel .hero-dots {
	position: absolute;
	bottom: 16px;
	right: 20px;
	display: flex;
	gap: 6px;
	z-index: 3;
}

.hero-carousel .hero-dot {
	width: 8px;
	height: 4px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.5);
	border: none;
	padding: 0;
	cursor: pointer;
	transition: width 0.2s ease, background-color 0.2s ease;
}

.hero-carousel .hero-dot.is-active {
	width: 22px;
	background: #E42B26;
}

.hero-carousel .hero-dot:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* Mobile: titulo mais compacto, pra nao estourar a altura fixa do slide */
@media (max-width: 600px) {
	.hero-carousel .hero-slide {
		height: 360px;
	}
	
	/* FORÇAR imagem a preencher TODO o espaço */
	.hero-slide img.hero-bg-image {
		position: absolute !important;
		inset: 0 !important;
		width: 100% !important;
		height: 100% !important;
		object-fit: cover !important;
		object-position: center !important;
		margin: 0 !important;
		z-index: 0 !important;
	}

	.hero-slide .hero-content {
		padding: 18px;
		max-width: 100%;
	}

	.hero-slide .hero-content h1,
	.hero-slide .hero-content h2,
	.hero-slide .hero-content h3 {
		font-size: 20px !important;
		line-height: 1.3 !important;
		margin: 0 0 8px !important;
	}

	.hero-slide .hero-category,
	.hero-slide .hero-category a {
		font-size: 11px;
		padding: 2px 8px;
		margin-bottom: 6px;
	}
	
	/* Dots DENTRO da imagem no mobile */
	.hero-carousel .hero-dots {
		bottom: 60px !important;
		right: 16px !important;
		z-index: 3 !important;
	}
}

/* CSS para impressão - remover gradiente escuro */
@media print {
	.hero-slide::after {
		background: none !important;
		opacity: 0 !important;
	}
	
	.hero-slide .hero-content {
		background: rgba(0, 0, 0, 0.7) !important;
		padding: 15px !important;
	}
}
