/* ===============================
   SITE HEADER
================================ */

.site-header {
    position: relative;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    z-index: 9999;
}

.site-header.is-sticky {
    position: sticky;
    top: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 76px;
    position: relative;
}


/* ===============================
   SITE BRANDING
================================ */

.site-branding {
    margin-right: auto;
    flex: 0 0 auto;
    min-width: 0;
}

.site-title {
    margin: 0;
    color: var(--primary-color, #0f3b66);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

.site-title a {
    color: var(--primary-color, #0f3b66);
    text-decoration: none;
}

.site-title a:hover {
    color: #0f172a;
}

.site-description {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}

.custom-logo {
    display: block;
    max-height: 64px;
    width: auto;
}


/* ===============================
   SKIP LINK
================================ */

.screen-reader-text,
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
    width: auto;
    height: auto;
    margin: 0;
    padding: 10px 14px;
    clip: auto;
    overflow: visible;
    background: #0f3b66;
    color: #ffffff;
    z-index: 100000;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
}


/* ===============================
   MAIN NAVIGATION DESKTOP
================================ */

.main-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    min-width: 0;
}

.primary-menu,
.primary-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.primary-menu > li {
    position: relative;
}

.primary-menu > li > a {
    display: block;
    padding: 28px 10px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.primary-menu > li > a:hover {
    color: #0f3b66;
}

.primary-menu > li.menu-item-has-children > a::after {
    content: "▾";
    margin-left: 6px;
    font-size: 11px;
}


/* ===============================
   HAMBURGER BUTTON
================================ */

.bhub-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
}

.bhub-menu-toggle-line {
    display: block;
    width: 22px;
    height: 2px;
    background: #0f3b66;
    border-radius: 999px;
    transition: 0.2s ease;
}

.bhub-menu-toggle.is-active .bhub-menu-toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.bhub-menu-toggle.is-active .bhub-menu-toggle-line:nth-child(2) {
    opacity: 0;
}

.bhub-menu-toggle.is-active .bhub-menu-toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ===============================
   HEADER SEARCH OPTIONAL
================================ */

.header-search {
    border-top: 1px solid var(--border-color, #e5e7eb);
    padding: 16px 20px;
    background: var(--light-bg, #f8fafc);
}

.header-search form {
    max-width: 700px;
    margin: auto;
    display: flex;
}

.header-search input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 10px 0 0 10px;
}

.header-search input[type="submit"],
.header-search button {
    padding: 12px 16px;
    border: 0;
    background: var(--primary-color, #0f3b66);
    color: #ffffff;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
}


/* ===============================
   TABLET
================================ */

@media (max-width: 1100px) {
    .primary-menu > li > a {
        padding-left: 8px;
        padding-right: 8px;
        font-size: 14px;
    }
}


/* ===============================
   MOBILE HEADER
================================ */

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        min-height: auto;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .site-branding {
        width: calc(100% - 60px);
        max-width: calc(100% - 60px);
        margin-right: 0;
    }

    .site-title {
        font-size: 24px;
    }

    .site-description {
        margin-top: 5px;
        font-size: 13px;
    }

    .custom-logo {
        max-height: 56px;
    }

    .bhub-menu-toggle {
        display: inline-flex;
        position: absolute;
        top: 16px;
        right: 0;
        z-index: 10002;
    }

    .main-navigation {
        display: none;
        width: 100%;
        flex: 0 0 100%;
        margin-top: 16px;
        padding-top: 10px;
        border-top: 1px solid #e5e7eb;
    }

    .main-navigation.is-open {
        display: block;
    }

    .primary-menu {
        display: block;
        width: 100%;
        background: #ffffff;
    }

    .primary-menu > li {
        display: block;
        width: 100%;
        border-bottom: 1px solid #e5e7eb;
    }

    .primary-menu > li > a {
        display: block;
        padding: 14px 0;
        color: #0f172a;
        font-size: 15px;
        font-weight: 700;
        text-decoration: none;
        white-space: normal;
    }
}


/* ===============================
   SMALL MOBILE
================================ */

@media (max-width: 420px) {
    .site-title {
        font-size: 22px;
    }

    .site-description {
        font-size: 12px;
    }

    .bhub-menu-toggle {
        width: 42px;
        height: 42px;
    }
}

/* ===============================
   HEADER CLEAN FINAL PATCH
   Tambahan aman dari header awal
================================ */

/* Header sticky dengan garis gradasi atas */
.site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(10px);
}
/* Header Transparent */
/* .site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.82);
    background: rgba(15, 23, 42, 0.90);
    background: rgba(15, 23, 42, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(12px);
}

.site-title,
.site-title a,
.primary-menu > li > a {
    color: #ffffff;
}

.site-title a:hover,
.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a,
.primary-menu > li.current_page_item > a {
    color: #f59e0b;
}

.primary-menu > li.menu-item-has-children > a::after {
    color: #ffffff;
}

.bhub-menu-toggle {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
}

.bhub-menu-toggle-line {
    background: #ffffff;
} */
/* Header gradient bar */

.site-header::before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #0f3b66, #2563eb, #f59e0b);
}

