/* ==========================================================================
   CV. ZAF INDONESIA — lapisan identitas korporat
   Dimuat SETELAH css/style.css. Tidak mengubah bootstrap.min.css/style.css.
   Token: biru #0060BA (struktural), amber #FDBE33 (aksen pada latar gelap),
   navy #071B2E (permukaan gelap). Amber tidak dipakai sebagai teks di atas
   latar terang (kontras 1,67:1).
   ========================================================================== */

:root {
    --zaf-blue: #0060ba;
    --zaf-blue-dark: #004a91;
    --zaf-amber: #fdbe33;
    --zaf-navy: #071b2e;
    --zaf-navy-soft: #0d2a44;
    --zaf-body: #566573;
    --zaf-line: rgba(7, 27, 46, 0.12);
    --zaf-shadow: 0 12px 30px rgba(7, 27, 46, 0.12);
}

/* --------------------------------------------------------------------------
   1. Dasar & aksesibilitas
   -------------------------------------------------------------------------- */

body {
    color: var(--zaf-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--zaf-navy);
}

a {
    color: var(--zaf-blue);
}

a:hover,
a:active,
a:focus {
    color: var(--zaf-blue-dark);
}

html {
    scroll-padding-top: 96px;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.navbar-toggler:focus-visible {
    outline: 2px solid var(--zaf-blue);
    outline-offset: 3px;
}

.top-bar a:focus-visible,
.nav-bar a:focus-visible,
.footer a:focus-visible {
    outline-color: var(--zaf-amber);
}

.zaf-skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 10000;
    padding: 10px 16px;
    background: #ffffff;
    color: var(--zaf-blue);
    font-size: 14px;
    font-weight: 600;
    border-radius: 2px;
    box-shadow: var(--zaf-shadow);
}

.zaf-skip-link:focus {
    top: 16px;
    color: var(--zaf-blue-dark);
}

/* --------------------------------------------------------------------------
   2. Top bar
   -------------------------------------------------------------------------- */

.top-bar {
    height: auto;
    padding: 12px 16px;
    background: var(--zaf-navy);
}

.top-bar .container-fluid {
    padding: 0;
}

.zaf-brand {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.zaf-brand img {
    height: 56px;
    width: auto;
}

.zaf-brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.zaf-brand-name strong {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.zaf-brand-name small {
    color: rgba(255, 255, 255, 0.62);
    font-size: 10.5px;
    font-weight: 400;
    letter-spacing: 0.04em;
}

.zaf-brand:hover .zaf-brand-name strong,
.zaf-brand:focus .zaf-brand-name strong {
    color: var(--zaf-amber);
}

.zaf-topbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.zaf-topbar-contact {
    display: flex;
    align-items: center;
    gap: 26px;
}

.zaf-topbar-contact a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
}

.zaf-topbar-contact i {
    font-size: 22px;
    color: var(--zaf-amber);
}

.zaf-topbar-contact small {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.zaf-topbar-contact strong {
    display: block;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 500;
}

.zaf-topbar-contact a:hover strong,
.zaf-topbar-contact a:focus strong {
    color: var(--zaf-amber);
}

/* --------------------------------------------------------------------------
   3. Language switcher (ID | EN)
   -------------------------------------------------------------------------- */

.zaf-lang {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
}

.zaf-lang-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-decoration: none;
}

.zaf-lang-link:hover,
.zaf-lang-link:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.zaf-lang-link.is-active {
    color: var(--zaf-navy);
    background: var(--zaf-amber);
}

.zaf-lang-link.is-active:hover,
.zaf-lang-link.is-active:focus {
    color: var(--zaf-navy);
    background: var(--zaf-amber);
}

.zaf-lang-sep {
    padding: 0 2px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 11px;
}

/* --------------------------------------------------------------------------
   4. Navbar sticky + CTA WhatsApp
   -------------------------------------------------------------------------- */

.nav-bar {
    padding: 0 16px;
    background: var(--zaf-blue);
    box-shadow: 0 2px 0 rgba(7, 27, 46, 0.1);
}

.nav-bar.nav-sticky {
    padding: 0 16px;
}

.nav-bar .navbar {
    padding: 0.5rem 0;
    background: transparent !important;
}

.nav-bar .navbar-brand {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.nav-bar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.4);
}

.nav-bar .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.nav-bar .navbar-nav .nav-link:hover,
.nav-bar .navbar-nav .nav-link:focus {
    color: #ffffff;
    background: rgba(7, 27, 46, 0.16);
}

.nav-bar .navbar-nav .nav-link.active {
    color: #ffffff;
    background: rgba(7, 27, 46, 0.22);
    box-shadow: inset 0 -3px 0 var(--zaf-amber);
}

.nav-bar .btn-zaf-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    color: var(--zaf-navy);
    background: var(--zaf-amber);
    border: 0;
    border-radius: 2px;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.nav-bar .btn-zaf-wa i {
    font-size: 16px;
}

.nav-bar .btn-zaf-wa:hover,
.nav-bar .btn-zaf-wa:focus {
    color: var(--zaf-navy);
    background: #ffffff;
}

@media (max-width: 991.98px) {
    .nav-bar .navbar-collapse {
        padding: 14px 0 18px;
        border-top: 1px solid rgba(255, 255, 255, 0.18);
    }

    .nav-bar .navbar-nav .nav-link {
        padding: 0.7rem 0.25rem;
    }

    .zaf-nav-cta {
        margin-top: 12px;
    }

    .nav-bar .btn-zaf-wa {
        width: 100%;
        justify-content: center;
    }
}

/* --------------------------------------------------------------------------
   5. Footer
   -------------------------------------------------------------------------- */

