:root {
    --navy: #102a4c;
    --navy-dark: #0a1c34;
    --navy-light: #1c4f82;
    --gold: #c99a3c;
    --gold-light: #e8c47a;
    --bg-soft: #f5f7fb;
    --text-muted: #6c7a91;
    --radius: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #1f2a3a;
    background: #fff;
}

.public-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
}

.section {
    padding: 72px 0;
}

.section-title {
    font-weight: 700;
    font-size: 1.9rem;
    margin-bottom: 6px;
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* ===== Navbar ===== */
.public-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 14px rgba(16, 42, 76, .08);
}

.public-navbar .navbar {
    padding: 12px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--navy);
    font-size: 1.05rem;
}

.public-navbar .nav-link {
    font-weight: 500;
    color: #33465e;
    padding: 8px 14px !important;
    border-radius: 999px;
}

.public-navbar .nav-link:hover {
    color: var(--navy);
    background: var(--bg-soft);
}

.public-navbar .nav-link.active {
    color: #fff;
    background: var(--navy);
    font-weight: 600;
}

.btn-masuk {
    background: var(--navy);
    color: #fff !important;
    padding: 9px 22px;
    border-radius: 999px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background .15s ease;
}

.btn-masuk:hover {
    background: var(--navy-light);
    color: #fff;
}

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy) 60%, var(--navy-light));
    color: #fff;
    padding: 100px 0 130px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(201, 154, 60, .18), transparent 45%);
    pointer-events: none;
}

.hero .container {
    position: relative;
}

.hero-eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, .12);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: .8rem;
    letter-spacing: .04em;
    margin-bottom: 18px;
    color: var(--gold-light);
    font-weight: 600;
}

.hero h1 {
    font-weight: 800;
    font-size: 2.6rem;
    max-width: 760px;
    line-height: 1.25;
}

.hero .hero-subtitle {
    font-size: 1.15rem;
    color: var(--gold-light);
    font-weight: 500;
    margin-top: 10px;
}

.hero p.hero-desc {
    max-width: 640px;
    color: rgba(255, 255, 255, .85);
    margin-top: 18px;
    font-size: 1.02rem;
}

.hero-actions {
    margin-top: 32px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: var(--gold);
    color: #201400;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-hero-primary:hover {
    background: var(--gold-light);
    color: #201400;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .35);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.hero-logo {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 25px 45px rgba(0, 0, 0, .4));
}

/* ===== Stat cards (overlap hero) ===== */
.stats-wrap {
    margin-top: -70px;
    position: relative;
    z-index: 2;
}

.stat-card-public {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: 0 18px 40px rgba(16, 42, 76, .12);
    text-align: center;
    height: 100%;
}

.stat-card-public .stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--bg-soft);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 14px;
}

.stat-card-public .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
}

.stat-card-public .stat-label {
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== Search ===== */
.search-box {
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 36px;
}

.search-box form {
    max-width: 760px;
    margin: 0 auto;
}

.search-box .input-group {
    box-shadow: 0 10px 28px rgba(16, 42, 76, .1);
    border-radius: 999px;
    overflow: hidden;
}

.search-box .form-control {
    border: none;
    padding: 16px 22px;
}

.search-box .form-control:focus {
    box-shadow: none;
}

.search-box .btn-search {
    background: var(--navy);
    color: #fff;
    padding: 0 28px;
    border: none;
}

/* ===== OPD & Arsip cards ===== */
.opd-card, .arsip-card, .team-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid #ecf0f6;
    box-shadow: 0 6px 20px rgba(16, 42, 76, .05);
    height: 100%;
    transition: transform .18s ease, box-shadow .18s ease;
}

.opd-card:hover, .arsip-card:hover, .team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(16, 42, 76, .12);
}

.opd-card-body, .arsip-card-body {
    padding: 26px;
}

.opd-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--bg-soft);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
    overflow: hidden;
}

.opd-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.opd-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.opd-count {
    color: var(--gold);
    font-weight: 700;
}

.link-arrow {
    color: var(--navy);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
}

.link-arrow:hover {
    color: var(--navy-light);
}

.badge-kategori {
    background: var(--bg-soft);
    color: var(--navy);
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: .78rem;
}

.arsip-card .arsip-meta {
    color: var(--text-muted);
    font-size: .85rem;
    margin-top: 10px;
}

/* ===== Team cards ===== */
.team-card-body {
    padding: 24px;
    text-align: center;
}

.team-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 14px;
    background: var(--bg-soft);
    display: block;
}

.team-photo-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin: 0 auto 14px;
    background: var(--bg-soft);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.team-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.team-role {
    color: var(--gold);
    font-weight: 600;
    font-size: .85rem;
    margin-bottom: 8px;
}

.team-desc {
    color: var(--text-muted);
    font-size: .85rem;
}

/* ===== Section alt bg ===== */
.bg-soft {
    background: var(--bg-soft);
}

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

.empty-state i {
    font-size: 2.6rem;
    color: #c7d2e0;
    margin-bottom: 12px;
    display: block;
}

/* ===== Footer ===== */
.public-footer {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, .75);
    padding: 56px 0 24px;
    margin-top: auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.footer-desc {
    color: rgba(255, 255, 255, .6);
    font-size: .9rem;
}

.footer-heading {
    color: #fff;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 14px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, .65);
    font-size: .9rem;
}

.footer-links a:hover {
    color: var(--gold-light);
}

.footer-divider {
    border-color: rgba(255, 255, 255, .12);
    margin: 32px 0 18px;
}

.footer-copyright {
    color: rgba(255, 255, 255, .5);
    font-size: .82rem;
    margin: 0;
}

/* ===== Fade-in animation (ringan) ===== */
.fade-in-up {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s ease, transform .5s ease;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-delay-1.is-visible { transition-delay: .15s; }
.fade-delay-2.is-visible { transition-delay: .3s; }

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .public-navbar .navbar-nav {
        padding: 16px 0;
        gap: 4px;
    }
    .btn-masuk {
        display: inline-flex;
        margin-top: 8px;
        width: fit-content;
    }
}

@media (max-width: 768px) {
    .hero { padding: 70px 0 110px; }
    .hero h1 { font-size: 1.9rem; }
    .section { padding: 52px 0; }
    .stats-wrap { margin-top: -50px; }
}