/* Header container */
.header-inner {
    min-height: 72px;
}

/* Logo */
.site-title {
    color: #0f3b66;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.site-title a {
    color: #0f3b66;
}
/* ===============================
   SITE HEADER
================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(10px);
}

.site-header::before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #0f3b66, #2563eb, #f59e0b);
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 72px;
}


/* ===============================
   SITE BRANDING
================================ */

.site-branding {
    flex: 0 0 auto;
    min-width: 0;
    margin-right: auto;
}

.site-title {
    margin: 0;
    color: #0f3b66;
    font-size: 25px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.site-title a {
    color: #0f3b66;
    text-decoration: none;
}

.site-title a:hover {
    color: #f59e0b;
}

.site-description {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}

.custom-logo {
    display: block;
    width: auto;
    max-height: 64px;
}


/* ===============================
   SKIP LINK
================================ */

.screen-reader-text,
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
    width: auto;
    height: auto;
    margin: 0;
    padding: 10px 14px;
    clip: auto;
    overflow: visible;
    background: #0f3b66;
    color: #ffffff;
    z-index: 100000;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
}


/* ===============================
   MAIN NAVIGATION DESKTOP
================================ */

.main-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    min-width: 0;
}

.primary-menu,
.primary-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.primary-menu > li {
    position: relative;
}

.primary-menu > li > a {
    position: relative;
    display: block;
    padding: 27px 11px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a,
.primary-menu > li.current_page_item > a {
    color: #0f3b66;
}

.primary-menu > li > a::before {
    content: "";
    position: absolute;
    left: 11px;
    right: 11px;
    bottom: 16px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0f3b66, #f59e0b);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.primary-menu > li > a:hover::before,
.primary-menu > li.current-menu-item > a::before,
.primary-menu > li.current_page_item > a::before {
    transform: scaleX(1);
}

.primary-menu > li.menu-item-has-children > a::after {
    content: "▾";
    margin-left: 6px;
    font-size: 11px;
}


/* ===============================
   CTA MENU
================================ */

.primary-menu > li.menu-cta > a {
    margin-left: 8px;
    padding: 13px 20px;
    border-radius: 999px;
    background: #0f3b66;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(15, 59, 102, 0.16);
}

.primary-menu > li.menu-cta > a:hover {
    background: #f59e0b;
    color: #111827 !important;
}

.primary-menu > li.menu-cta > a::before {
    display: none;
}


/* ===============================
   HAMBURGER BUTTON
================================ */

.bhub-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid #dbe3ec;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
}

.bhub-menu-toggle-line {
    display: block;
    width: 22px;
    height: 2px;
    background: #0f3b66;
    border-radius: 999px;
    transition: 0.2s ease;
}

.bhub-menu-toggle.is-active .bhub-menu-toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.bhub-menu-toggle.is-active .bhub-menu-toggle-line:nth-child(2) {
    opacity: 0;
}

.bhub-menu-toggle.is-active .bhub-menu-toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ===============================
   HEADER SEARCH OPTIONAL
================================ */

.header-search {
    border-top: 1px solid #e5e7eb;
    padding: 16px 20px;
    background: #f8fafc;
}

.header-search form {
    display: flex;
    max-width: 700px;
    margin: auto;
}

.header-search input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px 0 0 10px;
}