.footer {
    margin-top: 0;
    padding-top: 64px;
    background: var(--zaf-navy);
}

.footer h2 {
    margin-bottom: 22px;
    color: var(--zaf-amber);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer h2::after {
    width: 40px;
    background: var(--zaf-amber);
}

.footer .footer-contact img {
    height: 60px;
    width: auto;
    margin-bottom: 18px;
}

.footer .footer-contact p {
    display: flex;
    gap: 12px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.65;
}

.footer .footer-contact p i {
    flex: 0 0 18px;
    width: auto;
    margin-top: 5px;
    color: var(--zaf-amber);
}

.footer .footer-contact p a {
    color: #ffffff;
}

.footer .footer-contact p a:hover,
.footer .footer-contact p a:focus {
    color: var(--zaf-amber);
}

.footer .copyright {
    margin-top: 12px;
    padding: 22px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.footer .copyright p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.footer .copyright p strong {
    color: #ffffff;
    font-weight: 500;
}

.footer .copyright .zaf-copyright {
    text-align: center;
}

/* --------------------------------------------------------------------------
   6. Utilitas kartu 6 lini bisnis (equal height + rasio gambar seragam)
   Pakai: <div class="row zaf-equal-height"> ... </div>
   -------------------------------------------------------------------------- */

.row.zaf-equal-height > [class*="col-"] {
    display: flex;
}

.row.zaf-equal-height .zaf-card,
.row.zaf-equal-height .service-item {
    width: 100%;
}

.zaf-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border: 1px solid var(--zaf-line);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.zaf-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--zaf-shadow);
}

.zaf-card-media {
    position: relative;
    display: block;
    width: 100%;
    padding-top: 66.6667%;
    overflow: hidden;
    background: #eef2f6;
}

.zaf-card-media > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.zaf-card:hover .zaf-card-media > img {
    transform: scale(1.05);
}

.zaf-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 22px;
}

.zaf-card-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
}

.zaf-card-text {
    flex: 1 1 auto;
    margin-bottom: 16px;
    color: var(--zaf-body);
    font-size: 14px;
    line-height: 1.7;
}

