/* AE – Layout de Postagens */
.ae-blog {
	--ae-brown: #58251b;
	--ae-brown-dark: #2e130d;
	--ae-green: #006b3e;
	--ae-gold: #fda619;
	--ae-bg: #0c0c0c;
	--ae-surface: #ffffff;
	--ae-surface-2: #f6f1ea;
	--ae-text: #2a2a2a;
	--ae-muted: #6b6b6b;
	--ae-border: #e8e0d5;
	--ae-radius: 16px;
	background: var(--ae-bg);
}

.ae-post,
.ae-post * { box-sizing: border-box; }
.ae-post { font-family: "Poppins", sans-serif; color: var(--ae-text); padding-bottom: 72px; }
.ae-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Hero */
.ae-hero {
	position: relative;
	overflow: hidden;
	padding: 56px 0 120px;
	background:
		radial-gradient(120% 140% at 0% 0%, rgba(253, 166, 25, .14), transparent 55%),
		linear-gradient(135deg, var(--ae-brown) 0%, var(--ae-brown-dark) 100%);
	color: #fff;
}
.ae-hero::after {
	content: "";
	position: absolute; inset: auto 0 0 0; height: 4px;
	background: linear-gradient(90deg, var(--ae-gold), var(--ae-green));
}
.ae-hero__bg {
	position: absolute; inset: 0;
	background-size: cover; background-position: center;
	opacity: .18; filter: blur(2px) saturate(.8);
}
.ae-hero__inner { position: relative; z-index: 1; max-width: 1200px; }

.ae-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .7); margin-bottom: 22px; }
.ae-breadcrumb a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.ae-breadcrumb a:hover { color: var(--ae-gold); }
.ae-breadcrumb__current { color: var(--ae-gold); max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ae-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ae-chip {
	display: inline-block; padding: 5px 14px; border-radius: 999px;
	background: var(--ae-green); color: #fff !important; text-decoration: none;
	font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.ae-chip:hover { background: var(--ae-gold); color: var(--ae-brown-dark) !important; }

.ae-hero__title {
	font-family: "Poppins", sans-serif;
	font-size: clamp(28px, 4.2vw, 46px); line-height: 1.15; font-weight: 700;
	color: #fff; margin: 0 0 22px; max-width: 900px; letter-spacing: -.01em;
}

.ae-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; color: rgba(255, 255, 255, .85); }
.ae-meta__item { display: inline-flex; align-items: center; gap: 8px; }
.ae-meta__item svg { width: 16px; height: 16px; fill: var(--ae-gold); }
.ae-meta__avatar { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ae-gold); }

/* Layout */
.ae-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 32px;
	margin-top: -80px;
	position: relative; z-index: 2;
	align-items: start;
}
.ae-main { min-width: 0; }

/* Article card */
.ae-article {
	background: var(--ae-surface);
	border-radius: var(--ae-radius);
	box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
	overflow: hidden;
}
.ae-article__cover { margin: 0; }
.ae-article__cover img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: cover; }

