:root {
    --primary: #0f6dbf;
    --primary-dark: #0a4f8c;
    --primary-light: #e8f1fa;
    --accent: #f59e0b;
    --danger: #dc2626;
    --success: #16a34a;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --bg: #f3f6fb;
    --white: #ffffff;
    --radius: 12px;
    --shadow: 0 2px 12px rgba(15, 109, 191, .08);
    --shadow-lg: 0 10px 30px rgba(15, 109, 191, .12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
}

.brand:hover {
    text-decoration: none;
}

.brand-logo {
    font-size: 1.4rem;
}

.brand-name span {
    color: var(--primary);
}

.nav {
    display: flex;
    gap: 6px;
}

.nav a {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: .95rem;
    color: var(--text);
    transition: background .2s, color .2s;
}

.nav a:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    text-decoration: none;
}

.nav a.active {
    background: var(--primary);
    color: #fff;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1.3rem;
    padding: 4px 10px;
    cursor: pointer;
    color: var(--text);
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, #0a4f8c 0%, #0f6dbf 55%, #1e90d6 100%);
    color: #fff;
    padding: 64px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 14px;
    line-height: 1.25;
}

.hero p {
    font-size: 1.1rem;
    opacity: .92;
    max-width: 640px;
    margin: 0 auto 28px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 10px;
    font-size: .98rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, background .2s;
    text-align: center;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--white);
    color: var(--primary-dark);
}

.btn-primary:hover {
    background: #ff7f7f;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .6);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, .12);
}

.btn-dark {
    background: var(--primary);
    color: #fff;
}

.btn-dark:hover {
    background: var(--primary-dark);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-block {
    width: 100%;
}

/* ---------- Sections ---------- */
.section {
    padding: 48px 0;
}

.section-title {
    font-size: 1.6rem;
    margin-bottom: 8px;
    color: var(--text);
}

.section-sub {
    color: var(--muted);
    margin-bottom: 28px;
}

/* ---------- Stats ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    text-align: center;
}

.stat-icon {
    font-size: 1.8rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-dark);
}

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

/* ---------- Category cards ---------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.category-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: box-shadow .2s, transform .2s;
}

.category-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    text-decoration: none;
}

.category-icon {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.category-name {
    font-weight: 700;
    color: var(--text);
}

.category-count {
    color: var(--muted);
    font-size: .85rem;
}

/* ---------- Cards / list ---------- */
.report-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.report-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow .2s, transform .2s;
}

.report-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.report-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    white-space: nowrap;
}

.badge-kategori {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.badge-status {
    color: #fff;
}

.status-aktif {
    background: var(--accent);
}

.status-ditemukan {
    background: var(--success);
}

.status-selesai {
    background: var(--muted);
}

.report-title {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--text);
}

.report-title a {
    color: inherit;
}

.report-title a:hover {
    color: var(--primary);
}

.report-desc {
    color: var(--muted);
    font-size: .93rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.report-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: .83rem;
    color: var(--muted);
    border-top: 1px dashed var(--border);
    padding-top: 10px;
}

.report-meta span::before {
    content: "\2022 ";
    color: var(--primary);
}

/* ---------- Forms ---------- */
.form-box {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
    max-width: 720px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-group.full {
    grid-column: 1 / -1;
}

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

.form-group .required {
    color: var(--danger);
}

.form-control,
.form-group select,
.form-group textarea,
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="date"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: .95rem;
    font-family: inherit;
    background: #fff;
    color: var(--text);
    transition: border-color .2s, box-shadow .2s;
}

.form-control:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 3px rgba(15, 109, 191, .12);
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.form-hint {
    font-size: .8rem;
    color: var(--muted);
    margin-top: 4px;
}

/* ---------- Alert ---------- */
.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: .95rem;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert ul {
    margin-left: 18px;
}

/* ---------- Search / filter ---------- */
.filter-box {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 28px;
}

.filter-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}

/* ---------- Detail page ---------- */
.detail-box {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
    max-width: 820px;
    margin: 0 auto;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.detail-title {
    font-size: 1.6rem;
    line-height: 1.3;
}

.detail-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
    background: var(--bg);
    border-radius: 10px;
    padding: 20px;
}

.detail-info-item {
    font-size: .93rem;
}

.detail-info-item strong {
    display: block;
    color: var(--muted);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 2px;
}

.detail-desc {
    margin: 20px 0;
    white-space: pre-line;
}

.contact-box {
    background: var(--primary-light);
    border-radius: 10px;
    padding: 20px;
    margin-top: 24px;
}

.contact-box h3 {
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.contact-box p {
    font-size: .95rem;
}

/* ---------- How it works ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.step {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    position: relative;
}

.step-num {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.step h3 {
    margin-bottom: 6px;
}

.step p {
    color: var(--muted);
    font-size: .93rem;
}

/* ---------- About ---------- */
.prose {
    max-width: 760px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
}

.prose h2 {
    margin: 24px 0 10px;
    color: var(--primary-dark);
}

.prose h2:first-child {
    margin-top: 0;
}

.prose p,
.prose li {
    color: #374151;
    margin-bottom: 10px;
}

.prose ul {
    margin-left: 20px;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    margin-top: 48px;
    padding: 40px 0 24px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.footer-brand {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: #cbd5e1;
}

.footer-links a:hover {
    color: #fff;
}

.footer-copy {
    width: 100%;
    text-align: center;
    border-top: 1px solid #1e293b;
    padding-top: 18px;
    margin-top: 24px;
    font-size: .85rem;
    color: #64748b;
}

/* ---------- Empty state ---------- */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--muted);
}

.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    font-size: .9rem;
    color: var(--text);
}

.pagination a:hover {
    background: var(--primary-light);
    text-decoration: none;
}

.pagination .current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .steps {
        grid-template-columns: 1fr;
    }
    .detail-info {
        grid-template-columns: 1fr;
    }
    .filter-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 12px 20px;
        box-shadow: var(--shadow-lg);
    }
    .nav.open {
        display: flex;
    }
    .nav-toggle {
        display: block;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 1.7rem;
    }
    .report-list {
        grid-template-columns: 1fr;
    }
}
