/* ===============================
   STAFF BOX WRAPPER
================================ */
#staff-box-item{
    position: relative;
    text-align: center;
    margin-top: 20px;
}

/* ===============================
   GRID LAYOUT (FIX UTAMA)
================================ */
#grid-staff{
    width: 100%;
    max-width: 1280px;
    margin: 30px auto;
    padding: 10px 0;

    display: grid;
    grid-template-columns: repeat(2, 2);
    gap: 100px;
}

/* ===============================
   STAFF CARD
================================ */
.view-staff{
    width: 100%;
    height: 216px;
    position: relative;
    overflow: hidden;
    text-align: left;

    border: 8px solid #fff;
    background: #333;
    box-shadow: 1px 2px 7px rgba(0,0,0,0.07);

    perspective: 500px;
}

/* ===============================
   IMAGE SLICE EFFECT
================================ */
.view-staff .slice{
    width: 60px;
    height: 100%;
    z-index: 100;

    transform-style: preserve-3d;
    transform-origin: left center;
    transition: transform 150ms ease-in-out;
}

/* ===============================
   BACK PANEL
================================ */
.view-staff div.view-staff-back{
    width: 50%;
    height: 100%;
    position: absolute;
    right: 0;
    background: #272d35;
    z-index: 0;
}

/* ===============================
   BACK TEXT
================================ */
.view-staff-back span{
    display: block;
    float: right;
    width: 100%;
    padding: 5px 20px;
    text-align: right;
    font-size: 16px;
    color: rgba(255,255,255,0.6);
}

.view-staff-back span:first-child{
    padding-top: 20px;
}

/* ===============================
   NAME & DESC
================================ */
.view-staff-name{
    position: absolute;
    z-index: 999;
    color: #fff;
    text-shadow: 0 1px 0 #141414;
}

.view-staff h3{
    padding: 5px 20px 0;
    margin: 0;
}

.view-staff p{
    padding: 0 20px;
    margin: 0;
    font-style: italic;
}

/* ===============================
   SOCIAL ICONS
================================ */
.view-staff-back a{
    clear: both;
    display: block;
    float: right;
    margin: 7px 15px 1px;
    width: 30px;
    height: 30px;
    line-height: 28px;

    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    text-align: center;

    transition: all 0.3s ease;
}

.view-staff-back a.profile-link{
    position: absolute;
    right: 15px;
    bottom: 15px;
    margin: 0;
}

.view-staff-back a:hover{
    color: #fff;
    border-color: #fff;
}

/* ===============================
   SLICE POSITIONS
================================ */
.view-staff .s1{ background-position:   0px 0; }
.view-staff .s2{ background-position: -60px 0; }
.view-staff .s3{ background-position:-120px 0; }
.view-staff .s4{ background-position:-180px 0; }
.view-staff .s5{ background-position:-240px 0; }

.view-staff .s2,
.view-staff .s3,
.view-staff .s4,
.view-staff .s5{
    transform: translate3d(60px,0,0);
}

/* ===============================
   OVERLAY
================================ */
.view-staff .overlay{
    width: 60px;
    height: 100%;
    opacity: 0;
    position: absolute;
    transition: opacity 150ms ease-in-out;
}

.view-staff:hover .overlay{
    opacity: 1;
}

/* ===============================
   HOVER EFFECT
================================ */
.view-staff:hover .s2{
    transform: translate3d(59px,0,0) rotateY(-45deg);
}

.view-staff:hover .s3,
.view-staff:hover .s5{
    transform: translate3d(59px,0,0) rotateY(90deg);
}

.view-staff:hover .s4{
    transform: translate3d(59px,0,0) rotateY(-90deg);
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 992px){
    #grid-staff{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px){
    #grid-staff{
        grid-template-columns: 1fr;
    }
}
