/* ===================================================
   Blog Template Styles - CTPELE
   Replica o design da versão Next.js
   Baseado em src/app/blog/page.tsx
   =================================================== */

/* ─── Container ─── */
.blog-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 1rem;
}
@media (min-width: 640px) {
	.blog-container { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
	.blog-container { padding: 0 2rem; }
}

/* ─── Hero ─── */
.blog-hero {
	padding: 4rem 0 3rem;
	background-color: #FDFCFA;
}
@media (min-width: 768px) {
	.blog-hero { padding: 8rem 0 4rem; }
}

.blog-hero-label {
	display: block;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	margin-bottom: 1rem;
	color: #B9AEA3;
}

.blog-hero-title {
	font-family: 'Cormorant Garamond', serif;
	font-size: 2.5rem;
	line-height: 1.1;
	margin: 0 0 1.5rem;
	color: #3A3A3A;
	max-width: 48rem;
}
@media (min-width: 768px) {
	.blog-hero-title { font-size: 3.75rem; }
}

.blog-hero-description {
	font-size: 1.125rem;
	line-height: 1.7;
	color: rgba(58, 58, 58, 0.8);
	max-width: 36rem;
	margin: 0;
}

/* ─── Search ─── */
.blog-search-wrapper {
	margin-top: 2.5rem;
	max-width: 28rem;
}

.blog-search-form {
	position: relative;
	margin: 0;
}

.blog-search-icon {
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
}

.blog-search-input {
	width: 100%;
	padding: 1rem 1.25rem 1rem 3rem;
	background-color: #ffffff;
	border: 1px solid #EAE5DE;
	font-size: 0.875rem;
	color: #3A3A3A;
	outline: none;
	transition: border-color 0.2s;
	box-sizing: border-box;
	border-radius: 0;
	line-height: normal;
}
.blog-search-input::placeholder {
	color: #B9AEA3;
}
.blog-search-input:focus {
	border-color: #C8B79C;
}

/* ─── Posts Section ─── */
.blog-posts {
	padding-bottom: 5rem;
	background-color: #FDFCFA;
}
@media (min-width: 768px) {
	.blog-posts { padding-bottom: 8rem; }
}

/* ─── Filter – Desktop ─── */
.blog-filter-desktop {
	display: none;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 3rem;
}
@media (min-width: 768px) {
	.blog-filter-desktop { display: flex; }
}

.blog-filter-btn {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	transition: all 0.3s;
	text-decoration: none;
	border-radius: 0;
	line-height: normal;
}
.blog-filter-btn.active {
	background-color: #3A3A3A;
	color: #FDFCFA;
}
.blog-filter-btn:not(.active) {
	background-color: transparent;
	color: #3A3A3A;
	border: 1px solid #D4CFC7;
}
.blog-filter-btn:not(.active):hover {
	border-color: #3A3A3A;
}

/* ─── Filter – Mobile ─── */
.blog-filter-mobile {
	margin-bottom: 2rem;
}
@media (min-width: 768px) {
	.blog-filter-mobile { display: none; }
}

.blog-select-wrapper {
	position: relative;
}

.blog-select {
	width: 100%;
	padding: 1rem 1.25rem;
	appearance: none;
	-webkit-appearance: none;
	background-color: #ffffff;
	border: 1px solid #D4CFC7;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	cursor: pointer;
	color: #3A3A3A;
	outline: none;
	border-radius: 0;
	box-sizing: border-box;
	line-height: normal;
}

.blog-select-chevron {
	position: absolute;
	right: 1.25rem;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
}

/* ─── Grid ─── */
.blog-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}
@media (min-width: 768px) {
	.blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
	.blog-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─── Card ─── */
.blog-card {
	background-color: #FDFCFA;
	overflow: hidden;
	transition: box-shadow 0.3s;
	border: 1px solid #EAE5DE;
}
.blog-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.blog-card-image-link {
	display: block;
	text-decoration: none;
}
.blog-card-image-link:hover,
.blog-card-image-link:focus {
	text-decoration: none;
}

.blog-card-image {
	aspect-ratio: 4 / 3;
	width: 100%;
	overflow: hidden;
	position: relative;
}

.blog-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s;
	display: block;
}
.blog-card:hover .blog-card-img {
	transform: scale(1.05);
}

.blog-card-tag {
	position: absolute;
	top: 1rem;
	left: 1rem;
	background-color: #FDFCFA;
	color: #3A3A3A;
	font-size: 0.625rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	padding: 0.25rem 0.75rem;
	line-height: 1.4;
	z-index: 2;
	pointer-events: none;
}

.blog-card-body {
	padding: 2rem;
}

.blog-card-meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.625rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	margin-bottom: 0.75rem;
	color: #B9AEA3;
}

.blog-card-meta-dot {
	color: #B9AEA3;
}

.blog-card-title {
	font-family: 'Cormorant Garamond', serif;
	font-size: 1.25rem;
	line-height: 1.3;
	margin: 0 0 1rem;
	color: #3A3A3A;
}
.blog-card-title a {
	color: inherit;
	text-decoration: none;
}
.blog-card-title a:hover {
	color: #C8B79C;
}

