/* ==========================================================================
   Central News — Hero (destaque principal da Home)
   Slider Swiper.js: autoplay, setas, paginação, overlay, categoria, título, data
   ========================================================================== */

.hero { padding: 28px 0 8px; background: var(--paper); }

/* O wrapper interno do Hero usa .home-container (assets/css/home-grid.css)
   — mesma largura/respiro do resto da Home, sem reimplementar aqui. */

.hero-swiper {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: var(--shadow-md);
}

.hero-slide {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 7.5;
	background: var(--green-900);
}

.hero-slide__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-slide__img--placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--green-700), var(--green-900));
}

.hero-slide__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(15, 58, 34, .92) 0%, rgba(15, 58, 34, .55) 38%, rgba(15, 58, 34, 0) 72%);
	pointer-events: none;
}

.hero-slide__content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	max-width: 720px;
	padding: 28px 32px 40px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	color: #fff;
}

.hero-slide__category {
	background: var(--gold-500);
	color: var(--green-900);
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .05em;
	text-transform: uppercase;
	padding: 5px 12px;
	border-radius: 4px;
}

.hero-slide__title {
	font-size: clamp(1.4rem, 2.6vw, 2.1rem);
	line-height: 1.22;
	font-weight: 800;
	margin: 0;
	text-wrap: balance;
}

.hero-slide__date {
	font-size: .78rem;
	color: #D9E6DD;
	font-weight: 600;
}

/* ---------- Setas ---------- */
.hero-swiper__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .9);
	color: var(--green-900);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow-md);
	transition: background .2s ease, transform .2s ease;
}

.hero-swiper__arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }

.hero-swiper__arrow--prev { left: 16px; }
.hero-swiper__arrow--next { right: 16px; }

.hero-swiper__arrow::before {
	content: "";
	width: 9px;
	height: 9px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
}

.hero-swiper__arrow--prev::before { transform: rotate(135deg) translate(1px, 1px); }
.hero-swiper__arrow--next::before { transform: rotate(-45deg) translate(1px, 1px); }

.hero-swiper__arrow.swiper-button-disabled { opacity: .35; pointer-events: none; }

/* ---------- Paginação ---------- */
.hero-swiper__pagination {
	position: absolute;
	bottom: 16px;
	right: 32px;
	left: auto;
	width: auto;
	z-index: 10;
	display: flex;
	gap: 6px;
}

.hero-swiper__pagination .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	margin: 0;
	border-radius: 4px;
	background: rgba(255, 255, 255, .55);
	opacity: 1;
	transition: background .2s ease, width .2s ease;
}

.hero-swiper__pagination .swiper-pagination-bullet-active {
	background: var(--gold-500);
	width: 22px;
}

/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 767px) {
	.hero { padding: 16px 0 4px; }
	.hero-slide { aspect-ratio: 4 / 5; }
	.hero-slide__content { padding: 20px 18px 26px; }
	.hero-swiper__arrow { display: none; }
	.hero-swiper__pagination { right: 18px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.hero-swiper__arrow,
	.hero-swiper__pagination .swiper-pagination-bullet {
		transition: none !important;
	}
}
