/* Advisor Bio Popup Styles */

.advisor-name {
    color: #1a1a1a;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

.advisor-name:hover {
    color: #0f3462;
    text-decoration-style: solid;
}


.bio-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 55%;
    /* Only cover the left panel */
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    pointer-events: none;
    /* Allow clicks to pass through to background */
}

.bio-popup.show {
    display: flex;
}

.bio-popup-content {
    background: #ffffff;
    padding: 2.5rem;
    max-width: 700px;
    width: 90%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(15, 52, 98, 0.4);
    position: relative;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
    /* Enable clicks on the popup itself */
}

.bio-popup.show .bio-popup-content {
    transform: scale(1);
    opacity: 1;
}

.bio-layout {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.bio-image {
    width: 180px;
    height: 220px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.bio-text {
    flex: 1;
    min-width: 0;
}

.bio-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #6b7c93;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.bio-close:hover {
    background: #f0f4f8;
    color: #0f3462;
    transform: rotate(90deg);
}

.bio-text h2 {
    color: #0f3462;
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.bio-text p {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .bio-popup {
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.25);
        pointer-events: auto;
        z-index: 2000;
        padding: 1rem;
    }

    .bio-popup-content {
        max-width: 400px; /* Reasonable width for mobile card */
        width: 100%;
        margin: 0 auto;
        padding: 2rem 1.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .bio-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.25rem;
    }

    .bio-image {
        width: 140px;
        height: 170px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .bio-text h2 {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
    }

    .bio-text p {
        font-size: 0.95rem;
    }
    
    .bio-close {
        top: 0.5rem;
        right: 0.5rem;
    }
}