/* Listagem e artigo de postagens */
.postagens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.postagem-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition, all 0.3s ease);
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.postagem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.postagem-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.postagem-card-img {
    height: 200px;
    background: linear-gradient(135deg, #1a5f9e 0%, #0d3d66 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.postagem-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.postagem-card-img i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.5);
}

.postagem-card-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.postagem-card-meta {
    font-size: 0.8rem;
    color: var(--gray, #666);
    margin-bottom: 10px;
}

.postagem-card-meta strong {
    color: var(--primary, #003366);
}

.postagem-card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--dark, #222);
}

.postagem-card-body p {
    color: var(--gray, #666);
    font-size: 0.95rem;
    line-height: 1.5;
    flex: 1;
}

.postagem-card-ler {
    margin-top: 16px;
    font-weight: 600;
    color: var(--primary, #003366);
    font-size: 0.9rem;
}

.postagem-card-ler i {
    margin-left: 6px;
}

.postagens-vazio {
    text-align: center;
    padding: 48px 24px;
    color: var(--gray, #666);
    background: var(--light, #f5f7fa);
    border-radius: 12px;
    border: 1px dashed #c5d4e4;
}

.postagens-vazio i {
    font-size: 2.5rem;
    color: var(--primary, #003366);
    margin-bottom: 16px;
    display: block;
}

.postagens-secao-titulo {
    margin: 40px 0 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary, #003366);
}

.postagens-secao-titulo h3 {
    font-size: 1.25rem;
    color: var(--primary, #003366);
}

/* Artigo completo */
.artigo-post {
    max-width: 820px;
    margin: 0 auto;
}

.artigo-post-capa {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 28px;
}

.artigo-post-capa-placeholder {
    height: 280px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1a5f9e, #0d3d66);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
}

.artigo-post-capa-placeholder i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.4);
}

.artigo-post-meta {
    font-size: 0.9rem;
    color: var(--gray, #666);
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.artigo-post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.artigo-post h1 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--dark, #222);
    line-height: 1.3;
}

.artigo-post-conteudo {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #333;
    white-space: pre-wrap;
}

.artigo-post-conteudo--rich {
    white-space: normal;
}

.artigo-post-conteudo--rich h2,
.artigo-post-conteudo--rich h3 {
    color: var(--primary, #003366);
    margin: 1.25em 0 0.5em;
}

.artigo-post-conteudo--rich p {
    margin-bottom: 1em;
}

.artigo-post-conteudo--rich ul,
.artigo-post-conteudo--rich ol {
    margin: 0 0 1em 1.5em;
}

.artigo-post-conteudo--rich a {
    color: var(--primary, #003366);
    text-decoration: underline;
}

.artigo-post-conteudo--rich strong {
    font-weight: 600;
}

.artigo-voltar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    font-weight: 600;
    color: var(--primary, #003366);
}

.artigo-voltar:hover {
    color: var(--accent, #8b0000);
}

.artigo-post-anexos {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid #e0e8f0;
}

.artigo-post-anexos h2 {
    font-size: 1.15rem;
    color: var(--primary, #003366);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.artigo-anexos-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.artigo-anexos-lista li {
    margin-bottom: 10px;
}

.artigo-anexo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f4f8fc;
    border: 1px solid #c5d4e4;
    border-radius: 8px;
    color: var(--primary, #003366);
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s;
}

.artigo-anexo-link:hover {
    background: #e8eef4;
    border-color: #003366;
}

.artigo-anexo-link small {
    font-weight: 400;
    color: #666;
}

.page-postagens-interna {
    margin-bottom: 40px;
}