.blog-card-excerpt {
	font-size: 0.875rem;
	line-height: 1.6;
	color: rgba(58, 58, 58, 0.7);
	margin: 0 0 1.5rem;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.blog-card-link {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	text-decoration: none;
	color: #3A3A3A;
	border-bottom: 1px solid #3A3A3A;
	padding-bottom: 0.25rem;
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	transition: color 0.2s, border-color 0.2s;
}
.blog-card-link:hover {
	color: #C8B79C;
	border-color: #C8B79C;
	text-decoration: none;
}

/* ─── Empty ─── */
.blog-empty {
	text-align: center;
	padding: 5rem 0;
}
.blog-empty-title {
	font-size: 1.125rem;
	color: rgba(58, 58, 58, 0.6);
	margin: 0 0 0.5rem;
}
.blog-empty-sub {
	font-size: 0.875rem;
	color: rgba(58, 58, 58, 0.5);
	margin: 0;
}

/* ─── Pagination ─── */
.blog-pagination {
	margin-top: 3rem;
	text-align: center;
}
.blog-pagination ul {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.blog-pagination ul li {
	display: inline-block;
	margin: 0;
}
.blog-pagination ul li a,
.blog-pagination ul li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
	color: #3A3A3A;
	text-decoration: none;
	border: 1px solid #D4CFC7;
	transition: all 0.2s;
	background: transparent;
	box-sizing: border-box;
}
.blog-pagination ul li span.current {
	background-color: #3A3A3A;
	color: #FDFCFA;
	border-color: #3A3A3A;
}
.blog-pagination ul li a:hover {
	border-color: #3A3A3A;
}

/* ─── Newsletter ─── */
.blog-newsletter {
	padding: 5rem 0;
	background-color: #EAE5DE;
}
.blog-newsletter-container {
	max-width: 48rem;
	margin: 0 auto;
	padding: 0 1rem;
	text-align: center;
}

.blog-newsletter-title {
	font-family: 'Cormorant Garamond', serif;
	font-size: 1.875rem;
	line-height: 1.2;
	margin: 0 0 1rem;
	color: #3A3A3A;
}
@media (min-width: 768px) {
	.blog-newsletter-title { font-size: 2.25rem; }
}

.blog-newsletter-text {
	font-size: 1rem;
	line-height: 1.6;
	color: rgba(58, 58, 58, 0.7);
	margin: 0 auto 2rem;
	max-width: 28rem;
}

.blog-newsletter-form {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	max-width: 28rem;
	margin: 0 auto;
}
@media (min-width: 640px) {
	.blog-newsletter-form { flex-direction: row; }
}

.blog-newsletter-input {
	flex: 1;
	padding: 1rem 1.25rem;
	background-color: #FDFCFA;
	border: 1px solid #D4CFC7;
	font-size: 0.875rem;
	color: #3A3A3A;
	outline: none;
	transition: border-color 0.2s;
	box-sizing: border-box;
	border-radius: 0;
	line-height: normal;
}
.blog-newsletter-input::placeholder {
	color: #B9AEA3;
}
.blog-newsletter-input:focus {
	border-color: #C8B79C;
}

.blog-newsletter-btn {
	padding: 1rem 2rem;
	background-color: #3A3A3A;
	color: #FDFCFA;
	border: 1px solid #3A3A3A;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	white-space: nowrap;
	cursor: pointer;
	transition: all 0.3s;
	border-radius: 0;
	line-height: normal;
}
.blog-newsletter-btn:hover {
	background-color: #C8B79C;
	border-color: #C8B79C;
	color: #FDFCFA;
}

/* ===================================================
   WordPress Post Content (single blog post)
   Replica .wp-content do Next.js (src/app/globals.css)
   =================================================== */

.wp-content {
	max-width: 100%;
}

.wp-content h2 {
	font-size: 1.75rem;
	font-family: 'Cormorant Garamond', serif;
	margin-top: 2.5rem;
	margin-bottom: 1rem;
	line-height: 1.3;
	color: #3A3A3A;
}

.wp-content h3 {
	font-size: 1.35rem;
	font-family: 'Cormorant Garamond', serif;
	margin-top: 2rem;
	margin-bottom: 0.75rem;
	line-height: 1.3;
	color: #3A3A3A;
}

.wp-content p {
	margin-bottom: 1.25rem;
	line-height: 1.8;
	font-size: 1rem;
	color: #3A3A3A;
}

.wp-content ul,
.wp-content ol {
	margin-bottom: 1.25rem;
	padding-left: 1.5rem;
}

.wp-content li {
	margin-bottom: 0.5rem;
	line-height: 1.7;
	font-size: 1rem;
	color: #3A3A3A;
}

.wp-content ul li {
	list-style-type: disc;
}

.wp-content ol li {
	list-style-type: decimal;
}

.wp-content strong {
	font-weight: 600;
}

.wp-content em {
	font-style: italic;
}

.wp-content a {
	color: #C8B79C;
	text-decoration: underline;
	transition: opacity 0.2s;
}

.wp-content a:hover {
	opacity: 0.7;
}

.wp-content img {
	max-width: 100%;
	height: auto;
	margin: 1.5rem 0;
	border-radius: 0;
}

.wp-content blockquote {
	border-left: 3px solid #C8B79C;
	padding-left: 1.25rem;
	margin: 1.5rem 0;
	font-style: italic;
	color: #3A3A3A;
	opacity: 0.85;
}

.wp-content figure {
	margin: 1.5rem 0;
}

.wp-content figcaption {
	font-size: 0.85rem;
	color: #B9AEA3;
	text-align: center;
	margin-top: 0.5rem;
}

.wp-content iframe {
	max-width: 100%;
	margin: 1.5rem 0;
}

/* Remove underline from page-content links inside single posts */
.single .page-content a {
	color: #C8B79C;
	text-decoration: underline;
}