.zaf-card-link {
    align-self: flex-start;
    margin-top: auto;
    color: var(--zaf-blue);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.zaf-card-link:hover,
.zaf-card-link:focus {
    color: var(--zaf-blue-dark);
}

/* Kartu layanan bawaan template Builderz, disamakan rasionya saat
   dibungkus .zaf-equal-height agar tinggi kartu sejajar. */
.row.zaf-equal-height .service-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.row.zaf-equal-height .service-img {
    padding-top: 66.6667%;
}

.row.zaf-equal-height .service-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.row.zaf-equal-height .service-text {
    flex: 1 1 auto;
    min-height: 60px;
}

@media (prefers-reduced-motion: reduce) {
    .zaf-card,
    .zaf-card-media > img {
        transition: none;
    }

    .zaf-card:hover {
        transform: none;
    }

    .zaf-card:hover .zaf-card-media > img {
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   7. Penyesuaian responsif
   -------------------------------------------------------------------------- */

@media (min-width: 992px) {
    .top-bar {
        padding: 12px 40px;
    }

    .nav-bar,
    .nav-bar.nav-sticky {
        padding: 0 40px;
    }

    .nav-bar .navbar {
        padding: 20px 0;
    }
}

@media (max-width: 767.98px) {
    .zaf-brand img {
        height: 44px;
    }

    .zaf-brand-name strong {
        font-size: 15px;
    }

    .zaf-brand-name small {
        display: none;
    }

    .zaf-topbar-right {
        gap: 10px;
    }
}

@media (max-width: 575.98px) {
    .zaf-brand {
        gap: 8px;
    }

    .zaf-brand-name strong {
        font-size: 13.5px;
        letter-spacing: 0.03em;
    }

    .zaf-lang-link {
        min-width: 32px;
        padding: 0 8px;
    }
}

/* --------------------------------------------------------------------------
   8. Page header halaman dalam
   -------------------------------------------------------------------------- */

.zaf-page-header {
    margin-bottom: 0;
    padding: 72px 0;
    background: var(--zaf-navy);
}

.zaf-page-header h1 {
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 5px;
    color: #ffffff;
    font-size: 48px;
    font-weight: 700;
}

.zaf-page-header h1::after {
    position: absolute;
    content: "";
    bottom: 0;
    left: calc(50% - 50px);
    width: 100px;
    height: 2px;
    background: var(--zaf-amber);
}

.zaf-page-header a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 16px;
}

.zaf-page-header a:hover,
.zaf-page-header a:focus {
    color: var(--zaf-amber);
}

.zaf-page-header a::after {
    color: rgba(255, 255, 255, 0.35);
}

.zaf-page-header a[aria-current="page"] {
    color: var(--zaf-amber);
}

/* --------------------------------------------------------------------------
   9. Hero beranda
   -------------------------------------------------------------------------- */

.zaf-hero {
    height: calc(100vh - 160px);
    min-height: 520px;
}

.zaf-hero .carousel-item::after {
    background: linear-gradient(90deg, rgba(7, 27, 46, 0.9) 0%, rgba(7, 27, 46, 0.58) 58%, rgba(7, 27, 46, 0.38) 100%);
}

.zaf-hero .carousel-caption {
    height: 100%;
    min-height: 0;
    padding: 0 20px;
}

.zaf-hero .carousel-caption .zaf-eyebrow {
    margin-bottom: 18px;
    color: var(--zaf-amber);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.zaf-hero .carousel-caption h1,
.zaf-hero .carousel-caption h2 {
    max-width: 1020px;
    margin: 0 auto 34px;
    color: #ffffff;
    font-size: clamp(30px, 4.2vw, 50px);
    font-weight: 600;
    line-height: 1.16;
    letter-spacing: -0.01em;
}

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

.zaf-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 26px;
    color: var(--zaf-navy);
    background: var(--zaf-amber);
    border: 2px solid var(--zaf-amber);
    border-radius: 2px;
    font-size: 14px;
    font-weight: 600;
}

.zaf-hero-btn:hover,
.zaf-hero-btn:focus {
    color: var(--zaf-navy);
    background: #ffffff;
    border-color: #ffffff;
}

.zaf-hero-btn--ghost {
    color: #ffffff;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.7);
}

.zaf-hero-btn--ghost:hover,
.zaf-hero-btn--ghost:focus {
    color: var(--zaf-navy);
    background: #ffffff;
    border-color: #ffffff;
}

/* --------------------------------------------------------------------------
   10. Blok konten, section header, media
   -------------------------------------------------------------------------- */

.section-header p {
    color: var(--zaf-blue);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.zaf-block {
    padding: 64px 0;
}

.zaf-block--soft {
    background: #f6f8fb;
}

.zaf-subheading {
    margin-bottom: 18px;
    color: var(--zaf-blue);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.zaf-about-media {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
    background: #eef2f6;
}

.zaf-about-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zaf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    color: #ffffff;
    background: var(--zaf-blue);
    border: 1px solid var(--zaf-blue);
    border-radius: 2px;
    font-size: 14px;
    font-weight: 600;
}

.zaf-btn:hover,
.zaf-btn:focus {
    color: #ffffff;
    background: var(--zaf-blue-dark);
    border-color: var(--zaf-blue-dark);
}

.zaf-btn--outline {
    color: var(--zaf-blue);
    background: transparent;
}

.zaf-btn--outline:hover,
.zaf-btn--outline:focus {
    color: #ffffff;
    background: var(--zaf-blue);
    border-color: var(--zaf-blue);
}

/* --------------------------------------------------------------------------
   11. Feature box beranda
   -------------------------------------------------------------------------- */

.feature .feature-item {
    height: 100%;
}

.zaf-feature .feature-icon i {
    position: relative;
    z-index: 3;
    color: var(--zaf-amber);
    font-size: 50px;
}

.zaf-feature .col-md-12:nth-child(2n) .feature-icon i {
    color: var(--zaf-navy);
}

/* --------------------------------------------------------------------------
   12. Empty state proyek & berita
   -------------------------------------------------------------------------- */

.zaf-empty-state {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 34px;
    background: #f7f9fb;
    border: 1px dashed rgba(7, 27, 46, 0.22);
    border-radius: 4px;
}

.zaf-empty-state > i {
    margin-bottom: 16px;
    color: var(--zaf-blue);
    font-size: 34px;
}

.zaf-empty-state h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.zaf-empty-state p {
    flex: 1 1 auto;
    margin-bottom: 0;
    font-size: 14.5px;
    line-height: 1.75;
}

.zaf-empty-state .zaf-btn {
    align-self: flex-start;
    margin-top: 22px;
}

/* --------------------------------------------------------------------------
   13. Visi, misi, nilai perusahaan
   -------------------------------------------------------------------------- */

.zaf-vision {
    height: 100%;
    padding: 38px;
    background: var(--zaf-navy);
    border-radius: 4px;
}

.zaf-vision h3 {
    margin-bottom: 16px;
    color: var(--zaf-amber);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.zaf-vision p {
    margin: 0;
    color: #ffffff;
    font-size: 17px;
    line-height: 1.8;
}

.zaf-mission {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: misi;
}

.zaf-mission li {
    position: relative;
    margin-bottom: 24px;
    padding-left: 54px;
    color: var(--zaf-body);
    font-size: 15px;
    line-height: 1.8;
}

.zaf-mission li:last-child {
    margin-bottom: 0;
}

.zaf-mission li::before {
    counter-increment: misi;
    content: counter(misi);
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #ffffff;
    background: var(--zaf-blue);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
}

.zaf-value-card {
    height: 100%;
    padding: 28px;
    background: #ffffff;
    border: 1px solid var(--zaf-line);
    border-top: 3px solid var(--zaf-amber);
    border-radius: 4px;
}

.zaf-value-card i {
    margin-bottom: 14px;
    color: var(--zaf-blue);
    font-size: 28px;
}

.zaf-value-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.zaf-value-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.75;
}

/* --------------------------------------------------------------------------
   14. Tabel legalitas & NIB
   -------------------------------------------------------------------------- */

.zaf-table-wrap {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--zaf-line);
    border-radius: 4px;
}

.zaf-legal-table {
    margin-bottom: 0;
    background: #ffffff;
}

.zaf-legal-table th,
.zaf-legal-table td {
    padding: 16px 18px;
    border-color: var(--zaf-line);
    vertical-align: top;
}

.zaf-legal-table th {
    width: 30%;
    color: var(--zaf-navy);
    background: #f5f8fb;
    font-weight: 600;
}

.zaf-legal-table td {
    color: var(--zaf-body);
}

.zaf-legal-table a {
    color: var(--zaf-blue);
}

.zaf-nib {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 28px;
    padding: 26px 30px;
    background: var(--zaf-navy);
    border-radius: 4px;
}

.zaf-nib small {
    display: block;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.zaf-nib strong {
    color: var(--zaf-amber);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.zaf-nib p {
    flex: 1 1 260px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.7;
}

.zaf-legal-card {
    padding: 32px;
    background: #ffffff;
    border: 1px solid var(--zaf-line);
    border-radius: 4px;
}

.zaf-legal-card h3 {
    margin-bottom: 14px;
    font-size: 22px;
}

.zaf-legal-card p {
    margin: 0;
    color: var(--zaf-body);
    font-size: 15px;
    line-height: 1.9;
}

/* --------------------------------------------------------------------------
   15. Penyesuaian responsif halaman
   -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
    .zaf-hero {
        height: calc(100vh - 136px);
        min-height: 480px;
    }

    .zaf-page-header {
        padding: 56px 0;
    }

    .zaf-page-header h1 {
        font-size: 38px;
    }

    .zaf-fact .fact-text h2 {
        font-size: 30px;
    }
}

@media (max-width: 767.98px) {
    .zaf-hero {
        height: calc(100vh - 124px);
    }

    .zaf-hero .carousel-caption {
        right: 0;
        left: 0;
        width: 100%;
        padding: 0 24px;
    }

    .zaf-hero .carousel-caption .zaf-eyebrow {
        letter-spacing: 0.12em;
    }

    .zaf-page-header h1 {
        font-size: 30px;
    }

    .zaf-vision {
        padding: 28px;
    }

    .zaf-legal-card {
        padding: 24px;
    }

    .zaf-nib {
        padding: 22px;
    }

    .zaf-nib strong {
        font-size: 22px;
    }
}

@media (max-width: 575.98px) {
    .zaf-hero .carousel-caption h1,
    .zaf-hero .carousel-caption h2 {
        font-size: 27px;
    }

    .zaf-hero-btn {
        width: 100%;
        justify-content: center;
    }

    .zaf-fact .fact-text h2 {
        font-size: 26px;
    }

    .zaf-fact .fact-text p {
        font-size: 12.5px;
        line-height: 1.4;
    }
}

/* --------------------------------------------------------------------------
   16. Navigasi cepat & detail lini bisnis (layanan.html)
   -------------------------------------------------------------------------- */

.zaf-quickjump {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.zaf-quickjump a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 18px;
    color: var(--zaf-navy);
    background: #ffffff;
    border: 1px solid var(--zaf-line);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.zaf-quickjump a:hover,
.zaf-quickjump a:focus {
    color: var(--zaf-blue);
    background: #f2f7fc;
    border-color: var(--zaf-blue);
}

.zaf-quickjump span {
    color: var(--zaf-blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.zaf-divisi-media {
    position: relative;
    padding-top: 66.666%;
    overflow: hidden;
    background: #eef2f6;
    border-radius: 4px;
}

.zaf-divisi-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zaf-divisi-index {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 32px;
    padding: 0 12px;
    color: var(--zaf-navy);
    background: var(--zaf-amber);
    border-radius: 2px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.zaf-divisi-body h2 {
    margin-bottom: 12px;
    font-size: 34px;
}

.zaf-divisi-lead {
    font-size: 15.5px;
    line-height: 1.85;
}

.zaf-kbli {
    margin: 22px 0;
    padding: 16px 20px;
    background: #f2f7fc;
    border-left: 3px solid var(--zaf-blue);
}

.zaf-kbli span {
    display: block;
    margin-bottom: 5px;
    color: var(--zaf-blue);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.zaf-kbli strong {
    display: block;
    color: var(--zaf-navy);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.7;
}

.zaf-divisi-body h3 {
    margin: 26px 0 16px;
    font-size: 20px;
}

.zaf-scope {
    margin: 0;
    padding: 0;
    list-style: none;
}

.zaf-scope > li {
    position: relative;
    margin-bottom: 14px;
    padding-left: 28px;
    font-size: 14.5px;
    line-height: 1.75;
}

.zaf-scope > li:last-child {
    margin-bottom: 0;
}

.zaf-scope > li::before {
    content: "\f00c";
    position: absolute;
    top: 2px;
    left: 0;
    color: var(--zaf-blue);
    font-family: "Font Awesome 5 Free";
    font-size: 12px;
    font-weight: 900;
}

.zaf-scope strong {
    color: var(--zaf-navy);
}

.zaf-scope ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

.zaf-scope ul li {
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.7;
}

.zaf-scope ul li:last-child {
    margin-bottom: 0;
}

.zaf-divisi-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

/* --------------------------------------------------------------------------
   17. Struktur organisasi & kartu tim (tim.html)
   -------------------------------------------------------------------------- */

.zaf-org-lead {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    padding: 32px;
    background: var(--zaf-navy);
    border-radius: 4px;
}

.zaf-org-lead-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    color: var(--zaf-navy);
    background: var(--zaf-amber);
    border-radius: 50%;
    font-size: 28px;
}

.zaf-org-lead-body {
    flex: 1 1 320px;
}

.zaf-org-lead-body h3 {
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 21px;
}

.zaf-org-lead-body p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.75;
}

.zaf-org-tag {
    flex: 0 0 auto;
    padding: 8px 14px;
    color: var(--zaf-amber);
    border: 1px solid rgba(253, 190, 51, 0.45);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.zaf-team-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--zaf-line);
    border-radius: 4px;
}

.zaf-team-card--lead {
    border-top: 3px solid var(--zaf-amber);
}

.zaf-team-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    aspect-ratio: 4 / 3;
    background: #f2f6fa;
    border-bottom: 1px dashed rgba(7, 27, 46, 0.2);
    text-align: center;
}

.zaf-team-photo i {
    color: #b9c6d2;
    font-size: 34px;
}

.zaf-team-photo span {
    color: #7d8b99;
    font-size: 11.5px;
    line-height: 1.55;
    letter-spacing: 0.02em;
}

.zaf-team-body {
    flex: 1 1 auto;
    padding: 22px;
}

.zaf-team-role {
    display: block;
    margin-bottom: 6px;
    color: var(--zaf-blue);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.zaf-team-body h3 {
    margin-bottom: 6px;
    font-size: 18px;
}

.zaf-team-body p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.7;
}

.zaf-team-body .zaf-team-status {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 10px;
    color: #7a5a10;
    background: #fdf3d9;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   18. Filter bar & empty state lanjutan (proyek.html, berita.html)
   -------------------------------------------------------------------------- */

.zaf-filterbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--zaf-line);
    border-radius: 4px;
}

.zaf-filter {
    padding: 9px 16px;
    color: var(--zaf-navy);
    background: #f2f6fa;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
}

.zaf-filter:hover,
.zaf-filter:focus {
    color: var(--zaf-blue);
    background: #e8f1fa;
    border-color: rgba(0, 96, 186, 0.3);
}

.zaf-filter.is-active {
    color: #ffffff;
    background: var(--zaf-blue);
    border-color: var(--zaf-blue);
}

.zaf-filter-status {
    margin: 14px 0 0;
    color: var(--zaf-body);
    font-size: 13px;
}

.zaf-empty-state--center {
    align-items: center;
    padding: 56px 32px;
    text-align: center;
}

.zaf-empty-state--center > i {
    font-size: 44px;
}

.zaf-empty-state--center h3,
.zaf-empty-state--center h2 {
    font-size: 24px;
}

.zaf-empty-state--center p {
    max-width: 640px;
    flex: 0 1 auto;
    font-size: 14.5px;
}

.zaf-empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.zaf-note-card {
    height: 100%;
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--zaf-line);
    border-radius: 4px;
}

.zaf-note-card i {
    margin-bottom: 12px;
    color: var(--zaf-blue);
    font-size: 24px;
}

.zaf-note-card h3 {
    margin-bottom: 8px;
    font-size: 17px;
}

.zaf-note-card p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   19. Kategori berita (berita.html)
   -------------------------------------------------------------------------- */

.zaf-news-cat {
    height: 100%;
    padding: 26px;
    background: #ffffff;
    border: 1px solid var(--zaf-line);
    border-top: 3px solid var(--zaf-blue);
    border-radius: 4px;
}

.zaf-news-cat i {
    margin-bottom: 12px;
    color: var(--zaf-blue);
    font-size: 24px;
}

.zaf-news-cat h3 {
    margin-bottom: 8px;
    font-size: 17px;
}

.zaf-news-cat p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   20. Kontak, formulir & peta (kontak.html)
   -------------------------------------------------------------------------- */

.zaf-contact-card {
    height: 100%;
    padding: 26px;
    background: #ffffff;
    border: 1px solid var(--zaf-line);
    border-radius: 4px;
}

.zaf-contact-card i {
    margin-bottom: 12px;
    color: var(--zaf-blue);
    font-size: 24px;
}

.zaf-contact-card h3 {
    margin-bottom: 8px;
    font-size: 17px;
}

.zaf-contact-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.75;
}

.zaf-contact-card a {
    font-weight: 600;
}

.zaf-form-card {
    padding: 32px;
    background: #ffffff;
    border: 1px solid var(--zaf-line);
    border-radius: 4px;
}

.zaf-form-card h2 {
    margin-bottom: 8px;
    font-size: 26px;
}

.zaf-form-card .zaf-form-intro {
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.75;
}

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

.zaf-form-card label {
    margin-bottom: 6px;
    color: var(--zaf-navy);
    font-size: 13px;
    font-weight: 600;
}

.zaf-form-card .form-control {
    height: auto;
    padding: 11px 14px;
    color: var(--zaf-navy);
    background: #ffffff;
    border: 1px solid rgba(7, 27, 46, 0.2);
    border-radius: 2px;
    font-size: 14px;
}

.zaf-form-card .form-control:focus {
    border-color: var(--zaf-blue);
    box-shadow: 0 0 0 0.15rem rgba(0, 96, 186, 0.15);
}

.zaf-form-card textarea.form-control {
    min-height: 132px;
    resize: vertical;
}

.zaf-form-card .form-check {
    padding-left: 26px;
}

.zaf-form-card .form-check-input {
    margin-top: 3px;
    margin-left: -26px;
}

.zaf-form-card .form-check-label {
    color: var(--zaf-body);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.65;
}

.zaf-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.zaf-form-note {
    margin: 16px 0 0;
    color: var(--zaf-body);
    font-size: 12.5px;
    line-height: 1.65;
}

.zaf-form-status {
    display: none;
    margin-top: 16px;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: 3px;
    font-size: 13.5px;
    line-height: 1.65;
}

.zaf-form-status.is-visible {
    display: block;
}

.zaf-form-status.is-info {
    color: #0b4a86;
    background: #eef5fc;
    border-color: #cfe2f5;
}

.zaf-form-status.is-success {
    color: #1d5b34;
    background: #e8f5ec;
    border-color: #bfe0cb;
}

.zaf-form-status.is-error {
    color: #8a1c1c;
    background: #fdecea;
    border-color: #f5c6c2;
}

.zaf-direct {
    height: 100%;
    padding: 30px;
    background: var(--zaf-navy);
    border-radius: 4px;
}

.zaf-direct h3 {
    margin-bottom: 14px;
    color: var(--zaf-amber);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.zaf-direct p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.75;
}

.zaf-direct a {
    color: #ffffff;
}

.zaf-direct a:hover,
.zaf-direct a:focus {
    color: var(--zaf-amber);
}

.zaf-direct-list {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.zaf-direct-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13.5px;
    line-height: 1.65;
}

.zaf-direct-list li:last-child {
    margin-bottom: 0;
}

.zaf-direct-list i {
    margin-top: 3px;
    color: var(--zaf-amber);
    font-size: 14px;
}

.zaf-map {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    background: #eef2f6;
    border: 1px solid var(--zaf-line);
    border-radius: 4px;
}

.zaf-map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --------------------------------------------------------------------------
   21. Penyesuaian responsif halaman Fase 3
   -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
    .zaf-divisi-body h2 {
        font-size: 29px;
    }

    .zaf-org-lead {
        padding: 26px;
    }
}

@media (max-width: 767.98px) {
    .zaf-quickjump a {
        padding: 9px 14px;
        font-size: 12.5px;
    }

    .zaf-divisi-body h2 {
        font-size: 26px;
    }

    .zaf-divisi-cta .zaf-btn {
        width: 100%;
        justify-content: center;
    }

    .zaf-form-card {
        padding: 24px;
    }

    .zaf-map {
        padding-top: 75%;
    }
}

@media (max-width: 575.98px) {
    .zaf-empty-state--center {
        padding: 36px 22px;
    }

    .zaf-empty-actions .zaf-btn {
        width: 100%;
        justify-content: center;
    }

    .zaf-filterbar {
        padding: 14px;
    }

    .zaf-filter {
        padding: 8px 13px;
        font-size: 12.5px;
    }

    .zaf-form-actions .zaf-btn {
        width: 100%;
        justify-content: center;
    }

    .zaf-org-tag {
        margin-left: 0;
    }
}

/* --------------------------------------------------------------------------
   22. Perbaikan visual beranda
   Judul feature box, proporsi fact counter, dan tombol empty state.
   -------------------------------------------------------------------------- */

/* 22.1 Judul kotak feature: putih pada kotak navy, gelap pada kotak amber */
.zaf-feature .feature-text h2 {
    color: #ffffff;
}

.zaf-feature .col-md-12:nth-child(2n) .feature-text h2 {
    color: var(--zaf-navy);
}

/* 22.2 Fact counter: isi kotak rata tengah, tinggi seragam */
.zaf-fact .row > [class*="col-"] {
    display: flex;
}

.zaf-fact .fact-left,
.zaf-fact .fact-right {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 36px 24px;
    text-align: center;
}

.zaf-fact .fact-icon {
    margin: 0 0 14px;
    width: auto;
    justify-content: center;
}

.zaf-fact .fact-text h2 {
    margin: 0 0 8px;
    line-height: 1.2;
}

.zaf-fact .fact-text p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: 0.04em;
}

