/* =========================================
   STYLE.CSS - CLUBE MILITAR (VÉRTICE CODE PREMIUM)
   ========================================= */

/* Importação de Fontes */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    /* Paleta Vibrante & Premium (Estilo Resort/SaaS) */
    --primary-color: #2563eb;
    /* Azul Royal Vibrante */
    --primary-dark: #1e40af;
    /* Azul Profundo para hover/contrastes */
    --accent-color: #f59e0b;
    /* Dourado Solar (para detalhes) */
    --text-main: #1f2937;
    /* Cinza Chumbo Moderno */
    --text-light: #6b7280;
    /* Cinza Suave */
    --bg-light: #f3f4f6;
    /* Fundo Off-white */
    --card-bg: #ffffff;

    /* Efeitos de Profundidade */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-lg: 16px;
    --radius-md: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--text-main);
}

a {
    text-decoration: none;
    /* Remove sublinhado padrão de links */
}

/* --- 1. Navbar Premium --- */
.navbar {
    background-color: #fff;
    box-shadow: var(--shadow-soft);
    padding: 12px 0;
    transition: var(--transition);
}

.navbar-brand {
    font-weight: 800;
    color: var(--primary-dark) !important;
    text-transform: uppercase;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.navbar-brand i {
    color: var(--primary-color);
}

.navbar-nav {
    align-items: center;
    /* Garante alinhamento vertical */
}

.nav-link {
    color: var(--text-main) !important;
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0 8px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Dropdowns Elegantes & Correção de Z-Index */
.dropdown-menu {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    /* Sombra mais forte para destacar */
    margin-top: 15px;
    padding: 10px;
    z-index: 9999;
    /* Garante que fique acima de tudo */
}

.dropdown-item {
    border-radius: 6px;
    padding: 8px 15px;
    font-size: 0.9rem;
    color: var(--text-main);
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: #eff6ff;
    color: var(--primary-color);
    padding-left: 20px;
}

/* Botão Área do Sócio (Destaque) */
.btn-socio {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white !important;
    padding: 10px 25px !important;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: var(--transition);
    border: none;
    text-decoration: none;
    white-space: nowrap;
    /* Não quebra linha */
}

.btn-socio:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
    color: white !important;
}

/* --- 1.1 Navbar Responsiva (Mobile) - MELHORADO --- */
@media (max-width: 991.98px) {

    /* Adiciona um respiro lateral no mobile para o logo e o botão não colarem na borda */
    .navbar .container-fluid {
        padding-left: 20px;
        padding-right: 20px;
    }

    .navbar-collapse {
        padding: 15px;
        margin-top: 10px;
        border-top: 1px solid var(--bg-light);
    }

    .navbar-nav {
        width: 100%;
        align-items: stretch !important;
        /* Corrige o alinhamento centralizado herdado do desktop */
    }

    .nav-link {
        padding: 12px 15px;
        /* Mais padding para toque */
        width: 100%;
        border-radius: 8px;
        text-align: left;
        /* Garante que o texto fique encostado na esquerda */
    }

    /* Itens com Submenu (ex: O Clube, Departamentos) */
    .nav-item.dropdown .nav-link.dropdown-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: rgba(37, 99, 235, 0.05);
        /* Fundo azul bem claro para destacar */
        font-weight: 600;
        color: var(--primary-dark) !important;
    }

    /* Submenu que abre no mobile */
    .dropdown-menu {
        position: static !important;
        /* CRÍTICO: Faz o submenu empurrar o conteúdo para baixo em vez de flutuar */
        float: none;
        width: 100%;
        border: none;
        box-shadow: none;
        background-color: transparent;
        /* Fundo transparente para não destoar */
        padding: 5px 15px 5px 20px;
        /* Padding para indentar (Esq) e dar respiro (Dir) */
        margin-top: 0 !important;
        border-left: 3px solid var(--primary-color);
        /* Linha guia vertical */
        margin-left: 10px;
        border-radius: 0;
    }

    /* O botão vira um bloco para ocupar a largura */
    .navbar-collapse .btn-socio {
        width: 100%;
        margin-top: 15px;
        text-align: center;
    }
}

/* --- 2. Hero Slider & Banner --- */
.hero-slider .carousel-item {
    height: 65vh;
    min-height: 500px;
}

.hero-slider img {
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
}

/* Faixa Informativa */
.info-bar {
    background: var(--primary-dark);
    color: white;
    padding: 20px 0;
    text-align: center;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.info-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: skewX(-20deg) translateX(-150%);
    animation: shine 4s infinite;
}

@keyframes shine {
    100% {
        transform: skewX(-20deg) translateX(150%);
    }
}

