/* ==========================================================================
   Blog da Neofin — home do blog, arquivos de categoria e complementos do single.
   Prefixo .nfb- para nao colidir com o CSS legado de .blog-post / #blog-page.

   Armadilhas conhecidas deste tema (ver antes de editar):
   - custom.css tem uma regra global `svg { max-width:50px; max-height:50px }`
     que clampa QUALQUER svg. Icone maior precisa de override explicito.
   - nao usar AOS aqui: aos.css esconde [data-aos] com especificidade 0,2,0 e
     briga com qualquer reveal proprio. Este arquivo nao depende de JS.
   ========================================================================== */

:root {
	--nfb-brand: #6e2cc9;
	--nfb-brand-dark: #5621a1;
	--nfb-brand-light: #8b4ad1;
	--nfb-ink: #1c1330;
	--nfb-text: #4a4458;
	--nfb-muted: #6b6478;
	--nfb-line: #e9e4f2;
	--nfb-surface: #ffffff;
	--nfb-tint: #f7f4fc;
	--nfb-radius: 16px;
	--nfb-shadow: 0 1px 2px rgba(28, 19, 48, .04), 0 8px 24px rgba(28, 19, 48, .06);
	--nfb-shadow-hover: 0 2px 4px rgba(28, 19, 48, .06), 0 16px 40px rgba(110, 44, 201, .14);
}

/* --------------------------------------------------------------- primitivos */

.nfb-chip {
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--nfb-tint);
	color: var(--nfb-brand-dark);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .01em;
	text-decoration: none;
	transition: background .18s ease, color .18s ease;
}

.nfb-chip:hover,
.nfb-chip:focus {
	background: var(--nfb-brand);
	color: #fff;
	text-decoration: none;
}

.nfb-chip--solid {
	background: rgba(255, 255, 255, .16);
	color: #fff;
	backdrop-filter: blur(6px);
}

.nfb-chip--solid:hover {
	background: #fff;
	color: var(--nfb-brand-dark);
}

.nfb-section {
	padding: 56px 0;
}

.nfb-section + .nfb-section {
	padding-top: 0;
}

.nfb-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 24px;
	margin-bottom: 28px;
}

.nfb-section-head h2 {
	margin: 0;
	color: var(--nfb-ink);
	font-size: 28px;
	font-weight: 800;
	line-height: 1.2;
}

.nfb-section-head p {
	width: 100%;
	max-width: 640px;
	margin: 6px 0 0;
	color: var(--nfb-muted);
	font-size: 15px;
	line-height: 1.55;
}

