:root {
    --bk-green: #0b4d24;
    --bk-green-dark: #07371a;
    --bk-green-soft: #e7f2ea;
    --bk-accent: #d46402;
    --bk-accent-soft: #fdf1e7;
    --bk-ink: #1c2b22;
    --bk-muted: #64748b;
}

body {
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    color: var(--bk-ink);
}

a { text-decoration: none; }

/* ---------- Topbar ---------- */
.topbar {
    background: var(--bk-green-dark);
    color: rgba(255, 255, 255, .78);
    font-size: .8rem;
    padding: .45rem 0;
}
.topbar a { color: rgba(255, 255, 255, .78); transition: color .2s ease; }
.topbar a:hover { color: #fff; }
.topbar-info {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.topbar-info li, .topbar-info a { display: flex; align-items: center; gap: .45rem; }
.topbar-info i, .topbar-link i { color: #f0a25a; }
.topbar-link { display: inline-flex; align-items: center; gap: .4rem; }
.topbar-divider { width: 1px; height: 14px; background: rgba(255, 255, 255, .2); }
.topbar-social { display: flex; gap: .35rem; }
.topbar-social a {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .08);
    font-size: .75rem;
}
.topbar-social a:hover { background: var(--bk-accent); color: #fff; }

/* ---------- Navbar utama ---------- */
.main-header {
    background: rgba(255, 255, 255, .97);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid rgba(7, 55, 26, .06);
    transition: box-shadow .25s ease;
}
.main-header.is-scrolled { box-shadow: 0 6px 24px rgba(7, 55, 26, .1); }
.main-header .navbar { padding: .85rem 0; transition: padding .25s ease; }
.main-header.is-scrolled .navbar { padding: .45rem 0; }

.brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-right: 1.5rem;
    padding: 0;
}
.brand img {
    width: 52px;
    height: 52px;
    flex: none;
    transition: width .25s ease, height .25s ease;
}
.main-header.is-scrolled .brand img { width: 42px; height: 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: .3px;
    color: var(--bk-green-dark);
    text-transform: uppercase;
}
.brand-tagline {
    font-size: .72rem;
    font-weight: 500;
    color: var(--bk-muted);
    white-space: normal;
    max-width: 230px;
}

.main-header .navbar-toggler {
    border: 0;
    font-size: 1.75rem;
    color: var(--bk-green-dark);
    padding: .25rem .5rem;
}
.main-header .navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(11, 77, 36, .15); }

.navbar-nav .nav-link {
    position: relative;
    font-weight: 600;
    font-size: .92rem;
    color: var(--bk-ink);
    padding: .5rem .7rem !important;
    border-radius: .5rem;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.show { color: var(--bk-green); }
.navbar-nav .nav-link.active { color: var(--bk-green); }
.navbar-nav .dropdown-toggle::after {
    border: 0;
    content: "\F282";
    font-family: "bootstrap-icons";
    font-size: .6rem;
    vertical-align: .1rem;
    margin-left: .3rem;
    transition: transform .2s ease;
}
.navbar-nav .dropdown-toggle.show::after { transform: rotate(180deg); }
.nav-cta .btn { padding: .5rem 1.1rem; font-size: .9rem; }

.dropdown-menu {
    border: 0;
    border-radius: .75rem;
    box-shadow: 0 16px 40px rgba(7, 55, 26, .16);
    padding: .5rem;
    min-width: 15rem;
}
.dropdown-menu .dropdown-item {
    border-radius: .5rem;
    padding: .55rem .9rem;
    font-size: .9rem;
    white-space: normal;
}
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus { background: var(--bk-green-soft); color: var(--bk-green-dark); }

/* Dropdown bertingkat (menu 3 tingkat seperti aplikasi lama) */
.dropdown-submenu { position: relative; }
.dropdown-submenu > a::after {
    content: "\F285";
    font-family: "bootstrap-icons";
    font-size: .6rem;
    float: right;
    margin-top: .35rem;
}

@media (min-width: 1200px) {
    /* Garis aksen di bawah menu aktif / hover */
    .navbar-nav > .nav-item > .nav-link:not(.btn)::before {
        content: "";
        position: absolute;
        left: .7rem;
        right: .7rem;
        bottom: .15rem;
        height: 2px;
        border-radius: 2px;
        background: var(--bk-accent);
        transform: scaleX(0);
        transition: transform .2s ease;
    }
    .navbar-nav > .nav-item > .nav-link:hover::before,
    .navbar-nav > .nav-item > .nav-link.active::before,
    .navbar-nav > .nav-item > .nav-link.show::before { transform: scaleX(1); }

    /* Dropdown terbuka saat hover di desktop */
    .navbar-nav .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
    .navbar-nav .dropdown > .dropdown-menu { top: 100%; }
    .dropdown-submenu > .dropdown-menu { top: 0; left: 100%; margin-top: -.5rem; }
    .dropdown-submenu:hover > .dropdown-menu { display: block; }
    .nav-cta { margin-left: .75rem; }
}

@media (max-width: 1199.98px) {
    .main-header .navbar-collapse {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        border-top: 1px solid var(--bk-green-soft);
        margin-top: .75rem;
        padding: .5rem 0 1rem;
    }
    .navbar-nav .nav-link { padding: .7rem .5rem !important; border-bottom: 1px solid #f1f4f2; border-radius: 0; }
    .navbar-nav .dropdown-menu { box-shadow: none; background: #f6f9f7; margin: .25rem 0 .5rem; }
    .dropdown-submenu > .dropdown-menu { display: block; position: static; background: transparent; padding: 0 0 0 1rem; margin: 0; }
    .dropdown-submenu > a::after { display: none; }
    .nav-cta { margin-top: 1rem; }
    .nav-cta .btn { width: 100%; }
}

@media (max-width: 575.98px) {
    .brand img { width: 42px; height: 42px; }
    .brand-name { font-size: 1.05rem; }
    .brand-tagline { font-size: .66rem; max-width: 190px; }
}

/* ---------- Ticker berita terkini ---------- */
.ticker {
    background: var(--bk-green);
    color: #fff;
    overflow: hidden;
}
.ticker-label {
    background: var(--bk-accent);
    color: #fff;
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .6px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem 1rem;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}
.ticker-label i { animation: ticker-pulse 1.6s ease-in-out infinite; }
.ticker-items {
    overflow: hidden;
    flex: 1;
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.ticker-track {
    display: inline-flex;
    gap: 2.5rem;
    white-space: nowrap;
    padding-left: 1.25rem;
    animation: ticker-move 70s linear infinite;
}
.ticker-track a {
    color: rgba(255, 255, 255, .92);
    font-size: .86rem;
    line-height: 2.5;
    display: inline-flex;
    align-items: center;
    gap: 2.5rem;
}
.ticker-track a::after { content: "•"; color: #f0a25a; }
.ticker-track a:hover { color: #ffd9b0; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-move {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@keyframes ticker-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .45; }
}
@media (prefers-reduced-motion: reduce) {
    .ticker-track, .ticker-label i { animation: none; }
}

/* ---------- Hero carousel ---------- */
.hero { position: relative; }
.hero .carousel-item img {
    width: 100%;
    height: clamp(280px, 46vw, 560px);
    object-fit: cover;
}
.hero .carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 55, 26, .72) 0%, rgba(7, 55, 26, .25) 45%, transparent 70%),
                linear-gradient(0deg, rgba(0, 0, 0, .35), transparent 40%);
    pointer-events: none;
}
.hero .carousel-caption {
    z-index: 2;
    right: auto;
    left: max(1.25rem, calc((100vw - 1320px) / 2 + .75rem));
    bottom: clamp(4.5rem, 9vw, 7rem);
    text-align: left;
    max-width: 640px;
}
.hero .carousel-caption .badge { background: var(--bk-accent); letter-spacing: 1px; padding: .45em .8em; }
.hero .carousel-caption h2 {
    font-weight: 800;
    font-size: clamp(1.6rem, 3.6vw, 2.8rem);
    text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}
.hero .carousel-caption p {
    color: rgba(255, 255, 255, .92);
    font-size: clamp(.95rem, 1.4vw, 1.15rem);
}
.hero .carousel-control-prev, .hero .carousel-control-next { z-index: 3; width: 6%; }
.hero .carousel-indicators { z-index: 3; margin-bottom: clamp(3.5rem, 6vw, 4.75rem); }
.hero .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    margin: 0 4px;
    transition: width .25s ease;
}
.hero .carousel-indicators .active { width: 28px; border-radius: 5px; background: var(--bk-accent); }

/* ---------- Layanan cepat ---------- */
.quick-services { position: relative; z-index: 5; margin-top: -3rem; }
.service-card {
    display: flex;
    align-items: center;
    gap: .9rem;
    height: 100%;
    background: #fff;
    border-radius: 1rem;
    padding: 1.1rem 1.2rem;
    box-shadow: 0 12px 32px rgba(7, 55, 26, .12);
    color: var(--bk-ink);
    border-bottom: 3px solid transparent;
    transition: transform .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-3px); border-bottom-color: var(--bk-accent); color: var(--bk-ink); }
.service-card strong { display: block; font-size: .98rem; color: var(--bk-green-dark); }
.service-card small { display: block; color: var(--bk-muted); font-size: .78rem; line-height: 1.35; }
.service-icon {
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: .8rem;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    background: var(--bk-green-soft);
    color: var(--bk-green);
    transition: background .2s ease, color .2s ease;
}
.service-card:hover .service-icon { background: var(--bk-accent); color: #fff; }
@media (max-width: 575.98px) {
    .service-card { flex-direction: column; text-align: center; padding: 1rem .75rem; }
    .service-card small { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.quick-services + .section { padding-top: 3.5rem; }
.section.alt { background: var(--bk-light, #f4f7f5); }

.eyebrow {
    color: var(--bk-accent);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: .8rem;
}
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}
.section-title { font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.section-title::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    border-radius: 2px;
    background: var(--bk-accent);
    margin-top: .75rem;
}

/* ---------- Cards ---------- */
.post-card {
    border: 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(7, 55, 26, .08);
    transition: transform .25s ease, box-shadow .25s ease;
    height: 100%;
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(7, 55, 26, .16);
}
.post-card .card-img-wrap { height: 190px; overflow: hidden; }
.post-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover img { transform: scale(1.06); }
.post-card .card-title { font-weight: 700; font-size: 1.02rem; }
.post-card .card-title a { color: var(--bk-ink); }
.post-card .card-title a:hover { color: var(--bk-green); }
.card-meta { font-size: .8rem; color: var(--bk-muted); }
.post-card .card-title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.card-excerpt {
    font-size: .9rem;
    color: var(--bk-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.read-more { color: var(--bk-accent); font-weight: 600; font-size: .875rem; }
.read-more i { transition: transform .2s ease; display: inline-block; }
.read-more:hover { color: var(--bk-green); }
.read-more:hover i { transform: translateX(3px); }
.lead-text { font-size: 1.02rem; line-height: 1.8; color: #3b4a41; text-align: justify; }
.quick-respon { max-height: 520px; width: 100%; object-fit: contain; background: #fff; }

.btn-theme {
    background: var(--bk-green);
    border-color: var(--bk-green);
    color: #fff;
    font-weight: 600;
}
.btn-theme:hover, .btn-theme:focus {
    background: var(--bk-green-dark);
    border-color: var(--bk-green-dark);
    color: #fff;
}
.btn-accent { background: var(--bk-accent); border-color: var(--bk-accent); color: #fff; font-weight: 600; }
.btn-accent:hover { filter: brightness(.92); color: #fff; }
.text-theme { color: var(--bk-green); }
.text-accent { color: var(--bk-accent); }
.bg-theme { background: var(--bk-green); }
.bg-theme-dark { background: var(--bk-green-dark); }

/* ---------- Strategi (parallax) ---------- */
.strategy {
    background:
        linear-gradient(rgba(7, 55, 26, .88), rgba(7, 55, 26, .92)),
        url("../images/background/bg-6.jpg") center/cover no-repeat;
    color: #fff;
}
.strategy .strategy-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bk-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex: none;
}

/* ---------- Gallery ---------- */
.gallery-item {
    position: relative;
    border-radius: .9rem;
    overflow: hidden;
    cursor: zoom-in;
    aspect-ratio: 4 / 3;
}
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .gallery-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.6rem .9rem .7rem;
    background: linear-gradient(transparent, rgba(7, 55, 26, .85));
    color: #fff;
    font-size: .82rem;
    opacity: 0;
    transition: opacity .25s ease;
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* ---------- Sidebar ---------- */
.widget {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 6px 24px rgba(7, 55, 26, .07);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.widget-title {
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: .6rem;
    border-bottom: 3px solid var(--bk-green-soft);
    position: relative;
}
.widget-title::after {
    content: "";
    position: absolute;
    left: 0; bottom: -3px;
    width: 56px; height: 3px;
    background: var(--bk-accent);
}
.widget .recent-item { display: flex; gap: .75rem; margin-bottom: .9rem; }
.widget .recent-item img { width: 68px; height: 54px; object-fit: cover; border-radius: .5rem; flex: none; }
.widget .recent-item a { font-weight: 600; font-size: .88rem; color: var(--bk-ink); }
.widget .recent-item a:hover { color: var(--bk-green); }
.tag-chip {
    display: inline-block;
    background: var(--bk-green-soft);
    color: var(--bk-green-dark);
    border-radius: 999px;
    padding: .35rem .85rem;
    font-size: .8rem;
    font-weight: 600;
    margin: 0 .35rem .5rem 0;
}
.tag-chip:hover { background: var(--bk-green); color: #fff; }

/* ---------- Breadcrumb halaman ---------- */
.page-head {
    background: linear-gradient(rgba(7, 55, 26, .86), rgba(7, 55, 26, .86)),
        url("../images/background/bg-2.jpg") center/cover no-repeat;
    color: #fff;
    padding: 3.2rem 0;
}
.page-head .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.65); margin: 0; }
.page-head .breadcrumb-item a { color: rgba(255, 255, 255, .8); }
.page-head .breadcrumb-item.active { color: #ffd9b0; font-weight: 600; }

/* ---------- Artikel ---------- */
.article {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 6px 24px rgba(7, 55, 26, .07);
    padding: clamp(1.25rem, 3vw, 2.5rem);
}
.article img { max-width: 100%; height: auto; border-radius: .6rem; }
.article-title { font-weight: 800; }

/* ---------- Event ---------- */
.event-item {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 6px 24px rgba(7, 55, 26, .07);
    padding: 1.5rem;
    border-left: 5px solid var(--bk-accent);
}
.event-date {
    background: var(--bk-green);
    color: #fff;
    border-radius: .8rem;
    text-align: center;
    padding: .6rem .9rem;
    min-width: 86px;
    flex: none;
}
.event-date .day { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.event-date .month { font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Footer ---------- */
.footer { background: var(--bk-green-dark); color: rgba(255, 255, 255, .82); }
.footer h5 {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.1rem;
    padding-bottom: .6rem;
    border-bottom: 2px solid rgba(255, 255, 255, .12);
    display: inline-block;
}
.footer a { color: rgba(255, 255, 255, .82); }
.footer a:hover { color: #ffd9b0; }
.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: .5rem; }
.footer .social-btn {
    display: inline-flex;
    width: 38px; height: 38px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .1);
    margin-right: .5rem;
    transition: background .2s ease;
}
.footer .social-btn:hover { background: var(--bk-accent); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }

/* ---------- Tombol mengambang: kontak cepat ---------- */
.fab-dock {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .75rem;
}
.fab-main {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    border: 0;
    border-radius: 999px;
    padding: .4rem .4rem .4rem 1.15rem;
    background: linear-gradient(135deg, var(--bk-green), #15713a);
    color: #fff;
    font-weight: 700;
    font-size: .92rem;
    box-shadow: 0 12px 30px rgba(7, 55, 26, .35);
    transition: transform .2s ease, box-shadow .2s ease;
}
.fab-main:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(7, 55, 26, .42); }
.fab-main:focus-visible { outline: 3px solid rgba(212, 100, 2, .5); outline-offset: 3px; }
.fab-main-icon {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bk-accent);
    display: grid;
    place-items: center;
    font-size: 1.15rem;
}
.fab-main-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--bk-accent);
    animation: fab-ping 2.2s ease-out infinite;
    z-index: -1;
}
.fab-main-icon i { grid-area: 1 / 1; transition: transform .25s ease, opacity .25s ease; }
.fab-main-icon .fab-close { opacity: 0; transform: rotate(-90deg); }
.fab-dock.is-open .fab-main-icon .fab-open { opacity: 0; transform: rotate(90deg); }
.fab-dock.is-open .fab-main-icon .fab-close { opacity: 1; transform: rotate(0); }
.fab-dock.is-open .fab-main-icon::before { animation: none; opacity: 0; }

.fab-menu { display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; pointer-events: none; }
.fab-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    opacity: 0;
    transform: translateY(12px) scale(.96);
    transition: opacity .2s ease, transform .2s ease;
    text-decoration: none;
}
.fab-dock.is-open .fab-menu { pointer-events: auto; }
.fab-dock.is-open .fab-item { opacity: 1; transform: none; }
.fab-dock.is-open .fab-item:nth-child(1) { transition-delay: .1s; }
.fab-dock.is-open .fab-item:nth-child(2) { transition-delay: .05s; }
.fab-label {
    background: #fff;
    color: var(--bk-ink);
    font-weight: 700;
    font-size: .85rem;
    line-height: 1.15;
    padding: .45rem .8rem;
    border-radius: .7rem;
    box-shadow: 0 8px 24px rgba(7, 55, 26, .16);
    text-align: right;
}
.fab-label small { display: block; font-weight: 500; font-size: .72rem; color: var(--bk-muted); }
.fab-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
    transition: transform .2s ease;
}
.fab-item:hover .fab-icon { transform: scale(1.08); }
.fab-item:hover .fab-label { color: var(--bk-green); }
.fab-icon-wa { background: #25d366; }
.fab-icon-phone { background: var(--bk-accent); }
.fab-icon-report { background: var(--bk-green); }

.fab-top {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: #fff;
    color: var(--bk-green);
    font-size: 1.1rem;
    box-shadow: 0 8px 22px rgba(7, 55, 26, .18);
    margin-right: .4rem;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, background .2s ease;
}
.fab-dock.show-top .fab-top { opacity: 1; transform: none; pointer-events: auto; }
.fab-dock.is-open .fab-top { opacity: 0; pointer-events: none; }
.fab-top:hover { background: var(--bk-green); color: #fff; }

@keyframes fab-ping {
    0% { transform: scale(1); opacity: .55; }
    80%, 100% { transform: scale(1.8); opacity: 0; }
}
@media (max-width: 575.98px) {
    .fab-dock { right: .9rem; bottom: .9rem; }
    .fab-main-text { display: none; }
    .fab-main { padding: .35rem; }
}
@media (prefers-reduced-motion: reduce) {
    .fab-main-icon::before { animation: none; }
}

/* ---------- Lightbox ---------- */
#lightboxModal .modal-content { background: transparent; border: 0; }
#lightboxModal img { max-width: 100%; max-height: 86vh; border-radius: .6rem; margin: auto; display: block; }

/* ---------- Layanan online: login Google & captcha ---------- */
.login-gate { border: 0; border-radius: 1rem; box-shadow: 0 8px 28px rgba(7, 55, 26, .1); }
.login-gate-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    background: var(--bk-green-soft);
    color: var(--bk-green);
}
.btn-google {
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: #1f1f1f;
    border: 1px solid #dadce0;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
}
.btn-google:hover { background: #f8faf9; border-color: #c6cbc8; color: #1f1f1f; }
.pemohon-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 1rem;
    border-left: 4px solid var(--bk-accent);
    box-shadow: 0 6px 20px rgba(7, 55, 26, .08);
    padding: 1rem 1.25rem;
}
.pemohon-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.pemohon-avatar-initial { display: grid; place-items: center; background: var(--bk-green); color: #fff; font-weight: 700; }
.captcha-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.captcha-row .form-control { flex: 1 1 160px; letter-spacing: 3px; }
.captcha-image { border-radius: .5rem; border: 1px solid #dfe6e1; background: #f1f6f2; }

/* ---------- Halaman galat (404, 403, 419, 429) ---------- */
.error-page { padding: 4.5rem 0 5rem; background: radial-gradient(circle at 85% 20%, var(--bk-green-soft), transparent 45%); }
.error-visual { position: relative; display: inline-block; }
.error-code {
    font-size: clamp(7rem, 18vw, 12rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -4px;
    background: linear-gradient(135deg, var(--bk-green-dark), #2f7d4f 60%, var(--bk-accent));
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    user-select: none;
}
.error-badge {
    position: absolute;
    right: -.5rem;
    top: .5rem;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--bk-accent);
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 14px 30px rgba(212, 100, 2, .35);
    animation: error-float 3.5s ease-in-out infinite;
}
.error-message { font-size: 1.05rem; line-height: 1.75; color: #3b4a41; max-width: 540px; margin-top: 1rem; }
.error-latest { margin-top: 4.5rem; padding-top: 3rem; border-top: 1px solid #e6ece8; }
@keyframes error-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
    .error-badge { animation: none; }
}
