/* ============================================
   BLOG INDEX & POST STYLES
   ============================================ */
@media screen and (max-width: 600px) {
	body {
		padding: 0 15px;
	}
}
.container.mw900 {
	max-width: 900px;
	margin: 0 auto;
}

.blog-post {
	margin-top: 0;
}
.post-featured-image {
	width: 100%;
	max-height: 500px;
	overflow: hidden;
	margin-top: 0;
}
.post-featured-image img {
	width: 100%;
	height: auto;
	object-fit: cover;
	display: block;
}
.post-header {
	padding: 120px 20px 30px; /* Aumentei o padding-top para compensar o header fixo */
	background: var(--gray);
}
/* ============================================
      BLOG INDEX PAGE
      ============================================ */

/* Blog Hero */
.page-blog {
	background-image: url("/img/open-office.webp");
	background-position: center;
}

/* Blog Filters */
.blog-filters {
	padding: 30px 0;
}

.filter-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

.filter-tag {
	padding: 8px 18px;
	border: 2px solid #e6e8ec;
	border-radius: 999px;
	background: #fff;
	color: var(--dark);
	font-size: 0.9rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

.filter-tag:hover {
	border-color: var(--brand);
	color: var(--brand);
}

.filter-tag.active {
	background: var(--brand);
	border-color: var(--brand);
	color: #fff;
}

/* Featured Post */
.featured-post {
	padding: 40px 0 60px;
}

.featured-card {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
	background: #fff;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.featured-image img {
	width: 100%;
	height: 100%;
	min-height: 350px;
	object-fit: cover;
}

.featured-content {
	padding: 40px;
}

.featured-content h2 {
	font-size: 2rem;
	margin: 15px 0;
	text-align: left;
}

.featured-content .excerpt {
	font-size: 1.1rem;
	color: var(--muted);
	line-height: 1.6;
	margin: 20px 0;
}

/* Blog Posts Section */
.blog-posts-section {
	padding: 60px 20px;
}

/* Blog Load More */
.blog-load-more {
	text-align: center;
	margin-top: 50px;
}

/* Newsletter Section */
.newsletter-section {
	padding: 60px 20px;
}

.newsletter-card {
	background: #fff;
	border-radius: var(--radius);
	padding: 50px;
	text-align: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.newsletter-card h2 {
	font-size: 2rem;
	margin-bottom: 15px;
}

.newsletter-card p {
	font-size: 1.1rem;
	color: var(--muted);
	margin-bottom: 30px;
}

.newsletter-form {
	display: flex;
	gap: 12px;
	max-width: 500px;
	margin: 0 auto;
}

.newsletter-form input {
	flex: 1;
	padding: 12px 20px;
	border: 1px solid #ddd;
	border-radius: var(--radius);
	font-size: 1rem;
}

.newsletter-form input:focus {
	outline: 2px solid var(--brand);
	border-color: var(--brand);
}

.newsletter-form button {
	padding: 12px 28px;
}

/* ============================================
   BLOG POST PAGE
   ============================================ */

/* Post Header */
.post-header {
	padding: 50px 20px 30px;
	background: var(--gray);
}

.breadcrumb {
	display: flex;
	gap: 8px;
	align-items: center;
	font-size: 0.9rem;
	color: var(--muted);
	margin-bottom: 20px;
	margin-top: 80px;
}

.breadcrumb a {
	color: var(--muted);
	transition: color 0.2s;
}

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

.post-category {
	margin-bottom: 15px;
}

.blog-post h1 {
	font-size: clamp(2rem, 5vw, 2.8rem);
}

.post-header h1 {
	font-size: clamp(2rem, 5vw, 2rem);
	line-height: 1.2;
	margin-bottom: 25px;
	text-align: left;
}

.post-meta {
	display: flex;
	gap: 15px;
	align-items: center;
	justify-content: flex-start;
}

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

.meta-info {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.author-name {
	font-weight: 600;
	font-size: 1rem;
}

.meta-details {
	display: flex;
	gap: 8px;
	font-size: 1.1rem;
	color: var(--muted);
}

/* Featured Image */
.post-featured-image {
	width: 100%;
	max-height: 500px;
	overflow: hidden;
}

.post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Post Content */
.post-content {
	padding: 20px 0;
}

.content-wrapper {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 60px;
	align-items: start;
}

/* Article Body */
.article-body {
	max-width: 720px;
}

.article-body .lead {
	font-size: 1.25rem;
	line-height: 1.7;
	color: var(--dark);
	margin-bottom: 30px;
	padding-top: 20px;
}

.article-body h2 {
	font-size: 1.8rem;
	margin: 40px 0 20px;
	text-align: left;
}

.article-body h3 {
	font-size: 1.4rem;
	margin: 30px 0 15px;
}

.article-body h4 {
	font-size: 1.2rem;
	margin: 25px 0 12px;
}

.article-body p {
	font-size: 1.05rem;
	line-height: 1.8;
	color: #333;
	margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
	margin: 20px 0;
	padding-left: 30px;
}

.article-body li {
	margin-bottom: 10px;
	line-height: 1.7;
}

.article-body strong {
	font-weight: 600;
	color: var(--dark);
}

.article-body em {
	font-style: italic;
}

/* Callout Boxes */
.callout-box {
	background: var(--gray);
	border-left: 4px solid var(--brand);
	border-radius: 8px;
	padding: 25px;
	margin: 30px 0;
}

.callout-box h4 {
	margin: 0 0 12px;
	font-size: 1.1rem;
}

.callout-box p {
	margin: 0 0 10px;
	font-size: 1rem;
}

.callout-box p:last-child {
	margin-bottom: 0;
}

.cta-box {
	background: #fff;
	border: 2px solid var(--brand);
	text-align: center;
}

.cta-box .btn-main {
	margin-top: 15px;
}

/* Sidebar */
.article-sidebar {
	position: sticky;
	top: 100px;
}

.sidebar-widget {
	background: #fff;
	border: 1px solid #e6e8ec;
	border-radius: var(--radius);
	padding: 25px;
	margin-bottom: 25px;
}

.sidebar-widget h4 {
	font-size: 1.1rem;
	margin: 0 0 15px;
}

/* Share Buttons */
.share-buttons {
	display: flex;
	gap: 10px;
}

.share-btn {
	width: 40px;
	height: 40px;
	border: 1px solid #e6e8ec;
	border-radius: 8px;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s;
}

.share-btn:hover {
	background: var(--gray);
	border-color: var(--brand);
}

.share-btn svg {
	color: var(--dark);
}

/* Related Services */
.service-link {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px;
	border-radius: 6px;
	margin-bottom: 8px;
	transition: all 0.2s;
	color: var(--dark);
}

.service-link:hover {
	background: var(--gray);
}

.service-link svg {
	color: var(--brand);
	width: 25px;
	height: 25px;
}

/* Author Bio */
.author-bio {
	padding: 60px 20px;
}

.bio-card {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 30px;
	align-items: start;
	background: #fff;
	padding: 40px;
	border-radius: var(--radius);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.bio-avatar {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	background-color: var(--brand);
	padding: 15px 15px -1px 20px;
}

.bio-content h3 {
	margin: 0 0 5px;
	font-size: 1.5rem;
}

.bio-title {
	color: var(--brand);
	font-weight: 600;
	margin-bottom: 15px;
	display: block;
}

.bio-content p {
	line-height: 1.7;
	margin-bottom: 20px;
}

/* Related Posts */
.related-posts {
	padding: 60px 20px;
}

/* Responsive */
@media (max-width: 900px) {
	.featured-card {
		grid-template-columns: 1fr;
	}

	.featured-image img {
		min-height: 250px;
	}

	.featured-content {
		padding: 30px;
	}

	.content-wrapper {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.article-sidebar {
		position: static;
	}

	.bio-card {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.bio-avatar {
		margin: 0 auto;
	}

	.newsletter-form {
		flex-direction: column;
	}

	.newsletter-form button {
		width: 100%;
	}
}

@media (max-width: 600px) {
	.post-header h1 {
		font-size: 1.8rem;
	}

	.article-body h2 {
		font-size: 1.5rem;
	}

	.article-body .lead {
		font-size: 1.1rem;
	}

	.article-body p {
		font-size: 1rem;
	}

	.share-buttons {
		justify-content: center;
	}
}
