/**
 * Central de notícias — destaque, filtros, grade e newsletter.
 *
 * @package ABDC
 */

.news-featured__img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.news-featured .badge {
	margin-bottom: 14px;
}

.news-featured__meta {
	margin: 0 0 10px;
	color: var(--color-text-60);
	font-size: 13px;
}

.news-featured__title {
	margin: 0 0 var(--space-3);
	font-size: clamp(22px, 2.6vw, 30px);
}

.news-featured__excerpt {
	margin: 0 0 20px;
	color: var(--color-text-80);
	font-size: 15px;
	line-height: 1.6;
}

/* — Barra de filtros — */
.news-filters {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-4);
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.news-filters__terms {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.news-filter {
	display: inline-block;
	padding: var(--space-2) var(--space-4);
	border: 1px solid var(--color-divider);
	background: transparent;
	color: var(--color-text);
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.news-filter:hover {
	background: color-mix(in srgb, var(--color-text) 7%, transparent);
	color: var(--color-text);
}

.news-filter.is-active {
	background: var(--color-accent);
	border-color: var(--color-accent);
	color: var(--color-bg);
}

/* — Grade de notícias — */
.news-grid {
	display: grid;
	gap: 28px;
	grid-template-columns: repeat(3, 1fr);
	min-height: 120px;
}

.news-card {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.news-card__img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.news-card__meta {
	margin: 0;
	color: var(--color-text-60);
	font-size: 12.5px;
}

.news-card__title {
	margin: 0;
	font-size: 17px;
	line-height: 1.3;
}

.news-card__excerpt {
	margin: 0;
	color: var(--color-text-78);
	font-size: 13.5px;
	line-height: 1.55;
}

.news-empty {
	margin: 0 0 var(--space-8);
	color: var(--color-text-65);
	font-size: 14.5px;
}

/* — Newsletter — */
.newsletter__form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.newsletter__form .input {
	max-width: 280px;
}

.newsletter__done {
	margin: 0;
	color: var(--color-accent-700);
	font-size: 14.5px;
	font-weight: 600;
}

@media (max-width: 899px) {
	.news-grid {
		grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	}
}