.nfb-section-link {
	color: var(--nfb-brand);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.nfb-section-link:hover {
	color: var(--nfb-brand-dark);
	text-decoration: underline;
}

/* -------------------------------------------------------------------- hero */

.nfb-hero {
	padding: 40px 0 28px;
	border-bottom: 1px solid var(--nfb-line);
	background: linear-gradient(180deg, var(--nfb-tint) 0%, #fff 100%);
}

.nfb-hero-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
	align-items: end;
	gap: 24px 40px;
}

.nfb-hero-eyebrow {
	display: block;
	margin-bottom: 8px;
	color: var(--nfb-brand);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.nfb-hero h1 {
	margin: 0;
	color: var(--nfb-ink);
	font-size: 40px;
	font-weight: 800;
	line-height: 1.12;
}

.nfb-hero p {
	max-width: 560px;
	margin: 12px 0 0;
	color: var(--nfb-text);
	font-size: 16px;
	line-height: 1.6;
}

@media (max-width: 991px) {
	.nfb-hero-inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.nfb-hero h1 {
		font-size: 30px;
	}
}

/* ---------------------------------------------------------- seletor de temas */
/* Divulgacao progressiva: linha compacta com as prioritarias + busca, e um
   painel sobreposto com as 12 agrupadas por macrotema. O painel e absolute
   de proposito — quando fechado o componente ocupa uma linha so, e os artigos
   (o objetivo real da pagina) sobem na tela. */

/* O painel e absolute e precisa passar por cima do grid de artigos que vem
   depois; sem um z-index no wrapper, os cards seguintes pintavam em cima. */
.nfb-temas {
	position: relative;
	z-index: 60;
	padding: 20px 0 8px;
}

.nfb-temas-box {
	position: relative;
	border: 1px solid var(--nfb-line);
	border-radius: 18px;
	background: var(--nfb-surface);
	box-shadow: var(--nfb-shadow);
}

.nfb-temas-box.is-open {
	border-color: #ddd0f0;
}

/* Grid em vez de flex: se as pills precisarem de duas linhas, elas quebram
   dentro da propria coluna e o "Ver todos os temas" continua fixo a direita,
   em vez de ser empurrado para uma linha so dele. */
.nfb-temas-bar {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px 12px;
	padding: 14px 16px;
}

.nfb-temas-label {
	flex: 0 0 auto;
	padding-right: 4px;
	color: var(--nfb-muted);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .07em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* --- busca de tema (vive dentro do painel) --- */

.nfb-temas-busca {
	display: flex;
	flex: 0 1 260px;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border: 1px solid var(--nfb-line);
	border-radius: 999px;
	color: var(--nfb-muted);
}

.nfb-temas-busca:focus-within {
	border-color: var(--nfb-brand-light);
	box-shadow: 0 0 0 3px rgba(110, 44, 201, .1);
}

.nfb-temas-busca input {
	min-width: 0;
	flex: 1 1 auto;
	border: 0;
	background: transparent;
	color: var(--nfb-ink);
	font-size: 14px;
	outline: none;
}

/* --- pills da linha compacta --- */

.nfb-temas-rapidas {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	min-width: 0;
}

.nfb-tema-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 16px;
	border: 1px solid var(--nfb-line);
	border-radius: 999px;
	background: var(--nfb-surface);
	color: var(--nfb-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
	white-space: nowrap;
	text-decoration: none;
	transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.nfb-tema-pill:hover {
	border-color: var(--nfb-brand-light);
	background: var(--nfb-tint);
	color: var(--nfb-brand-dark);
	text-decoration: none;
}

.nfb-tema-pill.is-active {
	border-color: var(--nfb-brand);
	background: var(--nfb-brand);
	color: #fff;
	font-weight: 700;
}

.nfb-tema-check {
	flex-shrink: 0;
}

/* --- botao do painel --- */

.nfb-temas-toggle {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 16px;
	border: 1px solid #ddd0f0;
	border-radius: 999px;
	background: var(--nfb-surface);
	color: var(--nfb-brand);
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
	transition: background .18s ease, border-color .18s ease;
}

.nfb-temas-toggle:hover {
	border-color: var(--nfb-brand);
	background: var(--nfb-tint);
}

.nfb-temas-toggle svg {
	transition: transform .2s ease;
}

.nfb-temas-box.is-open .nfb-temas-toggle svg {
	transform: rotate(180deg);
}

/* --- painel --- */

.nfb-temas-painel {
	position: absolute;
	z-index: 50;
	top: calc(100% + 8px);
	right: 0;
	left: 0;
	border: 1px solid var(--nfb-line);
	border-radius: 18px;
	background: var(--nfb-surface);
	box-shadow: 0 4px 12px rgba(28, 19, 48, .06), 0 24px 60px rgba(28, 19, 48, .14);
}

.nfb-temas-painel-topo {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	padding: 16px 26px;
	border-bottom: 1px solid var(--nfb-line);
}

.nfb-temas-painel-titulo {
	margin: 0;
	color: var(--nfb-ink);
	font-size: 15px;
	font-weight: 800;
}

.nfb-temas-grupos {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px 28px;
	padding: 22px 26px 20px;
}

.nfb-temas-grupo-titulo {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	padding-left: 4px;
	color: var(--nfb-brand-dark);
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.nfb-temas-grupo-ico {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 8px;
	background: var(--nfb-tint);
	color: var(--nfb-brand);
}

.nfb-temas-lista {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nfb-tema-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 12px;
	border-radius: 10px;
	color: var(--nfb-text);
	font-size: 14.5px;
	line-height: 1.35;
	text-decoration: none;
	transition: background .16s ease, color .16s ease;
}

.nfb-tema-item:hover {
	background: var(--nfb-tint);
	color: var(--nfb-brand-dark);
	text-decoration: none;
}

.nfb-tema-item.is-active {
	background: var(--nfb-tint);
	color: var(--nfb-brand-dark);
	font-weight: 700;
}

/* O numero informa volume, mas nao disputa atencao com o nome do tema. */
.nfb-tema-num {
	flex-shrink: 0;
	color: #9d96ac;
	font-size: 12.5px;
	font-variant-numeric: tabular-nums;
}

.nfb-tema-item:hover .nfb-tema-num {
	color: var(--nfb-brand-light);
}

.nfb-temas-vazio {
	margin: 0;
	padding: 0 26px 22px;
	color: var(--nfb-muted);
	font-size: 14px;
}

.nfb-temas-rodape {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	padding: 14px 26px;
	border-top: 1px solid var(--nfb-line);
}

.nfb-temas-ajuda {
	color: var(--nfb-muted);
	font-size: 13.5px;
}

.nfb-temas-ajuda a {
	color: var(--nfb-brand);
	font-weight: 700;
	text-decoration: underline;
}

.nfb-temas-todos {
	padding: 9px 16px;
	border: 1px solid #ddd0f0;
	border-radius: 999px;
	color: var(--nfb-brand);
	font-size: 13.5px;
	font-weight: 700;
	white-space: nowrap;
	text-decoration: none;
}

.nfb-temas-todos:hover {
	border-color: var(--nfb-brand);
	background: var(--nfb-tint);
	color: var(--nfb-brand-dark);
	text-decoration: none;
}

@media (max-width: 1199px) {
	.nfb-temas-grupos {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.nfb-temas-bar {
		grid-template-columns: minmax(0, 1fr);
		padding: 12px;
	}

	.nfb-temas-busca {
		flex: 1 1 100%;
	}

	.nfb-temas-painel-topo {
		padding: 14px 16px;
	}

	/* As prioritarias rolam na horizontal SO no mobile, onde e gesto natural e
	   o "Ver todos os temas" logo abaixo deixa claro que ha mais. */
	.nfb-temas-rapidas {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		margin: 0 -12px;
		padding: 0 12px;
	}

	.nfb-temas-rapidas::-webkit-scrollbar {
		display: none;
	}

	.nfb-temas-toggle {
		justify-content: center;
	}

	.nfb-temas-grupos {
		grid-template-columns: minmax(0, 1fr);
		max-height: 60vh;
		overflow-y: auto;
		padding: 18px 16px 14px;
	}

	.nfb-temas-rodape {
		padding: 14px 16px;
	}

	.nfb-temas-todos {
		flex: 1 1 100%;
		text-align: center;
	}
}

/* -------------------------------------------------------------------- cards */

.nfb-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px 24px;
}

.nfb-grid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nfb-grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 991px) {
	.nfb-grid,
	.nfb-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575px) {
	.nfb-grid,
	.nfb-grid--2,
	.nfb-grid--4 {
		grid-template-columns: minmax(0, 1fr);
	}
}

.nfb-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--nfb-line);
	border-radius: var(--nfb-radius);
	background: var(--nfb-surface);
	box-shadow: var(--nfb-shadow);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.nfb-card:hover {
	transform: translateY(-3px);
	border-color: #ddd0f0;
	box-shadow: var(--nfb-shadow-hover);
}

.nfb-card-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--nfb-tint);
}

.nfb-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.nfb-card:hover .nfb-card-media img {
	transform: scale(1.04);
}

.nfb-card-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 10px;
	padding: 18px;
}

