/**
 * Estilos da página Notícias (Custom Blog Page) e arquivos de categoria
 *
 * @package PT2026
 */

/* --- Header da página Notícias / Categorias (título, círculos, redes, menu) --- */


.pt2026-noticias-page-header {
	border-bottom: 1px solid #E4DED2;
	background: #fff;
	padding-top: 9px;
	padding-bottom: 12px;
}

.pt2026-noticias-social-label {
    font-family: var(--pt2026-font-body);
    font-size: 12px;
    font-weight: 700;
    color: #202020;
    text-transform: uppercase;
}

.pt2026-noticias-header-left {
	padding-top: 40px;
	column-gap: 8px !important;
	row-gap: 2px !important;
	align-content: flex-start;
}

.pt2026-noticias-header-right {
	padding-right: 16px !important;
	padding-bottom: 44px;
}

.pt2026-noticias-page-title {
	font-family: var(--pt2026-font-display-ultra-cond);
	font-size: 48px;
	font-weight: 900;
	color: #202020;
	letter-spacing: 2%;
	text-transform: uppercase;
	line-height: 100%;
}

.pt2026-noticias-subtitle {
	font-family: var(--pt2026-font-display-cond);
	font-size: 48px;
	font-weight: 700;
	color: #202020;
	letter-spacing: 2%;
	line-height: 100%;
}

/* Gráfico 4 cores sobrepostas (página Notícias — assets/images/tags-color.svg) */
.pt2026-noticias-tags-color-img {
	display: block;
	width: auto;
	height: 34px;
	flex-shrink: 0;
}

@media (min-width: 992px) {
	.pt2026-noticias-tags-color-img {
		height: 40px;
	}
}

/* Círculos (1 na categoria / tag) */
.pt2026-noticias-circles {
	display: flex;
	align-items: center;
}

.pt2026-noticias-circle {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	flex-shrink: 0;
}

