/**
 * Single blog post – layout centralizado (uma coluna, sem sidebar).
 * Ajuste manual: altere .single-post__content-wrapper--centered para mudar largura/padding.
 */

/* Page background */
.single-post .single-post__section {
	background: #f8f9fb;
}

/* ========== 1. LAYOUT CENTRALIZADO (uma coluna) ========== */
.single-post .site-content.single-post__site-content {
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding: 40px 24px;
}
/* Wrapper do post: centralizado na página. Altere max-width para ajustar a largura. */
.single-post .single-post__content-wrapper--centered,
.single-post .content-wrapper.single-post__content-wrapper.single-post__content-wrapper--centered {
	display: block;
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}
/* Fallback para tema antigo com grid (se existir .content-wrapper sem --centered) */
.single-post .content-wrapper.single-post__content-wrapper:not(.single-post__content-wrapper--centered) {
	display: grid;
	grid-template-columns: 800px 320px;
	gap: 40px;
	justify-content: center;
	align-items: start;
}
/* Article: more top padding, less floating H1 */
.single-post .single-post__article {
	padding-top: 16px;
}
.single-post .blog-sidebar.single-post__sidebar {
	position: sticky;
	top: 120px;
	height: fit-content;
	/* Align CTA vertically with hero image top (header ~200px) */
	margin-top: 200px;
}
@media (max-width: 1100px) {
	.single-post .blog-sidebar.single-post__sidebar {
		margin-top: 0;
	}
}

@media (max-width: 1100px) {
	.single-post .content-wrapper.single-post__content-wrapper {
		grid-template-columns: 1fr;
	}
	.single-post .blog-sidebar.single-post__sidebar {
		position: relative;
		top: 0;
		order: -1;
	}
}