.nfb-card-title {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.34;
}

.nfb-card-title a {
	color: var(--nfb-ink);
	text-decoration: none;
}

.nfb-card-title a:hover {
	color: var(--nfb-brand);
}

.nfb-card-excerpt {
	margin: 0;
	color: var(--nfb-muted);
	font-size: 14px;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.nfb-card-excerpt--1 {
	-webkit-line-clamp: 1;
}

.nfb-card-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--nfb-line);
	color: var(--nfb-muted);
	font-size: 13px;
}

.nfb-card-foot a {
	color: var(--nfb-muted);
	font-weight: 600;
	text-decoration: none;
}

.nfb-card-foot a:hover {
	color: var(--nfb-brand);
}

.nfb-card-avatar {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	object-fit: cover;
}

.nfb-dot::before {
	content: "•";
	margin-right: 8px;
	color: #c9c1d8;
}

/* Card em destaque (primeiro de "Mais lidos"): ocupa duas colunas. */
.nfb-grid .nfb-card--wide {
	grid-column: span 2;
}

.nfb-card--wide .nfb-card-title {
	font-size: 22px;
}

.nfb-card--wide .nfb-card-excerpt {
	-webkit-line-clamp: 3;
	font-size: 15px;
}

@media (min-width: 992px) {
	.nfb-card--wide {
		flex-direction: row;
	}

	.nfb-card--wide .nfb-card-media {
		flex: 0 0 52%;
		aspect-ratio: auto;
	}

	.nfb-card--wide .nfb-card-body {
		justify-content: center;
		padding: 26px 28px;
	}

	/* Sem o rodape colado no fim: no card largo o bloco todo fica centralizado. */
	.nfb-card--wide .nfb-card-foot {
		margin-top: 6px;
	}
}

