/* ==========================================================================
   1. CONFIGURAÇÕES GERAIS E CORES (CAIS ACADÊMICO)
   ========================================================================== */
:root {
    --primary-blue: #0f3b60;        /* Azul do CAIS para o Menu Lateral */
    --accent-blue: #2d9cdb;         /* Azul Claro para Destaques/Bordas */
    --accent-yellow: #f1c40f;       /* Amarelo para Detalhes */
    
    --bg-site: #eef2f5;             /* Fundo Leve/Claro do Site */
    --card-bg: #ffffff;             /* Fundo do Container de Conteúdo */
    --text-dark: #0f3b60;           /* Títulos em Azul Escuro */
    --text-body: #334155;           /* Texto Principal */
    --border-color: #e2e8f0;        /* Bordas Suaves */
}

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

body {
    font-family: 'Droid Sans', system-ui, -apple-system, sans-serif;
    /* Fundo leve com degradê azul suave baseado nos sites modelo */
    background: linear-gradient(135deg, #dbeafe 0%, #f1f5f9 100%) fixed;
    color: var(--text-body);
    line-height: 1.8;
}

ul, ol { 
    margin-bottom: 20px; 
}

/* ==========================================================================
   2. ESTRUTURA PRINCIPAL (LAYOUT LADO A LADO - 2 COLUNAS)
   ========================================================================== */
#wrapper {
    max-width: 1280px;
    margin: 0 auto;
    display: flex !important;
    gap: 30px;
    padding: 30px 20px;
    align-items: flex-start;
}

/* Sidebar Lateral Escura (Padrão UNISC) */
#sidebar { 
    width: 280px; 
    flex-shrink: 0;
    background: var(--primary-blue);
    padding: 25px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(15, 59, 96, 0.15);
}

/* Logo UNISC no topo do Menu Lateral */
.sidebar-logo {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar-logo img {
    max-width: 140px;
    height: auto;
}

/* Menu de Navegação na Sidebar */
#nav ul, #sidebar ul {
    list-style: none !important;
    padding: 0;
    margin: 0;
}

#nav li, #sidebar li {
    margin-bottom: 8px;
}

#nav a, #sidebar a {
    color: #ffffff !important;
    display: flex; 
    align-items: center; 
    padding: 12px 15px;
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 13px;
    text-decoration: none !important;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

#nav a:hover, #sidebar a:hover { 
    background: rgba(255, 255, 255, 0.18); 
    color: #ffffff !important; 
    transform: translateX(3px);
}

/* Container de Conteúdo (Card Branco Flutuante à Direita) */
#container, .container {
    flex-grow: 1;
    background: var(--card-bg);
    color: var(--text-body);
    border-radius: 16px; 
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(15, 59, 96, 0.08);
    overflow: hidden; 
    display: flex;
    flex-direction: column;
}

/* Banner da Atividade/Projeto no topo do Card */
#featured, .main-banner {
    width: 100%;
    line-height: 0;
    border-bottom: 3px solid var(--accent-blue);
    background: #ffffff;
}

#featured img, .main-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   3. CONTEÚDO DAS PÁGINAS (#content)
   ========================================================================== */
#content { 
    padding: 40px 45px; 
    flex-grow: 1; 
}

/* Títulos no Padrão Institucional UNISC */
#content h2, .section-title { 
    color: var(--primary-blue); 
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 25px; 
    padding-bottom: 8px;
    border-bottom: 3px solid var(--accent-yellow);
    display: block;
    text-transform: uppercase;
}

#content h3 {
    color: var(--primary-blue);
    font-size: 19px;
    font-weight: 700;
    margin: 25px 0 15px 0;
}

/* Textos e Parágrafos */
#content p { 
    font-size: 16px; 
    margin-bottom: 18px; 
    text-align: justify;
    color: var(--text-body);
}

#content a {
    color: var(--primary-blue);
    font-weight: 700;
    text-decoration: underline;
}

#content a:hover {
    color: var(--accent-blue);
}

/* Listas */
#content ul { 
    padding-left: 20px; 
    margin-bottom: 20px; 
}

#content ul li { 
    list-style: disc !important; 
    margin-bottom: 8px;
    color: var(--text-body);
}

/* ==========================================================================
   4. BOTÕES E EDITAIS
   ========================================================================== */
.btn-edital {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-blue);
    color: #ffffff !important;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 10px;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(15, 59, 96, 0.15);
    transition: all 0.2s ease;
}

.btn-edital:hover {
    background: #164e7d;
    transform: translateY(-2px);
}

.btn-edital.disabled {
    background: #f1f5f9;
    color: #94a3b8 !important;
    border: 2px dashed var(--border-color);
    box-shadow: none;
    cursor: not-allowed;
}

/* ==========================================================================
   5. RODAPÉ E RESPONSIVIDADE MOBILE
   ========================================================================== */
footer {
    background: var(--card-bg);
    color: #64748b;
    padding: 25px 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
    font-size: 13px;
}

/* Botão Hambúrguer para Mobile */
#mobile-menu-btn {
    display: none; 
    position: fixed; 
    top: 15px; 
    right: 15px; 
    z-index: 1100;
    background: var(--primary-blue); 
    width: 45px; 
    height: 45px; 
    border-radius: 10px;
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    gap: 4px;
    border: none;
    cursor: pointer;
}

#mobile-menu-btn span { 
    width: 22px; 
    height: 2px; 
    background: #ffffff; 
}

@media (max-width: 900px) {
    #wrapper { 
        flex-direction: column !important; 
        padding: 15px; 
    }

    #sidebar {
        position: fixed !important; 
        left: -100% !important; 
        top: 0;
        width: 280px; 
        height: 100vh; 
        z-index: 1050; 
        transition: 0.4s; 
        border-radius: 0;
    }

    #sidebar.active { 
        left: 0 !important; 
    }

    #mobile-menu-btn { 
        display: flex; 
    }

    #content { 
        padding: 25px 20px; 
    }
}

/* Botão de Inscrição em Destaque */
.btn-inscricao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #27ae60; /* Verde de ação/inscrição */
    color: #ffffff !important;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 10px;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.2);
    transition: all 0.2s ease;
    border: none;
}

.btn-inscricao:hover {
    background: #219653;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(39, 174, 96, 0.3);
}

/* Botão Flutuante do WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #ffffff !important;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(18, 140, 126, 0.5);
}

/* Ajuste de posição para telas pequenas / Mobile */
@media (max-width: 900px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}

/* Botão WhatsApp em linha (página de Editais/Contato) */
.btn-whatsapp-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25d366;
    color: #ffffff !important;
    padding: 16px 28px;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 10px;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
    transition: all 0.2s ease;
    border: none;
}

.btn-whatsapp-inline:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(18, 140, 126, 0.35);
}