
/* ==========================================================================
    TEAM DIRECTORY SECTION (Integrated with common.css)
    ========================================================================== */
.boardroom-section {
    padding: 60px 0 80px 0;
    background-color: var(--white);
}

.header-section {
    margin-bottom: 36px;
    text-align: left;
}

.eyebrow-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.page-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.page-subtitle {
    font-size: 1rem;
    color: var(--text-gray);
    max-width: 780px;
    line-height: 1.6;
}

/* Directory Grid Layout */
.directory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 24px;
}

@media (max-width: 1024px) {
    .directory-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .directory-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-title {
        font-size: 1.75rem;
    }
    .boardroom-section {
        padding: 40px 0 60px 0;
    }
}

/* Leader Card Design */
.leader-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
}

.leader-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
    border-color: var(--gold);
}

.card-image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: var(--bg-light);
    position: relative;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.35s ease;
}

.leader-card:hover .card-image {
    transform: scale(1.03);
}

.card-content {
    padding: 22px 20px 24px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-role {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 6px;
    line-height: 1.3;
}

.card-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1.3;
}

.card-qualifications {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-bio {
    font-size: 0.88rem;
    color: var(--text-gray);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
    MODAL SYSTEM WITH OVERLAY-LEVEL SCROLLBAR
    ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(17, 24, 39, 0.7); /* Matching --navy translucency */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1000;
    display: grid;
    place-items: center;
    overflow-y: auto;
    padding: 40px 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

/* Custom Scrollbar for Main Overlay */
.modal-overlay::-webkit-scrollbar {
    width: 10px;
}

.modal-overlay::-webkit-scrollbar-track {
    background: rgba(17, 24, 39, 0.9);
}

.modal-overlay::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 5px;
}

.modal-overlay::-webkit-scrollbar-thumb:hover {
    background: var(--gold-hover);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: var(--white);
    width: 100%;
    max-width: 680px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 36px 40px;
    position: relative;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.modal-overlay.active .modal-card {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-desk-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-gray);
}

/* SVG Close Button */
.modal-close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-close-btn:hover {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.modal-close-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.2;
}

.profile-top-row {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.profile-modal-img {
    width: 160px;
    height: 160px;
    border-radius: 12px;
    object-fit: cover;
    object-position: top center;
    flex-shrink: 0;
    background-color: var(--bg-light);
}

.profile-top-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.15;
}

.profile-title-gold {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 8px;
    line-height: 1.4;
}

.profile-subtitle-gray {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.4;
}

.section-title-gold {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 12px;
}

.bio-text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-gray);
}

.info-card-box {
    background-color: var(--bg-light);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-light);
}

.box-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.accreditation-list {
    list-style-type: disc;
    padding-left: 20px;
    font-size: 0.92rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.accreditation-list li {
    margin-bottom: 8px;
}

.accreditation-list li:last-child {
    margin-bottom: 0;
}

.form-subtitle {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.5;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: var(--gold);
    color: var(--white);
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-submit:hover {
    background-color: var(--gold-hover);
}

.btn-submit:active {
    transform: scale(0.99);
}

@media (max-width: 600px) {
    .modal-card {
        padding: 24px 20px;
    }
    .profile-top-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .profile-modal-img {
        width: 130px;
        height: 130px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}
