/* ========================================================
   INFORMATIVOS (blog) — design system ACNSG v4.1
   ======================================================== */

.hero-informativos {
    background: linear-gradient(135deg, #0d2453, #14306b);
    color: #fff;
    text-align: center;
    padding: 4rem 2rem 3rem;
}
.hero-informativos h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: .8rem;
}
.hero-informativos .lead {
    max-width: 640px;
    margin: 0 auto;
    color: #d4d8e4;
    font-size: 1.05rem;
}

/* === Filtros === */
.filtros-categorias {
    background: #fff;
    border-bottom: 1px solid #e6e1d3;
    padding: 1.2rem 1rem;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 6px rgba(0,0,0,.04);
}
.filtros-categorias .filtros-inner {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}
.filtros-categorias .filtro-btn {
    padding: .5rem 1.1rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    background: #fff;
    color: #0d2453;
    border: 2px solid #e6e1d3;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
}
.filtros-categorias .filtro-btn:hover { border-color: #d4af5a; }
.filtros-categorias .filtro-btn.active {
    background: #0d2453;
    color: #d4af5a;
    border-color: #0d2453;
}

/* === Grid de cards === */
.lista-informativos { padding: 3rem 1rem 5rem; }
.informativos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}
@media (max-width: 900px) {
    .informativos-grid { grid-template-columns: 1fr; gap: 1.2rem; }
}

/* === CARD === */
.card-info {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(13,36,83,.08);
    transition: transform .35s ease, box-shadow .35s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.card-info:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(13,36,83,.18);
}
.card-info-img {
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #0d2453, #14306b);
}
.card-info-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.card-info:hover .card-info-img img { transform: scale(1.08); }

