:root {
	--primary: #2563eb;
	--primary-dark: #1d4ed8;
	--primary-soft: #eff6ff;

	--secondary: #0f172a;
	--text: #334155;
	--text-light: #64748b;

	--bg: #f8fafc;
	--white: #ffffff;
	--line: #e2e8f0;
	--line-soft: #f1f5f9;

	--radius-sm: 14px;
	--radius-md: 18px;
	--radius-lg: 24px;
	--radius-xl: 32px;

	--shadow-xs: 0 2px 10px rgba(15, 23, 42, 0.04);
	--shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.06);
	--shadow-md: 0 16px 38px rgba(15, 23, 42, 0.09);
	--shadow-lg: 0 22px 60px rgba(15, 23, 42, 0.14);

	--font: "DM Sans", sans-serif;
	--transition: all 0.35s ease;
}

/* #region Global */
/* body {
  font-family: var(--font);
  background: var(--bg);
  margin: 0;
  color: var(--text);
}

main.blog-page {
  display: block;
  width: 100%;
  overflow: visible;
}
 */
.blog-shell,
.blog-section {
	width: 100%;
}

.blog-container {
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}

.blog-section {
	position: relative;
}

.blog-section.py-4 {
	padding-top: 5rem !important;
	padding-bottom: 5rem !important;
}

.bg-white {
	background: var(--white) !important;
}

.mb-4 {
	margin-bottom: 2.4rem !important;
}

.row.g-3 {
	--bs-gutter-x: 1.5rem;
	--bs-gutter-y: 1.5rem;
}

.border-top {
	border-top: 1px solid var(--line-soft) !important;
}

/* #endregion Global */

/* #region Hero */
.hero-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	grid-template-rows: 280px 220px;
	gap: 1rem;
	padding: 1.25rem 0 2rem;
	background: var(--white);
}

.hero-main {
	grid-row: 1 / 3;
}

.hero-side-stack {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.hero-card {
	position: relative;
	border-radius: var(--radius-lg);
	overflow: hidden;
	min-height: 100%;
	box-shadow: var(--shadow-sm);
	transition: var(--transition);
	isolation: isolate;
}

.hero-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-lg);
}

.hero-card .card-overlay-dark {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top,
			rgba(2, 6, 23, 0.88) 0%,
			rgba(2, 6, 23, 0.42) 45%,
			rgba(2, 6, 23, 0.08) 100%);
	z-index: 1;
}

.hero-card-body {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 1.6rem;
	z-index: 2;
}

.hero-card-body .meta {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin-bottom: 0.8rem;
	flex-wrap: wrap;
}

.hero-card-body .meta-date {
	font-size: 0.74rem;
	color: rgba(255, 255, 255, 0.75);
}

.hero-card-body .meta-cat {
	font-size: 0.72rem;
	font-weight: 700;
	color: #bfdbfe;
	background: rgba(37, 99, 235, 0.18);
	border: 1px solid rgba(191, 219, 254, 0.18);
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	backdrop-filter: blur(8px);
}

.hero-card-body h2 {
	font-size: 2rem;
	font-weight: 800;
	color: #fff;
	line-height: 1.2;
	margin: 0;
	max-width: 90%;
}

.hero-card-body h3 {
	font-size: 1.1rem;
	font-weight: 700;
	color: #fff;
	line-height: 1.35;
	margin: 0;
	max-width: 92%;
}

.hero-mobile {
	display: none;
	position: relative;
	height: 300px;
	overflow: hidden;
	border-radius: var(--radius-lg);
	margin: 1rem 0 0;
	box-shadow: var(--shadow-sm);
}

.hero-mobile .bg {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #cbd5e1, #475569);
}

.hero-mobile .overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top,
			rgba(2, 6, 23, 0.85) 0%,
			rgba(2, 6, 23, 0.35) 50%,
			transparent);
}

.hero-mobile-body {
	position: absolute;
	bottom: 0;
	left: 0;
	padding: 1.4rem;
	z-index: 2;
}

.hero-mobile-body span {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	color: #bfdbfe;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	background: rgba(37, 99, 235, 0.15);
	margin-bottom: 0.75rem;
}

.hero-mobile-body h2 {
	font-size: 1.3rem;
	font-weight: 800;
	color: #fff;
	line-height: 1.3;
	margin: 0;
}

/* #endregion Hero */

/* #region Títulos */
.section-label {
	display: inline-flex;
	align-items: center;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--primary);
	font-weight: 800;
}

