/* =========================================================
   BLOG DA MUNEE — listagem (blog.html) e artigo (post.html)
   Usa a base do style.css (menu, rodapé, botões, flutuantes).
   ========================================================= */
body.blog-page { background: var(--paper); }
.blog-page main { padding-top: 86px; }

/* Topo escuro */
.bl-hero { background: var(--ink); color: #fff; padding: 72px 0 64px; }
.bl-hero h1 { margin: 0; max-width: 820px; font-size: clamp(2.5rem, 4.6vw, 4.6rem); line-height: .98; letter-spacing: -.055em; text-wrap: balance; }
.bl-hero h1 strong { color: var(--lime); }
.bl-hero > .container > p { margin: 22px 0 0; max-width: 560px; color: rgba(255,255,255,.74); font-size: 1.06rem; line-height: 1.6; font-weight: 500; }
.bl-filters { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 8px; }
.bl-filters button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.22); background: transparent; color: #fff; font: 700 .86rem var(--font); cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.bl-filters button:hover { border-color: rgba(255,255,255,.5); }
.bl-filters button[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--ink); }

/* Destaque: foto + bloco roxo com botão verde */
.bl-featured { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); border-radius: 30px; overflow: hidden; background: var(--violet); color: #fff; text-decoration: none; min-height: 380px; }
.bl-featured[hidden] { display: none; }
.bl-featured-media { position: relative; min-height: 260px; background: #2A1C63; }
.bl-featured-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.bl-featured:hover .bl-featured-media img { transform: scale(1.04); }
.bl-featured-copy { padding: clamp(28px, 3.4vw, 48px); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.bl-featured-copy h2 { margin: 6px 0 0; font-size: clamp(1.7rem, 2.6vw, 2.6rem); line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; }
.bl-featured-copy p { margin: 0; font-size: 1rem; line-height: 1.6; opacity: .9; }
.bl-featured-copy .bl-meta { color: rgba(255,255,255,.78); }
.bl-featured-copy .bl-read { margin-top: auto; }

.bl-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; background: rgba(139,92,246,.12); color: #5B34D6; font-size: .72rem; font-weight: 800; letter-spacing: .02em; }
.bl-featured .bl-chip, .post-hero .bl-chip { background: var(--lime); color: var(--ink); }
.bl-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.bl-read { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 14px; background: var(--lime); color: var(--ink); font-weight: 800; font-size: .95rem; letter-spacing: -.02em; }

/* Lista de artigos */
.bl-list { padding: 64px 0 96px; }
.bl-list h2.bl-list-title { margin: 0 0 26px; font-size: clamp(1.6rem, 2.4vw, 2.3rem); letter-spacing: -.045em; }
.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.bl-card { min-width: 0; display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: #fff; color: var(--ink); text-decoration: none; transition: transform .3s ease, box-shadow .3s ease; }
.bl-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(7,26,51,.12); }
.bl-card-media { position: relative; aspect-ratio: 16 / 10; background: #E6EAF1; overflow: hidden; }
.bl-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.bl-card:hover .bl-card-media img { transform: scale(1.05); }
.bl-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; flex: 1; }
.bl-card-body h3 { margin: 0; font-size: 1.22rem; line-height: 1.2; letter-spacing: -.03em; text-wrap: pretty; }
.bl-card-body p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.bl-card-body .bl-meta { margin-top: auto; padding-top: 4px; }
.bl-more { margin: 34px auto 0; display: flex; }
.bl-more[hidden] { display: none; }
.bl-empty { margin: 0; padding: 40px 0; color: var(--muted); }

/* Faixa final: roxo + verde */
.bl-cta { padding: 0 0 96px; }
.bl-cta-box { border-radius: 30px; background: var(--violet); color: #fff; padding: clamp(32px, 4.4vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.bl-cta-box h2 { margin: 0; font-size: clamp(1.9rem, 3.2vw, 3.2rem); line-height: 1; letter-spacing: -.05em; text-wrap: balance; }
.bl-cta-box p { margin: 14px 0 0; max-width: 560px; opacity: .9; line-height: 1.6; }
.bl-cta-box .button { background: var(--lime); color: var(--ink); min-height: 58px; padding-inline: 26px; border-radius: 16px; font-size: 1rem; }
.bl-cta-box .button:hover { background: #D5F98A; color: var(--ink); }

/* ============ ARTIGO ============ */
.post-hero { background: var(--ink); color: #fff; padding: 56px 0 150px; }
.post-back { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.74); text-decoration: none; font-size: .86rem; font-weight: 700; }
.post-back:hover { color: #fff; }
.post-head { max-width: 900px; margin-top: 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.post-head h1 { margin: 0; font-size: clamp(2.2rem, 4.2vw, 4rem); line-height: 1.02; letter-spacing: -.05em; text-wrap: balance; }
.post-head > p { margin: 0; max-width: 680px; color: rgba(255,255,255,.76); font-size: 1.08rem; line-height: 1.6; }
.post-head .bl-meta { color: rgba(255,255,255,.7); }
.post-cover { margin: -110px auto 0; width: min(calc(100% - 64px), 1080px); aspect-ratio: 16 / 8; border-radius: 30px; overflow: hidden; background: #1A2C48; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-body { width: min(calc(100% - 40px), 720px); margin: 56px auto 0; color: #24344A; font-size: 1.06rem; line-height: 1.8; overflow-wrap: break-word; }
.post-body > :first-child { margin-top: 0; }
.post-body p { margin: 0 0 1.2em; }
.post-body h2 { margin: 2.1em 0 .6em; color: var(--ink); font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.15; letter-spacing: -.035em; }
.post-body h3 { margin: 1.8em 0 .5em; color: var(--ink); font-size: 1.28rem; line-height: 1.25; letter-spacing: -.02em; }
.post-body h4 { margin: 1.6em 0 .4em; color: var(--ink); font-size: 1.1rem; }
.post-body strong { color: var(--ink); }
.post-body a { color: #5B34D6; font-weight: 700; }
.post-body ul, .post-body ol { margin: 0 0 1.3em; padding-left: 1.3em; display: grid; gap: .45em; }
.post-body li::marker { color: var(--violet); font-weight: 800; }
.post-body img { max-width: 100%; height: auto; border-radius: 20px; margin: 1em 0; display: block; }
.post-body blockquote { margin: 1.6em 0; padding: 22px 26px; border-radius: 20px; background: rgba(199,244,100,.35); color: var(--ink); font-weight: 600; }
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body .post-cta { margin: 2.2em 0; padding: 30px 30px 32px; border-radius: 24px; background: var(--violet); color: #fff; }
.post-body .post-cta h4, .post-body .post-cta h3, .post-body .post-cta strong { margin-top: 0; color: #fff; }
.post-body .post-cta p { color: rgba(255,255,255,.9); }
.post-body .post-cta a, .post-body .post-cta .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 14px; background: var(--lime); color: var(--ink); font-weight: 800; text-decoration: none; }
.post-related { padding: 80px 0 40px; }
.post-related h2 { margin: 0 0 24px; font-size: clamp(1.6rem, 2.4vw, 2.3rem); letter-spacing: -.045em; }
.post-state { width: min(calc(100% - 40px), 720px); margin: 60px auto; color: var(--muted); }

@media (max-width: 1080px) {
  .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bl-featured { grid-template-columns: minmax(0, 1fr); }
  .bl-featured-media { aspect-ratio: 16 / 9; }
}
@media (max-width: 740px) {
  .blog-page main { padding-top: 72px; }
  .bl-hero { padding: 48px 0 44px; }
  .bl-hero h1 { font-size: clamp(2.2rem, 10vw, 3.1rem); }
  .bl-filters { margin-top: 26px; }
  .bl-featured { margin-top: 34px; border-radius: 24px; }
  .bl-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .bl-list { padding: 44px 0 64px; }
  .bl-cta { padding-bottom: 72px; }
  .bl-cta-box { grid-template-columns: minmax(0, 1fr); border-radius: 24px; }
  .bl-cta-box .button { width: 100%; }
  .post-hero { padding: 36px 0 96px; }
  .post-head h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .post-cover { width: calc(100% - 32px); margin-top: -64px; border-radius: 22px; aspect-ratio: 16 / 10; }
  .post-body { margin-top: 36px; font-size: 1rem; }
  .post-body .post-cta { padding: 24px 20px; }
  .post-related { padding-top: 56px; }
}
.blog-page [hidden] { display: none !important; }
.post-hero.no-cover { padding-bottom: 64px; }