/* NOTÍCIAS - listagem e detalhe (integração com a API do CriaBlog) */

.page-header-subtitle {
	color: #546060;
	font-size: 16px;
	margin-top: -4px;
}

/* Filtro de categorias */
.noticias-filtros {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 30px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 4px;
}

.noticias-filtro-pill {
	--pill-color: var(--cor-principal);
	display: inline-block;
	white-space: nowrap;
	padding: 8px 18px;
	border-radius: 30px;
	border: 1px solid #d9e5f2;
	background: #fff;
	color: var(--cor-principal);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: all .25s ease;
}

.noticias-filtro-pill:hover {
	border-color: var(--pill-color);
	color: var(--pill-color);
	text-decoration: none;
}

.noticias-filtro-pill.active {
	background: var(--pill-color);
	border-color: var(--pill-color);
	color: #fff;
}

/* Grid de cards */
.noticia-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #d9e5f2;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(0, 32, 64, .08);
	transition: transform .25s ease, box-shadow .25s ease;
}

.noticia-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgba(0, 32, 64, .14);
}

.noticia-card-cover {
	position: relative;
	display: block;
	padding-top: 56%;
	background: linear-gradient(135deg, var(--cor-principal) 0%, var(--cor-complementar13) 100%);
	overflow: hidden;
}

.noticia-card-cover img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}

.noticia-card-cover:hover img {
	transform: scale(1.08);
}

.noticia-card-cover.no-image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: url(../img/logo.png) no-repeat center / 40% auto;
	opacity: .35;
}

.noticia-card-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .02em;
	padding: 5px 12px;
	border-radius: 30px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

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

.noticia-card-meta {
	color: #7c8a97;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .02em;
	margin-bottom: 8px;
}

.noticia-card-title {
	font-size: 19px;
	margin-bottom: 10px;
}

.noticia-card-title a {
	color: var(--cor-principal);
	text-decoration: none;
}

.noticia-card-title a:hover {
	color: var(--cor-complementar3);
}

.noticia-card-excerpt {
	color: #4a5a68;
	font-size: 14.5px;
	line-height: 1.6;
	margin-bottom: 16px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.noticia-card-link {
	margin-top: auto;
	color: var(--cor-complementar8);
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
}

.noticia-card-link:hover {
	color: var(--cor-principal);
	text-decoration: none;
}

.noticias-empty {
	display: block;
	background: #f95757;
	color: #fff;
	padding: 15px;
	margin-bottom: 34px;
	border-radius: 6px;
}

/* Detalhe da notícia */
.noticia-detalhe-breadcrumb {
	display: inline-block;
	color: var(--cor-principal);
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
}

.noticia-detalhe-breadcrumb:hover {
	color: var(--cor-complementar3);
	text-decoration: none;
}

.cabecalho h1 {
	color: var(--cor-principal);
	font-size: 28px;
	font-weight: 600;
}

.noticia-detalhe-categoria {
	display: inline-block;
	margin-bottom: 10px;
	padding: 4px 12px;
	background: var(--cor-complementar2);
	color: var(--cor-principal);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .02em;
	border-radius: 30px;
	text-decoration: none;
}

.noticia-detalhe-meta {
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: .02em;
}

.noticia-detalhe-imagem {
	border-radius: 10px;
}

.noticia-detalhe-conteudo {
	font-size: 16.5px;
	line-height: 1.85;
	color: #242424;
}

.noticia-detalhe-conteudo img {
	max-width: 100%;
	border-radius: 8px;
}

@media (max-width: 768px) {
	.noticia-card-body {
		padding: 18px;
	}
}
