/* =========================================================
   Blog, Post aberto e modelos de apoio (página, 404, listagem)
   ========================================================= */

/* ---------- Etiqueta e seta (componentes do cartão) ---------- */
.bl-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 10px; border-radius: 30px; background: #fff; color: #000; font-size: 10px; line-height: 18px; text-transform: uppercase; white-space: nowrap; }
.bl-tag--cinza { background: var(--sb-border); }
.bl-go { display: block; width: 30px; height: 30px; }
.bl-go svg { width: 30px; height: 30px; }
.bl-go svg path { transition: opacity .35s var(--sb-ease); }

/* ---------- Cartão (440 x 441: foto 440 x 280, título 25/25, texto 14/18) ---------- */
.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bl-card { position: relative; min-width: 0; }
.bl-card__link { display: flex; flex-direction: column; color: inherit; }
.bl-card__media { position: relative; display: block; height: 0; padding-top: 63.64%; border-radius: 30px; overflow: hidden; background: #e4e4e4; transition: padding-top .5s var(--sb-ease); }
.bl-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--sb-ease); }
.bl-card__media .bl-tag { position: absolute; left: 4.55%; top: 20px; }
.bl-card__media .bl-go { position: absolute; right: 4.55%; top: 20px; width: 20px; height: 20px; border-radius: 50%; transition: width .4s var(--sb-ease), height .4s var(--sb-ease); }
.bl-card__media .bl-go svg { width: 100%; height: 100%; }
.bl-card__media .bl-go svg path { opacity: 0; }
.bl-card__body { display: block; padding-top: 23px; padding-right: 4.55%; transition: margin-bottom .5s var(--sb-ease); }
.bl-card__title { display: block; min-height: 75px; font-size: var(--sb-fs-sm); line-height: 1; letter-spacing: -.03em; font-weight: 500; color: var(--sb-text); }
.bl-card__text { display: block; margin-top: 11px; font-size: 14px; line-height: 18px; color: var(--sb-gray); }
/* Variante 2 do Figma (hover): foto mais alta e seta visível, sem mexer na grade. */
.bl-card__link:hover .bl-card__media, .bl-card__link:focus-visible .bl-card__media { padding-top: 73.86%; }
.bl-card__link:hover .bl-card__body, .bl-card__link:focus-visible .bl-card__body { margin-bottom: -10.22%; }
.bl-card__link:hover .bl-card__media img { transform: scale(1.03); }
.bl-card__link:hover .bl-go, .bl-card__link:focus-visible .bl-go { width: 30px; height: 30px; }
.bl-card__link:hover .bl-go svg path, .bl-card__link:focus-visible .bl-go svg path { opacity: 1; }

