:root {
    /* Palet Granodiorit Lebak - sama dengan profil */
    --sdgs-primary: #6B7280;   /* Granodiorit Grey */
    --sdgs-secondary: #3B5E4A; /* Moss Green Geosite */
    --sdgs-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(--sdgs-bg);
    color: var(--text-dark);
}

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

.sdgs-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(--sdgs-primary), var(--sdgs-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-sdgs {
    /* 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-sdgs::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-sdgs .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(--sdgs-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(--sdgs-secondary);
}

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

.section-card__header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
}

.section-card__header h2 {
    margin-bottom: 8px;
}

.section-card__header p {
    margin: 0;
    color: var(--text-muted);
}

.score-pill {
    background: rgba(59, 94, 74, 0.1);
    color: var(--sdgs-secondary);
    padding: 12px 18px;
    border-radius: 0;
    text-align: center;
    border: 1px solid rgba(59, 94, 74, 0.3);
}

.score-pill span {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.score-pill strong {
    font-size: 1.6rem;
}

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

.stat-card {
    background: var(--sdgs-bg);
    border-radius: 18px;
    padding: 18px;
    border: 1px solid rgba(0,0,0,0.04);
}

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

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

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 600;
}

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

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--sdgs-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(--sdgs-secondary);
    color: white;
    cursor: pointer;
    font-weight: 600;
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.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(0,0,0,0.05);
    border-radius: 18px;
    padding: 20px;
    background: white;
    margin-top: 20px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.indicator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.indicator-card {
    background: #ffffff;
    border-radius: 0;
    padding: 20px;
    border: 1px solid rgba(107, 114, 128, 0.15);
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 220px;
    box-shadow: 0 2px 8px rgba(31, 41, 55, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.indicator-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(31, 41, 55, 0.15);
    border-color: var(--sdgs-secondary);
}

.indicator-card header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.indicator-card header h3 {
    margin: 4px 0 0;
    font-size: 1rem;
}

.score-badge {
    background: var(--sdgs-bg);
    color: var(--sdgs-secondary);
    padding: 10px 14px;
    border-radius: 0;
    font-weight: 700;
    border: 1px solid rgba(59, 94, 74, 0.3);
    box-shadow: 0 2px 8px rgba(31, 41, 55, 0.1);
}

.recommendation-html {
    background: var(--sdgs-bg);
    border-radius: 0;
    padding: 12px;
    overflow-x: auto;
    border: 1px solid rgba(107, 114, 128, 0.15);
}

.recommendation-html table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.recommendation-html th,
.recommendation-html td {
    border: 1px solid rgba(0,0,0,0.1);
    padding: 6px 8px;
    text-align: left;
}

.targets-table {
    margin-top: 28px;
}

.targets-table h3 {
    margin-top: 0;
}

.table-wrapper {
    border: 1px solid rgba(107, 114, 128, 0.15);
    border-radius: 0;
    overflow: hidden;
    overflow-x: auto;
}

.targets-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.targets-table th,
.targets-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 0.95rem;
}

.targets-table thead {
    background: var(--sdgs-secondary);
    color: white;
}

.targets-table tbody tr:nth-child(even) {
    background: rgba(59, 94, 74, 0.05);
}

.targets-table tbody tr:nth-child(odd) {
    background: rgba(59, 94, 74, 0.03);
}

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

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    /* Hero layout jadi column di mobile */
    .hero-sdgs .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .hero-content {
        width: 100%;
    }
    
    .stats-grid {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
    }

    .section-card {
        padding: 24px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-primary {
        width: 100%;
    }

    .targets-table table {
        min-width: 600px;
    }
    
    .indicator-grid {
        grid-template-columns: 1fr;
    }
    
    .indicator-card {
        min-height: auto;
    }
}