.card-info-img-placeholder {
    width: 100%;
    height: 100%;
}
.card-info-img-projetos  { background: linear-gradient(135deg, #0d2453, #234ba3); }
.card-info-img-acoes     { background: linear-gradient(135deg, #8bc34a, #5e8e2f); }
.card-info-img-campanhas { background: linear-gradient(135deg, #d4af5a, #8b6f2e); }

.card-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    background: #d4af5a;
    color: #0d2453;
    padding: .3rem .8rem;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.card-tag-projetos  { background: #0d2453; color: #d4af5a; }
.card-tag-acoes     { background: #8bc34a; color: #fff; }
.card-tag-campanhas { background: #d4af5a; color: #0d2453; }

.card-info-body {
    padding: 1.5rem 1.4rem 1.6rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.card-info-data {
    font-size: .72rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .6rem;
}
.card-info-body h3 {
    color: #0d2453;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: .6rem;
}
.card-info-body p {
    color: #666;
    font-size: .92rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
    flex: 1;
}
.card-info-link {
    color: #0d2453;
    font-weight: 800;
    text-decoration: none;
    font-size: .88rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    transition: gap .2s, color .2s;
}
.card-info-link::after { content: '→'; font-size: 1.1rem; }
.card-info:hover .card-info-link {
    gap: .7rem;
    color: #d4af5a;
}

/* ============= POST INDIVIDUAL ============= */
.post-hero {
    background: linear-gradient(135deg, #0d2453, #14306b);
    color: #fff;
    padding: 4rem 2rem 7rem;
    text-align: center;
}
.post-breadcrumb {
    font-size: .82rem;
    color: #d4af5a;
    margin-bottom: 1rem;
    letter-spacing: .03em;
}
.post-breadcrumb a {
    color: #d4d8e4;
    text-decoration: none;
}
.post-breadcrumb a:hover { color: #d4af5a; }
.post-hero h1 {
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    margin-bottom: 1rem;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
}
.post-meta {
    font-size: .85rem;
    color: #d4d8e4;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.post-meta strong { color: #d4af5a; }

.post-imagem-destaque-wrap {
    padding: 0 2rem;
}
.post-imagem-destaque {
    max-width: 980px;
    margin: -5rem auto 3rem;
    aspect-ratio: 16/8;
    background: #f7f5ef;
    border-radius: 14px;
    box-shadow: 0 24px 50px rgba(13,36,83,.25);
    overflow: hidden;
}
.post-imagem-destaque img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-conteudo {
    padding: 0 2rem 5rem;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #2a2a2a;
}
.post-conteudo .post-lead {
    font-size: 1.18rem;
    color: #0d2453;
    font-weight: 600;
    margin-bottom: 1.4rem;
}
.post-conteudo p { margin-bottom: 1.4rem; }
.post-conteudo h2 {
    color: #0d2453;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 2.5rem 0 1rem;
}
.post-conteudo blockquote {
    border-left: 4px solid #d4af5a;
    padding: .8rem 1.4rem;
    margin: 1.8rem 0;
    color: #0d2453;
    font-style: italic;
    font-size: 1.1rem;
    background: #f7f5ef;
    border-radius: 0 8px 8px 0;
}
.post-conteudo a {
    color: #0d2453;
    text-decoration: underline;
    font-weight: 600;
}
.post-conteudo a:hover { color: #d4af5a; }

.post-share {
    padding: 1.6rem 2rem;
    background: #f7f5ef;
    border-radius: 12px;
    text-align: center;
    margin: 2rem auto 4rem;
}
.post-share strong {
    color: #0d2453;
    margin-right: 1rem;
}
.post-share a {
    display: inline-block;
    margin: .3rem;
    width: 38px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    border-radius: 50%;
    background: #0d2453;
    color: #d4af5a;
    text-decoration: none;
    font-weight: 800;
    transition: transform .2s, background .2s;
}
.post-share a:hover {
    transform: scale(1.1);
    background: #d4af5a;
    color: #0d2453;
}

.relacionados {
    background: #f7f5ef;
    padding: 4rem 1rem;
}
.relacionados-titulo {
    text-align: center;
    color: #0d2453;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

/* ============================================================
   GALERIA DE FOTOS DENTRO DO POST
   ============================================================ */
.post-foto-inline {
    margin: 2rem auto;
    max-width: 100%;
    text-align: center;
}
.post-foto-inline img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(13,36,83,.18);
    display: block;
    margin: 0 auto;
}

.post-galeria {
    padding: 2rem 2rem 4rem;
}
.post-galeria-titulo {
    color: #0d2453;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-align: center;
}
.post-galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: .8rem;
}
.post-galeria-grid figure {
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background: #ddd;
    transition: transform .25s ease, box-shadow .25s ease;
}
.post-galeria-grid figure:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(13,36,83,.18);
}
.post-galeria-grid img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.img-protegida {
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: auto;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.lightbox.active { display: flex; }
.lightbox-img {
    width: 100%; height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: rgba(255,255,255,.1);
    color: #fff;
    border: 0;
    width: 48px; height: 48px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.lightbox-close { top: 1.2rem; right: 1.2rem; }
.lightbox-prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(212,175,90,.4); }
.lightbox-counter {
    position: absolute;
    bottom: 1.5rem; left: 50%; transform: translateX(-50%);
    background: rgba(13,36,83,.85);
    color: #d4af5a;
    padding: .4rem 1.1rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: .05em;
}

@media (max-width: 600px) {
    .post-galeria-grid { grid-template-columns: repeat(2, 1fr); }
    .lightbox-prev, .lightbox-next { width: 40px; height: 40px; }
}


/* ============================================================
   v5 — BLOG PROFISSIONAL (toolbar, destaque, paginação, post)
   ============================================================ */

/* Toolbar: filtros + busca */
.blog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.blog-toolbar .filtros-inner { justify-content: flex-start; }
.filtro-count {
    display: inline-block;
    background: rgba(13,36,83,.08);
    color: inherit;
    font-size: .68rem;
    font-weight: 800;
    padding: .1rem .5rem;
    border-radius: 999px;
    margin-left: .3rem;
}
.filtro-btn.active .filtro-count { background: rgba(212,175,90,.25); }

.blog-busca {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: #f7f5ef;
    border: 2px solid #e6e1d3;
    border-radius: 999px;
    padding: .45rem 1rem;
    transition: border-color .2s, box-shadow .2s;
    min-width: 230px;
}
.blog-busca:focus-within {
    border-color: #d4af5a;
    box-shadow: 0 0 0 4px rgba(212,175,90,.15);
}
.blog-busca svg { width: 17px; height: 17px; color: #0d2453; flex-shrink: 0; }
.blog-busca input {
    border: 0;
    background: transparent;
    font: inherit;
    font-size: .9rem;
    color: #0d2453;
    outline: none;
    width: 100%;
}
@media (max-width: 700px) {
    .blog-toolbar { flex-direction: column; align-items: stretch; }
    .blog-toolbar .filtros-inner { justify-content: center; }
    .blog-busca { min-width: 0; }
}

.busca-resultado {
    text-align: center;
    color: #666;
    margin: 0 0 2rem;
}
.busca-resultado a { color: #d4af5a; font-weight: 700; }

/* === POST EM DESTAQUE (mais recente) === */
.destaque-wrap { padding: 2.5rem 1rem 0; }
.informativo-destaque {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(13,36,83,.12);
    text-decoration: none;
    color: inherit;
    border: 1px solid #eee;
    transition: transform .35s ease, box-shadow .35s ease;
}
.informativo-destaque:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 56px rgba(13,36,83,.2);
}
.destaque-img {
    position: relative;
    min-height: 340px;
    overflow: hidden;
    background: linear-gradient(135deg, #0d2453, #14306b);
}
.destaque-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    position: absolute; inset: 0;
    transition: transform .7s ease;
}
.informativo-destaque:hover .destaque-img img { transform: scale(1.05); }
.destaque-body {
    padding: 2.5rem 2.5rem 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.destaque-rotulo {
    color: #d4af5a;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .18em;
    margin-bottom: .8rem;
}
.destaque-body h2 {
    color: #0d2453;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    font-weight: 900;
    line-height: 1.25;
    margin: .3rem 0 .9rem;
}
.destaque-body p {
    color: #666;
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}
@media (max-width: 860px) {
    .informativo-destaque { grid-template-columns: 1fr; }
    .destaque-img { min-height: 220px; aspect-ratio: 16/9; }
    .destaque-body { padding: 1.75rem 1.5rem; }
}

/* === Paginação === */
.paginacao {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}
.pag-btn {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 .8rem;
    border-radius: 999px;
    background: #fff;
    border: 2px solid #e6e1d3;
    color: #0d2453;
    font-weight: 800;
    font-size: .9rem;
    text-decoration: none;
    transition: all .2s;
}
.pag-btn:hover { border-color: #d4af5a; color: #d4af5a; }
.pag-btn.pag-ativa {
    background: #0d2453;
    border-color: #0d2453;
    color: #d4af5a;
    cursor: default;
}

/* === Meta do post com ícones SVG === */
.post-meta-item {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}
.post-meta-item svg {
    width: 16px; height: 16px;
    color: #d4af5a;
    flex-shrink: 0;
}

/* === Botões de compartilhar (SVG) === */
.post-share-botoes {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
    vertical-align: middle;
}
.post-share-botoes a,
.post-share-botoes .copiar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: #0d2453;
    color: #d4af5a;
    border: 0;
    cursor: pointer;
    line-height: 0;
    transition: transform .2s, background .2s, color .2s;
}
.post-share-botoes a:hover,
.post-share-botoes .copiar-link:hover {
    transform: translateY(-3px) scale(1.06);
    background: #d4af5a;
    color: #0d2453;
}
.post-share-botoes svg { width: 19px; height: 19px; }
.copiar-link { position: relative; }
.copiar-link.copiado::after {
    content: 'Link copiado!';
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #0d2453;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: .35rem .7rem;
    border-radius: 6px;
    white-space: nowrap;
}
@media (max-width: 600px) {
    .post-share strong { display: block; margin: 0 0 .8rem; }
}

/* === Navegação anterior/próximo (post e álbum) === */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 0 auto 3.5rem;
    padding: 0 2rem;
}
.album-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 3rem auto;
}
.post-nav-card {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    background: #fff;
    border: 1px solid #e6e1d3;
    border-radius: 12px;
    padding: 1.1rem 1.4rem;
    text-decoration: none;
    transition: border-color .25s, box-shadow .25s, transform .25s;
}
.post-nav-card:hover {
    border-color: #d4af5a;
    box-shadow: 0 10px 24px rgba(13,36,83,.1);
    transform: translateY(-3px);
}
.post-nav-next { text-align: right; align-items: flex-end; }
.post-nav-rotulo {
    color: #d4af5a;
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
}
.post-nav-titulo {
    color: #0d2453;
    font-weight: 800;
    font-size: .95rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-nav-vazio { display: block; }
@media (max-width: 640px) {
    .post-nav, .album-nav { grid-template-columns: 1fr; }
    .post-nav-vazio { display: none; }
    .post-nav-next { text-align: left; align-items: flex-start; }
}
