/*
Theme Name: sav-wp-template
Theme URI: https://seusite.com.br/sav-wp-template
Author: Diretoria de Ensino e Capacitação
Author URI: https://seusite.com.br
Description: Tema oficial SAV-CBMMT (Sistema de Avaliação Virtual) - Solução tecnológica voltada à transformação digital dos processos de avaliação, certificação e gestão de competências do Corpo de Bombeiros Militar do Estado de Mato Grosso (CBMMT).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sav-wp-template
Tags: education, e-learning, course-showcase, moodle, edwiser, elementor, responsive-layout
*/

/* Resets globais e estilos base do tema */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    height: 100%;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1e293b;
    background-color: #f8fafc;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

#page.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    flex: 1 0 auto;
    overflow-x: hidden;
}

/* Compensação para a Barra de Administração do WordPress (Admin Bar) */
.admin-bar #page.site {
    min-height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
    .admin-bar #page.site {
        min-height: calc(100vh - 46px);
    }
}

/* Conteúdo principal entre header e rodapé expande verticalmente */
#page.site > *:not(.ebs-header):not(.cbmmt-site-footer):not(.skip-link) {
    flex: 1 0 auto;
}

/* Header Fixo/Sticky e Compensação da Admin Bar */
.ebs-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 990;
    width: 100%;
}

.admin-bar .ebs-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .ebs-header {
        top: 46px;
    }
}

@media screen and (max-width: 600px) {
    .admin-bar .ebs-header {
        top: 0;
    }
}

/* ==========================================================================
   Rodapé Oficial CBM-MT (Governo do Estado de Mato Grosso)
   ========================================================================== */
.cbmmt-site-footer {
    background-color: #A30000;
    color: #ffffff;
    padding: 44px 24px 36px;
    margin-top: auto; /* Mantém o rodapé no fim absoluto da tela em qualquer resolução */
    font-family: inherit;
    width: 100%;
    flex-shrink: 0;
}

.cbmmt-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
}

.cbmmt-footer-main {
    flex: 1;
    min-width: 280px;
    max-width: 720px;
}

h2.cbmmt-footer-title,
.cbmmt-footer-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 10px 0;
    letter-spacing: normal;
    line-height: 1.45;
}

.cbmmt-footer-unit {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 16px;
}

.cbmmt-footer-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
}

.cbmmt-footer-item {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cbmmt-footer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.9);
}

.cbmmt-footer-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.cbmmt-footer-label {
    font-weight: 600;
    color: #ffffff;
    margin-right: 4px;
}

.cbmmt-footer-val {
    color: rgba(255, 255, 255, 0.95);
}

.cbmmt-footer-link {
    color: #ffffff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s;
}

.cbmmt-footer-link:hover {
    opacity: 0.85;
}

.cbmmt-footer-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

@media (min-width: 768px) {
    .cbmmt-footer-side {
        align-items: flex-end;
        text-align: right;
    }
}

.cbmmt-emergency-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 10px 18px;
    border-radius: 12px;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: background 0.2s, transform 0.2s;
}

.cbmmt-emergency-badge:hover {
    background: rgba(0, 0, 0, 0.35);
    transform: translateY(-1px);
    color: #ffffff !important;
}

.cbmmt-emergency-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.cbmmt-footer-copy {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.82);
}

/* ==========================================================================
   Banner Panorâmico Oficial CBMMT
   ========================================================================== */
.ebs-hero-banner-wrap {
    width: 100%;
    max-width: 1280px;
    margin: 20px auto 16px;
    padding: 0 24px;
    box-sizing: border-box;
    align-self: center;
}

.ebs-panoramic-banner {
    width: 100% !important;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    object-fit: cover;
}

