.leadership-container {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.profile-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    /* Border color set dynamically via settings */
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 20px;
    overflow: hidden;
    border: 4px solid #f7fafc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.role-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    color: #718096;
    margin-bottom: 8px;
    display: block;
    border-bottom: 2px solid #cbd5e0;
    /* Fallback color */
    display: inline-block;
    padding-bottom: 4px;
}

.profile-name {
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
    margin: 10px 0 10px 0;
}

.profile-details {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 20px;
    width: 100%;
}

.profile-actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    width: 100%;
}

.email-btn {
    display: inline-block;
    background-color: #2d3748;
    /* Fallback */
    color: white !important;
    padding: 8px 16px;
    border-radius: 99px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    color: #718096;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.social-icons a:hover {
    color: #2d3748;
}

@media (max-width: 600px) {
    .leadership-grid {
        grid-template-columns: 1fr;
    }
}