body {
    background-color: #eef1f5;
    font-family: Arial, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #333;
}

.main-body { flex: 1; padding: 30px 20px; }

.main-header {
    background-color: #0056b3;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top { padding: 15px 20px; }
.header-content { display: flex; justify-content: space-between; align-items: center; }
.header-content h1 { margin: 0; font-size: 1.6em; letter-spacing: 1px; }
.header-content nav a { color: white; text-decoration: none; margin-left: 20px; font-weight: bold; transition: opacity 0.3s; }
.header-content nav a:hover { opacity: 0.8; text-decoration: underline; }

.container-wide { max-width: 1600px; margin: 0 auto; width: 100%; }

.central-image { text-align: center; margin-bottom: 40px; }

.grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 10px;
}

.box {
    border-radius: 12px;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.box h2 {
    font-size: 1.1rem;
    color: #0056b3;
    margin-top: 0;
    margin-bottom: 12px;
    text-align: center;
    text-transform: uppercase;
}

.box p {
    font-size: 0.95rem;
    color: #444;
    text-align: center;
    flex-grow: 1;
    margin-bottom: 25px;
    line-height: 1.5;
}

.box .btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background-color: #0056b3;
    color: #ffffff;
    text-decoration: none;
    padding: 12px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    text-align: center;
    font-weight: bold;
}

.box .btn:hover { background-color: #004494; }

@media (max-width: 1400px) { .grid-container { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1024px) { .grid-container { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
    .header-content { flex-direction: column; gap: 15px; text-align: center; }
    .header-content nav a { margin: 0 10px; }
    .grid-container { grid-template-columns: 1fr; }
}


/* =================================== */
/* CSS PARA O RODAPÉ PRINCIPAL INSTITUCIONAL  */
/* =================================== */

.site-footer {
    background-color: #1f2937;
    color: #d1d5db;
    padding: 40px 20px;
    font-size: 0.9em;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-column { padding: 0 10px; }

.footer-column h4 {
    color: #ffffff;
    font-size: 1.1em;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #6366f1;
    padding-bottom: 8px;
}

.footer-column p { margin: 0 0 10px 0; line-height: 1.6; }
.footer-column ul { list-style: none; padding: 0; margin: 0; }
.footer-column li { margin-bottom: 10px; }

.footer-column a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #6366f1;
    text-decoration: underline;
}

@media (max-width: 992px) {
    .footer-container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .footer-container { grid-template-columns: 1fr; }
    .site-footer { padding: 30px 15px; }
}


/* =================================== */
/* CSS PARA O RODAPÉ PRINCIPAL INSTITUCIONAL  */
/* =================================== */

.site-footer {
    background-color: #1f2937;
    color: #d1d5db;
    padding: 40px 20px;
    font-size: 0.9em;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-column { padding: 0 10px; }

.footer-column h4 {
    color: #ffffff;
    font-size: 1.1em;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #6366f1;
    padding-bottom: 8px;
}

.footer-column p { margin: 0 0 10px 0; line-height: 1.6; }
.footer-column ul { list-style: none; padding: 0; margin: 0; }
.footer-column li { margin-bottom: 10px; }

.footer-column a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #6366f1;
    text-decoration: underline;
}

@media (max-width: 992px) {
    .footer-container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .footer-container { grid-template-columns: 1fr; }
    .site-footer { padding: 30px 15px; }
}

/* =================================== */
/* CSS PARA A BARRA DE LOGOS NO HEADER */
/* =================================== */

.logo-bar {
    background-color: #fff;
    padding: 10px 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap; /* Permite que logos quebrem a linha se houver muitos */
}

.logo-item {
    flex-shrink: 1;
    text-align: center;
}

.logo-item img {
    height: 50px; /* Mantém todas as logos padronizadas com 50px de altura */
    width: auto;
    max-width: 100%;
    object-fit: contain;
}