* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.skip-link {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    transform: translateY(-200%);
    background: #ffffff;
    color: #003366;
    padding: 0.5rem 0.85rem;
    border-radius: 0.35rem;
    border: 2px solid #003366;
    z-index: 1100;
    text-decoration: none;
}

.skip-link:focus,
.skip-link:focus-visible {
    transform: translateY(0);
}
:root {
    --admin-header-height: 4.5rem; /* Altura para mobile ajustada */
    --admin-footer-height: 7rem; /* Altura aproximada do rodapé em mobile */
}

header {
    margin-bottom: 3rem;
}

/* Navibar */
.navbar-dark .navbar-nav .nav-link .link-menu {
    color: #ffffff !important;
    font-weight: 500;
    font-size: 1.1rem;
}

.header-bg {
    background: #105482;
    background: linear-gradient(90deg,#fff , rgba(16, 84, 130, 1) 74%);
}

/* Garante que o cabeçalho administrativo ocupe os 6rem de altura definidos para o layout. */
body.layout-admin .header-bg {
    min-height: var(--admin-header-height);
}

/* Campo de busca global do portal */
.site-search-wrap {
    flex: 1 1 360px;
    display: flex;
    justify-content: center;
}

.site-search-form {
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.site-search-form .input-group {
    border-radius: 999px;
    background: #ffffff;
}

.site-search-form .form-control {
    border-color: #e6e6e6;
}

.site-search-form .btn {
    border-color: rgba(255, 255, 255, 0.7);
    color: #ffffff;
}

.site-search-count {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    min-height: 1rem;
    text-align: right;
}

#siteSearchModal .site-search-section {
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    background: #ffffff;
}

#siteSearchModal .site-search-section + .site-search-section {
    margin-top: 0.75rem;
}

#siteSearchModal .site-search-item {
    padding: 0.5rem 0;
    border-top: 1px dashed #ececec;
}

#siteSearchModal .site-search-item:first-child {
    border-top: 0;
}

#siteSearchModal .site-search-item a {
    font-weight: 600;
    color: #0f4a73;
    text-decoration: none;
}

#siteSearchModal .site-search-item a:hover {
    text-decoration: underline;
}

#siteSearchModal .site-search-meta {
    font-size: 0.8rem;
    color: #5f6b7a;
}

#siteSearchModal {
    z-index: 1060;
}

.modal-backdrop {
    z-index: 1020;
}

.logo img {
    width: 75px;
    height: 50px;
}

.link-menu:hover {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.15rem;
}

.navbar-nav .nav-link span{
    font-style: italic;
    font-weight: 400;
    font-size: 1rem;
}

.header-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.75);
}

.header-avatar-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.75);
}

.header-avatar-icon::before {
    font-size: 1rem;
}

/* main */
.main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding-top: var(--admin-header-height);
    width: 100%;
   
}

.main > main {
    flex: 1 0 auto;
}

.main::after {
    content: "";
    display: block;
    clear: both;
    
}

.tbl-info {
    display: none;
}
.form_content {
    margin-bottom: 2rem;    
}

.form_content h2 {
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #105482;
}   

.form_content ul li { 
    text-align: justify;
    text-decoration: none;
    list-style: none;
}

.form_content ul li span {
    font-weight: 600;
}


.footer {
    flex-shrink: 0;
    width: 100%;
    clear: both;
    margin-top: auto;
    z-index: 2;
    min-height: var(--admin-footer-height);
}   

.info-cards{
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 4 0;
}
.form-alunos {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.tab-content{
    background-color: #fff;
}

body.layout-admin .main {
    padding-left: 0;
}

/* Botão Flutuante WhatsApp */
#whatsapp-float-btn {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    box-shadow: 2px 2px 3px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
/* Força o tamanho do ícone do WhatsApp, sobrepondo a regra genérica '.bi::before' */
#whatsapp-float-btn .bi::before {
    font-size: 30px;
}

#whatsapp-float-btn:hover {
    background-color: #128C7E;
    color: #FFF;
}

.toast-container-iiep {
    z-index: 1080;
}

.auth-logo {
    max-width: 200px;
}
    