@media (max-width: 575px) {
	.nfb-grid .nfb-card--wide {
		grid-column: span 1;
	}
}

/* Numeracao discreta dos mais lidos. */
.nfb-rank {
	position: absolute;
	top: 12px;
	left: 12px;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(28, 19, 48, .72);
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	backdrop-filter: blur(4px);
}

/* ------------------------------------------------------- solucoes em destaque */

.nfb-solucoes {
	border-radius: 24px;
	background: linear-gradient(135deg, #2a1150 0%, var(--nfb-brand-dark) 55%, var(--nfb-brand) 100%);
	color: #fff;
}

/* Padding proprio em vez de um .container aninhado (que dobraria as gutters). */
.nfb-solucoes-inner {
	padding: 40px 36px;
}

@media (max-width: 767px) {
	.nfb-solucoes-inner {
		padding: 28px 20px;
	}
}

.nfb-solucoes .nfb-section-head h2 {
	color: #fff;
}

.nfb-solucoes .nfb-section-head p {
	color: rgba(255, 255, 255, .78);
}

.nfb-sol-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 14px;
}

@media (max-width: 1199px) {
	.nfb-sol-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.nfb-sol-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 479px) {
	.nfb-sol-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.nfb-sol {
	display: flex;
	flex-direction: column;
	gap: 8px;
	height: 100%;
	padding: 20px 18px;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 14px;
	background: rgba(255, 255, 255, .07);
	color: #fff;
	text-decoration: none;
	transition: background .2s ease, transform .2s ease, border-color .2s ease;
}

.nfb-sol:hover {
	transform: translateY(-3px);
	border-color: rgba(255, 255, 255, .34);
	background: rgba(255, 255, 255, .14);
	color: #fff;
	text-decoration: none;
}

.nfb-sol-ico {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: rgba(255, 255, 255, .14);
	font-size: 18px;
}

.nfb-sol-name {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

.nfb-sol-desc {
	color: rgba(255, 255, 255, .74);
	font-size: 13px;
	line-height: 1.5;
}

.nfb-sol-more {
	margin-top: auto;
	padding-top: 8px;
	font-size: 13px;
	font-weight: 700;
}

/* ----------------------------------------------------------------- newsletter */

.nfb-news {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 24px 40px;
	padding: 34px 36px;
	border: 1px solid var(--nfb-line);
	border-radius: 24px;
	background: var(--nfb-tint);
}

.nfb-news h2 {
	margin: 0 0 8px;
	color: var(--nfb-ink);
	font-size: 26px;
	font-weight: 800;
	line-height: 1.2;
}

.nfb-news p {
	max-width: 560px;
	margin: 0;
	color: var(--nfb-text);
	font-size: 15px;
	line-height: 1.6;
}

.nfb-news-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 26px;
	border: 0;
	border-radius: 999px;
	background: var(--nfb-brand);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}

.nfb-news-btn:hover {
	transform: translateY(-2px);
	background: var(--nfb-brand-dark);
	color: #fff;
	text-decoration: none;
}

.nfb-news-note {
	margin: 10px 0 0;
	color: var(--nfb-muted);
	font-size: 13px;
}

@media (max-width: 767px) {
	.nfb-news {
		grid-template-columns: minmax(0, 1fr);
		padding: 26px 22px;
	}

	.nfb-news h2 {
		font-size: 22px;
	}
}

/* ------------------------------------------------------- materiais e ferramentas */

.nfb-mini {
	display: flex;
	gap: 14px;
	height: 100%;
	padding: 18px;
	border: 1px solid var(--nfb-line);
	border-radius: var(--nfb-radius);
	background: var(--nfb-surface);
	color: inherit;
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.nfb-mini:hover {
	transform: translateY(-3px);
	border-color: #ddd0f0;
	box-shadow: var(--nfb-shadow-hover);
	color: inherit;
	text-decoration: none;
}

.nfb-mini-ico {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--nfb-tint);
	color: var(--nfb-brand);
	font-size: 20px;
}

.nfb-mini-name {
	display: block;
	color: var(--nfb-ink);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.32;
}

.nfb-mini-desc {
	display: block;
	margin-top: 4px;
	color: var(--nfb-muted);
	font-size: 13px;
	line-height: 1.5;
}

.nfb-mini-tag {
	display: inline-block;
	margin-bottom: 6px;
	color: var(--nfb-brand);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}

/* Card de material com capa. */
.nfb-material {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--nfb-line);
	border-radius: var(--nfb-radius);
	background: var(--nfb-surface);
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease;
}

