/* --- 1. VARIÁVEIS GLOBAIS (Design Tokens) --- */
:root {
    --unifieo-blue: #0B3F8B;        /* Azul Escuro Institucional */
    --unifieo-dark: #1F3A5F;        /* Azul Profundo (Hover) */
    --unifieo-yellow: #003366;      
    --unifieo-yellow-hover: #e6b800;
    --text-primary: #003366;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --border-radius-card: 12px;
    --border-radius-btn: 50px;
    --white: #ffffff;
}

/* --- 2. RESET E TIPOGRAFIA BASE --- */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-body);
    background-color: var(--white);
    font-weight: 300;
    line-height: 1.6;
  
    padding-top: 130px; 
    position: relative;
}

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

/* Ajuste do padding para mobile (onde o menu pode quebrar linha ou ser menor) */
@media (max-width: 991px) {
    body {
        padding-top: 110px;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Utilitários de Cor */
.text-unifieo-blue { color: var(--unifieo-blue) !important; }
.bg-unifieo-blue { background-color: var(--unifieo-blue) !important; }
.text-unifieo-yellow { color: var(--unifieo-yellow) !important; }
.border-warning { border-color: var(--unifieo-dark) !important; }

/* --- 3. COMPONENTES: BOTÕES --- */
/* Botão Amarelo (CTA Principal) */
.btn-warning-custom {
    display: block;
    width: 80%; 
    margin: 0 auto;
    background-color: transparent;
    color: #333;
    border: 1px solid #333;
    border-radius: 4px; 
    padding: 10px 0;
    text-align: center;
    font-weight: 400;
    text-transform: none; 
    font-size: 1rem;
    transition: all 0.2s ease;
}

.btn-warning-custom:hover {
    background-color: #333;
    color: #fff;
    text-decoration: none;
}

/* Botão Transparente/Borda (Secundário) */
.btn-outline-light-custom {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: var(--border-radius-btn);
    width: 100%; /* Mobile First */
    display: block;
    text-align: center;
}

.btn-outline-light-custom:hover {
    background-color: #fff;
    color: var(--unifieo-blue);
}

/* --- 4. SECTION: HERO (Banner Principal) --- */
.hero-section {
    position: relative;
    /* Imagem de fundo com overlay azul escuro (gradiente) */
    background: linear-gradient(
        to bottom, 
        rgba(0, 51, 102, 0.85), 
        rgba(0, 51, 102, 0.6)
    ), url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?q=80&w=1920&auto=format&fit=crop');
    
    background-size: cover;
    background-position: center;
    
    /* Altura Mobile */
    min-height: 550px; 
    
    /* Flexbox para centralizar conteúdo verticalmente */
    display: flex;
    align-items: center;
    text-align: center; /* Centralizado no mobile (comum em telas pequenas) */
}

.hero-title {
    font-size: 2.5rem; /* Tamanho legível no mobile */
    color: #fff;
    margin-bottom: 1.5rem;
}

.hero-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* --- 5. CARDS DE INGRESSO (Grid) --- */
.card-ingresso {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius-card);
    padding: 2rem;
    height: 100%; /* Garante que todos tenham a mesma altura na linha */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* Flexbox para alinhar o link no final */
    display: flex;
    flex-direction: column;
}

.card-ingresso:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 51, 102, 0.1);
    border-color: var(--unifieo-yellow);
}

.card-icon {
    color: var(--unifieo-yellow);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

/* Link com seta animada */
.link-arrow {
    margin-top: auto; /* Empurra para o fundo do card */
    font-weight: 700;
    color: var(--unifieo-blue);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.link-arrow:hover {
    color: #0056b3;
    gap: 12px; /* Animação: afasta a seta */
}

/* --- 6. MODALIDADES (Fundo Cinza) --- */
.modalities-section {
    background-color: var(--bg-light);
}

.modalities-card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--border-radius-card);
    border-left: 6px solid var(--unifieo-yellow); /* Detalhe visual lateral */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    height: 100%;
}