.ae-content { padding: 48px 56px 32px; font-size: 17px; line-height: 1.8; color: var(--ae-text); }
.ae-content > *:first-child { margin-top: 0; }
.ae-content p { margin: 0 0 1.3em; color: var(--ae-text); }
.ae-content h1,
.ae-content h2,
.ae-content h3,
.ae-content h4 {
	font-family: "Poppins", sans-serif; color: var(--ae-brown); line-height: 1.3;
	margin: 1.8em 0 .7em; font-weight: 700; text-transform: none;
}
.ae-content h1 { font-size: 26px; }
.ae-content h2 { font-size: 24px; padding-left: 14px; border-left: 4px solid var(--ae-gold); }
.ae-content h3 { font-size: 20px; color: var(--ae-green); }
.ae-content h4 { font-size: 18px; }
.ae-content a { color: var(--ae-green); text-decoration: underline; text-underline-offset: 3px; }
.ae-content a:hover { color: var(--ae-brown); }
.ae-content strong { color: #111; }
.ae-content ul,
.ae-content ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.ae-content li { margin-bottom: .45em; }
.ae-content ul li::marker { color: var(--ae-gold); }
.ae-content blockquote,
.ae-content .wp-block-quote {
	margin: 1.8em 0; padding: 22px 26px;
	background: var(--ae-surface-2); border-left: 5px solid var(--ae-brown);
	border-radius: 0 12px 12px 0; font-style: italic; color: #3b2a24;
}
.ae-content blockquote p:last-child { margin-bottom: 0; }
.ae-content img { max-width: 100%; height: auto; border-radius: 12px; }
.ae-content figure { margin: 1.8em 0; }
.ae-content figcaption { font-size: 13px; color: var(--ae-muted); text-align: center; margin-top: 8px; }
.ae-content hr { border: 0; height: 1px; background: var(--ae-border); margin: 2.2em 0; }

.ae-article__footer {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
	padding: 22px 56px; border-top: 1px solid var(--ae-border); background: var(--ae-surface-2);
}
.ae-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ae-tags a { font-size: 13px; color: var(--ae-brown); text-decoration: none; background: #fff; border: 1px solid var(--ae-border); padding: 4px 12px; border-radius: 999px; }
.ae-tags a:hover { border-color: var(--ae-gold); }
.ae-share { display: flex; align-items: center; gap: 10px; margin-left: auto; font-size: 14px; font-weight: 600; color: var(--ae-brown); }
.ae-share__btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; border-radius: 50%;
	background: var(--ae-brown); transition: background .2s, transform .2s;
}
.ae-share__btn svg { width: 18px; height: 18px; fill: #fff; }
.ae-share__btn:hover { background: var(--ae-green); transform: translateY(-2px); }

/* Comments */
.ae-comments {
	margin-top: 28px; padding: 36px 56px;
	background: var(--ae-surface); border-radius: var(--ae-radius); color: var(--ae-text);
}
.ae-comments h2,
.ae-comments h3 { color: var(--ae-brown); font-family: "Poppins", sans-serif; }
.ae-comments label { color: var(--ae-text); }
.ae-comments input[type="text"],
.ae-comments input[type="email"],
.ae-comments input[type="url"],
.ae-comments textarea { width: 100%; border: 1px solid var(--ae-border); border-radius: 10px; padding: 12px 14px; font-family: inherit; background: #fff; color: var(--ae-text); }
.ae-blog .ae-comments input[type="submit"],
.ae-blog .ae-comments .submit {
	background: var(--ae-green) !important; color: #fff !important; border: 0; border-radius: 999px;
	padding: 12px 28px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.ae-blog .ae-comments input[type="submit"]:hover { background: var(--ae-brown) !important; }

/* Sidebar */
.ae-sidebar { position: sticky; top: 110px; }
.ae-widget {
	background: var(--ae-surface); border-radius: var(--ae-radius);
	padding: 26px 22px; box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
}
.ae-widget__title {
	font-family: "Poppins", sans-serif; font-size: 18px; font-weight: 700; color: var(--ae-brown);
	margin: 0 0 18px; padding-bottom: 12px; position: relative; text-transform: none;
}
.ae-widget__title::after {
	content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px;
	border-radius: 3px; background: var(--ae-gold);
}
.ae-recent { list-style: none; margin: 0; padding: 0; }
.ae-recent li + li { border-top: 1px solid var(--ae-border); }
.ae-recent__item { display: flex; gap: 14px; align-items: center; padding: 14px 0; text-decoration: none; }
.ae-recent__thumb {
	flex: 0 0 64px; width: 64px; height: 64px; border-radius: 12px; overflow: hidden;
	background: linear-gradient(135deg, var(--ae-brown), var(--ae-brown-dark));
	display: flex; align-items: center; justify-content: center;
}
.ae-recent__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ae-recent__thumb svg { width: 26px; height: 26px; fill: var(--ae-gold); }
.ae-recent__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ae-recent__title {
	font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ae-text);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	transition: color .2s;
}
.ae-recent__date { font-size: 12px; color: var(--ae-muted); }
.ae-recent__item:hover .ae-recent__title { color: var(--ae-green); }
.ae-recent__empty { font-size: 14px; color: var(--ae-muted); margin: 0; }

/* Archive */
.ae-hero--archive { padding-bottom: 110px; }
.ae-chip--static { margin-bottom: 14px; pointer-events: none; }
.ae-hero__desc { max-width: 720px; font-size: 16px; line-height: 1.7; color: rgba(255, 255, 255, .82); margin: -6px 0 20px; }
.ae-hero__desc p { margin: 0; color: inherit; }

.ae-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ae-card {
	display: flex; flex-direction: column;
	background: var(--ae-surface); border-radius: var(--ae-radius); overflow: hidden;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
	transition: transform .25s, box-shadow .25s;
}
.ae-card:hover { transform: translateY(-4px); box-shadow: 0 26px 60px rgba(0, 0, 0, .6); }
.ae-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--ae-brown), var(--ae-brown-dark)); }
.ae-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.ae-card:hover .ae-card__media img { transform: scale(1.04); }
.ae-card__placeholder {
	width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
	background: radial-gradient(90% 120% at 0% 0%, rgba(253, 166, 25, .18), transparent 60%), linear-gradient(135deg, var(--ae-brown), var(--ae-brown-dark));
}
.ae-card__placeholder svg { width: 44px; height: 44px; fill: var(--ae-gold); opacity: .9; }
.ae-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.ae-card__top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.ae-chip--sm { padding: 3px 10px; font-size: 11px; }
.ae-chip--alt { background: var(--ae-brown); }
.ae-card__date { font-size: 12px; color: var(--ae-muted); }
.ae-card__title { font-family: "Poppins", sans-serif; font-size: 19px; line-height: 1.35; font-weight: 700; margin: 0 0 10px; text-transform: none; }
.ae-card__title a { color: var(--ae-brown); text-decoration: none; }
.ae-card__title a:hover { color: var(--ae-green); }
.ae-card__excerpt { font-size: 14px; line-height: 1.7; color: #555; margin: 0 0 18px; flex: 1; }
.ae-card__more {
	display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
	font-size: 14px; font-weight: 600; color: var(--ae-green); text-decoration: none;
}
.ae-card__more svg { width: 16px; height: 16px; fill: currentColor; transition: transform .2s; }
.ae-card__more:hover { color: var(--ae-brown); }
.ae-card__more:hover svg { transform: translateX(4px); }

.ae-pagination { margin-top: 36px; }
.ae-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ae-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px;
	border-radius: 999px; background: #1c1c1c; color: #fff; text-decoration: none; font-size: 14px; font-weight: 600;
	border: 1px solid #2c2c2c;
}
.ae-pagination .page-numbers:hover { border-color: var(--ae-gold); color: var(--ae-gold); }
.ae-pagination .page-numbers.current { background: var(--ae-gold); border-color: var(--ae-gold); color: var(--ae-brown-dark); }
.ae-pagination .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.ae-empty { background: var(--ae-surface); border-radius: var(--ae-radius); padding: 48px; text-align: center; }
.ae-blog .ae-empty h2 { color: var(--ae-brown); margin: 0 0 10px; font-family: "Poppins", sans-serif; font-size: 22px; line-height: 1.3; font-weight: 700; text-transform: none; }
.ae-empty p { color: var(--ae-muted); margin: 0; }
.ae-search--empty { max-width: 420px; margin: 24px auto 0; }

