/* ==========================================================================
   1. Variáveis de Cores e Configurações (Estilo Lions Clube)
   ========================================================================== */
:root {
    --primary-blue: #004f9f;
    --dark-blue: #00338d;
    --primary-gold: #ebb700;
    --secondary-gold: #fbb813;
    --bg-light: #FCFCFC;
    --bg-gray: #f0f0f0;
    --text-gray: #555555;
    --text-dark: #313131;
    --text-light: #ffffff;
}

/* ==========================================================================
   2. Reset e Estilos Globais
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Hind', Helvetica, Arial, sans-serif;
    font-weight: 700;
    color: var(--dark-blue);
}

a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.divider-graphic {
    font-size: 24px;
    font-weight: 900;
    color: var(--secondary-gold);
    letter-spacing: 2px;
    margin-bottom: 25px;
    display: block;
}

/* ==========================================================================
   3. Cabeçalho e Navegação (ATUALIZADO: Fundo Branco + Links Azuis)
   ========================================================================== */
#Top_bar {
    background-color: #ffffff; /* Fundo alterado para branco */
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); /* Sombra suave para destacar do conteúdo */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 50px;
    width: auto;
    display: block;
}

#nav-list {
    list-style: none;
    display: flex;
    gap: 20px;
}

#nav-list li a {
    color: var(--primary-blue); /* Texto alterado para azul */
    font-size: 16px;
    text-transform: uppercase;
    padding: 10px 0;
    font-weight: 700;
}

#nav-list li a:hover {
    color: var(--primary-gold); /* Cor no hover */
}

/* Botão do Menu Mobile (Três risquinhos azuis) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-blue); /* Cor alterada para azul */
    transition: all 0.3s ease;
}

/* ==========================================================================
   4. Seção Principal (Home - Hero)
   ========================================================================== */
.hero-section {
    background-color: var(--primary-blue);
    padding: 80px 20px;
    display: flex;
    justify-content: center;
}

.hero-wrap {
    max-width: 1220px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

.hero-column-1-3 {
    flex: 1 1 30%;
    text-align: center;
    color: #ffffff;
}

.hero-column-1-3 h1 {
    color: #ffffff;
    font-size: 42px;
    margin-bottom: 15px;
}

.hero-column-1-3 p {
    font-size: 16px;
    margin-bottom: 20px;
}

.btn {
    background: var(--primary-gold);
    color: var(--primary-blue);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    text-transform: uppercase;
}

.btn:hover {
    background: var(--secondary-gold);
    color: var(--dark-blue);
}

.hero-column-2-3 {
    flex: 1 1 65%;
}

.hero-column-2-3 img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    object-fit: cover;
    max-height: 450px;
}

/* ==========================================================================
   5. Grid de Últimas Notícias (Home e Atividades)
   ========================================================================== */
.news-section {
    background-color: #ffffff;
    padding: 60px 20px;
    width: 100%;
}

.news-section .section-title {
    text-align: center;
    margin-bottom: 40px;
}

.news-section .section-title h2 {
    font-size: 34px;
    margin-bottom: 10px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1220px;
    margin: 0 auto;
    width: 100%;
    align-items: stretch;
}

.post-item {
    background: #ffffff;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.post-item .date_label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-gold);
    color: #ffffff;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    z-index: 2;
}

.post-photo, 
.post-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.post-desc {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.post-desc h3 {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.post-desc h3 a {
    color: var(--dark-blue);
}

.post-desc h3 a:hover {
    color: var(--primary-gold);
}

.post-excerpt {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.post-more {
    color: var(--primary-blue);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    align-self: flex-start;
}

.post-more:hover {
    color: var(--primary-gold);
}

/* ==========================================================================
   6. Página da Notícia Completa
   ========================================================================== */
.article-content {
    max-width: 900px;
    margin: 40px auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #ebebeb;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    width: 100%;
}

.article-date {
    display: inline-block;
    background: var(--primary-gold);
    color: #ffffff;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 15px;
}

.article-title {
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--dark-blue);
}

.article-image {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    border-radius: 8px;
    margin: 20px 0 30px 0;
    display: block;
}

.article-body p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
}

.diretoria-box {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-gold);
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 6px 6px 0;
}

.diretoria-box h3 {
    margin-bottom: 12px;
    color: var(--primary-blue);
}

.diretoria-box ul {
    list-style: none;
    padding-left: 0;
}

.diretoria-box li {
    margin-bottom: 8px;
    font-size: 16px;
}

.event-gallery {
    margin-top: 40px;
    border-top: 1px solid #ebebeb;
    padding-top: 30px;
    width: 100%;
}

.event-gallery h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--dark-blue);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
}

.gallery-item {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: block;
}

.gallery-item:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

#image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#image-modal img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 6px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

#image-modal .close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* ==========================================================================
   7. Seção: Diretoria e Associados (associados.html)
   ========================================================================== */
.diretoria-section {
    background-color: var(--dark-blue);
    color: var(--text-light);
    padding: 80px 20px;
}

.diretoria-section h2, .diretoria-section h3 {
    color: var(--text-light);
}

.diretoria-section h2 {
    font-size: 42px;
    margin-bottom: 5px;
}

.diretoria-section h3 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 5px;
}

.lista-membros {
    list-style: none;
    font-size: 18px;
    line-height: 1.8;
}

.lista-membros li {
    margin-bottom: 8px;
}

.lista-membros strong {
    font-weight: 700;
}

.associados-section {
    background-color: var(--bg-gray);
    color: var(--text-gray);
    padding: 80px 20px;
}

.associados-section h2 {
    color: var(--dark-blue);
    font-size: 42px;
    margin-bottom: 5px;
}

.lista-associados {
    list-style: none;
    font-size: 18px;
    line-height: 1.8;
}

.lista-associados li {
    margin-bottom: 5px;
}

/* ==========================================================================
   8. Rodapé
   ========================================================================== */
#Footer {
    background-color: var(--secondary-gold);
    padding: 20px 0;
    text-align: center;
}

#Footer p {
    color: var(--primary-blue);
    font-weight: 600;
    margin: 0;
}

/* ==========================================================================
   9. Responsividade (Celulares e Tablets)
   ========================================================================== */
@media (max-width: 768px) {
    .diretoria-section h2, .associados-section h2 {
        font-size: 32px;
    }
    
    .lista-membros, .lista-associados {
        font-size: 16px;
    }

    .hero-column-1-3, .hero-column-2-3 {
        flex: 1 1 100%;
    }

    .article-content {
        margin: 20px 10px;
        padding: 20px;
    }

    .article-title {
        font-size: 24px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 10px;
    }

    .gallery-item {
        height: 120px;
    }

    .menu-toggle {
        display: flex;
    }

    .header-container {
        flex-wrap: wrap;
    }

    #menu {
        width: 100%;
    }

    /* Menu dropdown no celular com fundo branco e borda suave */
    #nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #ffffff;
        padding: 0;
        margin: 15px 0 0 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    }

    #nav-list.active {
        display: flex;
    }

    #nav-list li {
        text-align: center;
        border-top: 1px solid #ebebeb;
    }

    #nav-list li a {
        display: block;
        padding: 15px;
        color: var(--primary-blue);
    }
}