.nfb-material:hover {
	transform: translateY(-3px);
	box-shadow: var(--nfb-shadow-hover);
	text-decoration: none;
}

.nfb-material-media {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--nfb-tint);
}

.nfb-material-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nfb-material-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 6px;
	padding: 18px;
}

/* -------------------------------------------------------------- prova social */
/* Espelha o card de /cases-de-sucesso: thumbnail, tag de segmento, headline,
   descricao e pill de metrica. */

.nfb-case {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--nfb-line);
	border-radius: var(--nfb-radius);
	background: var(--nfb-surface);
	box-shadow: var(--nfb-shadow);
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.nfb-case:hover {
	transform: translateY(-3px);
	border-color: #ddd0f0;
	box-shadow: var(--nfb-shadow-hover);
	text-decoration: none;
}

.nfb-case-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--nfb-tint);
}

.nfb-case-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.nfb-case:hover .nfb-case-media img {
	transform: scale(1.04);
}

.nfb-case-tag {
	position: absolute;
	bottom: 12px;
	left: 12px;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(28, 19, 48, .78);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .05em;
	text-transform: uppercase;
	backdrop-filter: blur(6px);
}

.nfb-case-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 8px;
	padding: 18px;
}

.nfb-case-title {
	display: -webkit-box;
	color: var(--nfb-ink);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.34;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.nfb-case:hover .nfb-case-title {
	color: var(--nfb-brand);
}

.nfb-case-desc {
	display: -webkit-box;
	color: var(--nfb-muted);
	font-size: 13.5px;
	line-height: 1.55;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.nfb-case-metric {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-top: 4px;
	padding: 10px 14px;
	border-radius: 12px;
	background: var(--nfb-tint);
	color: var(--nfb-muted);
	font-size: 13px;
	line-height: 1.3;
}

.nfb-case-metric strong {
	color: var(--nfb-brand);
	font-size: 24px;
	font-weight: 800;
	line-height: 1;
}

.nfb-case-cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 12px;
	color: var(--nfb-brand);
	font-size: 13px;
	font-weight: 700;
	transition: gap .18s ease;
}

.nfb-case:hover .nfb-case-cta,
.nfb-material:hover .nfb-case-cta {
	gap: 10px;
}

/* -------------------------------------------------------- busca (topo do blog) */

.nfb-search {
	position: relative;
}

.nfb-search-form {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 6px 6px 16px;
	border: 1px solid var(--nfb-line);
	border-radius: 999px;
	background: #fff;
	box-shadow: var(--nfb-shadow);
}

.nfb-search-form:focus-within {
	border-color: var(--nfb-brand-light);
	box-shadow: 0 0 0 4px rgba(110, 44, 201, .1);
}

.nfb-search-input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	color: var(--nfb-ink);
	font-size: 15px;
	outline: none;
}