.ae-sidebar .ae-widget + .ae-widget { margin-top: 24px; }
.ae-search { display: flex; border: 1px solid var(--ae-border); border-radius: 999px; overflow: hidden; background: #fff; }
.ae-search input[type="search"] { flex: 1; min-width: 0; border: 0 !important; padding: 12px 18px; font-family: inherit; font-size: 14px; color: var(--ae-text); background: transparent; outline: none; box-shadow: none; }
.ae-blog .ae-search button {
	flex: 0 0 46px; border: 0; cursor: pointer; padding: 0;
	background: var(--ae-green) !important; display: flex; align-items: center; justify-content: center; border-radius: 0;
}
.ae-search button svg { width: 18px; height: 18px; fill: #fff; }
.ae-blog .ae-search button:hover { background: var(--ae-brown) !important; }
.ae-search:focus-within { border-color: var(--ae-gold); }

.ae-cats { list-style: none; margin: 0; padding: 0; }
.ae-cats li + li { border-top: 1px solid var(--ae-border); }
.ae-cats a { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; color: var(--ae-text); text-decoration: none; font-size: 14px; font-weight: 500; }
.ae-cats a:hover,
.ae-cats a.is-active { color: var(--ae-green); }
.ae-cats__count { min-width: 28px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--ae-surface-2); color: var(--ae-brown); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.ae-cats a.is-active .ae-cats__count { background: var(--ae-green); color: #fff; }

.ae-cta {
	background: radial-gradient(120% 140% at 100% 0%, rgba(253, 166, 25, .2), transparent 55%), linear-gradient(135deg, var(--ae-green), #00432a);
	color: #fff;
}
.ae-cta__title { font-family: "Poppins", sans-serif; font-size: 18px; font-weight: 700; color: #fff; margin: 0 0 8px; text-transform: none; }
.ae-cta p { font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .85); margin: 0 0 18px; }
.ae-cta__btn {
	display: inline-block; padding: 11px 22px; border-radius: 999px;
	background: var(--ae-gold); color: var(--ae-brown-dark) !important; font-weight: 700; font-size: 14px; text-decoration: none;
	transition: transform .2s;
}
.ae-cta__btn:hover { transform: translateY(-2px); }

/* Responsive */
@media (max-width: 1024px) {
	.ae-layout { grid-template-columns: 1fr; }
	.ae-sidebar { position: static; }
}
@media (max-width: 760px) {
	.ae-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.ae-container { padding: 0 16px; }
	.ae-hero { padding: 36px 0 96px; }
	.ae-layout { margin-top: -64px; gap: 24px; }
	.ae-content { padding: 30px 22px 20px; font-size: 16px; }
	.ae-article__footer { padding: 18px 22px; }
	.ae-share { margin-left: 0; }
	.ae-comments { padding: 26px 22px; }
	.ae-breadcrumb__current { max-width: 200px; }
	.ae-card__body { padding: 20px; }
	.ae-empty { padding: 32px 22px; }
}