@media (max-width:768px) {
    .tbl-info {
        display:block;
        width: 100%;
    }   
    .header-bg {
        background-image: linear-gradient(to right, #1c71aaff, #85c8f5ff, #105482);
    }
    .logo{
        background-color: #fff;
    }
    .texto-footer {
        text-align: center;
    }
    .info-cards{
        display: block;
    }
    .form-alunos {
        display: block;
    }
    .footer{
        z-index: 0;
    }
}

@media (min-width: 992px) {
    :root {
        --admin-header-height: 5rem; /* Altura para desktop ajustada */
        --admin-footer-height: 5rem; /* Altura aproximada do rodapé em desktop */
    }

    body.layout-admin .main {
        padding-left: 280px;
    }
    
    
}

/*Estilo para o modal presente na página de login administrativo e de aluno*/

/* Overlay: Ocupa a tela toda e escurece o fundo */
.modal-overlay {
    display: none; /* Inicia oculto */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fundo mais escuro para melhor contraste */
    justify-content: center;
    align-items: center;
    padding: 1rem; /* Espaçamento para telas pequenas */
}

/* Modal exibido */
.modal-overlay.active {
    display: flex;
}

/* Caixa Branca do Modal */
.modal-content-custom { /* Correção do nome da classe */
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 1rem; /* Similar ao .areaLogin */
    width: 100%;
    max-width: 400px; /* Similar ao .areaLogin */
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Sombra para destaque */
    animation: fadeIn 0.3s ease-out;
    text-align: center;
    
}
.modal-content {
    z-index: 10000 !important;
}
/* Cabeçalho do modal (para o logo) */
.modal-header-custom {
    display: flex;
    justify-content: center;
}

/* Logotipo dentro do Modal */
.logo-modal {
    max-width: 120px;
    height: auto;
    margin-bottom: 1rem;
}

/* Corpo do modal */
.modal-body-custom h3 {
    color: #105482; /* Cor do tema */
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 1rem;
}

.modal-body-custom p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.modal-body-custom ul {
    list-style: none; /* Remove os marcadores da lista */
    padding: 0; /* Remove o padding padrão da lista */
    margin: 0;
}

.modal-body-custom ul li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Botão de Fechar o Modal */
.close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.close-button:hover {
    color: #000;
}

/* Animação para aparecer suavemente */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Captura visualizar (aluno/admin) */
.captura-visualizar-card .card-custom-header {
    background-color: #345486;
    color: #ffffff;
    padding: 10px 15px;
    font-weight: 600;
    text-align: left;
    border-radius: 4px 4px 0 0;
}

.captura-visualizar-card .card-custom-body {
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 4px 4px;
    background-color: #fff;
}

.captura-visualizar-card {
    margin-bottom: 3rem;
}

.captura-visualizar-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.05rem;
}

.captura-visualizar-meta {
    color: #e6eefb;
}

.captura-visualizar-image {
    width: 100%;
    max-width: 900px;
    height: 62vh;
    max-height: 720px;
    object-fit: contain;
    background: #f1f3f5;
    display: block;
    margin: 0 auto;
}

@media (max-width: 767.98px) {
    .captura-visualizar-image {
        height: 74vh;
        max-height: 840px;
    }
}

.noticia-conteudo::after {
    content: "";
    display: block;
    clear: both;
}

.noticia-conteudo img {
    max-width: 100%;
    height: auto;
}

.noticia-conteudo img.noticia-imagem-wrap-left {
    float: left;
    margin: 0 18px 12px 0;
}

.noticia-conteudo img.noticia-imagem-wrap-right {
    float: right;
    margin: 0 0 12px 18px;
}

.noticia-conteudo img.noticia-imagem-wrap-block,
.noticia-conteudo img:not(.noticia-imagem-wrap-left):not(.noticia-imagem-wrap-right) {
    display: block;
    float: none;
    margin: 0 auto 16px;
}

@media (max-width: 767.98px) {
    .noticia-conteudo img.noticia-imagem-wrap-left,
    .noticia-conteudo img.noticia-imagem-wrap-right {
        display: block;
        float: none;
        margin: 0 auto 16px;
    }
}