.pt2026-circle-red    { background-color: #e4142c; }
.pt2026-circle-yellow  { background-color: #feb02a; }
.pt2026-circle-green   { background-color: #00a62d; }
.pt2026-circle-blue    { background-color: #2398f6; }

.pt2026-circle-category {
	width: 30px;
	height: 30px;
}

@media (max-width: 766.98px) {
	/* QA 6.4: círculo menor e menor respiro quando quebra linha no header */
	.pt2026-noticias-circle,
	.pt2026-circle-category {
		width: 20px;
		height: 20px;
	}

	.pt2026-noticias-header-left {
		column-gap: 6px !important;
		row-gap: 0 !important;
	}

	/* Tag header: reduzir tipografia para manter em uma linha */
	.pt2026-noticias-header-left {
		flex-wrap: nowrap !important;
	}

	.pt2026-noticias-subtitle {
		letter-spacing: 0 !important;
	}
}

.pt2026-noticias-categories-nav {
	border-bottom: 1px solid #E4DED2;
	margin: 0 auto !important;
	padding-top: 8px;
	padding-bottom: 8px;
}

.pt2026-noticias-categories-menu {
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	padding-bottom: 2px;
}

.pt2026-noticias-categories-menu li {
	display: inline-block;
	flex-shrink: 0;
	white-space: nowrap;
}

.pt2026-noticias-categories-menu a {
	color: #1a1a1a;
	text-decoration: none;
	font-size: 0.95rem;
}

.pt2026-noticias-categories-menu a:hover,
.pt2026-noticias-categories-menu a:focus {
	color: #b71c1c;
	text-decoration: none;
	outline: none;
	box-shadow: none;
}

.pt2026-noticias-categories-menu a:focus-visible {
	outline: none;
	box-shadow: none;
}

.pt2026-noticias-categories-menu .current-menu-item > a,
.pt2026-noticias-categories-menu .current-menu-ancestor > a,
.pt2026-noticias-categories-menu .current_page_item > a,
.pt2026-noticias-categories-menu .current_page_ancestor > a {
	font-weight: 700;
}

@media (max-width: 767.98px) {
	/* QA 6.6: navbar secundária mobile com fonte 14px */
	.pt2026-noticias-categories-menu a {
		font-size: 14px;
	}

	/* QA 6.7: navbar secundária sticky no mobile */
	.pt2026-noticias-categories-nav {
		position: sticky;
		top: 72px;
		z-index: 1000;
		background: #fff;
		transition: padding-top 0.2s ease;
	}

	/* No scroll down (mobile), cria respiro superior extra */
	.pt2026-noticias-categories-nav.pt2026-noticias-categories-nav--scroll-down {
		padding-top: 24px;
	}
}

/* --- Título e descrição no conteúdo (category.php descrição) --- */
.content-post-header .content-post-title {
	font-size: 1.75rem;
	font-weight: 700;
	color: #1a1a1a;
}

/* Editorias: título com barra colorida (meta isEditorial + color na categoria) */
.content-post-title-editorial {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.content-post-title-color-bar {
	display: inline-block;
	min-width: 60px;
	height: 6px;
	border-radius: 3px;
	flex-shrink: 0;
}

.editorias-description {
	font-size: 1rem;
	line-height: 1.5;
	color: #444;
}

.cards-list.card-list-featured .row {
	row-gap: 1.5rem;
}

/* Paginação da página Notícias */
.pt2026-noticias-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 1rem;
	row-gap: 0.5rem;
	margin-top: 2rem;
	font-family: var(--pt2026-font-body);
}

/* QA 6.2: respiro entre listagem e paginação em todas as páginas */
.cards-list + .pt2026-noticias-pagination {
	margin-top: 80px;
}

@media (max-width: 766.98px) {
	.cards-list + .pt2026-noticias-pagination {
		margin-top: 60px;
	}
}

.pt2026-noticias-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.25rem;
	padding: 0.125rem 0.2rem;
	color: #1a1a1a;
	font-size: 1.125rem;
	font-weight: 400;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.pt2026-noticias-pagination .page-numbers.current {
	font-weight: 600;
	color: #1a1a1a;
	border-bottom-color: #e4142c;
}

.pt2026-noticias-pagination a.page-numbers:hover,
.pt2026-noticias-pagination a.page-numbers:focus {
	color: #1a1a1a;
	border-bottom-color: #e4142c;
}

.pt2026-noticias-pagination .page-numbers.prev,
.pt2026-noticias-pagination .page-numbers.next {
	padding-inline: 0.35rem;
	font-size: 1.3rem;
}

/* --- Single: seção de posts relacionados --- */
.single-related-posts {
	margin-top: 3rem;
	margin-bottom: 1rem;
}

.single-related-posts .h5 {
	color: #3b2b16;
	letter-spacing: 0.05em;
}

.related-card {
	border-radius: 1rem;
	background-color: #fff;
	padding: 0.75rem 0.9rem 1rem;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.related-card-thumb {
	height: 140px;
	margin-bottom: 0.5rem;
}

.related-card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.related-card-thumb-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: #f3f3f3;
	color: #888;
	text-decoration: none;
}

.related-card-thumb-placeholder-text {
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.related-card-category {
	font-size: 0.7rem;
	padding: 0.3em 0.6em;
}

.related-card-title a:hover,
.related-card-title a:focus {
	color: #b71c1c;
	text-decoration: none;
}

.related-card-excerpt {
	color: #555;
	line-height: 1.45;
}

@media (max-width: 575.98px) {
	.related-card-thumb {
		height: 120px;
	}
}

/* --- Single: topo do artigo (link, categoria, título, resumo, imagem) --- */
.single-post-header {
	margin-bottom: 0;
}

.single-post-back-link {
	display: inline-block;
	color: var(--pt2026-secondary-btn-fg);
	text-decoration: none;
	border-bottom: var(--pt2026-secondary-btn-line-width) solid var(--pt2026-secondary-btn-line);
	padding-bottom: var(--pt2026-secondary-btn-pad-underline);
	transition:
		color var(--pt2026-transition-hover),
		border-bottom-color var(--pt2026-transition-hover);
}

.single-post-back-link:hover,
.single-post-back-link:focus-visible {
	color: var(--pt2026-red);
	border-bottom-color: transparent;
}

.single-post-back-arrow {
	margin-right: 0.15em;
}

.single-post-title {
	font-size: 2rem;
	color: #000;
	text-transform: uppercase;
	line-height: 1.2;
}

@media (min-width: 768px) {
	.single-post-title {
		font-size: 2.4rem;
	}
}

.single-post-excerpt {
	font-size: 1.05rem;
	color: #333;
	line-height: 1.5;
}

.single-post-image-wrap {
	width: 100%;
	overflow: hidden;
}

.single-post-image {
	width: 100%;
	height: auto;
	max-height: 520px;
	object-fit: cover;
	display: block;
}

.single-post-image-caption {
	margin: 0.5rem 0 0;
	padding: 0;
	font-size: 0.9rem;
	color: #666;
	line-height: 1.4;
}

/* --- Single: meta lateral + tópicos --- */
.single-post-main-row {
	margin-bottom: 2rem;
}

.single-post-author-meta p {
	margin-bottom: 0.35rem;
}

.single-post-author {
	color: #000;
}

.single-post-photo-credit {
	font-style: italic;
}

.single-post-share-label {
	color: #999;
	letter-spacing: 0.08em;
}

.single-post-topics-title {
	color: #000;
}

/* Alinhado a single.css: pill branca, borda clara (sidebar Tópicos no single). */
.single-post-topic-badge {
	display: inline-block;
	padding: 0.45rem 1rem;
	border-radius: 999px;
	background-color: #fff;
	border: 1px solid #e4ded2;
	color: #4a3f35;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.single-post-topic-badge:hover,
.single-post-topic-badge:focus {
	background-color: #fff;
	border-color: #c41e3a;
	color: #c41e3a;
	text-decoration: none;
}

/* --- 404 (página não encontrada) --- */
.page-404 .error-404 {
	max-width: 100%;
}

.page-404 .sub-heading-text-404 {
	font-size: 1.1rem;
	line-height: 1.5;
	color: #444;
}

.page-404 .go-back-home a:hover,
.page-404 .go-back-home a:focus {
	text-decoration: none;
}

.page-404 .limit {
	border-top: 1px solid #eee;
	padding-top: 2rem;
}

.page-404 .pt2026-banners-carousel {
	margin-top: 2rem;
}