.nfb-search-btn {
	flex: 0 0 auto;
	padding: 10px 20px;
	border: 0;
	border-radius: 999px;
	background: var(--nfb-brand);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background .18s ease;
}

.nfb-search-btn:hover {
	background: var(--nfb-brand-dark);
}

.nfb-search-ico {
	flex: 0 0 auto;
	color: var(--nfb-muted);
	/* o tema clampa svg em 50px globalmente; aqui o tamanho ja e menor */
}

/* ------------------------------------------------- complementos do single.php */

/* Chip de categoria dentro da barra de meta do artigo. */
.post-meta-line .nfb-chip {
	font-size: 12px;
}

/* Breadcrumb: o nivel de categoria pode ser longo, entao quebra bem no mobile. */
.breadcrumb ol {
	justify-content: center;
}

@media (max-width: 575px) {
	.breadcrumb li {
		font-size: 13px;
	}
}

/* ------------------------------------------------------ arquivo de categoria */

.nfb-archive-head {
	padding: 36px 0 28px;
	border-bottom: 1px solid var(--nfb-line);
	background: linear-gradient(180deg, var(--nfb-tint) 0%, #fff 100%);
}

.nfb-archive-head h1 {
	margin: 0;
	color: var(--nfb-ink);
	font-size: 34px;
	font-weight: 800;
	line-height: 1.15;
}

.nfb-archive-head p {
	max-width: 720px;
	margin: 10px 0 0;
	color: var(--nfb-text);
	font-size: 16px;
	line-height: 1.6;
}

.nfb-archive-count {
	display: inline-block;
	margin-top: 12px;
	color: var(--nfb-muted);
	font-size: 14px;
}

.nfb-crumbs {
	margin-bottom: 12px;
	color: var(--nfb-muted);
	font-size: 13px;
	font-weight: 600;
}

.nfb-crumbs a {
	color: var(--nfb-muted);
	text-decoration: none;
}

.nfb-crumbs a:hover {
	color: var(--nfb-brand);
}

.nfb-crumbs span + span::before {
	content: "›";
	margin: 0 8px;
	color: #c9c1d8;
}

/* Paginacao do wp_pagenavi dentro do blog. */
#blog-page .wp-pagenavi {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-top: 12px;
	border: 0;
}

#blog-page .wp-pagenavi a,
#blog-page .wp-pagenavi span {
	padding: 8px 14px;
	border: 1px solid var(--nfb-line);
	border-radius: 10px;
	color: var(--nfb-text);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

#blog-page .wp-pagenavi span.current {
	border-color: var(--nfb-brand);
	background: var(--nfb-brand);
	color: #fff;
}

#blog-page .wp-pagenavi a:hover {
	border-color: var(--nfb-brand-light);
	color: var(--nfb-brand);
}

/* ------------------------------------------------------------------- estado */

.nfb-empty {
	padding: 40px 0;
	color: var(--nfb-muted);
	font-size: 15px;
	text-align: center;
}
