/* Página "Novidades" (home.php / category.php). Usa as variáveis e seções de home.css. */

/* Cabeçalho */
.cl-news-header {
	background:
		radial-gradient(circle at 92% 0%, rgba(230, 57, 70, .10), transparent 35%),
		radial-gradient(circle at 0% 100%, rgba(244, 180, 0, .12), transparent 40%),
		linear-gradient(180deg, #eef5fc, #f8fbfe);
	border-bottom: 1px solid #e3ecf5;
	padding: 56px 16px 40px;
	text-align: center;
}

.cl-news-eyebrow {
	background: #fff;
	border: 1px solid #d6e4f2;
	border-radius: 999px;
	color: var(--cl-blue);
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	margin-bottom: 16px;
	padding: 6px 14px;
	text-transform: uppercase;
}

.cl-news-header h1 {
	color: var(--cl-ink);
	font-size: 42px;
	font-weight: 700;
	margin: 0 0 10px;
}

.cl-news-header p {
	color: var(--cl-muted);
	font-size: 18px;
	margin: 0 auto;
	max-width: 640px;
}

.cl-news-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-top: 28px;
}

.cl-news-filter a {
	background: #fff;
	border: 1px solid #d6e4f2;
	border-radius: 999px;
	color: var(--cl-ink);
	font-size: 14px;
	font-weight: 700;
	padding: 8px 16px;
	text-decoration: none;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.cl-news-filter a span {
	color: var(--cl-muted);
	font-weight: 400;
	margin-left: 4px;
}

.cl-news-filter a:hover {
	border-color: var(--cl-blue);
	color: var(--cl-blue);
}

.cl-news-filter a.is-active {
	background: var(--cl-blue);
	border-color: var(--cl-blue);
	color: #fff;
}

.cl-news-filter a.is-active span {
	color: rgba(255, 255, 255, .8);
}

/* Capas */
.cl-news-cover {
	background: var(--cl-soft);
	display: block;
	overflow: hidden;
	position: relative;
}

.cl-news-cover-img {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
	width: 100%;
}

.cl-news-cover-fallback {
	align-items: center;
	color: rgba(255, 255, 255, .9);
	display: flex;
	font-size: 56px;
	height: 100%;
	justify-content: center;
	min-height: 200px;
	width: 100%;
}

.cl-news-cover-fallback .fa {
	background: rgba(255, 255, 255, .18);
	border-radius: 50%;
	box-shadow: 0 0 0 14px rgba(255, 255, 255, .08);
	padding: 26px;
}

.cl-tone-blue,
.cl-tone-red,
.cl-tone-yellow,
.cl-tone-green {
	background-blend-mode: overlay, normal;
	background-size: 22px 22px, auto;
}

.cl-tone-blue { background-image: radial-gradient(rgba(255, 255, 255, .22) 1.5px, transparent 1.5px), linear-gradient(135deg, #1e73be, #5aa5e6); }
.cl-tone-red { background-image: radial-gradient(rgba(255, 255, 255, .22) 1.5px, transparent 1.5px), linear-gradient(135deg, #e63946, #ff7b84); }
.cl-tone-yellow { background-image: radial-gradient(rgba(255, 255, 255, .25) 1.5px, transparent 1.5px), linear-gradient(135deg, #f4b400, #ffd75e); }
.cl-tone-green { background-image: radial-gradient(rgba(255, 255, 255, .22) 1.5px, transparent 1.5px), linear-gradient(135deg, #2e9e5b, #6dd197); }

article:hover .cl-news-cover-img {
	transform: scale(1.05);
}

/* Metadados */
.cl-news-meta {
	align-items: center;
	color: var(--cl-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: 13px;
	gap: 8px;
	margin-bottom: 10px;
}

.cl-news-badge {
	background: rgba(30, 115, 190, .1);
	border-radius: 6px;
	color: var(--cl-blue);
	font-weight: 700;
	padding: 3px 9px;
}

.cl-news-more {
	color: var(--cl-blue);
	font-weight: 700;
	text-decoration: none;
}

.cl-news-more .fa {
	margin-left: 4px;
	transition: transform .15s ease;
}

.cl-news-more:hover {
	color: var(--cl-blue-dark);
	text-decoration: none;
}

.cl-news-more:hover .fa {
	transform: translateX(4px);
}

/* Destaque */
.cl-news-featured {
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 10px 34px rgba(20, 40, 60, .10);
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	margin-bottom: 40px;
	overflow: hidden;
}

.cl-news-featured .cl-news-cover {
	min-height: 340px;
}

.cl-news-featured .cl-news-body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 40px;
}

.cl-news-flag {
	align-self: flex-start;
	background: var(--cl-red);
	border-radius: 999px;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .05em;
	margin-bottom: 14px;
	padding: 4px 12px;
	text-transform: uppercase;
}

.cl-news-featured h2 {
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 14px;
}

.cl-news-featured h2 a,
.cl-news-card h3 a {
	color: var(--cl-ink);
	text-decoration: none;
}

.cl-news-featured h2 a:hover,
.cl-news-card h3 a:hover {
	color: var(--cl-blue);
}

.cl-news-featured p {
	color: var(--cl-muted);
	font-size: 17px;
	line-height: 1.6;
	margin: 0 0 22px;
}

/* Grade */
.cl-news-grid {
	display: grid;
	gap: 28px;
	grid-template-columns: repeat(3, 1fr);
}

.cl-news-card {
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 4px 16px rgba(20, 40, 60, .08);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: transform .15s ease, box-shadow .15s ease;
}

.cl-news-card:hover {
	box-shadow: 0 14px 30px rgba(20, 40, 60, .16);
	transform: translateY(-4px);
}

.cl-news-card .cl-news-cover {
	aspect-ratio: 16 / 9;
}

.cl-news-card .cl-news-cover-fallback {
	font-size: 42px;
	min-height: 0;
}

.cl-news-card .cl-news-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px 22px 22px;
}

.cl-news-card h3 {
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 10px;
}

.cl-news-card p {
	color: var(--cl-muted);
	flex: 1;
	font-size: 15px;
	line-height: 1.55;
	margin: 0 0 16px;
}

/* Paginação */
.cl-news .navigation.pagination {
	margin-top: 44px;
	text-align: center;
}

.cl-news .nav-links {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.cl-news .nav-links .page-numbers {
	background: #fff;
	border: 1px solid #d6e4f2;
	border-radius: 10px;
	color: var(--cl-ink);
	font-weight: 700;
	min-width: 44px;
	padding: 10px 14px;
	text-decoration: none;
}

.cl-news .nav-links .page-numbers.current,
.cl-news .nav-links a.page-numbers:hover {
	background: var(--cl-blue);
	border-color: var(--cl-blue);
	color: #fff;
}

/* Estado vazio */
.cl-news-empty {
	background: #fff;
	border: 2px dashed #d6e4f2;
	border-radius: 18px;
	padding: 56px 24px;
	text-align: center;
}

.cl-news-empty-icon {
	align-items: center;
	background: rgba(30, 115, 190, .1);
	border-radius: 50%;
	color: var(--cl-blue);
	display: inline-flex;
	font-size: 34px;
	height: 84px;
	justify-content: center;
	margin-bottom: 18px;
	width: 84px;
}

.cl-news-empty h2 {
	color: var(--cl-ink);
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 8px;
}

.cl-news-empty p {
	color: var(--cl-muted);
	margin: 0 0 24px;
}

.cl-news-empty .wp-block-button__link {
	display: inline-block;
}

@media (max-width: 991px) {
	.cl-news-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.cl-news-featured {
		grid-template-columns: 1fr;
	}

	.cl-news-featured .cl-news-cover {
		min-height: 220px;
	}

	.cl-news-featured .cl-news-body {
		padding: 28px;
	}
}

@media (max-width: 575px) {
	.cl-news-header {
		padding: 40px 16px 28px;
	}

	.cl-news-header h1 {
		font-size: 30px;
	}

	.cl-news-header p {
		font-size: 16px;
	}

	.cl-news-filter {
		flex-wrap: nowrap;
		justify-content: flex-start;
		margin-left: -16px;
		margin-right: -16px;
		overflow-x: auto;
		padding: 0 16px 4px;
		scrollbar-width: none;
	}

	.cl-news-filter a {
		flex: 0 0 auto;
	}

	.cl-news-grid {
		grid-template-columns: 1fr;
	}

	.cl-news-featured h2 {
		font-size: 24px;
	}
}