/* --- 3. Seção de Notícias (Cards Clean) --- */
.section-title-wrapper {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.news-card {
    background: white;
    border-radius: var(--radius-lg);
    border: none;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.news-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.news-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img-top {
    transform: scale(1.05);
}

.news-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date-badge {
    display: inline-block;
    background-color: #eff6ff;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    width: fit-content;
    text-transform: uppercase;
}

.news-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
    color: var(--text-main);
}

.btn-read-more {
    margin-top: auto;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.btn-read-more:hover {
    gap: 10px;
    color: var(--primary-dark);
}

/* Paginação Customizada */
.custom-pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.page-link-custom {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    color: var(--text-main);
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid transparent;
}

.page-link-custom:hover {
    background: #eff6ff;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.page-link-custom.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

/* --- 4. Depoimentos (Glassmorphism) --- */
.testimonials-section {
    position: relative;
    padding: 100px 0;
    background: url('https://cssgt.com.br/app/img/background/1.jpeg?ixlib=rb-4.0.3&auto=format&fit=crop&w=1470&q=80') center/cover fixed;
}

.testimonials-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 64, 175, 0.85);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-quote {
    font-size: 3rem;
    opacity: 0.5;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
}

/* --- 5. Footer (Estilo Portal) --- */
footer {
    background-color: #111827;
    color: #9ca3af;
    padding-top: 80px;
    padding-bottom: 30px;
}

.footer-heading {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none !important;
    /* IMPORTANTE: Sem sublinhado */
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.btn-director-link {
    display: block;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    color: #d1d5db;
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid transparent;
}

.btn-director-link:hover {
    background: rgba(37, 99, 235, 0.2);
    border-color: var(--primary-color);
    color: white;
}

.social-circle {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    color: white;
    transition: 0.3s;
    text-decoration: none;
}

.social-circle:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* --- 6. Botão WhatsApp Premium (Com Pulse) --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25d366;
    opacity: 0.7;
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    70% {
        transform: scale(1.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.whatsapp-float:hover {
    transform: translateY(-5px);
    color: white;
}

/* --- Modal WhatsApp Branco (Corrigido) --- */
.modal-header-clean {
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
    padding: 1.5rem;
    border-radius: 1rem 1rem 0 0;
    /* Adicionado para alinhar título e botão X */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title-clean {
    color: var(--text-main);
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    gap: 12px;
    /* Espaço entre o ícone do whats e o texto */
    margin: 0;
    /* Remove margem padrão para alinhar perfeito */
    font-size: 1.2rem;
}

.modal-title-clean i {
    color: #25d366;
    /* Verde WhatsApp */
    font-size: 1.8rem;
}

/* Ajuste fino para o botão de fechar */
.modal-header-clean .btn-close {
    margin: 0;
    /* Remove margens negativas do bootstrap */
    padding: 0.5rem;
    background-size: 1em;
    /* Tamanho do X */
    opacity: 0.5;
    transition: 0.3s;
}

.modal-header-clean .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
    /* Efeito charmoso ao passar o mouse */
}

/* --- 7. Página de Login (Full Screen & Correções) --- */
.login-section {
    min-height: 100vh;
    /* Garante altura total */
    height: 100vh;
    /* Fixa a altura */
    width: 100%;
    background-color: white;
}

.login-image {
    background: url('https://cssgt.com.br/app/img/background/7.jpeg?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(30, 64, 175, 0.85));
}

.login-quote {
    position: relative;
    z-index: 2;
    color: white;
    padding: 60px;
    max-width: 80%;
}

/* CORREÇÃO DO TÍTULO DO LOGIN (BRANCO) */
.login-quote h1 {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-weight: 800;
    letter-spacing: -1px;
}

.login-form-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    background: white;
    height: 100%;
    overflow-y: auto;
}

.login-card {
    width: 100%;
    max-width: 400px;
}

.form-floating>.form-control {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    height: 3.5rem;
}

.form-floating>.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* --- 8. Página de Detalhe de Notícia --- */
.article-header {
    height: 50vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.article-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.sidebar-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-soft);
    border: 1px solid #f3f4f6;
    margin-bottom: 25px;
}

.related-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    text-decoration: none;
    color: var(--text-main);
    transition: 0.3s;
}

.related-item:hover {
    transform: translateX(5px);
    color: var(--primary-color);
}

.related-img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
}

/* --- Helper Utilities --- */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.ls-1 {
    letter-spacing: 1px;
}

.fw-extra-bold {
    font-weight: 800;
}

/* =========================================
   PRELOADER PREMIUM (TELA DE CARREGAMENTO)
   ========================================= */
#premium-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    /* Fundo branco limpo e elegante */
    z-index: 99999;
    /* Fica por cima de absolutamente tudo */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Classe que o JavaScript usará para esconder o loader suavemente */
#premium-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Anel giratório elegante */
.loader-ring {
    width: 110px;
    height: 110px;
    border: 3px solid rgba(37, 99, 235, 0.1);
    /* Fundo do anel bem fraquinho */
    border-top-color: var(--primary);
    /* Cor principal girando */
    border-radius: 50%;
    animation: loader-spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    position: absolute;
}

/* Logotipo no centro pulsando */
.loader-logo {
    width: 65px;
    height: auto;
    object-fit: contain;
    animation: loader-pulse 1.5s ease-in-out infinite;
}

/* Animações Keyframes */
@keyframes loader-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes loader-pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}