/* Team leadership profile modals (About page) */
.ceo-leadership-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ceo-leadership-modal[hidden] {
    display: none !important;
}

.ceo-leadership-modal:not([hidden]) {
    display: flex;
}

.ceo-leadership-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.team-card--ceo,
.team-card[data-opens-leadership] {
    cursor: pointer;
}

.team-card--ceo:focus,
.team-card[data-opens-leadership]:focus {
    outline: none;
}

.team-card--ceo:focus-visible,
.team-card[data-opens-leadership]:focus-visible {
    outline: 2px solid var(--primary-color, #2563eb);
    outline-offset: 6px;
}

.ceo-profile-facts {
    list-style: none;
    padding: 0;
    margin: 0 0 0.85rem;
}

.ceo-profile-facts li {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #4b5563;
    margin: 0 0 0.3rem;
}

.ceo-profile-facts strong {
    font-weight: 700;
    color: #0f172a;
}

.ceo-leadership-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: none;
    padding: 0;
    cursor: pointer;
}

.ceo-leadership-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(880px, 100%);
    max-height: min(92vh, 920px);
    overflow: auto;
    background: #ffffff;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 0;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
    padding: 0;
}

.ceo-leadership-modal__close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(37, 99, 235, 0.25);
    border-radius: 0;
    background: #ffffff;
    color: #1f2937;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.ceo-leadership-modal__close:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.ceo-bio-section {
    display: none;
}

.ceo-bio-content {
    max-width: none;
    margin: 0;
    padding: 0;
}

.ceo-profile-banner {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
    background: #eef2f7;
    padding: 2.25rem 2.5rem;
}

.ceo-profile-photo {
    width: 200px;
    height: 200px;
    margin: 0;
    overflow: hidden;
    background: #0b1220;
}

.ceo-profile-photo .team-card-photo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.ceo-profile-photo img,
.ceo-bio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.ceo-profile-meta {
    min-width: 0;
}

.ceo-bio-name {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.ceo-bio-title-text {
    font-size: 0.8125rem;
    color: #2563eb;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 0.85rem;
}

.ceo-profile-email {
    display: inline-block;
    color: #1f2937;
    font-size: 0.95rem;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    margin-bottom: 0.85rem;
}

.ceo-profile-email:hover {
    color: #2563eb;
}

.ceo-profile-social {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.ceo-profile-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    color: #2563eb;
    font-size: 1.15rem;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.ceo-profile-social a:hover {
    color: #1d4ed8;
    transform: translateY(-1px);
}

.ceo-profile-body {
    padding: 2.25rem 2.5rem 2.75rem;
    background: #ffffff;
}

.ceo-bio-intro,
.ceo-bio-experience {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #374151;
    margin: 0 0 1.35rem;
    padding: 0;
    border: none;
}

.ceo-bio-closing {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #374151;
    margin: 1.75rem 0 0;
}

.ceo-bio-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 1.75rem 0 0.9rem;
    padding: 0;
    border: none;
}

.ceo-bio-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ceo-bio-list li {
    position: relative;
    padding-left: 1.35rem;
    margin-bottom: 0.55rem;
    font-size: 1rem;
    line-height: 1.7;
    color: #4b5563;
}

.ceo-bio-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: #0f172a;
}

.ceo-bio-profile,
.ceo-bio-memberships,
.ceo-bio-certifications,
.ceo-bio-education {
    margin: 0;
    padding: 0;
    border: none;
}

.ceo-bio-profile .ceo-bio-section-title {
    margin-top: 0;
}

.ceo-bio-cert-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.35rem 1.25rem;
}

@media (max-width: 768px) {
    .ceo-profile-banner {
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 1.5rem;
        padding: 1.75rem 1.5rem;
    }

    .ceo-profile-photo {
        width: 160px;
        height: 160px;
    }

    .ceo-bio-name {
        font-size: 1.65rem;
    }

    .ceo-profile-body {
        padding: 1.75rem 1.5rem 2.25rem;
    }

    .ceo-bio-cert-list {
        grid-template-columns: 1fr;
    }
}