.header-search input[type="submit"],
.header-search button {
    padding: 12px 16px;
    border: 0;
    background: #0f3b66;
    color: #ffffff;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
}


/* ===============================
   TABLET
================================ */

@media (max-width: 1100px) {
    .primary-menu > li > a {
        padding-left: 8px;
        padding-right: 8px;
        font-size: 14px;
    }
}


/* ===============================
   MOBILE HEADER
================================ */

@media (max-width: 768px) {
    .site-header::before {
        height: 3px;
    }

    .header-inner {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        min-height: auto;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .site-branding {
        width: calc(100% - 60px);
        max-width: calc(100% - 60px);
        margin-right: 0;
    }

    .site-title {
        font-size: 24px;
    }

    .site-description {
        margin-top: 5px;
        font-size: 13px;
    }

    .custom-logo {
        max-height: 56px;
    }

    .bhub-menu-toggle {
        display: inline-flex;
        position: absolute;
        top: 16px;
        right: 0;
        z-index: 10002;
    }

    .main-navigation {
        display: none;
        width: 100%;
        flex: 0 0 100%;
        margin-top: 16px;
        padding-top: 10px;
        border-top: 1px solid #e5e7eb;
    }

    .main-navigation.is-open,
    .primary-navigation.is-open {
        display: block;
    }

    .primary-menu {
        display: block;
        width: 100%;
        background: #ffffff;
    }

    .primary-menu > li {
        display: block;
        width: 100%;
        border-bottom: 1px solid #e5e7eb;
    }

    .primary-menu > li > a {
        display: block;
        padding: 15px 0;
        color: #0f172a;
        font-size: 15px;
        font-weight: 700;
        text-decoration: none;
        white-space: normal;
    }

    .primary-menu > li > a::before {
        display: none;
    }

    .primary-menu > li.menu-cta > a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: fit-content;
        margin: 14px 0 4px;
        padding: 12px 20px;
    }
}


/* ===============================
   SMALL MOBILE
================================ */

@media (max-width: 420px) {
    .site-title {
        font-size: 22px;
    }

    .site-description {
        font-size: 12px;
    }

    .bhub-menu-toggle {
        width: 42px;
        height: 42px;
    }
}
.site-title a:hover {
    color: #f59e0b;
}

/* Menu desktop */
.primary-menu > li > a {
    padding: 27px 11px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
}

.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a {
    color: #0f3b66;
}

/* Garis bawah hover menu */
.primary-menu > li > a {
    position: relative;
}

.primary-menu > li > a::before {
    content: "";
    position: absolute;
    left: 11px;
    right: 11px;
    bottom: 16px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0f3b66, #f59e0b);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.primary-menu > li > a:hover::before,
.primary-menu > li.current-menu-item > a::before {
    transform: scaleX(1);
}

/* Tombol kontak / item terakhir */
.primary-menu > li:last-child > a {
    margin-left: 8px;
    padding: 13px 20px;
    border-radius: 999px;
    background: #0f3b66;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(15, 59, 102, 0.16);
}

.primary-menu > li:last-child > a:hover {
    background: #f59e0b;
    color: #111827 !important;
}

.primary-menu > li:last-child > a::before {
    display: none;
}

/* Jangan munculkan panah default kalau Program Bimtek memakai mega menu custom */
.primary-menu > li.has-mega-menu > a::after {
    content: "";
    display: inline-block;
    margin-left: 7px;
    width: 0;
    height: 0;
    border-top: 5px solid #0f3b66;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    vertical-align: middle;
}

/* ===============================
   MOBILE CLEAN
================================ */

@media (max-width: 768px) {
    .site-header::before {
        height: 3px;
    }

    .header-inner {
        min-height: auto;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .site-title {
        font-size: 24px;
    }

    .primary-menu > li > a {
        padding: 15px 0;
    }

    .primary-menu > li > a::before {
        display: none;
    }

    .primary-menu > li:last-child > a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: fit-content;
        margin: 14px 0 4px;
        padding: 12px 20px;
    }
}