/* Staff Page - Modern Popping Cutout Aesthetic */
.staff-modern-section {
    background-color: #ffffff;
    padding: 120px 0;
    position: relative;
}

.modern-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, #f0f0f0 1px, transparent 1px),
        linear-gradient(to bottom, #f0f0f0 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    opacity: 0.5;
}

.staff-modern-grid {
    display: flex;
    justify-content: center;
    gap: 100px;
    position: relative;
    z-index: 2;
}

.staff-modern-card {
    width: 100%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    position: relative; /* Anchor for absolute labels */
}

.modern-portrait-wrapper {
    position: relative;
    height: 450px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-top: 40px; /* Space for the head to breathe */
}

.modern-portrait-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90%; 
    background: linear-gradient(to bottom, var(--accent-color), rgba(255,255,255,0));
    opacity: 0.15;
    border-radius: 20px 20px 0 0;
    z-index: 1;
}

/* The magic 'popping' container */
.modern-img-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: visible; /* Restore popping out */
}

.modern-portrait-img {
    height: 105%; /* Restore pop-out height */
    width: auto;
    max-width: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    /* More pronounced 3D silhouette shadow */
    filter: drop-shadow(0 15px 35px rgba(0,0,0,0.25)) drop-shadow(0 5px 10px rgba(0,0,0,0.1));
    transform: translateY(-12px);
}

/* Floating Depth Ring */
.modern-portrait-wrapper::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 250px;
    border: 15px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.modern-sticker {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: var(--accent-color);
    z-index: 5;
    font-size: 1.3rem;
    border: 2px solid #fff;
}

.modern-labels-container {
    position: absolute;
    bottom: 20px;
    left: -15px; /* Overlap to the left like the screenshot */
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 110%; /* Makes it wider than the card */
}

.label-role {
    background-color: var(--tertiary);
    color: #1a1a1a;
    padding: 8px 25px;
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.1);
    margin-bottom: -5px; /* Tight overlap */
    position: relative;
    z-index: 12;
}

.label-name {
    background-color: var(--primary);
    color: #fff;
    padding: 15px 30px;
    box-shadow: 10px 10px 30px rgba(0,0,0,0.15);
    position: relative;
    z-index: 11;
    width: 100%;
}

.name-text {
    font-size: 1.5rem;
    font-weight: 900;
    display: block;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.editorial-details-footer {
    margin-top: 80px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.detail-line {
    flex-grow: 1;
    height: 1px;
    background: #ddd;
}

.detail-text {
    font-weight: 900;
    font-size: 1.5rem;
    color: #aaa;
    letter-spacing: 2px;
}

@media (max-width: 991px) {
    .staff-modern-section {
        padding: 80px 0;
    }

    .staff-modern-grid {
        flex-direction: column;
        align-items: center;
        gap: 50px; /* Lessened gap */
    }
    
    .staff-modern-card {
        max-width: 450px;
    }

    .modern-labels-container {
        position: absolute; /* Keep it connected/overlapping the portrait */
        width: 100%;
        left: 0;
        bottom: 20px;
        align-items: center;
        text-align: center;
        padding: 0;
        z-index: 15;
    }

    .label-role {
        width: auto;
        display: inline-block;
        padding: 6px 15px;
        font-size: 0.75rem;
    }

    .label-name {
        width: 90%; /* Responsive width */
        max-width: 320px;
        margin: 0 auto;
        padding: 10px 20px;
    }

    .label-role {
        padding: 6px 20px;
        font-size: 0.8rem;
    }

    .label-name {
        padding: 12px 25px;
    }

    .name-text {
        font-size: 1.35rem;
    }
}

@media (max-width: 576px) {
    .staff-modern-section {
        padding: 40px 0; /* Lessened padding */
    }

    .staff-modern-card {
        max-width: 100%;
    }

    .modern-portrait-wrapper {
        height: 380px;
    }

    .name-text {
        font-size: 1.2rem;
    }

    .modern-portrait-img {
        height: 100%;
    }

    .modern-sticker {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        top: 10px;
        right: 10px;
    }
}
