/* ==========================================================================
   CMDCA CATALÃO - Folha de estilo única
   Direção: institucional e sóbria. Fundo neutro, cards brancos com borda fina,
   verde como única cor de destaque. Rosa e azul apenas como marcadores de
   categoria, em tinta clara.
   ========================================================================== */

:root {
    /* Verde institucional - único destaque */
    --green-900: #14401f;
    --green-800: #1a5228;
    --green-700: #226b34;
    --green-600: #2b8440;
    --green-500: #37a050;
    --green-100: #e3f1e6;
    --green-50:  #f2f9f4;

    /* Marcadores de categoria (uso pontual) */
    --pink-700: #9c2c61;
    --pink-100: #fae9f0;
    --blue-700: #2a4f86;
    --blue-100: #e8eef7;

    /* Neutros */
    --gray-900: #1f2426;
    --gray-700: #3d464b;
    --gray-500: #626d74;
    --gray-300: #c9d0d5;
    --gray-200: #e1e5e8;
    --gray-100: #eef1f3;
    --gray-50:  #f6f7f8;
    --white: #ffffff;

    --shadow-soft: 0 1px 2px rgba(16, 24, 40, .06);
    --shadow-card: 0 4px 12px rgba(16, 24, 40, .09);
    --radius: 8px;
    --transition: all .18s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
    font-size: 16px;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; }

:focus-visible {
    outline: 3px solid var(--green-600);
    outline-offset: 2px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--green-800);
    color: #fff;
    padding: 12px 18px;
    z-index: 1200;
}
.skip-link:focus { left: 0; }

/* ---------- Barra superior ---------- */
.top-bar {
    background: var(--green-800);
    color: var(--white);
    font-size: .84rem;
}

.top-bar .container {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.top-bar-left { display: flex; gap: 20px; flex-wrap: wrap; }
.top-bar i { margin-right: 6px; opacity: .9; }

.top-bar-right { display: flex; align-items: center; gap: 8px; }

.instagram-btn,
.donate-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, .35);
    font-weight: 600;
    transition: var(--transition);
}

.instagram-btn:hover,
.donate-btn:hover { background: rgba(255, 255, 255, .14); }

/* ---------- Cabeçalho ---------- */
.main-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

.main-header .container {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo-block { display: flex; align-items: center; gap: 14px; }

.logo-img { height: 62px; width: auto; max-width: 260px; object-fit: contain; }

.logo-text h1 {
    font-size: 1.3rem;
    color: var(--gray-900);
    font-weight: 700;
    letter-spacing: .01em;
}

.logo-text p {
    color: var(--gray-500);
    font-weight: 400;
    font-size: .88rem;
}

.header-info {
    display: flex;
    gap: 26px;
    font-size: .86rem;
    color: var(--gray-500);
}

.header-info div { display: flex; gap: 9px; }
.header-info i { color: var(--green-700); margin-top: 3px; }
.header-info strong { display: block; color: var(--gray-900); font-weight: 600; }

/* ---------- Navegação ---------- */
.main-nav {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 999;
}

.main-nav .container { display: flex; align-items: center; }

.menu-toggle {
    display: none;
    width: 100%;
    padding: 14px 0;
    background: none;
    border: none;
    color: var(--gray-900);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.nav-menu { display: flex; align-items: center; width: 100%; }

.nav-item { position: relative; }

.nav-link {
    display: block;
    padding: 15px 14px;
    color: var(--gray-700);
    font-weight: 600;
    font-size: .9rem;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.nav-link:hover,
.nav-item:hover > .nav-link,
.nav-link.active {
    color: var(--green-700);
    border-bottom-color: var(--green-600);
}

.nav-link i { margin-left: 5px; font-size: .7rem; opacity: .7; }

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.dropdown-large { min-width: 330px; }

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown { opacity: 1; visibility: visible; }

.dropdown-item a {
    display: block;
    padding: 11px 18px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
    font-weight: 500;
    font-size: .88rem;
    transition: var(--transition);
}

.dropdown-item:last-child a { border-bottom: 0; }
.dropdown-item a:hover { background: var(--gray-50); color: var(--green-700); }

/* ---------- Banner ----------
   height:auto + object-fit:contain garantem que a imagem apareça inteira,
   sem corte, seja qual for a proporção do arquivo. */
.banner-section { padding: 24px 0 0; }

.banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--gray-100);
}

/* ---------- Acesso rápido ---------- */
.quick-access { padding: 28px 0 12px; }

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.quick-card {
    display: block;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
}

.quick-card:hover { border-color: var(--green-500); box-shadow: var(--shadow-soft); }

.quick-card i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: var(--green-100);
    color: var(--green-700);
    font-size: 1.05rem;
    margin-bottom: 12px;
}