.section-rule {
	display: inline-block;
	width: 3rem;
	height: 2px;
	background: linear-gradient(90deg, var(--primary), transparent);
	vertical-align: middle;
	margin-left: 0.75rem;
	border-radius: 999px;
}

.section-title {
	font-size: clamp(28px, 5vw, 42px);
	font-weight: 800;
	color: #0a0a0a;
	line-height: 1.15;
	letter-spacing: -0.03em;
	max-width: 600px;
}

/* #endregion Títulos */

/* #region Posts em Destaque */
.featured-card {
	position: relative;
	border-radius: var(--radius-lg);
	overflow: hidden;
	height: 420px;
	box-shadow: var(--shadow-sm);
	transition: var(--transition);
	isolation: isolate;
}

.featured-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--shadow-lg);
}

.featured-card .card-bg {
	position: absolute;
	inset: 0;
	transition: transform 0.5s ease;
}

.featured-card:hover .card-bg {
	transform: scale(1.06);
}

.featured-card .card-dark {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top,
			rgba(2, 6, 23, 0.92) 0%,
			rgba(2, 6, 23, 0.5) 50%,
			transparent 100%);
}

.featured-card-body {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 1.75rem;
	color: #fff;
	z-index: 2;
}

.featured-card-body .fc-meta,
.featured-card-body .fc-comments {
	font-size: 0.76rem;
	color: rgba(255, 255, 255, 0.78);
	margin-bottom: 0.65rem;
	line-height: 1.5;
	margin-right: 20px;
}

.featured-card-body h3 {
	font-size: 1.2rem;
	font-weight: 800;
	line-height: 1.35;
	margin: 0 0 0.9rem;
}

.featured-card-body p {
	font-size: 0.88rem;
	color: rgba(255, 255, 255, 0.8);
	margin: 0 0 1rem;
	line-height: 1.75;
	max-width: 95%;
}

.featured-card-body .read-more {
	font-size: 0.8rem;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	transition: var(--transition);
	color: #fff;
	margin-top: 0.25rem;
}

.featured-card:hover .read-more {
	gap: 0.8rem;
	color: #bfdbfe;
}

/* #endregion Posts em Destaque */

/* #region Categorias */
.cat-card {
	cursor: pointer;
	background: var(--white);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-lg);
	padding: 1.2rem;
	height: 100%;
	transition: var(--transition);
	box-shadow: var(--shadow-xs);
}

.cat-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-md);
	border-color: rgba(37, 99, 235, 0.16);
}

.cat-img {
	border-radius: var(--radius-md);
	overflow: hidden;
	height: 210px;
	margin-bottom: 1rem;
}

.cat-img-inner {
	width: 100%;
	height: 100%;
	transition: transform 0.45s ease;
}

.cat-card:hover .cat-img-inner {
	transform: scale(1.08);
}

.cat-card .d-flex.align-items-center.justify-content-between {
	gap: 1rem;
	margin-bottom: 0.8rem !important;
	align-items: center !important;
	flex-wrap: wrap;
}

.cat-label {
	font-size: 0.72rem;
	font-weight: 800;
	color: var(--primary);
	letter-spacing: 0.08em;
}

.cat-meta {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.74rem;
	color: var(--text-light);
	line-height: 1.4;
	text-align: right;
	flex-shrink: 0;
}

.cat-title {
	font-size: 1rem;
	font-weight: 800;
	color: var(--secondary);
	line-height: 1.45;
	margin-top: 0.35rem;
}

/* #endregion Categorias */

/* #region Últimas Postagens */
.latest-card {
	background: var(--white);
	border-radius: 1.6rem;
	overflow: hidden;
	border: 1px solid var(--line-soft);
	box-shadow: var(--shadow-xs);
	cursor: pointer;
	height: 100%;
	transition: var(--transition);
	margin-bottom: 30px;
}

.latest-card:hover {
	transform: translateY(-7px);
	box-shadow: var(--shadow-md);
	border-color: rgba(37, 99, 235, 0.16);
}

.latest-thumb {
	height: 250px;
	overflow: hidden;
	position: relative;
}

.latest-thumb-inner {
	width: 100%;
	height: 100%;
	transition: transform 0.45s ease;
}

.latest-card:hover .latest-thumb-inner {
	transform: scale(1.08);
}

.latest-card-body {
	padding: 1.35rem 1.25rem 1.3rem;
}

.latest-cat {
	display: inline-flex;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	background: var(--primary-soft);
	color: var(--primary);
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	margin-bottom: 0.85rem;
}

.latest-title {
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--secondary);
	line-height: 1.45;
	margin: 0 0 1.15rem;
	min-height: 60px;
}

