:root {
    /* Palet Granodiorit Lebak - sama dengan profil */
    --bansos-primary: #6B7280;   /* Granodiorit Grey */
    --bansos-secondary: #3B5E4A; /* Moss Green Geosite */
    --bansos-bg: #F2F4F5;       /* Quartz White */
    --text-dark: #1F2937;       /* Biotite Black */
    --text-muted: #6B7280;     /* Granodiorit Grey */
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background: var(--bansos-bg);
    color: var(--text-dark);
}

.bansos-nav {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.95);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 10;
    backdrop-filter: blur(6px);
}

.bansos-nav .container {
    max-width: 1200px;
    margin: auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--bansos-primary), var(--bansos-secondary));
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.nav-links {
    display: flex;
    gap: 18px;
    font-weight: 500;
    color: var(--text-muted);
}

/* Hero menggunakan styling dari profil.css */
.hero-bansos {
    /* Background gambar hero dari assets/images */
    background-image: url('../images/gambar-hero.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    height: 300px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bansos::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Overlay gelap untuk kontras teks - menggunakan Biotite Black */
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.75) 0%, rgba(107, 114, 128, 0.65) 100%);
    z-index: 1;
}

.hero-bansos .container {
    max-width: var(--saphira-content-width, calc(100vw - 400px));
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.section-card {
    background: var(--bansos-bg);
    border-radius: 0;
    padding: 32px;
    border: 1px solid rgba(107, 114, 128, 0.15);
    box-shadow: 0 4px 12px rgba(31, 41, 55, 0.08);
    margin-bottom: 28px;
}

.section-card h2 {
    margin-top: 0;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--bansos-secondary);
}

.section-card h2 i {
    color: var(--bansos-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.stat-card {
    background: #ffffff;
    border-radius: 0;
    padding: 20px;
    border: 1px solid rgba(107, 114, 128, 0.15);
    box-shadow: 0 2px 8px rgba(31, 41, 55, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 41, 55, 0.1);
    border-color: var(--bansos-secondary);
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 700;
}

.stat-card .label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 0;
    border: 1px solid rgba(107, 114, 128, 0.2);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--bansos-secondary);
    box-shadow: 0 0 0 3px rgba(59, 94, 74, 0.1);
}

.btn-primary {
    border: none;
    padding: 12px 24px;
    border-radius: 0;
    background: var(--bansos-secondary);
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary:hover {
    background: #2d4a3a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 94, 74, 0.3);
}

.result-card {
    border: 1px solid rgba(107, 114, 128, 0.15);
    border-radius: 0;
    padding: 24px;
    background: #ffffff;
    margin-top: 24px;
    box-shadow: 0 4px 12px rgba(31, 41, 55, 0.08);
}

.result-card h3 {
    margin-top: 0;
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bansos-secondary);
}

.result-card p {
    margin: 12px 0;
    color: var(--text-dark);
    line-height: 1.6;
}

.result-card strong {
    color: var(--bansos-primary);
    font-weight: 600;
    min-width: 120px;
    display: inline-block;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 0;
    background: rgba(59, 94, 74, 0.1);
    color: #3B5E4A;
    font-weight: 600;
    font-size: 0.8rem;
    border: 1px solid rgba(59, 94, 74, 0.3);
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 24px;
    background: #ffffff;
    border: 1px solid rgba(107, 114, 128, 0.15);
    border-radius: 0;
    margin-top: 20px;
}

/* Badge untuk desil */
.badge[style*="background:#fee2e2"] {
    background: rgba(220, 38, 38, 0.1) !important;
    color: #dc2626 !important;
    border: 1px solid rgba(220, 38, 38, 0.3) !important;
    border-radius: 0 !important;
}

.badge[style*="background:#fef3c7"] {
    background: rgba(217, 119, 6, 0.1) !important;
    color: #D97706 !important;
    border: 1px solid rgba(217, 119, 6, 0.3) !important;
    border-radius: 0 !important;
}

@media (max-width: 1200px) {
    .hero-bansos .container,
    .profil-content {
        max-width: 100%;
        padding: 0 24px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    /* Hero layout jadi column di mobile */
    .hero-bansos .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .hero-content {
        width: 100%;
    }

    .section-card {
        padding: 24px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .result-card {
        padding: 20px;
    }
    
    .result-card strong {
        min-width: auto;
        display: block;
        margin-bottom: 4px;
    }
}