/* --- 7. MEDIA QUERIES (Responsividade Desktop) --- */
/* Aplica estes estilos APENAS em telas maiores que 992px (Laptops/Desktops) */
@media (min-width: 992px) {
    
    /* Ajustes do Hero para Desktop */
    .hero-section {
        min-height: 650px;
        text-align: left; /* Alinha à esquerda em telas grandes */
        background: linear-gradient(
            to right, /* Gradiente muda de direção */
            rgba(0, 51, 102, 0.95) 40%, 
            rgba(0, 51, 102, 0.4) 100%
        ), url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?q=80&w=1920&auto=format&fit=crop');
        background-size: cover;
        background-position: center;
    }

    .hero-title {
        font-size: 4rem; /* Título gigante no desktop */
    }

    .hero-text {
        font-size: 1.25rem;
        max-width: 600px; /* Limita largura para leitura confortável */
    }

    /* Botões voltam ao tamanho natural */
    .btn-warning-custom, 
    .btn-outline-light-custom {
        width: auto;
        display: inline-block;
        margin-bottom: 0;
        margin-right: 15px;
    }

    /* Wrapper dos botões para alinhar horizontalmente */
    .hero-buttons {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
    }
}

/* =========================================
   HEADER STYLES
   ========================================= */

/* --- CONFIGURAÇÃO HEADER FIXO --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030; /* Z-Index alto do Bootstrap */
    background-color: #fff; /* Garante que não fique transparente ao rolar */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Sombra para destacar do fundo */
}

/* --- Top Bar (Azul) --- */
.top-bar {
    background-color: var(--unifieo-blue); /* Azul Institucional Escuro */
    color: #fff;
    height: 45px; /* Altura fixa para alinhar como na imagem */
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 400; /* Regular */
}

/* Ícones Sociais (Círculo Branco) */
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: #fff;
    color: #003366;
    border-radius: 50%;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-link:hover {
    background-color: var(--unifieo-yellow);
    color: #003366;
}

/* Links do Topo */
.top-link {
    color: #fff;
    text-decoration: none;
    font-weight: 300; /* Light */
    transition: opacity 0.2s;
}

.top-link:hover {
    opacity: 0.8;
    color: #fff;
}

/* Link "Quero me inscrever" (Bold) */
.top-cta {
    color: #fff;
    text-decoration: none;
    font-weight: 600; /* Semi-bold para destaque */
    margin-left: 10px;
}

.top-cta:hover {
    color: var(--unifieo-yellow);
}

/* --- Navbar Principal (Branca) --- */
.main-header .navbar {
    padding: 1.2rem 0; /* Espaçamento vertical maior */
    /* Box shadow removido daqui e passado para o container .main-header */
}

.header-logo {
    max-height: 55px; /* Ajuste conforme tamanho real do logo */
    width: auto;
}

/* Links do Menu */
.main-header .nav-link {
    color: #1a1a1a !important; /* Preto suave */
    font-family: 'Poppins', sans-serif;
    font-weight: 400; /* Regular */
    font-size: 1rem;
    padding: 0.5rem 0;
    margin: 0 0.5rem;
  	text-transform: uppercase;
}

.main-header .nav-link:hover {
    color: #003366 !important;
}

/* Dropdown Arrow Customization */
.dropdown-toggle::after {
    vertical-align: middle;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    margin-left: 0.4em;
    color: #003366; /* Seta azul */
}

/* Menu Mobile Toggle */
.navbar-toggler:focus {
    box-shadow: none;
}

/* =========================================
   CUSTOM DROPDOWNS (Mega Menu)
   ========================================= */

/* ANCORAGEM: Garante que o menu abra em relação ao botão pai */
.nav-item.dropdown {
    position: relative !important;
}

/* Remove a seta padrão do Bootstrap */
.dropdown-toggle::after {
    display: none;
}

/* Container do Dropdown */
.dropdown-menu-custom {
    border-radius: 8px; /* Cantos arredondados */
    background-color: #fff;
    
    /* CORREÇÃO DE POSICIONAMENTO */
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px !important; /* Espaço reduzido para não desconectar do botão */
    
    min-width: max-content; /* Garante que a largura se adapte ao conteúdo (duas colunas) */
    z-index: 1050;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important; /* Sombra mais forte para destacar */
}

/* Títulos das Colunas (Azul) */
.dropdown-heading {
    color: #003366; /* Azul Unifieo */
    font-size: 0.9rem;
    font-weight: 600; /* Semi-bold */
    text-transform: none; /* Mantém Maiúscula/Minúscula normal */
    margin-bottom: 1rem;
    padding-left: 0.5rem; /* Alinhamento visual */
}

