:root {
    --primary-color: #1a4f72;
    --secondary-color: #3a7ca5;
    --accent-color: #f8ac59;
    --light-color: #f3f6f9;
    --dark-color: #2c3e50;
}

.chart-header-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    text-align: center;
}

.org-chart {
    text-align: center;
    margin: 2rem 0;
}

.level {
    display: flex;
    justify-content: center;
}

.person-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin: 1rem;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 300px;
}

.person-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.ceo-card {
    border-top: 4px solid var(--accent-color);
    background: linear-gradient(135deg, #fff 0%, #f3f6f9 100%);
}

.department-head {
    border-top: 4px solid var(--secondary-color);
}

.employee {
    border-top: 4px solid #a1cae2;
}

.person-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 3px solid var(--light-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.person-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-name {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.person-title {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.person-contact {
    color: #666;
    font-size: 0.9rem;
}

.department-section {
    margin: 3rem 0;
    padding: 0 15px;
}

.department-title {
    color: var(--primary-color);
    font-weight: 700;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.department-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

@media (max-width: 768px) {
    .person-card {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    .person-avatar {
        width: 80px;
        height: 80px;
    }
}