.site-header-wrap {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.site-header-wrap.nav-mobile-open {
    z-index: 1100;
}

.site-header-wrap header {
    background-color: #005331;
    color: white;
    padding: 8px 0;
    margin-bottom: 0;
    box-shadow: none;
    position: static;
}

.site-header-wrap .container,
.site-nav .container {
    padding-left: var(--site-gutter, 70px);
    padding-right: var(--site-gutter, 70px);
    padding-top: 0;
    padding-bottom: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
}

.header-left,
.header-right {
    width: 50%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-right {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.header-social {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.header-social a {
    color: white;
    font-size: 1.15em;
    transition: color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.header-social a:hover {
    color: #f1c40f;
    transform: translateY(-2px);
}

.header-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.header-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: #f1c40f;
    color: #005331;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9em;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.header-btn:hover {
    background-color: #d4ac0a;
    color: #005331;
    transform: translateY(-2px);
}

.header-btn.outline {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.header-btn.outline:hover {
    background-color: rgba(255,255,255,0.15);
    color: white;
}

.site-nav {
    background-color: #fff;
    border-top: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 0;
    position: relative;
}

.site-nav .container,
.site-nav .site-nav-inner {
    padding-left: var(--site-gutter, 70px);
    padding-right: var(--site-gutter, 70px);
    padding-top: 0;
    padding-bottom: 0;
}

.site-nav-inner {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
}

.site-nav-logo--bar,
.site-nav a.site-nav-logo--bar {
    display: none !important;
}

.nav-search-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 0;
    color: #005331;
    font-size: 1.15em;
    cursor: pointer;
    padding: 0;
    z-index: 2;
}

.nav-search-toggle:focus {
    outline: 2px solid #f1c40f;
    outline-offset: 2px;
}

.site-nav-search {
    display: none;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-nav-panel {
    display: flex;
    align-items: stretch;
    flex: 1;
    min-width: 0;
    gap: 0;
    flex-wrap: nowrap;
}

.site-nav a.site-nav-logo:not(.site-nav-logo--bar) {
    display: inline-flex;
    align-items: center;
    align-self: stretch;
    flex-shrink: 0;
    text-decoration: none;
    line-height: 0;
    padding: 0;
    margin: 0 20px 0 0;
    border-bottom: 3px solid transparent;
    box-sizing: border-box;
}

.site-nav-logo-img {
    display: block;
    height: auto;
    max-height: 60px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    padding: 2px;
}

.site-nav .container {
    position: relative;
}

.nav-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 0;
    color: #005331;
    font-size: 1.4em;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease, transform 0.25s ease;
}

.nav-hamburger:focus {
    outline: 2px solid #f1c40f;
    outline-offset: 2px;
}

.nav-hamburger .hamburger-icon {
    font-size: 1.2em;
    line-height: 1;
    transition: transform 0.25s ease;
}

.site-nav.open .nav-hamburger .hamburger-icon {
    transform: rotate(90deg);
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
    flex: 1;
    min-width: 0;
}

.site-nav li {
    display: block;
    position: relative;
}

.site-nav-panel > ul > li {
    display: inline-flex;
    align-items: stretch;
}

.site-nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 15px;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95em;
    text-transform: uppercase;
    transition: background-color 0.2s ease;
    border-bottom: 3px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
    background-color: rgba(0,0,0,0.05);
    border-bottom-color: #f1c40f;
}

.dropdown-arrow {
    font-size: 0.7em;
    transition: transform 0.2s ease;
}

.site-nav li.has-dropdown > a:hover .dropdown-arrow,
.site-nav li.has-dropdown.open > a .dropdown-arrow {
    transform: rotate(180deg);
}

.site-nav .dropdown-menu-nav {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    display: none;
    flex-direction: column;
    z-index: 1100;
    border-top: 2px solid #f1c40f;
}

.site-nav li.has-dropdown:hover > .dropdown-menu-nav {
    display: flex;
}

.dropdown-menu-nav li {
    display: block;
}

.dropdown-menu-nav a {
    display: block;
    padding: 10px 18px;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    text-transform: none;
    border-bottom: none;
    transition: background-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.dropdown-menu-nav a:hover,
.dropdown-menu-nav a.active {
    background-color: rgba(0,83,49,0.08);
    color: #005331;
    border-bottom: none;
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1040;
    touch-action: none;
}

.nav-overlay.show {
    display: block;
}

@media (max-width: 768px) {
    html,
    body {
        /* clip mencegah scroll horizontal tanpa mematahkan position:sticky */
        overflow-x: clip;
    }

    .site-header-wrap {
        position: sticky;
        top: 0;
        z-index: 1000;
        background: #fff;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    .site-header-wrap header {
        background-color: #005331;
    }

    .site-nav {
        background: #fff;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    body.nav-open {
        overflow: hidden;
    }

    .header-inner {
        flex-direction: column;
        gap: 12px;
    }

    .header-left,
    .header-right {
        width: 100%;
        justify-content: center;
    }

    .header-buttons {
        justify-content: center;
    }

    .header-btn {
        padding: 6px 12px;
        font-size: 0.85em;
    }

    .site-nav.open {
        background: transparent;
        border-top: none;
    }

    .site-nav .container,
    .site-nav .site-nav-inner {
        position: relative;
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        align-items: center;
        justify-content: stretch;
        column-gap: 8px;
        min-height: 56px;
        padding-left: var(--site-gutter, 16px);
        padding-right: var(--site-gutter, 16px);
    }

    .site-nav.open .site-nav-inner {
        min-height: 56px;
        height: auto;
        padding-left: var(--site-gutter, 16px);
        padding-right: var(--site-gutter, 16px);
        overflow: visible;
    }

    .nav-hamburger {
        display: flex;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        grid-column: 1;
        justify-self: start;
        flex: none;
        width: 40px;
        z-index: 2;
    }

    .site-nav.open .nav-hamburger {
        position: fixed;
        top: 12px;
        right: var(--site-gutter, 16px);
        left: auto;
        transform: none;
        background: rgba(0, 83, 49, 0.08);
        border-radius: 4px;
        z-index: 1061;
    }

    .site-nav.open .site-nav-logo--bar,
    .site-nav.open .nav-search-toggle {
        visibility: hidden;
        pointer-events: none;
    }

    .site-nav.open.search-open .site-nav-search {
        display: none;
    }

    .site-nav a.site-nav-logo--bar {
        display: inline-flex !important;
        grid-column: 2;
        justify-self: center;
        align-self: center;
        place-content: center;
        position: static;
        left: auto;
        top: auto;
        transform: none;
        margin: 0;
        padding: 0;
        border-bottom: none;
        z-index: 1;
        max-width: 100%;
    }

    .site-nav-logo--bar .site-nav-logo-img,
    .site-nav a.site-nav-logo--bar .site-nav-logo-img {
        max-height: 40px;
        max-width: min(140px, 42vw);
    }

    .nav-search-toggle {
        display: flex;
        grid-column: 3;
        justify-self: end;
        flex: none;
        margin-left: 0;
    }

    .site-nav.search-open .nav-search-toggle {
        color: #005331;
    }

    .site-nav-search {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        z-index: 3;
        background: #fff;
        padding: 0 var(--site-gutter, 16px);
        align-items: center;
        grid-column: 1 / -1;
    }

    .site-nav.search-open .site-nav-search {
        display: flex;
    }

    .site-nav-search-form {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
    }

    .site-nav-search-input {
        flex: 1;
        min-width: 0;
        height: 40px;
        border: 1px solid #d6e4dc;
        border-radius: 8px;
        padding: 0 12px;
        font-size: 15px;
        color: #222;
        background: #f7faf8;
    }

    .site-nav-search-input:focus {
        outline: 2px solid #005331;
        outline-offset: 1px;
        background: #fff;
    }

    .site-nav-search-submit,
    .site-nav-search-close {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 8px;
        background: #005331;
        color: #fff;
        cursor: pointer;
    }

    .site-nav-search-close {
        background: #eef3f0;
        color: #005331;
    }

    .site-nav-panel {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #ffffff;
        box-shadow: none;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1050;
        -webkit-overflow-scrolling: touch;
        pointer-events: none;
        visibility: hidden;
    }

    .site-nav.open .site-nav-panel {
        transform: translateX(0);
        pointer-events: auto;
        visibility: visible;
    }

    .site-nav a.site-nav-logo--drawer {
        padding: 20px var(--site-gutter, 20px);
        padding-right: calc(var(--site-gutter, 20px) + 48px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        background: #fff;
        position: sticky;
        top: 0;
        z-index: 1;
        align-self: auto;
        min-height: 72px;
        box-sizing: border-box;
        margin: 0;
    }

    .site-nav-logo-img {
        max-height: 52px;
        max-width: 120px;
    }

    .site-nav ul {
        flex-direction: column;
        position: static;
        width: 100%;
        max-width: none;
        height: auto;
        background: transparent;
        box-shadow: none;
        padding: 8px 0 32px;
        margin: 0;
        overflow: visible;
        transform: none;
        transition: none;
        z-index: auto;
    }

    .site-nav ul::before {
        content: none;
        display: none;
    }

    .site-nav.open ul {
        transform: none;
    }

    .site-nav-panel > ul > li {
        display: block;
        width: 100%;
    }

    .site-nav a {
        width: 100%;
        min-height: 52px;
        justify-content: space-between;
        padding: 14px var(--site-gutter, 20px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        box-sizing: border-box;
        font-size: 0.9em;
        letter-spacing: 0.02em;
    }

    .site-nav a:hover,
    .site-nav a.active {
        border-bottom-color: rgba(0, 0, 0, 0.06);
        background-color: rgba(0, 83, 49, 0.06);
    }

    .site-nav li.has-dropdown:hover > .dropdown-menu-nav {
        display: none;
    }

    .site-nav .dropdown-menu-nav {
        position: static;
        box-shadow: none;
        border-top: none;
        padding: 0;
        margin: 0;
        display: none;
        background: #f5f7f6;
    }

    .site-nav li.has-dropdown.open > .dropdown-menu-nav {
        display: block;
    }

    .dropdown-menu-nav a {
        padding: 12px var(--site-gutter, 20px) 12px calc(var(--site-gutter, 20px) + 12px);
        min-height: 48px;
        font-size: 0.82em;
        font-weight: 600;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        text-transform: none;
    }

    .dropdown-menu-nav li:last-child a {
        border-bottom: none;
    }

    .dropdown-menu-nav a:hover,
    .dropdown-menu-nav a.active {
        background-color: rgba(0, 83, 49, 0.08);
    }
}