/* 22.3 Empty state proyek & berita: tombol tampil utuh dan sejajar */
.zaf-preview-row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.zaf-preview-row .zaf-empty-state {
    flex: 1 1 auto;
    height: auto;
    justify-content: space-between;
    padding: 34px 34px 38px;
    overflow: visible;
}

.zaf-preview-row .zaf-empty-state p {
    flex: 0 0 auto;
    margin-bottom: 26px;
}

.zaf-preview-row .zaf-empty-state .zaf-btn {
    flex: 0 0 auto;
    align-self: flex-start;
    margin-top: auto;
}

@media (max-width: 991.98px) {
    .zaf-preview-row .zaf-empty-state {
        padding: 30px 28px 32px;
    }
}

@media (max-width: 575.98px) {
    .zaf-fact .fact-left,
    .zaf-fact .fact-right {
        padding: 30px 20px;
    }

    .zaf-preview-row .zaf-empty-state {
        padding: 28px 22px 30px;
    }
}

/* --------------------------------------------------------------------------
   23. Berita dinamis (data/berita.json)
   Kartu arsip berita, cuplikan beranda, dan halaman detail artikel.
   -------------------------------------------------------------------------- */

/* Atribut hidden tidak cukup untuk elemen ini karena aturan display milik
   penulis (mis. .zaf-empty-state { display: flex }) mengalahkan aturan
   [hidden] bawaan browser. */
