/* --- Html Base --- */
a {
    color: #2B4166;
}
a:hover {
    color: #4E75B6;
    text-decoration: none;
}

/* --- Estrutura de Colunas (Grid Principal) --- */
.row-fluid {
    width: 100%;
    display: block;
    clear: both;
}

.row-fluid [class*="span"] {
    display: block;
    float: left;
    width: 100%;
    min-height: 30px;
    box-sizing: border-box;
}

.row-fluid .span3 {
    width: 25% !important;
}

.row-fluid .span9 {
    width: 75% !important;
    padding-left: 30px; /* Espaço entre o menu e o blog */
}

/* --- Elementos do Template --- */
.borda-top {
    background: #2B4166;
    height: 5px;
    margin: 0 0 10px 0;
}

.box-banner-top {
    margin: 0 0 10px 0;
}

.box-footer {
    background: #2B4166;
    color: #fff;
    margin-top: 50px;
    padding: 50px 0 20px 0;
    text-align: center;
    clear: both;
}

.box-footer a {
    color: #fff;
    font-weight: bold;
}

.box-footer a:hover {
    text-decoration: underline;
}

.logo-cepep {
    color: #2B4166;
    font-family: verdana, sans-serif;
    font-size: 2.5em;
    line-height: 40px;
    margin: 40px 0 0 0;
    text-align: right;
}

.logo-emeron {
    background: url('../images/logo-emeron.jpg') no-repeat;
    background-size: contain;
    height: 100px;
    margin: 20px 0 8px 0;
    width: 180px;
}

.logo-emeron a {
    display: block;
    height: 100%;
}

/* --- Menu Lateral --- */
.moduletable_menu-left ul li a {
    border-left: 10px solid #2B4166;
    color: #2B4166;
    font-size: 18px;
    line-height: 40px;
    padding-left: 20px;
    text-align: left;
    display: block;
}

.moduletable_menu-left ul li a:hover,
.moduletable_menu-left ul li.active a {
    background: #f9f9f9;
    border-left: 10px solid #4E75B6;
    color: #4E75B6;
}

/* Hack remove corners Bootstrap */
.moduletable_menu-left ul.nav-pills > li > a {
    border-radius: 0;
}

/* --- BLOG - Layout em Duas Colunas --- */
.cepep-category-blog .cepep-blog-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px !important;
    width: 100% !important;
    align-items: start;
    clear: both;
}

.cepep-category-blog .cepep-blog-item {
    min-width: 0 !important;
    overflow: hidden;
    background: #fff;
    padding-bottom: 20px;
    float: none !important; /* Desativa o float do Bootstrap dentro do grid */
    width: 100% !important;
}

.cepep-category-blog .cepep-blog-item img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-bottom: 15px !important;
}

/* --- Responsividade --- */
@media (max-width: 768px) {
    .row-fluid .span3, 
    .row-fluid .span9 {
        width: 100% !important;
        padding-left: 0;
    }
    
    .cepep-category-blog .cepep-blog-grid {
        grid-template-columns: 1fr !important;
    }

    .logo-cepep {
        text-align: center;
        font-size: 1.8em;
    }
}