/* siteweb/static/siteweb/css/bureau_permanent.css */

.bureau-permanent-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 40px;
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #4CAF50;
    margin: 15px auto 0;
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
}

/* Grid Layouts */
.president-section {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Slightly wider cards for 2 per row typically */
    gap: 30px;
    margin-bottom: 60px;
    justify-content: center;
}

/* For specific grid adjustments if needed (e.g. 2 columns for VPs) */
.members-grid.two-columns {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 1200px) {
    .members-grid.two-columns {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Card Style */
.member-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Layout for President (centered, maybe vertical or larger horizontal) */
.president-section .member-card {
    flex-direction: row;
    padding: 40px;
    max-width: 600px;
}

.member-photo-container {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f5f5f5;
}

.member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    flex-grow: 1;
    text-align: left;
}

.member-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.member-role {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    font-weight: 600;
}

.member-details {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 15px;
    line-height: 1.5;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.detail-icon {
    font-size: 1rem;
    color: #999;
}

.btn-profile {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 16px;
    background-color: transparent;
    color: #2e7d32;
    border: 1px solid #2e7d32;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-profile:hover {
    background-color: #2e7d32;
    color: #fff;
}

.btn-profile i {
    font-size: 0.8rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .members-grid.two-columns {
        grid-template-columns: 1fr;
    }
    
    .member-card {
        flex-direction: column;
        text-align: center;
    }
    
    .president-section .member-card {
        flex-direction: column;
    }
    
    .member-info {
        text-align: center;
    }
    
    .detail-item {
        justify-content: center;
    }
}