/* ---------- Topo do Blog ---------- */
.bl-hero { padding-top: 156px; }
.bl-hero__grid { display: grid; grid-template-columns: 373px 1fr; grid-template-areas: "titulo titulo" "texto recente"; column-gap: 40px; }
.bl-hero__copy { display: contents; }
.bl-hero__title { grid-area: titulo; max-width: 878px; color: #000; }
.bl-hero__text { grid-area: texto; align-self: end; max-width: 373px; margin-left: 2px; font-size: 16px; line-height: 20px; color: #000; }

.bl-recente { grid-area: recente; justify-self: end; width: 833px; max-width: 100%; margin-top: 52px; }
.bl-recente__label { padding-left: 28px; font-size: 16px; line-height: 20px; letter-spacing: -.03em; font-weight: 600; color: var(--sb-green-esg); }
.bl-recente__box { position: relative; display: grid; grid-template-columns: 440px 1fr; column-gap: 15px; min-height: 292px; margin-top: 5px; padding: 7px 29px 8px 8px; border-radius: 35px; background: var(--sb-green-esg); color: #fff; transition: background-color .3s var(--sb-ease); }
.bl-recente__box:hover { background: #06ad4a; }
.bl-recente__media { position: relative; display: block; border-radius: 30px; overflow: hidden; background: #0a5e2b; min-height: 277px; }
.bl-recente__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--sb-ease); }
.bl-recente__box:hover .bl-recente__media img { transform: scale(1.04); }
.bl-recente__media .bl-tag { position: absolute; left: 20px; top: 19px; }
.bl-recente__body { display: flex; flex-direction: column; justify-content: space-between; padding: 19px 45px 16px 0; }
.bl-recente__title { max-width: 271px; font-size: 20px; line-height: 20px; letter-spacing: -.03em; font-weight: 500; }
.bl-recente__text { max-width: 294px; margin-left: 2px; font-size: 14px; line-height: 18px; }
.bl-recente__box > .bl-go { position: absolute; right: 29px; top: 26px; transition: transform .35s var(--sb-ease); }
.bl-recente__box:hover > .bl-go { transform: translate(2px, -2px); }

/* ---------- Conteúdos em destaque ---------- */
.bl-dest { margin-top: 50px; background: #f4f4f4; padding: 58px 0 80px; }
.bl-dest__title { color: #000; }
.bl-dest .bl-grid { margin-top: 20px; }

/* ---------- Explore nossos conteúdos ---------- */
.bl-exp { padding: 66px 0 174px; }
.bl-exp__head { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 10px; align-items: center; }
.bl-exp__title { color: #000; }
.bl-filtros { grid-column: 2 / 4; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bl-select { position: relative; }
.bl-select select { width: 100%; height: 35px; padding: 0 56px 0 30px; border: 1px solid var(--sb-text); border-radius: 30px; background: #fff; font-size: 12px; font-weight: 500; color: var(--sb-text); appearance: none; -webkit-appearance: none; cursor: pointer; transition: border-color .25s, background-color .25s; }
.bl-select select:hover { background: #f7f7f7; }
.bl-select select:focus { outline: none; border-color: var(--sb-green-esg); }
.bl-select svg { position: absolute; right: 15px; top: 8px; width: 19px; height: 19px; pointer-events: none; }
.bl-filtros__go { height: 35px; }
.bl-grid--exp { margin-top: 25px; row-gap: 60px; }
.bl-vazio { margin-top: 40px; font-size: 16px; line-height: 20px; color: var(--sb-gray); }

/* Paginação "< • • • • • >" */
.bl-pag { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 126px; margin-left: -27px; font-size: 16px; line-height: 20px; font-weight: 600; color: #000; }
.bl-pag a, .bl-pag span.bl-pag__dot, .bl-pag__arrow { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 20px; transition: color .25s, transform .25s; }
.bl-pag a:hover { color: var(--sb-green-esg); transform: translateY(-1px); }
.bl-pag__dot.is-current { color: var(--sb-green-esg); }
.bl-pag__arrow.is-off { opacity: .3; }

/* ---------- Newsletter (faixa final do Blog) ---------- */
.sb-cta--news .sb-cta__inner { flex-direction: column; justify-content: space-between; gap: 30px; padding-top: 54px; padding-bottom: 49px; }
.sb-cta--news .sb-cta__title { max-width: 514px; }
.sb-cta--news .sb-cta__side { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 32px; max-width: none; width: 100%; text-align: left; padding-right: 0; }
.sb-cta--news .sb-cta__text { max-width: 373px; padding-bottom: 5px; }
.bl-news { grid-template-columns: 342px 342px 232px; column-gap: 9px; row-gap: 12px; align-items: end; flex: none; }
.bl-news input { background: transparent; border-color: #fff; color: #fff; }
.bl-news input::placeholder { color: #fff; }
.bl-news input:focus { border-color: var(--sb-neon); }
.bl-news input:-webkit-autofill { -webkit-text-fill-color: #fff; transition: background-color 9999s; }
.sb-form.bl-news .sb-form__submit { margin-top: 0; background: var(--sb-green-esg); }
.sb-form.bl-news .sb-form__submit:hover { background: #06ad4a; }
.bl-news .sb-form__msg { grid-column: 1 / -1; }

/* ---------- Post aberto ---------- */
.bl-post { padding-top: 160px; }
.bl-post__wrap { max-width: calc(944px + 2 * var(--sb-gutter)); }
.bl-post__meta { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 20px; font-size: 14px; line-height: 14px; color: #000; }
.bl-post__date { padding-top: 3px; }
.bl-post__cat { position: absolute; left: 50%; top: 0; transform: translateX(-50%); min-width: 87px; justify-content: center; transition: background-color .25s; }
.bl-post__cat:hover { background: var(--sb-neon); }
.bl-post__by { padding-top: 3px; }
.bl-post__by strong { font-weight: 700; }
.bl-post__title { margin-top: 19px; max-width: 941px; font-size: clamp(30px, 3.125vw, 45px); line-height: 1.1556; letter-spacing: -.03em; font-weight: 500; color: var(--sb-text); }
.bl-post__img { margin: 25px 0 0; aspect-ratio: 944 / 404; border-radius: 30px; overflow: hidden; background: #e4e4e4; }
.bl-post__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.bl-post__content { margin-top: 32px; }

/* Tipografia do conteúdo do editor */
.bl-prose { font-size: 18px; line-height: 22px; color: #000; overflow-wrap: break-word; }
.bl-prose > * + * { margin-top: 22px; }
.bl-prose p, .bl-prose ul, .bl-prose ol, .bl-prose blockquote, .bl-prose figure { margin-bottom: 0; }
.bl-prose h2, .bl-prose h3, .bl-prose h4 { font-size: 18px; line-height: 22px; font-weight: 600; letter-spacing: 0; color: #000; }
.bl-prose h2 + *, .bl-prose h3 + *, .bl-prose h4 + * { margin-top: 0; }
.bl-prose * + h2, .bl-prose * + h3 { margin-top: 22px; }
.bl-prose a { color: var(--sb-olive); text-decoration: underline; text-underline-offset: 3px; }
.bl-prose a:hover { color: var(--sb-green-esg); }
.bl-prose ul, .bl-prose ol { padding-left: 22px; }
.bl-prose ul { list-style: disc; }
.bl-prose ol { list-style: decimal; }
.bl-prose li + li { margin-top: 6px; }
.bl-prose li::marker { color: var(--sb-green-esg); }
.bl-prose strong { font-weight: 600; }
.bl-prose blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--sb-green-esg); font-size: 22px; line-height: 28px; letter-spacing: -.02em; color: var(--sb-text); }
.bl-prose img { border-radius: 20px; height: auto; }
.bl-prose figure { margin-left: 0; margin-right: 0; }
.bl-prose figcaption { margin-top: 8px; font-size: 13px; line-height: 18px; color: var(--sb-gray); }
.bl-prose iframe { max-width: 100%; }
.bl-prose .wp-block-image.alignwide, .bl-prose .alignfull { margin-left: 0; margin-right: 0; }
.bl-prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 20px; }
.bl-prose th, .bl-prose td { padding: 10px 12px; border-bottom: 1px solid var(--sb-border); text-align: left; }
.bl-prose hr { border: 0; border-top: 1px solid var(--sb-border); }

/* Sobre o autor (387 x 130) */
.bl-autor { display: grid; grid-template-columns: 114px 1fr; column-gap: 15px; width: 387px; max-width: 100%; min-height: 130px; margin-top: 50px; padding: 6px 20px 7px 7px; border-radius: 35px; background: var(--sb-green-esg); color: #fff; }
.bl-autor__foto { width: 114px; height: 117px; border-radius: 31px; object-fit: cover; transform: scaleX(-1); }
.bl-autor__info { padding-top: 9px; }
.bl-autor__label { font-size: 12px; line-height: 16px; }
.bl-autor__nome { margin-top: 5px; font-size: 25px; line-height: 25px; letter-spacing: -.03em; font-weight: 500; }
.bl-autor__cargo { font-size: 16px; line-height: 20px; font-weight: 600; }
.bl-autor__bio { margin-top: 5px; max-width: 245px; font-size: 12px; line-height: 16px; }

/* Relacionados */
.bl-rel { margin-top: 69px; padding-bottom: 115px; }
.bl-rel__title { color: #000; }
.bl-rel__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 440px)); gap: 10px; margin-top: 35px; }

/* Faixa final do post (título 754, botão alinhado embaixo) */
.sb-cta--post .sb-cta__inner { align-items: flex-end; padding-top: 86px; padding-bottom: 86px; }
.sb-cta--post .sb-cta__title { max-width: 754px; }
.sb-cta--post .sb-cta__side { padding-bottom: 13px; }

/* ---------- Página comum, 404 e listagem genérica ---------- */
.bl-page { padding-top: 160px; padding-bottom: 120px; }
.bl-page__title { font-size: clamp(34px, 3.125vw, 45px); line-height: 1.1556; letter-spacing: -.03em; font-weight: 500; color: var(--sb-text); }
.bl-page .bl-post__content { margin-top: 40px; }
.bl-hero--simples { padding-bottom: 0; }
.bl-exp--simples { padding-top: 40px; padding-bottom: 140px; }
.bl-exp--simples .bl-grid--exp { margin-top: 0; }
.bl-404 { padding: 180px 0 160px; }
.bl-404__code { font-size: clamp(90px, 13vw, 180px); line-height: 1; letter-spacing: -.05em; font-weight: 300; color: var(--sb-green-esg); }
.bl-404__title { margin-top: 10px; max-width: 760px; }
.bl-404__text { margin-top: 24px; margin-left: 0; max-width: 460px; }
.bl-404__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1200px) {
	.bl-hero__grid { grid-template-columns: 1fr; grid-template-areas: "titulo" "texto" "recente"; }
	.bl-hero__text { margin-top: 28px; }
	.bl-recente { justify-self: stretch; width: auto; margin-top: 40px; }
	.bl-recente__label { padding-left: 0; }
	.bl-recente__box { grid-template-columns: minmax(0, 440px) 1fr; }
	.bl-news { grid-template-columns: 1fr 1fr 232px; }
	.sb-cta--news .sb-cta__side { flex-direction: column; align-items: stretch; }
}
@media (max-width: 1024px) {
	.bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 50px; }
	.bl-grid--exp { row-gap: 60px; }
	.bl-exp__head { grid-template-columns: 1fr; row-gap: 20px; }
	.bl-filtros { grid-column: auto; }
	.bl-card__title { min-height: 0; }
	.bl-pag { margin-top: 80px; margin-left: 0; }
}
@media (max-width: 768px) {
	.bl-hero, .bl-post, .bl-page { padding-top: 120px; }
	.bl-recente__box { grid-template-columns: 1fr; padding: 7px 7px 22px; row-gap: 18px; }
	.bl-recente__media { min-height: 0; aspect-ratio: 440 / 277; }
	.bl-recente__body { padding: 0 52px 0 13px; gap: 14px; }
	.bl-recente__title { max-width: none; }
	.bl-recente__text { max-width: none; margin-left: 0; }
	.bl-recente__box > .bl-go { top: auto; bottom: 22px; right: 14px; }
	.bl-dest { margin-top: 40px; padding: 48px 0 64px; }
	.bl-exp { padding: 48px 0 90px; }
	.bl-grid { grid-template-columns: 1fr; row-gap: 40px; }
	.bl-grid--exp { margin-top: 24px; row-gap: 40px; }
	.bl-filtros { grid-template-columns: 1fr; }
	.bl-pag { margin-top: 56px; gap: 18px; }
	.bl-card__link:hover .bl-card__media, .bl-card__link:focus-visible .bl-card__media { padding-top: 63.64%; }
	.bl-card__link:hover .bl-card__body, .bl-card__link:focus-visible .bl-card__body { margin-bottom: 0; }
	.bl-card__media .bl-go { width: 30px; height: 30px; }
	.bl-card__media .bl-go svg path { opacity: 1; }
	.sb-cta--news .sb-cta__inner { padding-top: 64px; padding-bottom: 64px; }
	.bl-news { grid-template-columns: 1fr; width: 100%; }
	.bl-post__meta { flex-wrap: wrap; gap: 12px 16px; justify-content: flex-start; }
	.bl-post__cat { position: static; transform: none; order: -1; }
	.bl-post__by { flex-basis: 100%; padding-top: 0; }
	.bl-post__img { aspect-ratio: 4 / 3; }
	.bl-prose { font-size: 17px; line-height: 24px; }
	.bl-prose > * + * { margin-top: 20px; }
	.bl-autor { width: 100%; margin-top: 48px; }
	.bl-rel { margin-top: 56px; padding-bottom: 80px; }
	.bl-rel__grid { grid-template-columns: 1fr; row-gap: 40px; margin-top: 24px; }
	.sb-cta--post .sb-cta__inner { align-items: flex-start; padding-top: 64px; padding-bottom: 64px; }
	.sb-cta--post .sb-cta__side { padding-bottom: 0; }
	.bl-404 { padding: 130px 0 100px; }
}
@media (max-width: 420px) {
	.bl-autor { grid-template-columns: 90px 1fr; padding-right: 16px; }
	.bl-autor__foto { width: 90px; height: 100px; border-radius: 26px; }
	.bl-autor__nome { font-size: 21px; line-height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
	.bl-card__media, .bl-card__body, .bl-card__media img, .bl-recente__media img { transition: none; }
}
