/* ==========================================================================
   Diretoria 2.0 - Base Limpa (RuthesDev)
   ========================================================================== */

/* --- Variáveis de Cor e Espaçamento (Herdadas do Tema) --- */
:root {
    --primary-color: var(--primary, #006494);
    --secondary-color: var(--secondary, #00a6fb);
    --text-color: var(--text, #333);
    --light-bg: #f8f9fa;
    --border-radius: 8px;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* --- Hero Section (Padrão Pages/Posts) --- */
.hero {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 4rem 1rem;
    text-align: center;
    margin: 0; /* GARANTE que não há margem externa */
}

.diretoria-page {
    padding-top: 3rem; /* Espaço entre o hero e o conteúdo */
}

.hero .container {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.hero .hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* --- Grid da Diretoria --- */
.diretoria-page .container {
    max-width: 1200px;
    padding: 0 1rem;
}

.diretoria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding-bottom: 4rem; /* Espaço no final da página */
}

/* --- Card do Membro (Compacto) --- */
.membro-card {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    text-align: center;
    padding: 1rem; /* Reduzido */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
}

.membro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.membro-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

.membro-foto {
    width: 100px; /* Reduzido */
    height: 100px; /* Reduzido */
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.75rem; /* Reduzido */
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.membro-foto-placeholder {
    width: 100px; /* Reduzido */
    height: 100px; /* Reduzido */
    border-radius: 50%;
    background-color: #e9ecef;
    margin-bottom: 0.75rem; /* Reduzido */
}

.membro-info {
    flex-grow: 1;
}

.membro-nome {
    font-size: 1.1rem; /* Reduzido */
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 0.25rem 0;
}

.membro-cargo {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.75rem; /* Reduzido */
}

.membro-contato {
    font-size: 0.85rem; /* Reduzido */
    color: #495057;
    margin-bottom: 1rem; /* Reduzido */
}

.membro-contato .contato-item {
    display: block;
    margin-bottom: 0.25rem;
}

.membro-contato .contato-item i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.btn-perfil {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 0.6rem 1.2rem; /* Reduzido */
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500; /* Ajustado */
    font-size: 0.9rem; /* Reduzido */
    transition: background-color 0.3s ease;
    margin-top: auto; /* Alinha o botão na base do card */
}

.btn-perfil:hover {
    background-color: var(--secondary-color);
}


/* --- Responsividade --- */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 1rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .diretoria-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}



.diretoria-title {
    color: var(--primary-color);
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

.diretoria-description {
    color: var(--text-color);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.diretoria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.membro-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.membro-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.13);
    transform: translateY(-4px) scale(1.02);
    border-color: var(--primary-color);
}

.membro-foto {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
}

.membro-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.membro-card:hover .membro-img {
    transform: scale(1.05);
}

.foto-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.foto-placeholder .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: #dee2e6;
}

.membro-info {
    padding: 1.5rem;
}

.membro-nome {
    margin: 0 0 0.5rem;
    font-size: 1.4rem;
    line-height: 1.3;
}

.membro-nome a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.membro-nome a:hover {
    color: var(--secondary-color);
}

.membro-cargo {
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.membro-contato {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.contato-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background: var(--light-bg);
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contato-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.contato-link .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Paginação */
.navigation.pagination {
    margin-top: 3rem;
    text-align: center;
}

.nav-links {
    display: inline-flex;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 6px;
    background: var(--light-bg);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-numbers.current {
    background: var(--primary-color);
    color: white;
}

.page-numbers:hover:not(.current) {
    background: var(--primary-color);
    color: var(--primary-color);
}

.page-numbers .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Responsividade */
@media (max-width: 768px) {
    .diretoria-archive {
        padding: 3rem 0;
    }

    .diretoria-title {
        font-size: 2.2rem;
    }

    .diretoria-description {
        font-size: 1.1rem;
    }

    .diretoria-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .membro-foto {
        box-shadow: 0 2px 10px rgba(0,0,0,0.07);
        background: #f8fafc;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 250px;
    }
}

@media (max-width: 576px) {
    .diretoria-archive {
        padding: 2rem 0;
    }

    .diretoria-title {
        font-size: 2rem;
    }

    .diretoria-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }
}