.latest-card-body .d-flex.align-items-center.gap-2 {
	gap: 0.75rem !important;
	margin-top: 0.2rem;
	flex-wrap: nowrap;
}

.latest-avatar {
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 50%;
	background: #e2e8f0;
	flex-shrink: 0;
}

.latest-author {
	font-size: 0.84rem;
	font-weight: 700;
	color: var(--secondary);
	line-height: 1.2;
	margin-bottom: 0.15rem !important;
}

.latest-date {
	font-size: 0.74rem;
	color: var(--text-light);
	line-height: 1.2;
}

/* #endregion Últimas Postagens */

/* #region Responsivo */

/* ── Tablet (≤ 991px) ── */
@media (max-width: 991px) {

	/* Hero */
	.hero-grid {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
		gap: 0.75rem;
		padding: 1rem 0 1.5rem;
	}

	.hero-main {
		grid-row: auto;
		min-height: 320px;
	}

	.hero-side-stack {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0.75rem;
	}

	/* Featured */
	.featured-card {
		height: 360px;
	}

	/* Categorias — 2 colunas no tablet */
	.cat-img {
		height: 160px;
	}

	/* Últimas — 2 colunas no tablet */
	.latest-thumb {
		height: 200px;
	}
}

/* ── Mobile (≤ 768px) ── */
@media (max-width: 768px) {
	.desktop-only {
		display: block !important;
	}

	/* Hero desktop → oculto; hero mobile → visível */
	.hero-grid {
		display: none !important;
	}

	.hero-mobile {
		display: block;
	}

	/* Espaçamento global das seções */
	.blog-section.py-4 {
		padding-top: 2.5rem !important;
		padding-bottom: 2.5rem !important;
	}

	.blog-container {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.mb-4 {
		margin-bottom: 1.75rem !important;
	}

	/* Títulos de seção */
	.section-title {
		font-size: clamp(20px, 6vw, 28px);
		line-height: 1.25;
		max-width: 100%;
	}

	.row.g-3 {
		--bs-gutter-x: 0rem;
		--bs-gutter-y: 1.25rem;
		display: flex;
		flex-direction: column;
	}

	.row.g-3>[class*="col-"] {
		width: 100% !important;
		max-width: 100% !important;
		flex: 0 0 100% !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	/* ── Featured cards ── */
	.featured-card {
		height: 320px;
		border-radius: 1.25rem;
	}

	.featured-card-body {
		padding: 1.25rem;
	}

	.featured-card-body h3 {
		font-size: 1.05rem;
	}

	.featured-card-body p {
		font-size: 0.82rem;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	/* Categorias */
	.cat-card {
		padding: 1rem;
		display: flex;
		flex-direction: row;
		align-items: center;
		gap: 1rem;
		border-radius: 1.25rem;
	}

	.cat-img {
		width: 90px;
		height: 90px !important;
		flex-shrink: 0;
		border-radius: 0.85rem;
		margin-bottom: 0;
	}

	.cat-card>*:not(.cat-img) {
		flex: 1;
		min-width: 0;
	}

	.cat-card .d-flex.align-items-center.justify-content-between {
		flex-direction: column;
		align-items: flex-start !important;
		gap: 0.2rem;
		margin-bottom: 0.4rem !important;
	}

	.cat-label {
		font-size: 0.7rem;
	}

	.cat-meta {
		font-size: 0.72rem;
		text-align: left;
	}

	.cat-title {
		font-size: 0.95rem;
		margin-top: 0.2rem;
	}

	/* Últimas postagens */
	.latest-card {
		margin-top: 30px;
		border-radius: 1.25rem;
	}

	.latest-thumb {
		height: 210px;
	}

	.latest-card-body {
		padding: 1.1rem;
	}

	.latest-title {
		font-size: 0.95rem;
		min-height: auto;
		margin-bottom: 0.85rem;
	}

	.latest-author {
		font-size: 0.78rem;
	}

	.latest-date {
		font-size: 0.7rem;
	}
}

/* Mobile pequeno (≤ 480px) */
@media (max-width: 480px) {
	.hero-mobile {
		height: 260px;
		margin: 0.75rem 0 0;
	}

	.section-title {
		font-size: 1.1rem;
	}

	.featured-card {
		height: 290px;
		margin-bottom: 16px;
	}

	.cat-img {
		width: 76px;
		height: 76px !important;
	}

	.cat-title {
		font-size: 0.88rem;
	}

	.latest-thumb {
		height: 185px;
	}
}

/* #endregion Responsivo */