/* =========================================
   1. GERAL
   ========================================= */
.ocre-comunicados-wrapper, .ocre-sections-wrapper-v3 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 1140px; margin: 0 auto; padding: 20px 0; box-sizing: border-box;
}
.ocre-comunicados-wrapper *, .ocre-sections-wrapper-v3 * { box-sizing: border-box; }
.loading-opacity { opacity: 0.5; pointer-events: none; }

/* =========================================
   2. ESTILOS DO MODO GRID ([ocre_secoes_avancado])
   ========================================= */
.ocre-section-panel { margin-bottom: 60px; }
.ocre-section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; flex-wrap: wrap; gap: 15px; }
.ocre-cat-title { color: #004a80 !important; font-size: 1.5rem !important; font-weight: 800 !important; text-transform: uppercase; margin: 0 !important; }
.ocre-section-filter label { font-size: 0.75rem; color: #666; display: block; margin-bottom: 4px; }
.ocre-filter-type { padding: 8px; border: 1px solid #ccc; border-radius: 4px; font-size: 0.9rem; min-width: 220px; background-color: #fff; }
.ocre-white-panel { background-color: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.ocre-grey-grid { display: grid; grid-template-columns: repeat(4, 1fr) !important; gap: 20px; margin-bottom: 20px; }
.ocre-grey-card { background-color: #f7f7f7; padding: 20px; border-radius: 6px; text-align: left; display: flex; flex-direction: column; align-items: flex-start; height: 100%; transition: transform 0.2s, background 0.2s; }
.ocre-grey-card:hover { background-color: #eee; transform: translateY(-3px); }
.ocre-grey-card a { text-decoration: none; color: inherit; width: 100%; height: 100%; display: flex; flex-direction: column; }
.card-icon .dashicons { font-size: 32px; width: 32px; height: 32px; color: #555; }
.card-title { display: block; color: #333; font-size: 0.85rem; line-height: 1.4; font-weight: 600; margin-bottom: 8px; white-space: normal; }
.card-date { display: block; color: #888; font-size: 0.75rem; margin-top: auto; }
.ocre-mini-pagination { display: flex; gap: 5px; padding-top: 10px; }
.page-btn { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; background-color: #fff; color: #004a80; border: 1px solid #ddd; text-decoration: none; border-radius: 4px; }
.page-btn.active, .page-btn:hover:not(.disabled) { background-color: #004a80; color: #fff; }
.page-btn.disabled { color: #ccc; background-color: #f9f9f9; cursor: default; }
@media (max-width: 900px) { .ocre-grey-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 600px) { .ocre-grey-grid { grid-template-columns: 1fr !important; } }

/* =========================================
   3. ESTILOS DO MODO LISTA ([ocre_comunicados])
   ========================================= */
.ocre-comunicados-wrapper h3 { color: #004a80; font-weight: 900; font-size: 1.5rem; margin-bottom: 2rem; }
.ocre-filters { display: flex; gap: 30px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-group { display: flex; flex-direction: column; min-width: 250px; }
.ocre-filter-select { padding: 10px; border: 1px solid #ccc; border-radius: 4px; }

/* Item da Lista */
.ocre-list-item { 
    padding: 15px 0; 
    border-bottom: 1px solid #eee; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    flex-wrap: wrap; 
    gap: 15px; 
}
.doc-title { flex-grow: 1; font-weight: 500; color: #333; max-width: 60%; }
.doc-meta { display: flex; align-items: center; gap: 15px; }
.doc-date { font-weight: bold; font-size: 0.9rem; color: #555; }

/* Badges */
.badge-ativo { background:#28a745; color:#fff; padding:4px 12px; border-radius:20px; font-size:0.7rem; font-weight:bold; }
.badge-cancelado { background:#dc3545; color:#fff; padding:4px 12px; border-radius:20px; font-size:0.7rem; font-weight:bold; }
.badge-inativo { background:#6c757d; color:#fff; padding:4px 12px; border-radius:20px; font-size:0.7rem; font-weight:bold; }

/* Botão Abrir */
.btn-ocre-outline { 
    border: 1px solid #004a80; 
    color: #004a80; 
    padding: 5px 15px; 
    border-radius: 4px; 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 0.85rem; 
    white-space: nowrap;
}
.btn-ocre-outline:hover { background: #004a80; color: #fff; }

/* Paginação Padrão WP */
.ocre-pagination-links { margin-top: 20px; display: flex; gap: 5px; }
.page-numbers { padding: 5px 10px; border: 1px solid #ddd; color: #004a80; text-decoration: none; }
.page-numbers.current { background: #004a80; color: #fff; }