/* ========== 2. TYPOGRAPHY (Montserrat, preto puro) ========== */
.single-post .single-post__content-wrapper,
.single-post .single-post__article,
.single-post .entry-content,
.single-post .c27-content-wrapper {
	font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #000000;
}
.single-post__header {
	text-align: center;
	font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.single-post h1,
.single-post .single-post__title,
.single-post .blog-title h1 {
	font-size: 46px;
	font-weight: 700;
	line-height: 1.2;
	margin-top: 0;
	margin-bottom: 28px;
	text-align: center;
	color: #000000;
}
.single-post h2 {
	font-size: 30px;
	font-weight: 800;
	margin-top: 80px;
	margin-bottom: 20px;
	line-height: 1.3;
	color: #000000;
}
.single-post .entry-content h2:first-child,
.single-post .c27-content-wrapper h2:first-child {
	margin-top: 0;
}
.single-post h3 {
	font-size: 22px;
	font-weight: 600;
	margin-top: 40px;
	margin-bottom: 15px;
	line-height: 1.35;
	color: #000000;
}
.single-post .entry-content,
.single-post .c27-content-wrapper {
	font-size: 18px;
	line-height: 1.75;
	color: #000000;
	max-width: 800px;
}
.single-post .entry-content a,
.single-post .c27-content-wrapper a {
	color: #2563eb;
	text-decoration: underline;
}
.single-post .entry-content a:hover,
.single-post .c27-content-wrapper a:hover {
	color: #1d4ed8;
}

@media (max-width: 768px) {
	.single-post h1,
	.single-post .single-post__title {
		font-size: 32px;
	}
	.single-post h2 {
		font-size: 24px;
	}
	.single-post .entry-content,
	.single-post .c27-content-wrapper {
		font-size: 17px;
	}
}

/* Breadcrumbs (right below H1, SEO + UX) */
.single-post__breadcrumbs {
	font-size: 0.875rem;
	color: #000000;
	margin-bottom: 14px;
}
.single-post__breadcrumbs a {
	color: #000000;
	text-decoration: none;
}
.single-post__breadcrumbs a:hover {
	opacity: 0.8;
}
.single-post__breadcrumbs-sep {
	margin: 0 6px;
	color: #000000;
	opacity: 0.7;
}
.single-post__breadcrumbs-current {
	color: #000000;
	font-weight: 500;
}

/* Meta line (tighter so H1 feels less floating) */
.single-post .blog-post-meta,
.single-post .single-post__meta {
	font-size: 0.9375rem;
	color: #000000;
	margin-bottom: 20px;
}

/* ========== 3. CONTENT SPACING ========== */
.single-post .entry-content p,
.single-post .c27-content-wrapper p {
	margin-bottom: 22px;
}
.single-post .entry-content ul,
.single-post .entry-content ol,
.single-post .c27-content-wrapper ul,
.single-post .c27-content-wrapper ol {
	padding-left: 24px;
	margin-bottom: 24px;
}

/* ========== 4. TABLE STYLING (more presence) ========== */
.single-post .entry-content table,
.single-post .c27-content-wrapper table {
	width: 100%;
	border-collapse: collapse;
	margin: 40px 0;
	font-size: 16px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #e5e7eb;
}
.single-post .entry-content th,
.single-post .entry-content td,
.single-post .c27-content-wrapper th,
.single-post .c27-content-wrapper td {
	padding: 16px 20px;
	border: 1px solid #e5e7eb;
	text-align: left;
}
.single-post .entry-content tr:nth-child(even),
.single-post .c27-content-wrapper tr:nth-child(even) {
	background: #fafafa;
}
.single-post .entry-content thead th,
.single-post .c27-content-wrapper thead th,
.single-post .entry-content table tr:first-child th,
.single-post .c27-content-wrapper table tr:first-child th {
	background: #d1d5db;
	font-weight: 700;
	color: #000000;
}
.single-post .entry-content tbody th:not(:only-of-type),
.single-post .c27-content-wrapper tbody th:not(:only-of-type) {
	background: #e5e7eb;
	font-weight: 600;
}

/* ========== 5. HERO IMAGE ========== */
.single-post .wp-post-image,
.single-post .blog-featured-image img {
	border-radius: 12px;
	margin-bottom: 40px;
	width: 100%;
	height: auto;
	display: block;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.single-post .blog-featured-image {
	margin-bottom: 0;
}

/* Divider after hero (visual break) */
.single-post__intro-divider {
	border: 0;
	height: 1px;
	background: linear-gradient( to right, transparent, #e0e0e0 20%, #e0e0e0 80%, transparent );
	margin: 32px 0 28px;
}

/* Early inline CTA (after intro, before content – critical for mobile) */
.single-post__cta-early {
	background: #fff;
	border: 1px solid #e8e9eb;
	border-radius: 12px;
	padding: 24px 28px;
	margin-bottom: 32px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.single-post__cta-early-title {
	font-size: 1.0625rem;
	font-weight: 600;
	color: #000000;
	margin: 0 0 14px;
	line-height: 1.4;
}
.single-post__cta-early-btn {
	display: inline-block;
	background: #ffc105;
	color: #000000;
	padding: 12px 22px;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
	font-size: 0.9375rem;
	transition: background 0.2s, transform 0.1s;
}
.single-post__cta-early-btn:hover {
	background: #e6ad05;
	color: #000000;
	transform: translateY(-1px);
}

/* Content card (depth + focus, premium padding) */
.single-post__content-card {
	background: #ffffff;
	border-radius: 12px;
	padding: 40px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
@media (max-width: 1023px) {
	.single-post__content-card {
		padding: 28px;
	}
}

/* Resumo rápido box (static, inside article card) */
.single-post__resumo-rapido {
	background: #f0f7ff;
	border-left: 4px solid #2563eb;
	border-radius: 10px;
	padding: 20px 24px;
	margin-bottom: 32px;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: #000000;
}
.single-post__resumo-rapido-title {
	font-weight: 700;
	margin: 0 0 12px;
	color: #000000;
	font-size: 1rem;
}
.single-post__resumo-rapido-list {
	margin: 0;
	padding-left: 20px;
}
.single-post__resumo-rapido-list li {
	margin-bottom: 6px;
}
.single-post__resumo-rapido-list li:last-child {
	margin-bottom: 0;
}

/* Optional summary box (use class .resumo-rapido in editor) */
.single-post .entry-content .resumo-rapido,
.single-post .c27-content-wrapper .resumo-rapido {
	background: #f0f7ff;
	border-left: 4px solid #2563eb;
	border-radius: 8px;
	padding: 20px 24px;
	margin: 28px 0;
	font-size: 0.9375rem;
	line-height: 1.6;
}
.single-post .entry-content .resumo-rapido strong,
.single-post .c27-content-wrapper .resumo-rapido strong {
	display: block;
	margin-bottom: 8px;
	color: #000000;
}

/* ========== 6. SIDEBAR CTA (match article card for cohesion) ========== */
.single-post .blog-sidebar__cta {
	background: #0B1F3B;
	color: #fff;
	padding: 24px;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.single-post .blog-sidebar__cta-title {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
	margin: 0 0 16px;
	color: #fff;
}
.single-post .blog-sidebar__cta-btn {
	display: block;
	text-align: center;
	background: #ffc105;
	color: #0B1F3B;
	padding: 14px 20px;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
	font-size: 0.9375rem;
	transition: background 0.2s, transform 0.1s;
	margin-bottom: 12px;
}
.single-post .blog-sidebar__cta-btn:hover {
	background: #e6ad05;
	color: #0B1F3B;
	transform: translateY(-1px);
}
.single-post .blog-sidebar__cta-micro {
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.8);
	margin: 0;
}

/* When sidebar moves above content (< 1100px), style as block */
@media (max-width: 1100px) {
	.single-post .blog-sidebar__cta {
		max-width: 480px;
		margin: 0 auto 32px;
	}
}

/* ========== INLINE CTA (mobile / single column) ========== */
.single-post .single-post-cta-inline {
	display: none;
	margin-top: 40px;
	padding: 24px;
	background: #f9f9f9;
	border-radius: 12px;
	text-align: center;
}
@media (max-width: 1100px) {
	.single-post .single-post-cta-inline {
		display: block;
	}
	.single-post .blog-sidebar.single-post__sidebar {
		display: none;
	}
}
.single-post .single-post-cta-inline__title {
	font-size: 1.125rem;
	font-weight: 600;
	margin: 0 0 12px;
	color: #000000;
}
.single-post .single-post-cta-inline__btn {
	display: inline-block;
	background: #ffc105;
	color: #000000;
	padding: 14px 24px;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
	margin-bottom: 8px;
}
.single-post .single-post-cta-inline__micro {
	font-size: 0.8125rem;
	color: #000000;
	margin: 0;
}

/* ========== 7. MOBILE OPTIMIZATION ========== */
@media (max-width: 768px) {
	.single-post .site-content.single-post__site-content {
		padding: 20px;
	}
	.single-post .single-post__content-card {
		padding: 24px 20px;
	}
	.single-post .entry-content table,
	.single-post .c27-content-wrapper table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	.single-post .single-post__title,
	.single-post h1 {
		word-break: break-word;
		hyphens: auto;
	}
	.single-post .wp-post-image,
	.single-post .blog-featured-image img {
		border-radius: 8px;
	}
	.single-post__cta-early {
		padding: 20px;
	}
}

/* Post nav / tags (minimal) */
.single-post__tags {
	margin-top: 32px;
}
.single-post__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid #eee;
	font-size: 0.9375rem;
}
.single-post__nav-prev,
.single-post__nav-next {
	flex: 1;
	min-width: 0;
}
.single-post__nav-next {
	text-align: right;
}

/* Recomendações de post */
.single-post__recommended {
	margin-top: 48px;
	padding-top: 40px;
	border-top: 1px solid #eee;
	max-width: 1120px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}
.single-post__recommended-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0 0 24px;
	text-align: center;
}
.single-post__recommended-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.single-post__recommended-card {
	display: block;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.06);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.single-post__recommended-card:hover {
	box-shadow: 0 8px 24px rgba(0,0,0,0.1);
	transform: translateY(-2px);
}
.single-post__recommended-img-wrap {
	aspect-ratio: 16/10;
	overflow: hidden;
	background: #f5f5f5;
}
.single-post__recommended-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.single-post__recommended-card-title {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
	margin: 16px 16px 8px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.single-post__recommended-card-excerpt {
	font-size: 0.875rem;
	color: #000000;
	margin: 0 16px 16px;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
@media (max-width: 768px) {
	.single-post__recommended-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.single-post__recommended {
		margin-top: 40px;
		padding-top: 32px;
	}
}

/* ========== Banner CTA fixo abaixo dos posts recomendados ========== */
.single-post__section .bl-final-cta {
	position: relative;
	background: #0B1F3B;
	padding: 4rem 1rem;
	overflow: hidden;
	margin-top: 0;
}
.single-post__section .bl-final-cta__bg {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 800px;
	height: 400px;
	background: rgba(255, 193, 7, 0.05);
	border-radius: 50%;
	filter: blur(80px);
}
.single-post__section .bl-final-cta__inner {
	position: relative;
	z-index: 1;
	max-width: 56rem;
	margin: 0 auto;
	text-align: center;
}
.single-post__section .bl-final-cta__title {
	font-size: 2rem;
	font-weight: 900;
	color: #fff;
	letter-spacing: -0.02em;
	margin: 0 0 1rem;
	font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
@media (min-width: 768px) {
	.single-post__section .bl-final-cta__title {
		font-size: 3.5rem;
	}
}
.single-post__section .bl-final-cta__text {
	font-size: 1.25rem;
	color: rgba(255, 255, 255, 0.8);
	max-width: 36rem;
	margin: 0 auto 2rem;
	font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.single-post__section .bl-final-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
}
.single-post__section .bl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.875rem 1.5rem;
	font-size: 1rem;
	font-weight: 700;
	border-radius: 1rem;
	text-decoration: none;
	transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
	border: none;
	cursor: pointer;
	font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.single-post__section .bl-btn--primary {
	background: #ffc105;
	color: #0B1F3B;
	box-shadow: 0 10px 15px -3px rgba(255, 193, 7, 0.3);
}
.single-post__section .bl-btn--primary:hover {
	background: #e6ad05;
	transform: scale(1.02);
}
.single-post__section .bl-btn--xl {
	padding: 1rem 2.5rem;
	font-size: 1.125rem;
}
.single-post__section .bl-btn--outline-white {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.2);
}
.single-post__section .bl-btn--outline-white:hover {
	background: rgba(255, 255, 255, 0.2);
}
