/* Alaska EXCEL Org Chart Styles */

.aeoc-orgchart {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    animation: aeocFadeIn 0.6s ease-out;
}

@keyframes aeocFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.aeoc-header {
    background: linear-gradient(135deg, #003087 0%, #0047b3 100%);
    color: white;
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 40px;
    animation: aeocSlideDown 0.8s ease-out;
}

@keyframes aeocSlideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.aeoc-title {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 8px;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.aeoc-subtitle {
    font-size: 16px;
    letter-spacing: 4px;
    margin: 0;
    opacity: 0.95;
}

/* Staff Section */
.aeoc-staff-section {
    background: #8b9197;
    padding: 50px 20px;
    margin-bottom: 0;
}

.aeoc-section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0 0 50px 0;
    animation: aeocFadeInUp 0.8s ease-out;
}

@keyframes aeocFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CEO Section */
.aeoc-ceo-section {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    animation: aeocZoomIn 0.8s ease-out;
}

@keyframes aeocZoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Department Header */
.aeoc-department-header {
    background: linear-gradient(135deg, #e3e6ea 0%, #c5cad1 100%);
    color: #27251f;
    padding: 18px 40px;
    margin: 50px auto 40px;
    max-width: 320px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
    position: relative;
    overflow: hidden;
    animation: aeocSlideInLeft 0.6s ease-out;
}

@keyframes aeocSlideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.aeoc-department-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.aeoc-department-header:hover::before {
    left: 100%;
}

.aeoc-department-header.administration {
    background: linear-gradient(135deg, #d4f3f7 0%, #a8dde8 100%);
}

.aeoc-department-header.clinical {
    background: linear-gradient(135deg, #ffecd4 0%, #ffd4a8 100%);
}

.aeoc-department-header.development {
    background: linear-gradient(135deg, #ead4f7 0%, #d4a8e8 100%);
}

.aeoc-department-header.outreach {
    background: linear-gradient(135deg, #d4f3e8 0%, #a8ddc5 100%);
}

.aeoc-department-header.programs {
    background: linear-gradient(135deg, #d4e3f7 0%, #a8c5e8 100%);
}

/* Department Grid */
.aeoc-department-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto 30px;
    padding: 0 20px;
}

/* Person Card */
.aeoc-person-card {
    background: white;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: aeocFadeInScale 0.5s ease-out backwards;
    width: 220px;
    flex-shrink: 0;
}

@keyframes aeocFadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.aeoc-person-card:nth-child(1) { animation-delay: 0.1s; }
.aeoc-person-card:nth-child(2) { animation-delay: 0.2s; }
.aeoc-person-card:nth-child(3) { animation-delay: 0.3s; }
.aeoc-person-card:nth-child(4) { animation-delay: 0.4s; }
.aeoc-person-card:nth-child(5) { animation-delay: 0.5s; }
.aeoc-person-card:nth-child(6) { animation-delay: 0.6s; }

.aeoc-person-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.aeoc-person-card.aeoc-clickable {
    cursor: pointer;
}

.aeoc-person-card.aeoc-clickable:hover {
    transform: translateY(-8px) scale(1.02);
}

.aeoc-person-card.aeoc-ceo {
    width: 260px;
    padding: 35px 25px;
    border: 3px solid #ffcd00;
    box-shadow: 0 6px 20px rgba(255, 205, 0, 0.3);
    flex-shrink: 0;
}

.aeoc-person-card.aeoc-director {
    border: 3px solid #ffcd00;
    box-shadow: 0 4px 16px rgba(255, 205, 0, 0.25);
    position: relative;
}

.aeoc-person-card.aeoc-director::after {
    content: 'DIRECTOR';
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ffcd00 0%, #ffd740 100%);
    color: #27251f;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    animation: aeocPulse 2s ease-in-out infinite;
}

@keyframes aeocPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.aeoc-person-card.aeoc-director:hover {
    border-color: #003087;
    box-shadow: 0 8px 28px rgba(0, 48, 135, 0.3);
}

/* Photo Placeholder */
.aeoc-photo-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #003087 0%, #0047b3 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    border: 4px solid #ffcd00;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
}

.aeoc-person-card:hover .aeoc-photo-placeholder {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.aeoc-photo-placeholder img {
    width: 100%;
    height: 100%;
	object-position: top;
    object-fit: cover;
    border-radius: 50%;
}

.aeoc-ceo .aeoc-photo-placeholder {
    width: 120px;
    height: 120px;
    font-size: 36px;
}

/* Person Info */
.aeoc-person-name {
    font-size: 18px;
    font-weight: 700;
    color: #003087;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aeoc-person-title {
    font-size: 13px;
    color: #75787b;
    line-height: 1.4;
}

/* Board Section */
.aeoc-board-section {
    background: #8b9197;
    padding: 60px 20px;
}

.aeoc-board-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.aeoc-board-member {
    text-align: center;
    animation: aeocFadeInUp 0.6s ease-out backwards;
    width: 160px;
    flex-shrink: 0;
}

.aeoc-board-member:nth-child(1) { animation-delay: 0.1s; }
.aeoc-board-member:nth-child(2) { animation-delay: 0.2s; }
.aeoc-board-member:nth-child(3) { animation-delay: 0.3s; }
.aeoc-board-member:nth-child(4) { animation-delay: 0.4s; }
.aeoc-board-member:nth-child(5) { animation-delay: 0.5s; }
.aeoc-board-member:nth-child(6) { animation-delay: 0.6s; }
.aeoc-board-member:nth-child(7) { animation-delay: 0.7s; }
.aeoc-board-member:nth-child(8) { animation-delay: 0.8s; }

.aeoc-board-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #003087 0%, #0047b3 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    border: 4px solid #ffcd00;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
}

.aeoc-board-member:hover .aeoc-board-photo {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.aeoc-board-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aeoc-board-name {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.aeoc-board-title {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

/* Advisory Section */
.aeoc-advisory-section {
    background: #a8adb3;
    padding: 60px 20px;
}

.aeoc-advisory-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
.aeoc-footer {
    background: linear-gradient(135deg, #27251f 0%, #3a3835 100%);
    color: white;
    text-align: center;
    padding: 50px 20px;
    animation: aeocFadeIn 0.8s ease-out;
}

.aeoc-footer-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 6px;
    color: #ffcd00;
    margin: 0 0 8px 0;
}

.aeoc-footer-subtitle {
    font-size: 14px;
    letter-spacing: 2px;
    margin: 0 0 20px 0;
    opacity: 0.9;
}

.aeoc-footer-address {
    font-size: 14px;
    line-height: 1.8;
    margin: 0 0 15px 0;
    opacity: 0.85;
}

.aeoc-footer-copyright {
    font-size: 12px;
    margin: 0;
    opacity: 0.7;
}

/* Modal */
.aeoc-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: aeocModalFadeIn 0.3s ease-out;
}

@keyframes aeocModalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.aeoc-modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    animation: aeocModalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes aeocModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.aeoc-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: 300;
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
}

.aeoc-modal-close:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: rotate(90deg);
}

.aeoc-modal-body {
    padding: 0;
}

.aeoc-modal-header {
    background: linear-gradient(135deg, #003087 0%, #0047b3 100%);
    padding: 40px 30px 30px;
    border-radius: 16px 16px 0 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.aeoc-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffcd00 0%, #ffd740 100%);
}

.aeoc-modal-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #0047b3 0%, #0060e0 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    border: 4px solid #ffcd00;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.aeoc-modal-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aeoc-modal-name {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.aeoc-modal-title {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.aeoc-modal-bio {
    padding: 30px;
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    max-height: 400px;
    overflow-y: auto;
}

.aeoc-modal-bio::-webkit-scrollbar {
    width: 8px;
}

.aeoc-modal-bio::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.aeoc-modal-bio::-webkit-scrollbar-thumb {
    background: #003087;
    border-radius: 10px;
}

.aeoc-modal-bio::-webkit-scrollbar-thumb:hover {
    background: #002060;
}

/* Responsive */
@media (max-width: 768px) {
    .aeoc-title {
        font-size: 32px;
        letter-spacing: 4px;
    }
    
    .aeoc-section-title {
        font-size: 24px;
    }
    
    .aeoc-department-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .aeoc-person-card {
        width: 100%;
        max-width: 300px;
    }
    
    .aeoc-person-card.aeoc-ceo {
        width: 100%;
        max-width: 300px;
    }
    
    .aeoc-board-member {
        width: 140px;
    }
    
    .aeoc-modal-content {
        margin: 10% auto;
        width: 95%;
    }
}

