
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: #fff;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 1000px;
    margin: 0 auto;
}

.last-row {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 8px;
}

    .last-row .staff-card {
        width: calc(33.333% - 4px);
    }

.staff-card {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background: #222;
}

    .staff-card img.photo {
        width: 100%;
        height: 280px;
        object-fit: cover;
        object-position: top;
        display: block;
        transition: opacity 0.3s;
    }

    .staff-card:hover img.photo {
        opacity: 0.85;
    }

    .staff-card .name-bar {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 10px 12px;
        color: #fff;
        font-size: 24px;
        font-weight: 400;
        text-align: center;
        letter-spacing: 1.5px;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    }

.eyeball {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    z-index: 2;
    font-size: 18px;
}


    .eyeball::after {
        content: "";
        width: 100%;
        height: 65%;
        background-size: contain;
        background-image: url("/assets/images/home/eyeball.png");
        background-repeat: no-repeat;
    }
/* eye colors per card */
.card-1 .eyeball {
    background: #5b4fcf;
}

.card-2 .eyeball {
    background: #e6a800;
}

.card-3 .eyeball {
    background: #2db84b;
}

.card-4 .eyeball {
    background: #e63f6a;
}

.card-6 .eyeball {
    background: #9c3bcf;
}

.card-7 .eyeball {
    background: #5b4fcf;
}

.card-8 .eyeball {
    background: #e6a800;
}

.card-9 .eyeball {
    background: #2db84b;
}
/* Logo center slot */
.logo-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #eee;
}

    .logo-slot img {
        max-width: 70%;
    }
/* Overlay */
.bio-overlay-bg {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

    .bio-overlay-bg.active {
        display: flex;
    }

.bio-panel {
    background: #fff;
    max-width: 750px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 4px;
    position: relative;
    padding: 30px;
}

    .bio-panel .close-btn {
        position: absolute;
        top: 12px;
        right: 16px;
        font-size: 22px;
        cursor: pointer;
        color: #999;
        background: none;
        border: none;
        line-height: 1;
    }

.bio-top {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #ddd;
}

    .bio-top img {
        width: 200px;
        height: 200px;
        object-fit: cover;
        object-position: top;
        flex-shrink: 0;
    }

.bio-top-info {
    padding-top: 10px;
}

    .bio-top-info p {
        font-size: 16px;
        color: #888;
        margin-bottom: 8px;
    }

    .bio-top-info strong {
        color: #333;
        font-weight: 600;
    }

.bio-panel h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a4e;
    margin: 0 0 16px;
    text-align: center;
}

.bio-panel p {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 12px;
}

@@media only screen and (max-width: 767px) {
    .staff-grid {
        grid-template-columns: 1fr;
    }

    .last-row {
        flex-direction: column;
    }

        .last-row .staff-card {
            width: 100%;
        }

    .logo-slot {
        height: 200px;
    }

    .staff-card img.photo {
        height: 350px;
    }

    .bio-top {
        flex-direction: column;
    }
}

