/* ==========================================================================
   ESTILOS GLOBAIS
   ========================================================================== */
html, body { 
    height: 100%; 
}
body { 
    padding-top: 0 !important; 
}
.navbar { 
    margin-bottom: 0; 
}
.btn-primary { 
    background-color: #0d47a1; 
    border-color: #0d47a1; 
    transition: background-color 0.2s; 
}
.btn-primary:hover { 
    background-color: #1976d2; 
    border-color: #1976d2; 
}

/* ==========================================================================
   ESTILOS DO CABEÇALHO E NAVEGAÇÃO
   ========================================================================== */
.header-wrapper { background-color: #0d47a1; padding: 15px 0; }
.header-container { display: flex; align-items: center; }
.logo-img { height: 60px; margin-right: 20px; }
.title-group { display: flex; flex-direction: column; }
.header-title { font-size: 32px; font-weight: 700; color: #ffffff; margin: 0; line-height: 1.2; }
.header-title-link { color: #ffffff; text-decoration: none; }
.header-title-link:hover { color: #e0e0e0; text-decoration: none; }
.header-subtitle { font-size: 16px; font-weight: 400; color: #ffffff; margin: 0; }
.navbar.navbar-default { background-color: #ffffff !important; border: none; border-radius: 0; border-bottom: 1px solid #e0e0e0 !important; margin: 0; }
.navbar-default .navbar-nav > li > a { color: #0d47a1 !important; font-weight: 600; font-size: 16px; padding-top: 20px; padding-bottom: 20px; }
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > .active > a { color: #1976d2 !important; background-color: transparent !important; }
.navbar-toggle .icon-bar { background-color: #0d47a1 !important; }

/* ==========================================================================
   ESTILOS PARA MENUS DROPDOWN
   ========================================================================== */
.dropdown-menu { border-radius: 6px; border: 1px solid #ddd; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.dropdown-menu>li>a { color: #333; padding: 10px 20px; transition: all 0.2s ease-in-out; }
.dropdown-menu>li>a:hover { background-color: #0d47a1; color: #ffffff; }
.dropdown-submenu { position: relative; }
.dropdown-submenu>.dropdown-menu { top: 0; left: 100%; margin-top: -6px; }
.dropdown-submenu:hover>.dropdown-menu { display: block; }
.dropdown-submenu>a:after { content: " "; display: block; width: 0; height: 0; border-color: transparent; border-style: solid; border-width: 5px 0 5px 5px; border-left-color: #ccc; margin-top: 5px; margin-right: -10px; float: right; }
.dropdown-submenu:hover>a:after { border-left-color: #fff; }

/* ==========================================================================
   ESTILOS PARA PÁGINA INICIAL (CARDS E SEÇÕES)
   ========================================================================== */
.custom-card-link,
.custom-card-link:hover { text-decoration: none; }
.custom-card { background-color: #ffffff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 35px 15px; transition: all 0.3s ease; height: 230px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); display: flex; flex-direction: column; }
.custom-card:hover { transform: translateY(-8px); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1); }
.card-icon-wrapper { width: 70px; height: 70px; margin: 0 auto 20px auto; border-radius: 50%; background: linear-gradient(145deg, #42a5f5, #1e88e5); display: flex; align-items: center; justify-content: center; }
.card-icon-img { height: 35px; width: 35px; }
.custom-card .card-title { font-size: 15px; font-weight: 700; color: #212121; margin-bottom: 5px; }
.custom-card .card-description { font-size: 15px; color: #757575; line-height: 1.5; flex-grow: 1; }
.section-title { font-size: 28px; font-weight: 700; color: #333; margin-bottom: 25px; border-bottom: 2px solid #0d47a1; padding-bottom: 10px; }
.news-placeholder { background-color: #f8f9fa; border-radius: 8px; padding: 40px; text-align: center; color: #6c757d; min-height: 250px; display: flex; align-items: center; justify-content: center; }

/* ==========================================================================
   ESTILOS PARA PÁGINAS DE CONTEÚDO INTERNAS
   ========================================================================== */
.page-hero { padding: 80px 0; background-size: cover; background-position: center; position: relative; }
.hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(13, 71, 161, 0.6); }
.hero-content { position: relative; z-index: 2; }
.page-hero.text-white h1,
.page-hero.text-white p { color: #ffffff; }
.content-section { padding-top: 50px; padding-bottom: 50px; }
.feature-row { padding-top: 30px; padding-bottom: 30px; }
.feature-row h2 { font-size: 28px; font-weight: 600; color: #333; margin-bottom: 20px; }
.info-card-item h3 { margin-top: 15px; margin-bottom: 10px; color: #0d4a8f; font-weight: 600; }

/* ==========================================================================
   ESTILOS PARA O MODELO DE PÁGINA (TÍTULO E BREADCRUMB)
   ========================================================================== */
.page-header-container { padding-top: 20px; }
.page-header h1 { font-size: 36px; font-weight: 700; color: #333; margin-top: 10px; margin-bottom: 30px; }
.breadcrumb { background-color: transparent; padding: 15px 0; margin-bottom: 0; font-size: 14px; }
.breadcrumb > li { display: inline-block; }
.breadcrumb > li > a { color: #0d47a1; text-decoration: none; }
.breadcrumb > li > a:hover { text-decoration: underline; }
.breadcrumb > li + li:before { content: "/\00a0"; padding: 0 8px; color: #6c757d; }
.breadcrumb > .active { color: #343a40; font-weight: bold; }

/* ==========================================================================
   ESTILOS PARA O RODAPÉ (FOOTER) - VERSÃO CORRIGIDA
   ========================================================================== */
.footer-main { background-color: #0d47a1; color: rgba(255, 255, 255, 0.8); padding-top: 40px; font-size: 14px; }
.footer-logo-container { display: flex; align-items: center; margin-bottom: 20px; }
.footer-logo { height: 50px; margin-right: 15px; }
.footer-title-group { display: flex; flex-direction: column; }
.footer-title { font-size: 16px; font-weight: 700; color: #ffffff; margin: 0; line-height: 1.2; }
.footer-subtitle { font-size: 13px; color: rgba(255, 255, 255, 0.7); margin: 0; }
.footer-description { font-size: 14px; line-height: 1.6; }
.footer-heading { display: none; }
.footer-links { margin-top: 10px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255, 255, 255, 0.8); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: #ffffff; text-decoration: underline; }
.footer-bottom { background-color: #0d47a1; padding: 20px 0; margin-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-bottom-container { display: flex; justify-content: space-between; align-items: center; }
.footer-copyright { text-align: left; color: rgba(255, 255, 255, 0.7); }
.footer-logos-setim img { height: 40px; margin-left: 20px; }

/* ==========================================================================
   ESTILOS DE ESTRUTURA E ESPAÇAMENTO
   ========================================================================== */
.section-container { padding-top: 60px; padding-bottom: 30px; }
.section-container-bottom { padding-top: 0; padding-bottom: 60px; }
.page-container { padding-bottom: 60px; }
.bg-light { background-color: #f8f9fa !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.shadow-sm { box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important; }

/* ==========================================================================
   CORREÇÃO PARA O LAYOUT DE PÁGINA INTEIRA
   ========================================================================== */
body > .page-wrapper { min-height: 100%; display: flex; flex-direction: column; }
div#mainContent, .container.page-container { flex-grow: 1; }