.quick-card h3 { color: var(--gray-900); font-size: 1rem; margin-bottom: 4px; }
.quick-card p { color: var(--gray-500); font-size: .88rem; }

/* ---------- Institucional ---------- */
.intro-section { padding: 40px 0; }

.intro-card {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 32px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 32px;
}

.intro-label {
    color: var(--green-700);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .74rem;
    margin-bottom: 8px;
}

.intro-card h2 { font-size: 1.5rem; color: var(--gray-900); }

.intro-card p { color: var(--gray-700); font-size: .98rem; }
.intro-card p + p { margin-top: 14px; }

/* ---------- Título de seção ---------- */
.section-title { margin-bottom: 24px; }

.section-title span {
    display: block;
    color: var(--gray-500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .74rem;
    margin-bottom: 5px;
}

.section-title h2 {
    color: var(--gray-900);
    font-size: 1.5rem;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-200);
    position: relative;
}

.section-title h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 64px;
    height: 2px;
    background: var(--green-600);
}

/* ---------- Avisos / Notícias ---------- */
.news-section { padding: 34px 0 48px; }

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.news-card:hover { border-color: var(--gray-300); box-shadow: var(--shadow-soft); }

/* Capa do card, proporcao 3:2 travada.
   A altura vem do padding-top (66.666% da largura) e a imagem e posicionada
   por cima, em absoluto. Isso garante altura DEFINIDA: sem isso, o height:100%
   da imagem resolve para auto, uma foto muito alta estica a caixa e o grid
   iguala todos os cards da linha pelo maior. */
.news-img {
    position: relative;
    padding-top: 66.666%;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    overflow: hidden;
}

.news-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.news-content { padding: 20px; display: flex; flex-direction: column; flex: 1; }

.news-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 3px 9px;
    border-radius: 4px;
    background: var(--green-100);
    color: var(--green-900);
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 10px;
}

.news-badge.comunicado { background: var(--pink-100); color: var(--pink-700); }
.news-badge.edital { background: var(--blue-100); color: var(--blue-700); }

.news-meta { color: var(--gray-500); font-size: .8rem; margin-bottom: 8px; }
.news-meta i { margin-right: 5px; }

.news-card h3 { color: var(--gray-900); font-size: 1.02rem; margin-bottom: 8px; }
.news-card p { color: var(--gray-500); font-size: .89rem; margin-bottom: 14px; }

.news-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    align-self: flex-start;
    color: var(--green-700);
    font-weight: 600;
    font-size: .88rem;
}

.news-btn:hover { text-decoration: underline; }

.news-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 20px;
    color: var(--gray-500);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
}

.news-empty i { display: block; font-size: 2rem; color: var(--gray-300); margin-bottom: 12px; }

.section-cta { margin-top: 24px; }

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--green-700);
    color: var(--green-700);
    font-weight: 600;
    font-size: .9rem;
    transition: var(--transition);
}

.btn-outline:hover { background: var(--green-700); color: var(--white); }

/* ---------- Aviso sobre o FMDCA ---------- */
.donate-section { padding: 0 0 48px; }

.donate-panel {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 32px;
    background: var(--green-50);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--green-600);
    border-radius: var(--radius);
    padding: 28px 32px;
}

.donate-panel h2 { font-size: 1.35rem; margin-bottom: 10px; color: var(--gray-900); }
.donate-panel p { color: var(--gray-700); font-size: .96rem; margin-bottom: 18px; }