/* Itens da Lista */
.dropdown-item-custom {
    display: block;
    width: 100%;
    padding: 0.25rem 0.5rem;
    clear: both;
    font-weight: 400; /* Regular */
    color: #333;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    font-size: 0.95rem;
    transition: color 0.2s, background-color 0.2s;
    border-radius: 4px;
}

/* Hover nos Itens */
.dropdown-item-custom:hover {
    color: #003366; /* Azul no hover */
    background-color: rgba(0, 51, 102, 0.05); /* Fundo azul muito claro */
    font-weight: 500;
}

@media (min-width: 992px) {
    /* Faz o dropdown alinhar melhor */
    .dropdown-menu-custom {
        display: none; /* Oculto por padrão */
        position: absolute;
        top: 100%;
        left: 0;
        margin-top: 10px !important;
        background-color: var(--white);
        border-radius: 8px;
        min-width: max-content; /* Largura se ajusta às colunas */
        z-index: 1050;
        padding: 1.5rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
        animation: fadeIn 0.2s ease-in-out;
    }
    
    .show > .dropdown-menu-custom {
        display: block; /* Mostra com animação */
    }
  
  	.nav-item.dropdown:hover .dropdown-menu-custom {
        display: block;
    }
}

/* --- MOBILE (< 992px) --- */
@media (max-width: 991px) {
    /* Container do Menu Mobile com Scroll */
    .navbar-collapse {
        background: var(--white);
        max-height: 80vh; /* Limita altura para telas pequenas */
        overflow-y: auto; /* Adiciona scroll se necessário */
        padding-bottom: 20px;
        border-top: 1px solid #eee;
        margin-top: 10px;
    }

    /* Reset do Dropdown para ficar plano/estático */
    .dropdown-menu-custom {
        position: static !important;
        display: block;
        width: 100%;
        box-shadow: none !important;
        border: none;
        margin-top: 0 !important;
        padding-left: 15px; /* Indentação visual */
        background-color: #fcfcfc; /* Cor de fundo levemente diferente */
        border-left: 2px solid var(--unifieo-yellow); /* Detalhe lateral */
    }

    /* Colunas do Mega Menu empilhadas */
    .mega-col {
        width: 100%;
        margin-bottom: 1rem;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   FOOTER STYLES
   ========================================= */
.main-footer {
    background-color: #f9fafa; /* Fundo muito claro, quase branco */
    color: #333;
    font-family: 'Poppins', sans-serif;
    border-top: 1px solid #eaeaea;
    margin-top: auto; /* Garante que fique no fim se usar flexbox no body */
}

/* Títulos das Colunas */
.footer-heading {
    color: #003366; /* Azul Unifieo */
    font-size: 0.85rem;
    font-weight: 600; /* Semi-bold */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.575rem;
}

/* Links do Footer */
.footer-links li {
    margin-bottom: 0.1rem;
}

.footer-links a {
    color: #555;
    font-size: 0.9rem;
    font-weight: 300; /* Light */
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #003366;
    padding-left: 5px; /* Efeito visual sutil */
}

/* Ícones Sociais */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: #333; /* Fundo escuro conforme imagem */
    color: #fff;
    border-radius: 50%;
    font-size: 1rem;
    transition: background-color 0.2s;
    text-decoration: none;
}

.social-icon:hover {
    background-color: #003366;
    color: #fff;
}

/* Divisória */
.footer-divider {
    border-top: 2px solid #ddd;
    opacity: 1;
    margin: 1.5rem 0;
    width: 50px; /* Divisória curta estilo design moderno */
}

/* Container do e-MEC */
.emec-container {
    max-width: 140px;
}

/* Textos Gerais */
.text-muted {
    color: #666 !important;
}

/* =========================================
   FLOATING WHATSAPP BUTTON
   ========================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1040; /* MAIOR QUE O HEADER (1030) PARA FICAR POR CIMA */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #fff;
}

/* Animação de Pulso (Opcional, para chamar atenção) */
@keyframes pulse-green {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float {
    animation: pulse-green 2s infinite;
}