:root {
    --primary-gradient: linear-gradient(135deg, #6f42c1 0%, #4a2c85 100%);
    --church-blue: #6f42c1; 
    --slate-dark: #1e293b;
    --soft-slate: #64748b;
    /* Dibuat transparan agar background foto dari style-beranda berfungsi */
    --bg-canvas: transparent; 
}

body { 
    background-color: var(--bg-canvas); 
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--slate-dark);
}

.navbar {
    z-index: 10000 !important;
    position: relative;
}

/* ========================================================
   STYLE HEADER (SAMA DENGAN VISI MISI & SEJARAH)
   ======================================================== */
.page-header-premium { 
    padding-top: 6rem; 
    padding-bottom: 3rem; 
    position: relative;
}

.main-title-aesthetic { 
    font-family: 'Playfair Display', serif; 
    font-size: clamp(2rem, 6vw, 4.5rem); 
    font-weight: 900; 
    color: #ffffff !important; 
    line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7); 
}

.sub-title-aesthetic {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 600;
    color: #ffffff !important; 
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

.premium-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.premium-divider .line {
    height: 1px;
    width: 80px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
}

.premium-divider .dot {
    width: 6px;
    height: 6px;
    background-color: #ffffff;
    border-radius: 50%;
    margin: 0 10px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}
/* ======================================================== */

.container-stats {
    margin-top: 0; /* Hapus margin negatif dari desain lama */
    position: relative;
    z-index: 5;
}

/* UBAH KOTAK STATISTIK MENJADI PUTIH SOLID */
.stat-card {
    background: #ffffff !important;
    backdrop-filter: none !important;
    border: none !important;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    color: #333333 !important; /* Memastikan teks gelap terbaca */
}

.stat-card:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 15px 40px rgba(111, 66, 193, 0.15); 
}

.icon-box {
    width: 50px; height: 50px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
}

.bg-blue-light { background: #f3effb; color: #6f42c1; }
.bg-green-light { background: #f0fdf4; color: #16a34a; }
.bg-orange-light { background: #fff7ed; color: #ea580c; }

.chart-container { 
    position: relative; 
    height: 200px; 
    width: 100%; 
    padding: 5px; 
}

.card-header-digital {
    background: transparent;
    border-bottom: 1px solid #f1f5f9;
    padding: 14px 18px;
    font-weight: 700;
    color: var(--slate-dark);
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-pills-custom {
    background: #ffffff;
    padding: 6px;
    border-radius: 50px;
    display: inline-flex;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    border: 1px solid #e2e8f0;
}

.nav-pills-custom .nav-link {
    color: var(--soft-slate);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    padding: 10px 24px;
    transition: all 0.2s ease;
    white-space: nowrap; 
}

.nav-pills-custom .nav-link.active {
    background-color: var(--church-blue) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.2);
}

.bpmj-card{
    border:none;
    border-radius:20px;
    overflow:hidden;
    transition:.3s;
    background:#fff;
    box-shadow:0 5px 20px rgba(0,0,0,.06);
    max-width:220px;
    margin:auto;
}

.bpmj-card:hover{
    transform:translateY(-6px);
    box-shadow:0 12px 30px rgba(111,66,193,.15);
}

.bpmj-photo{
    width:100%;
    aspect-ratio:1/1;
    object-fit:cover;
    cursor:pointer;
}

.bpmj-info{
    padding:10px 12px;
}

.bpmj-name{
    font-weight:700;
    font-size:.8rem;
    margin-bottom:4px;
    color:#1e293b;
}

.bpmj-position{
    font-size:.72rem;
    color:#64748b;
}

.ketua-card{
    border:2px solid #6f42c1;
}

.ketua-card .bpmj-name{
    font-size:1.1rem;
}

.ketua-card .bpmj-position{
    color:#6f42c1;
    font-weight:700;
    text-transform:uppercase;
}

#fotoModal .modal-dialog{ max-width: 700px; }
#fotoModal .modal-content{ background: transparent; }
#popupImage{ width: 100%; max-height: 85vh; object-fit: contain; border-radius: 20px; }

@media (max-width: 1199.98px) {
    .card-header-digital { font-size: 0.85rem; padding: 12px; }
    .chart-container { height: 180px; }
}

@media (max-width: 767.98px) {
    .page-header-premium { 
        padding-top: 4rem; 
        padding-bottom: 2rem; 
    }
    
    .container-stats { 
        margin-top: 0; 
    }
    
    .chart-container { 
        height: 200px; 
    }
    
    .table-responsive { 
        border-radius: 12px; 
    }

    .nav-pills-custom {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 16px; 
        max-width: 100%;
        padding: 4px;
    }
    
    .nav-pills-custom::-webkit-scrollbar {
        display: none;
    }

    .nav-pills-custom .nav-link {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .row.g-4 > [class*='col-'] {
        margin-bottom: 0.5rem;
    }
}