.donate-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius);
    background: var(--green-700);
    color: var(--white);
    font-weight: 600;
    font-size: .92rem;
    transition: var(--transition);
}

.donate-cta:hover { background: var(--green-900); }

.donate-points { display: grid; gap: 12px; align-content: center; }

.donate-point { display: flex; gap: 12px; }
.donate-point i { color: var(--green-700); margin-top: 4px; }
.donate-point strong { display: block; font-size: .93rem; }
.donate-point span { color: var(--gray-500); font-size: .87rem; }

/* ---------- FAQ ---------- */
.faq-section { padding: 0 0 56px; }

.faq-subtitle { color: var(--gray-500); margin: -14px 0 22px; font-size: .95rem; }

.faq-container {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-item:last-child { border-bottom: 0; }

.faq-question {
    width: 100%;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    color: var(--gray-900);
    font-weight: 600;
    font-size: .96rem;
    font-family: inherit;
    background: none;
    border: none;
    text-align: left;
}

.faq-question:hover { background: var(--gray-50); }

.faq-icon { color: var(--gray-500); font-size: .8rem; transition: var(--transition); flex: 0 0 auto; }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s ease; }

.faq-answer p { padding: 0 20px 18px; color: var(--gray-700); font-size: .94rem; }

.faq-item.active .faq-answer { max-height: 600px; }
.faq-item.active .faq-icon { transform: rotate(180deg); }

/* ---------- Rodapé ---------- */
footer {
    background: var(--gray-900);
    color: rgba(255, 255, 255, .78);
    border-top: 3px solid var(--green-600);
    padding: 44px 0 20px;
    font-size: .9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr .8fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo-img { max-width: 130px; margin-bottom: 14px; }

.footer-logo-side h3,
.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: .95rem;
    margin-bottom: 14px;
}

.footer-logo-side p { color: rgba(255, 255, 255, .6); }

.responsavel-box { margin-top: 14px; color: rgba(255, 255, 255, .6); }
.responsavel-box .nome { display: block; color: var(--white); font-weight: 600; }
.responsavel-box .cargo { font-size: .84rem; }

.footer-links li { margin-bottom: 9px; }
.footer-links a { color: rgba(255, 255, 255, .72); transition: var(--transition); }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-links a i { display: none; }

.contact-info li { display: flex; gap: 10px; margin-bottom: 12px; color: rgba(255, 255, 255, .72); }
.contact-info i { color: rgba(255, 255, 255, .45); margin-top: 4px; }
.contact-info a:hover { text-decoration: underline; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding-top: 16px;
    color: rgba(255, 255, 255, .5);
    font-size: .82rem;
}

/* ---------- Cabeçalho de páginas internas ---------- */
.page-hero {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 26px 0 28px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    font-size: .84rem;
    color: var(--gray-500);
}

.breadcrumb a { color: var(--green-700); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb i { font-size: .62rem; color: var(--gray-300); }

.page-hero h1 { font-size: 1.75rem; max-width: 900px; margin-bottom: 8px; }
.page-hero p { max-width: 760px; color: var(--gray-500); font-size: .95rem; }

.news-meta-hero { display: flex; flex-wrap: wrap; gap: 16px; color: var(--gray-500); font-size: .86rem; }
.news-meta-hero i { margin-right: 6px; }

/* ---------- Páginas internas ---------- */
.internal-section { padding: 36px 0 56px; }

.internal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
}

.content-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 32px;
}

.page-content { color: var(--gray-700); font-size: 1rem; line-height: 1.7; }

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4 { color: var(--gray-900); margin: 26px 0 12px; }

.page-content h1:first-child,
.page-content h2:first-child,
.page-content h3:first-child { margin-top: 0; }

.page-content h1 { font-size: 1.6rem; }
.page-content h2 { font-size: 1.3rem; }
.page-content h3 { font-size: 1.1rem; }
.page-content h4 { font-size: 1rem; }

.page-content p { margin-bottom: 16px; }

.page-content a { color: var(--green-700); text-decoration: underline; text-underline-offset: 2px; }