[hidden] {
    display: none !important;
}

.zaf-page-header--compact {
    padding: 34px 0;
}

.zaf-news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--zaf-body);
    font-size: 12px;
}

.zaf-news-meta time {
    letter-spacing: 0.02em;
}

.zaf-news-badge {
    display: inline-block;
    padding: 5px 10px;
    color: #ffffff;
    background: var(--zaf-blue);
    border-radius: 2px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.zaf-news-location {
    padding-left: 10px;
    border-left: 1px solid var(--zaf-line);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
}

/* 23.1 Kartu arsip berita */
.zaf-news-card .zaf-card-title a {
    color: inherit;
}

.zaf-news-card .zaf-card-title a:hover,
.zaf-news-card .zaf-card-title a:focus {
    color: var(--zaf-blue);
}

.zaf-news-card .zaf-card-media > img,
.zaf-news-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.zaf-news-card:hover .zaf-card-media > img {
    transform: scale(1.05);
}

/* 23.2 Cuplikan berita di beranda */
.zaf-news-preview {
    display: grid;
    flex: 1 1 auto;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
}

.zaf-news-mini {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--zaf-line);
    border-radius: 4px;
}

.zaf-news-mini-media {
    flex: 0 0 132px;
    width: 132px;
    height: 104px;
    overflow: hidden;
    background: #eef2f6;
    border-radius: 3px;
}

