/* =========================================
   STAFF PAGE STYLING
   ========================================= */

/* Override page-wrapper untuk staff page */
.staff-section {
    position: relative;
    padding: 140px 2rem 80px 2rem; /* Top: spacing dari navbar, Bottom: spacing untuk footer */
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    z-index: 10;
}

/* JUDUL HALAMAN */
.section-title {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: #DAA520;
    text-align: center;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(218, 165, 32, 0.3);
}

.section-subtitle {
    font-family: 'Lato', sans-serif;
    text-align: center;
    color: #E0E0E0;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 1rem;
    margin-bottom: 4rem;
    opacity: 0.8;
}

/* =========================================
   GROUPING LAYOUT
   ========================================= */
.group-wrapper {
    margin-bottom: 5rem;
    position: relative;
    width: 100%;
}

.group-title {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    color: #fff;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.group-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #DAA520;
    margin: 15px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(218,165,32,0.8);
}

/* Grid dengan Flexbox - Center Alignment */
.staff-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    width: 100%;
    padding: 0 1rem;
}

/* =========================================
   WARNA KHUSUS PER DIVISI
   ========================================= */

/* VASIKI (Gold) */
.theme-vasiki .group-title { 
    color: #DAA520; 
}
.theme-vasiki .staff-card { 
    border-bottom-color: #DAA520; 
}
.theme-vasiki .staff-photo { 
    border-color: #DAA520; 
    box-shadow: 0 0 20px rgba(218, 165, 32, 0.3);
}
.theme-vasiki .staff-title { 
    color: #DAA520; 
}

/* SEN (Silver) */
.theme-sen .group-title { 
    color: #C0C0C0; 
}
.theme-sen .group-title::after { 
    background: #C0C0C0; 
    box-shadow: 0 0 10px rgba(192,192,192,0.8); 
}
.theme-sen .staff-card { 
    border-bottom-color: #C0C0C0; 
}
.theme-sen .staff-photo { 
    border-color: #C0C0C0; 
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.3);
}
.theme-sen .staff-title { 
    color: #C0C0C0; 
}

/* OTHER STAFF (Bronze) */
.theme-member .group-title { 
    color: #cd7f32; 
}
.theme-member .group-title::after { 
    background: #cd7f32; 
    box-shadow: 0 0 10px rgba(205,127,50,0.8); 
}
.theme-member .staff-card { 
    border-bottom-color: #cd7f32; 
}
.theme-member .staff-photo { 
    border-color: #cd7f32; 
    box-shadow: 0 0 20px rgba(205, 127, 50, 0.3);
}
.theme-member .staff-title { 
    color: #cd7f32; 
}

/* =========================================
   CARD DESIGN (Style Mewah)
   ========================================= */
.staff-card {
    width: 300px;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 1.5rem;
    margin: 0;
    box-sizing: border-box;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Glass Effect Background */
    background: linear-gradient(145deg, 
        rgba(40, 30, 20, 0.5), 
        rgba(20, 10, 5, 0.6));
    
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    /* Border dengan Accent */
    border: 1px solid rgba(218, 165, 32, 0.2);
    border-bottom: 4px solid #DAA520;
    border-radius: 8px;
    
    /* Shadow */
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Hover Effect */
.staff-card:hover {
    transform: translateY(-12px) scale(1.02);
    background: linear-gradient(145deg, 
        rgba(40, 30, 20, 0.75), 
        rgba(20, 10, 5, 0.85));
    box-shadow: 
        0 15px 50px rgba(218, 165, 32, 0.3),
        0 0 30px rgba(218, 165, 32, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(218, 165, 32, 0.6);
}

/* FOTO STAFF */
.staff-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid #DAA520;
    box-shadow: 
        0 0 15px rgba(0,0,0,0.5),
        0 0 20px rgba(218, 165, 32, 0.3);
    transition: all 0.4s ease;
}

.staff-card:hover .staff-photo {
    transform: scale(1.08);
    box-shadow: 
        0 0 25px rgba(218, 165, 32, 0.5),
        0 0 35px rgba(218, 165, 32, 0.2);
}

/* NAMA STAFF */
.staff-card h3 {
    font-family: 'Cinzel', serif;
    color: #fff;
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    text-align: center;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: color 0.3s ease;
}

.staff-card:hover h3 {
    color: #FFD700;
}

/* JABATAN */
.staff-title {
    font-family: 'Lato', sans-serif;
    color: #DAA520;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.staff-card:hover .staff-title {
    letter-spacing: 2px;
}

/* SOCIAL MEDIA ICONS (Optional) */
.staff-socials {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    text-align: center;
}

.staff-socials a {
    color: #888;
    margin: 0 10px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.staff-socials a:hover {
    color: #DAA520;
    transform: scale(1.2) translateY(-2px);
}

/* =========================================
   RESPONSIVE - TABLET
   ========================================= */
@media (max-width: 992px) {
    .staff-section {
        padding: 120px 1.5rem 60px 1.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .group-title {
        font-size: 2rem;
    }
    
    .staff-grid {
        gap: 2rem;
    }
    
    .staff-card {
        width: 280px;
        min-height: 400px;
    }
}

/* =========================================
   RESPONSIVE - MOBILE
   ========================================= */
@media (max-width: 768px) {
    .staff-section {
        padding: 180px 1rem 60px 1rem; /* Lebih banyak top padding karena navbar wrap */
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 0.3rem;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
        margin-bottom: 3rem;
    }
    
    .group-wrapper {
        margin-bottom: 4rem;
    }
    
    .group-title {
        font-size: 1.75rem;
        letter-spacing: 3px;
        margin-bottom: 2rem;
    }
    
    .staff-grid {
        gap: 1.5rem;
        padding: 0;
    }
    
    .staff-card {
        width: 100%;
        max-width: 350px;
        min-height: 380px;
        padding: 1.75rem 1.25rem;
    }
    
    .staff-photo {
        width: 120px;
        height: 120px;
        margin-bottom: 1.25rem;
    }
    
    .staff-card h3 {
        font-size: 1.15rem;
        min-height: 60px;
    }
    
    .staff-title {
        font-size: 0.85rem;
    }
}

/* =========================================
   RESPONSIVE - SMALL MOBILE
   ========================================= */
@media (max-width: 480px) {
    .staff-section {
        padding: 160px 0.75rem 50px 0.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .group-title {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    
    .staff-card {
        max-width: 100%;
        padding: 1.5rem 1rem;
    }
    
    .staff-photo {
        width: 110px;
        height: 110px;
    }
}