.page-content ul,
.page-content ol { margin: 0 0 18px 22px; padding-left: 14px; }
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }
.page-content li { margin-bottom: 6px; }

.page-content blockquote {
    margin: 22px 0;
    padding: 14px 18px;
    border-left: 3px solid var(--green-600);
    background: var(--gray-50);
    color: var(--gray-700);
}

.page-content img { height: auto; border: 1px solid var(--gray-200); margin: 20px auto; display: block; }

.page-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .94rem; }

.page-content th,
.page-content td { border: 1px solid var(--gray-200); padding: 10px 12px; text-align: left; vertical-align: top; }

.page-content th { background: var(--gray-100); color: var(--gray-900); font-weight: 600; }

/* ---------- Anexos ---------- */
.attachment-title {
    font-size: 1.05rem;
    color: var(--gray-900);
    margin: 30px 0 14px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.attachment-list { display: grid; gap: 10px; }

.attachment-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    transition: var(--transition);
}

.attachment-item:hover { background: var(--gray-50); border-color: var(--gray-300); }

.attachment-item > i { color: var(--green-700); font-size: 1.2rem; flex: 0 0 auto; }
.attachment-info { flex: 1; min-width: 0; }
.attachment-info strong { display: block; color: var(--gray-900); font-size: .95rem; font-weight: 600; }
.attachment-info small { color: var(--gray-500); }

.attachment-download {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    font-weight: 600;
    font-size: .84rem;
    flex: 0 0 auto;
    transition: var(--transition);
}

.attachment-download:hover { background: var(--green-700); border-color: var(--green-700); color: var(--white); }

/* ---------- Artigo de notícia ---------- */
.news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
}

.article-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
}

/* height:auto mostra a imagem na proporcao original; o max-height
   evita que uma foto vertical ocupe a tela toda. */
.article-cover {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    display: block;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
}

.article-content { padding: 32px; }

.badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 4px;
    background: var(--green-100);
    color: var(--green-900);
    font-weight: 700;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 14px;
}

.article-lead {
    font-size: 1.05rem;
    color: var(--gray-900);
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-content p { color: var(--gray-700); margin-bottom: 16px; }
.article-content h2 { color: var(--gray-900); font-size: 1.25rem; margin: 26px 0 12px; }

.article-highlight {
    margin: 22px 0;
    padding: 16px 18px;
    background: var(--gray-50);
    border-left: 3px solid var(--green-600);
    color: var(--gray-700);
}

.share-box {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.share-box strong { color: var(--gray-700); font-size: .9rem; font-weight: 600; }
.share-links { display: flex; gap: 8px; }

.share-links a {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    color: var(--gray-500);
    transition: var(--transition);
}

.share-links a:hover { background: var(--green-700); border-color: var(--green-700); color: var(--white); }

/* ---------- Barra lateral ---------- */
.internal-layout > aside,
.news-layout > aside {
    position: sticky;
    top: 76px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.side-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
}

.side-title {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-900);
    padding: 13px 18px;
    font-weight: 600;
    font-size: .92rem;
}

.latest-list a { display: block; padding: 14px 18px; border-bottom: 1px solid var(--gray-100); transition: var(--transition); }
.latest-list a:hover { background: var(--gray-50); }
.latest-list a:last-child { border-bottom: 0; }
.latest-list small { display: block; color: var(--gray-500); margin-bottom: 4px; font-size: .78rem; }
.latest-list span { display: block; color: var(--gray-900); font-weight: 600; line-height: 1.35; font-size: .89rem; }

.side-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
    font-weight: 500;
    font-size: .9rem;
    transition: var(--transition);
}

.side-menu a:last-child { border-bottom: 0; }
.side-menu a:hover { background: var(--gray-50); color: var(--green-700); }

.side-menu a.active {
    background: var(--green-50);
    color: var(--green-900);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--green-600);
}

.side-menu i { color: var(--gray-300); font-size: .7rem; flex: 0 0 auto; }

.service-box {
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
}