.zaf-news-mini-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zaf-news-mini-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.zaf-news-mini-body h3 {
    margin: 0 0 10px;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.45;
}

.zaf-news-mini-body h3 a {
    color: inherit;
}

.zaf-news-mini-body h3 a:hover,
.zaf-news-mini-body h3 a:focus {
    color: var(--zaf-blue);
}

.zaf-news-mini-body .zaf-news-meta {
    margin-bottom: 8px;
}

.zaf-news-mini-body .zaf-card-link {
    margin-top: auto;
    font-size: 13px;
}

.zaf-news-status {
    margin: 18px 0 0;
    padding: 14px 16px;
    background: #f6f8fb;
    border-left: 3px solid var(--zaf-amber);
    font-size: 13.5px;
    line-height: 1.65;
}

.zaf-news-all {
    margin-top: 22px;
}

/* 23.3 Halaman detail artikel */
.zaf-article-header {
    margin-bottom: 24px;
}

.zaf-article-title {
    margin: 0;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.32;
}

.zaf-article-figure {
    position: relative;
    margin: 0 0 28px;
    padding-top: 66.6667%;
    overflow: hidden;
    background: #eef2f6;
    border-radius: 4px;
}

.zaf-article-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zaf-article-body p {
    margin-bottom: 1.35em;
    font-size: 16px;
    line-height: 1.85;
}