.service-box i { color: var(--green-700); font-size: 1.2rem; margin-bottom: 10px; display: block; }
.service-box h3 { color: var(--gray-900); margin-bottom: 6px; font-size: 1rem; }
.service-box p { color: var(--gray-500); font-size: .88rem; margin-bottom: 14px; }

.service-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 15px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    font-weight: 600;
    font-size: .86rem;
    transition: var(--transition);
}

.service-btn:hover { background: var(--green-700); border-color: var(--green-700); color: var(--white); }

/* ---------- Filtros e paginação ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

.filter-chip {
    padding: 7px 15px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
    font-weight: 500;
    font-size: .86rem;
    transition: var(--transition);
}

.filter-chip:hover { border-color: var(--gray-300); }
.filter-chip.active { background: var(--green-700); border-color: var(--green-700); color: var(--white); font-weight: 600; }

.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 32px; }

.pagination a,
.pagination span {
    min-width: 40px;
    padding: 9px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-700);
    font-weight: 500;
    font-size: .88rem;
    text-align: center;
    transition: var(--transition);
}

.pagination a:hover { border-color: var(--green-600); color: var(--green-700); }
.pagination .current { background: var(--green-700); border-color: var(--green-700); color: var(--white); font-weight: 600; }

/* ---------- Página não encontrada ---------- */
.not-found-card { max-width: 640px; margin: 0 auto; text-align: center; }
.not-found-card > i { color: var(--gray-300); font-size: 2.4rem; margin-bottom: 14px; display: block; }
.not-found-card p { color: var(--gray-500); margin-bottom: 20px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
    .quick-grid,
    .news-grid { grid-template-columns: repeat(2, 1fr); }

    .intro-card,
    .donate-panel { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-logo-side { grid-column: span 2; }

    .header-info { display: none; }

    .news-layout,
    .internal-layout { grid-template-columns: 1fr; }

    .internal-layout > aside,
    .news-layout > aside { position: static; }
}

@media (max-width: 768px) {
    .top-bar .container,
    .main-header .container {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .menu-toggle { display: block; }

    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-card);
        max-height: 76vh;
        overflow-y: auto;
    }

    .nav-menu.open { display: flex; }

    .nav-link { padding: 13px 20px; border-bottom: 1px solid var(--gray-100); border-left: 3px solid transparent; }

    .nav-link:hover,
    .nav-link.active { border-bottom-color: var(--gray-100); border-left-color: var(--green-600); }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        min-width: 100%;
        border: 0;
        box-shadow: none;
        background: var(--gray-50);
        max-height: 0;
        overflow: hidden;
        transition: max-height .25s ease;
    }

    .nav-item.active-menu .dropdown { max-height: 700px; }

    .dropdown-item a { padding-left: 32px; }

    .quick-grid,
    .news-grid,
    .footer-grid { grid-template-columns: 1fr; }

    .footer-logo-side { grid-column: span 1; }

    .intro-card,
    .content-card,
    .article-content { padding: 22px 18px; }

    .donate-panel { padding: 22px 18px; }

    .page-hero h1 { font-size: 1.5rem; }
    .article-cover { max-height: 320px; }

    .attachment-item { flex-wrap: wrap; }
    .attachment-download { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

@media print {
    .top-bar, .main-nav, footer, .share-box, .side-card, .service-box, .skip-link { display: none !important; }
    body { background: #fff; }
    .content-card, .article-card { border: none; padding: 0; }
    .page-hero { border-bottom: 1px solid #000; }
}

/* ---------- Alternativas quando as imagens ainda não foram enviadas ---------- */
.logo-mark {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 6px;
    background: var(--green-100);
    color: var(--green-800);
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .03em;
    flex: 0 0 auto;
}

.footer-mark {
    display: inline-block;
    margin-bottom: 14px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 6px;
    color: var(--white);
    font-weight: 600;
    font-size: .88rem;
}

.banner-placeholder {
    padding: 56px 20px;
    text-align: center;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
}

.banner-placeholder strong {
    display: block;
    font-size: 1.5rem;
    color: var(--gray-700);
    font-weight: 600;
    margin-bottom: 6px;
}

.banner-placeholder span { color: var(--gray-500); font-size: .9rem; }