.zaf-article-body p:last-child {
    margin-bottom: 0;
}

.zaf-article-cta {
    margin-top: 36px;
    padding: 30px;
    background: var(--zaf-navy);
    border-radius: 4px;
}

.zaf-article-cta .zaf-article-cta-eyebrow {
    margin-bottom: 10px;
    color: var(--zaf-amber);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.zaf-article-cta h2 {
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 22px;
    line-height: 1.4;
}

.zaf-article-cta p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14.5px;
    line-height: 1.7;
}

.zaf-article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.zaf-article-cta .zaf-btn--outline {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.55);
}

.zaf-article-cta .zaf-btn--outline:hover,
.zaf-article-cta .zaf-btn--outline:focus {
    color: var(--zaf-navy);
    background: #ffffff;
    border-color: #ffffff;
}

.zaf-article-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 26px;
    font-size: 14px;
    font-weight: 600;
}

.zaf-news-side {
    padding: 26px;
    background: #f6f8fb;
    border: 1px solid var(--zaf-line);
    border-radius: 4px;
}

.zaf-news-side h2 {
    margin-bottom: 6px;
    font-size: 18px;
}

.zaf-news-side-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    color: inherit;
    border-bottom: 1px solid var(--zaf-line);
}

.zaf-news-side-item:last-of-type {
    border-bottom: 0;
    padding-bottom: 0;
}

.zaf-news-side-img {
    flex: 0 0 88px;
    width: 88px;
    height: 62px;
    object-fit: cover;
    border-radius: 3px;
}

.zaf-news-side-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.zaf-news-side-body time {
    color: var(--zaf-body);
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.zaf-news-side-body strong {
    color: var(--zaf-navy);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.zaf-news-side-item:hover .zaf-news-side-body strong,
.zaf-news-side-item:focus .zaf-news-side-body strong {
    color: var(--zaf-blue);
}

.zaf-news-side .zaf-article-back {
    margin-top: 20px;
    font-size: 13.5px;
}

@media (max-width: 991.98px) {
    .zaf-article-title {
        font-size: 28px;
    }

    .zaf-news-side {
        margin-top: 36px;
    }
}

@media (max-width: 575.98px) {
    .zaf-article-title {
        font-size: 24px;
    }

    .zaf-article-cta {
        padding: 24px 20px;
    }

    .zaf-news-mini {
        flex-direction: column;
        gap: 12px;
    }

    .zaf-news-mini-media {
        flex: 0 0 auto;
        width: 100%;
        height: 180px;
    }
}

/* --------------------------------------------------------------------------
   24. Pemolesan akhir — kotak keunggulan beranda pada 992–1199 px
   Pada rentang ini kolom hanya 320 px: setelah padding kartu, ikon, dan jarak
   teks tersisa 170 px, sehingga kata "Terakreditasi" (211 px @32 px) menembus
   tepi kotak. Jarak dirapatkan, flex item dibatasi agar tidak melebar mengikuti
   kata terpanjang, dan judul diperkecil khusus pada rentang ini.
   -------------------------------------------------------------------------- */

@media (min-width: 992px) and (max-width: 1199.98px) {
    .zaf-feature .feature-item {
        padding: 26px 22px;
    }

    .zaf-feature .feature-text {
        min-width: 0;
        padding-left: 20px;
    }

    .zaf-feature .feature-text h2 {
        font-size: 28px;
        line-height: 1.25;
        overflow-wrap: break-word;
    }
}

/* --------------------------------------------------------------------------
   25. ZAF Assistant — widget chat AI korporat
   Tombol mengambang di kanan bawah, panel 368 px dengan tinggi terbatas agar
   tidak menutupi navigasi (panel berhenti 96 px dari bawah, tinggi maksimum
   dikurangi tinggi viewport). Di bawah 576 px panel menjadi fixed dengan margin
   12 px sehingga tidak pernah menimbulkan overflow horizontal.
   -------------------------------------------------------------------------- */

.zaf-chat {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1060;
}

/* Tombol Back to Top bawaan template (44 px) ditumpuk di atas FAB chat
   (56 px) dan dipusatkan secara horizontal: right = 20 + (56 - 44) / 2. */
.back-to-top {
    right: 26px;
    bottom: 88px;
    /* 9 < 1060, jadi panel chat selalu menutupi tombol ini saat terbuka. */
    z-index: 9;
}

.zaf-chat-fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--zaf-navy);
    color: var(--zaf-amber);
    box-shadow: 0 12px 28px rgba(7, 27, 46, 0.28);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.zaf-chat-fab:hover,
.zaf-chat-fab:focus {
    background: var(--zaf-blue);
}

.zaf-chat-fab:focus-visible {
    outline: 3px solid var(--zaf-amber);
    outline-offset: 3px;
}

.zaf-chat-fab svg {
    width: 26px;
    height: 26px;
}

.zaf-chat-panel {
    position: absolute;
    right: 0;
    bottom: 72px;
    display: flex;
    flex-direction: column;
    width: 368px;
    max-width: calc(100vw - 32px);
    max-height: min(560px, calc(100vh - 220px));
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(7, 27, 46, 0.28);
    overflow: hidden;
}

.zaf-chat-panel[hidden] {
    display: none;
}

.zaf-chat-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    background: var(--zaf-navy);
    color: #ffffff;
}

.zaf-chat-heading {
    flex: 1 1 auto;
    min-width: 0;
}

.zaf-chat-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    color: #ffffff;
}

.zaf-chat-subtitle {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--zaf-amber);
}

.zaf-chat-close {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    cursor: pointer;
}

.zaf-chat-close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.zaf-chat-close svg {
    width: 18px;
    height: 18px;
}

.zaf-chat-log {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 16px 8px;
    overflow-y: auto;
    background: #f5f7fa;
}

.zaf-chat-msg {
    display: flex;
}

.zaf-chat-msg.is-user {
    justify-content: flex-end;
}

.zaf-chat-bubble {
    max-width: 85%;
    padding: 10px 13px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.zaf-chat-msg.is-assistant .zaf-chat-bubble {
    background: #ffffff;
    color: var(--zaf-navy);
    border: 1px solid var(--zaf-line);
    border-bottom-left-radius: 4px;
}

.zaf-chat-msg.is-user .zaf-chat-bubble {
    background: var(--zaf-blue);
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.zaf-chat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 16px 12px;
    background: #f5f7fa;
}

.zaf-chat-chips[hidden] {
    display: none;
}

.zaf-chat-chip {
    padding: 7px 12px;
    border: 1px solid var(--zaf-blue);
    border-radius: 16px;
    background: #ffffff;
    color: var(--zaf-blue);
    font-size: 12.5px;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.zaf-chat-chip:hover {
    background: var(--zaf-blue);
    color: #ffffff;
}

.zaf-chat-typing {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 4px;
}

.zaf-chat-typing[hidden] {
    display: none;
}

.zaf-chat-dots {
    display: inline-flex;
    gap: 4px;
}

.zaf-chat-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--zaf-blue);
    opacity: 0.45;
    animation: zaf-chat-blink 1.1s infinite ease-in-out;
}

.zaf-chat-dot:nth-child(2) {
    animation-delay: 0.15s;
}

.zaf-chat-dot:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes zaf-chat-blink {
    0%,
    80%,
    100% {
        opacity: 0.25;
        transform: translateY(0);
    }

    40% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

.zaf-chat-form {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 12px 14px;
    background: #ffffff;
    border-top: 1px solid var(--zaf-line);
}

.zaf-chat-input {
    flex: 1 1 auto;
    min-width: 0;
    max-height: 96px;
    padding: 9px 11px;
    border: 1px solid var(--zaf-line);
    border-radius: 9px;
    background: #ffffff;
    color: var(--zaf-navy);
    font-size: 14px;
    line-height: 1.4;
    resize: none;
    overflow-y: auto;
}

.zaf-chat-input:focus {
    outline: none;
    border-color: var(--zaf-blue);
    box-shadow: 0 0 0 3px rgba(0, 96, 186, 0.14);
}

.zaf-chat-send {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--zaf-blue);
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.zaf-chat-send:hover {
    background: var(--zaf-blue-dark);
}

.zaf-chat-send:disabled {
    opacity: 0.5;
    cursor: default;
}

.zaf-chat-send svg {
    width: 20px;
    height: 20px;
}

.zaf-chat-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 14px;
    background: var(--zaf-navy);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.zaf-chat-wa:hover {
    background: var(--zaf-blue);
    color: #ffffff;
    text-decoration: none;
}

.zaf-chat-wa svg {
    width: 17px;
    height: 17px;
    color: var(--zaf-amber);
}

.zaf-chat-wa:focus-visible,
.zaf-chat-close:focus-visible,
.zaf-chat-send:focus-visible,
.zaf-chat-chip:focus-visible {
    outline: 2px solid var(--zaf-amber);
    outline-offset: 2px;
}

@media (max-width: 575.98px) {
    .zaf-chat {
        right: 16px;
        bottom: 16px;
    }

    .zaf-chat-fab {
        width: 52px;
        height: 52px;
    }

    .zaf-chat-fab svg {
        width: 24px;
        height: 24px;
    }

    /* FAB 52 px di right 16 → pusat x = 42 px; back-to-top 44 px di right 20. */
    .back-to-top {
        right: 20px;
        bottom: 80px;
    }

    .zaf-chat-panel {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 80px;
        width: auto;
        max-width: none;
        max-height: calc(100vh - 190px);
        border-radius: 12px;
    }

    .zaf-chat-header {
        padding: 14px 16px;
    }

    .zaf-chat-log {
        padding: 14px 12px 6px;
    }

    .zaf-chat-chip {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .zaf-chat-fab,
    .zaf-chat-send,
    .zaf-chat-chip {
        transition: none;
    }

    .zaf-chat-dot {
        animation: none;
        opacity: 0.6;
    }
}

@media print {
    .zaf-chat {
        display: none !important;
    }
}
