/*
 * Poltekkes Ternate 2026
 * Header & Navigation
 * Version 0.2.0
 */


/* ========================================
   TOP BAR
======================================== */

.p26-topbar {
    color: #e8fffb;
    background:
        linear-gradient(
            90deg,
            #075c56 0%,
            #007f73 100%
        );
}

.p26-topbar-inner {
    display: flex;
    width: min(
        calc(100% - 32px),
        var(--p26-container)
    );
    min-height: 34px;
    margin-inline: auto;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
}

.p26-topbar-label {
    padding: 2px 8px;
    color: #075c56;
    background: #ffffff;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.p26-topbar-dot {
    opacity: .55;
}

.p26-topbar-ministry {
    opacity: .92;
}


/* ========================================
   HEADER CONTAINER
======================================== */

.p26-header {
    position: sticky;
    z-index: 9990;
    top: 0;
    width: 100%;
    background: #ffffff;
    box-shadow:
        0 1px 0 rgba(16, 24, 40, .06),
        0 8px 30px rgba(16, 24, 40, .04);
}

.p26-masthead {
    background: rgba(255, 255, 255, .98);
}

.p26-header-inner {
    display: flex;
    width: min(
        calc(100% - 32px),
        var(--p26-container)
    );
    min-height: 82px;
    margin-inline: auto;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}


/* ========================================
   BRAND
======================================== */

.p26-brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
}

.p26-brand-logo {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
}

.p26-brand-logo .custom-logo-link {
    display: flex;
    align-items: center;
}

.p26-brand-logo .custom-logo {
    display: block;
    width: auto;
    max-width: 230px;
    max-height: 58px;
}

.p26-logo-placeholder {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #007f73,
            #075c56
        );
    border-radius: 14px;
    font-size: 24px;
    font-weight: 900;
    text-decoration: none;
}

.p26-brand-text {
    display: flex;
    min-width: 0;
    flex-direction: column;
    color: var(--p26-text);
    text-decoration: none;
}

.p26-brand-title {
    font-size: clamp(
        17px,
        2vw,
        22px
    );
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.p26-brand-subtitle {
    margin-top: 5px;
    color: var(--p26-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
}


/* ========================================
   ACTION BUTTONS
======================================== */

.p26-header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.p26-search-toggle,
.p26-menu-toggle {
    min-height: 42px;
    padding: 8px 13px;
    color: var(--p26-text);
    background: #ffffff;
    border: 1px solid var(--p26-border);
    border-radius: 10px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.p26-search-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.p26-menu-toggle {
    display: none;
    align-items: center;
    gap: 7px;
}

.p26-search-toggle:hover,
.p26-menu-toggle:hover,
.p26-search-toggle:focus-visible,
.p26-menu-toggle:focus-visible {
    color: var(--p26-primary-dark);
    background: #f3fbf9;
    border-color: rgba(0, 127, 115, .35);
}

.p26-search-icon {
    font-size: 21px;
    line-height: 1;
}

.p26-menu-icon {
    font-size: 18px;
    line-height: 1;
}


/* ========================================
   NAV BAR
======================================== */

.p26-navbar {
    border-top: 1px solid #f0f2f4;
    border-bottom: 1px solid var(--p26-border);
    background: #ffffff;
}

.p26-navbar-inner {
    width: min(
        calc(100% - 32px),
        var(--p26-container)
    );
    margin-inline: auto;
}

.p26-navigation {
    width: 100%;
}

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

.p26-menu {
    display: flex;
    min-height: 48px;
    align-items: stretch;
    gap: 2px;
}

.p26-menu > li {
    position: relative;
    display: flex;
    align-items: stretch;
}

.p26-menu > li > a {
    position: relative;
    display: flex;
    padding: 0 13px;
    align-items: center;
    color: var(--p26-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.p26-menu > li > a::after {
    position: absolute;
    right: 13px;
    bottom: -1px;
    left: 13px;
    height: 3px;
    content: "";
    background: var(--p26-primary);
    border-radius: 3px 3px 0 0;
    opacity: 0;
    transform: scaleX(.4);
    transition:
        opacity .18s ease,
        transform .18s ease;
}

.p26-menu > li:hover > a,
.p26-menu > li:focus-within > a,
.p26-menu > li.current-menu-item > a,
.p26-menu > li.current-menu-ancestor > a {
    color: var(--p26-primary-dark);
}

.p26-menu > li:hover > a::after,
.p26-menu > li:focus-within > a::after,
.p26-menu > li.current-menu-item > a::after,
.p26-menu > li.current-menu-ancestor > a::after {
    opacity: 1;
    transform: scaleX(1);
}


/* ========================================
   DESKTOP DROPDOWN
======================================== */

.p26-menu .sub-menu {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    z-index: 100;
    display: none;
    width: 250px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid var(--p26-border);
    border-radius: 0 0 14px 14px;
    box-shadow:
        0 18px 40px rgba(16, 24, 40, .12);
}

.p26-menu li:hover > .sub-menu,
.p26-menu li:focus-within > .sub-menu {
    display: block;
}

.p26-menu .sub-menu li {
    position: relative;
}

.p26-menu .sub-menu a {
    display: block;
    padding: 10px 12px;
    color: var(--p26-text);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
}

.p26-menu .sub-menu a:hover,
.p26-menu .sub-menu a:focus-visible {
    color: var(--p26-primary-dark);
    background: #f1faf8;
}

.p26-menu .sub-menu .sub-menu {
    top: -9px;
    left: calc(100% - 4px);
    border-radius: 14px;
}


/* ========================================
   SEARCH PANEL
======================================== */

.p26-search-panel {
    background: #f7faf9;
    border-bottom: 1px solid var(--p26-border);
}

.p26-search-panel[hidden] {
    display: none;
}

.p26-search-panel-inner {
    width: min(
        calc(100% - 32px),
        var(--p26-container)
    );
    margin-inline: auto;
    padding-block: 16px;
}

.p26-search-form {
    display: flex;
    width: min(100%, 760px);
    margin-left: auto;
    gap: 8px;
}

.p26-search-form input {
    width: 100%;
    min-height: 46px;
    padding: 0 15px;
    color: var(--p26-text);
    background: #ffffff;
    border: 1px solid #cfd7d5;
    border-radius: 10px;
    outline: none;
    font: inherit;
    font-size: 14px;
}

.p26-search-form input:focus {
    border-color: var(--p26-primary);
    box-shadow:
        0 0 0 3px rgba(0, 127, 115, .12);
}

.p26-search-form button {
    min-width: 86px;
    min-height: 46px;
    padding: 0 18px;
    color: #ffffff;
    background: var(--p26-primary);
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
}


/* ========================================
   ACCESSIBILITY
======================================== */

.p26-skip-link {
    position: fixed;
    z-index: 99999;
    top: -100px;
    left: 16px;
    padding: 10px 16px;
    color: #ffffff;
    background: #111827;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.p26-skip-link:focus {
    top: 12px;
}


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

@media (max-width: 980px) {

    .p26-topbar-ministry,
    .p26-topbar-dot {
        display: none;
    }

    .p26-header-inner {
        min-height: 72px;
    }

    .p26-brand-logo .custom-logo {
        max-width: 190px;
        max-height: 50px;
    }

    .p26-brand-title {
        font-size: 17px;
    }

    .p26-brand-subtitle {
        font-size: 11px;
    }

    .p26-menu-toggle {
        display: inline-flex;
    }

    .p26-navbar {
        border-top: 0;
    }

    .p26-navbar-inner {
        width: 100%;
    }

    .p26-navigation {
        display: none;
    }

    .p26-navigation.is-open {
        display: block;
        max-height: calc(100vh - 106px);
        overflow-y: auto;
        background: #ffffff;
        border-top: 1px solid var(--p26-border);
    }

    .p26-menu {
        display: block;
        min-height: 0;
        padding: 10px 16px 18px;
    }

    .p26-menu > li {
        display: block;
        border-bottom: 1px solid #edf0f2;
    }

    .p26-menu > li > a {
        display: block;
        padding: 13px 4px;
        line-height: 1.4;
        white-space: normal;
    }

    .p26-menu > li > a::after {
        display: none;
    }

    .p26-menu .sub-menu,
    .p26-menu .sub-menu .sub-menu {
        position: static;
        display: block;
        width: auto;
        padding:
            0
            0
            8px
            14px;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .p26-menu .sub-menu a {
        padding: 8px 10px;
        color: #475467;
        font-size: 13px;
    }

    .p26-search-form {
        margin-left: 0;
    }

}


@media (max-width: 640px) {

    .p26-topbar-inner {
        min-height: 30px;
        font-size: 11px;
    }

    .p26-topbar-label {
        display: none;
    }

    .p26-header-inner {
        gap: 10px;
    }

    .p26-brand {
        gap: 9px;
    }

    .p26-brand-logo .custom-logo {
        max-width: 145px;
        max-height: 44px;
    }

    .p26-brand-subtitle {
        display: none;
    }

    .p26-brand-title {
        max-width: 170px;
        font-size: 14px;
        line-height: 1.2;
    }

    .p26-search-toggle,
    .p26-menu-toggle {
        min-width: 40px;
        padding: 7px 9px;
    }

    .p26-action-label,
    .p26-menu-toggle span:last-child {
        display: none;
    }

    .p26-search-form {
        flex-direction: column;
    }

    .p26-search-form button {
        width: 100%;
    }

}


/* ========================================
   P26 HEADER 0.2.1 — CLEAN BRAND
======================================== */

.p26-brand {
    gap: 0;
}

.p26-brand-logo .custom-logo {
    width: auto;
    max-width: 275px;
    max-height: 64px;
}

.p26-topbar-inner {
    gap: 9px;
}



/* ========================================
   P26 HEADER — PREMIUM COMPACT
======================================== */

.p26-masthead .p26-header-inner {
    min-height: 68px;
}

.p26-brand-logo .custom-logo {
    max-width: 255px;
    max-height: 54px;
}

.p26-topbar-inner {
    min-height: 30px;
}



/* ==========================================================
   P26 0.2.3 — HEADER SUPERGRAPHIC KEMENKES
========================================================== */

.p26-topbar {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            90deg,
            #075c56 0%,
            #007f73 55%,
            #0a8f81 100%
        );
}

.p26-topbar::after {
    content: "";
    position: absolute;
    top: -18px;
    right: -24px;
    width: 180px;
    height: 80px;
    opacity: .18;
    border-radius: 22px;
    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.85),
            rgba(255,255,255,0)
        );
    transform: rotate(-14deg);
    pointer-events: none;
}

.p26-topbar-inner {
    position: relative;
    z-index: 1;
}

.p26-topbar-label {
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.p26-masthead {
    position: relative;
    overflow: hidden;
}

.p26-masthead::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 340px;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            rgba(0,127,115,.05),
            rgba(0,127,115,0)
        );
}

.p26-brand {
    position: relative;
}

.p26-brand::after {
    content: "";
    position: absolute;
    left: 58px;
    bottom: -6px;
    width: 82px;
    height: 4px;
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            #00a895,
            #007f73
        );
    opacity: .85;
}

@media (max-width: 980px) {
    .p26-brand::after {
        left: 0;
        bottom: -8px;
        width: 68px;
    }
}

@media (max-width: 640px) {
    .p26-topbar::after,
    .p26-masthead::before {
        opacity: .7;
    }
}


/* ========================================
   P26 0.2.3 — KEMENKES SUPERGRAPHIC
======================================== */

.p26-topbar {
    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            #075c56 0%,
            #007f73 62%,
            #078c80 100%
        );
}

.p26-topbar::after {
    position: absolute;

    top: -32px;
    right: 6%;

    width: 190px;
    height: 84px;

    content: "";
    pointer-events: none;

    opacity: .24;

    background:
        radial-gradient(
            ellipse at 22% 50%,
            #8cc63f 0 14%,
            transparent 15%
        ),
        radial-gradient(
            ellipse at 52% 50%,
            #ffffff 0 14%,
            transparent 15%
        ),
        radial-gradient(
            ellipse at 82% 50%,
            #00b1aa 0 14%,
            transparent 15%
        );

    transform: rotate(-12deg);
}

.p26-topbar-inner {
    position: relative;
    z-index: 1;
}

.p26-masthead {
    position: relative;
}

.p26-masthead::after {
    position: absolute;

    right: 0;
    bottom: 0;

    width: 140px;
    height: 3px;

    content: "";

    background:
        linear-gradient(
            90deg,
            transparent,
            #00a6a6 35%,
            #8cc63f
        );
}



/* ========================================
   P26 0.2.4
   HEADER SUPERGRAPHIC LINES
======================================== */


/* hilangkan kesan blob di topbar */

.p26-topbar::after {
    content: none !important;
}


/* divider supergraphic bawah masthead */

.p26-masthead::after {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;
    height: 3px;

    content: "";

    background:
        linear-gradient(
            90deg,
            #007f73 0 11%,
            #8cc63f 11% 16%,
            #00a6a6 16% 28%,
            transparent 28% 100%
        );

    opacity: .78;
}


/* garis kecil di bawah logo */

.p26-brand::after {
    left: 58px;
    bottom: -7px;

    width: 102px;
    height: 4px;

    background:
        linear-gradient(
            90deg,
            #007f73 0 56%,
            transparent 56% 62%,
            #8cc63f 62% 82%,
            transparent 82% 88%,
            #78ccc2 88%
        );

    box-shadow: none;
}


/* sudut kanan search */

.p26-search-toggle {
    position: relative;
}

.p26-search-toggle::after {
    position: absolute;

    right: -5px;
    bottom: -5px;

    width: 17px;
    height: 17px;

    content: "";

    pointer-events: none;

    border-right:
        3px solid
        #00a6a6;

    border-bottom:
        3px solid
        #8cc63f;

    border-radius:
        0
        0
        8px
        0;
}



/* ==========================================================
   P26 THEME 0.2.5 — FINAL MOBILE HEADER
========================================================== */

@media (max-width: 640px) {

    .p26-topbar {
        display: none;
    }

    .p26-masthead .p26-header-inner {
        min-height: 58px;
        gap: 6px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .p26-brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .p26-brand-logo .custom-logo {
        width: auto !important;
        max-width: 138px !important;
        max-height: 40px !important;
    }

    .p26-search-toggle,
    .p26-menu-toggle {
        box-sizing: border-box;

        flex: 0 0 40px;

        width: 40px;
        min-width: 40px;

        height: 40px;
        min-height: 40px;

        padding: 0;

        align-items: center;
        justify-content: center;
    }

    .p26-brand::after {
        left: 0;
        bottom: -6px;
        width: 66px;
    }

    .p26-search-toggle::after {
        right: -3px;
        bottom: -3px;

        width: 13px;
        height: 13px;

        border-right-width: 2px;
        border-bottom-width: 2px;
    }

}

/* === P26 0.2.6 HEADER POLISH START === */

/* Font utama */
body,
button,
input,
select,
textarea,
.p26-header,
.p26-main,
.p26-wrap {
    font-family:
        "Plus Jakarta Sans",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

/* Hilangkan garis/dekorasi bawah area logo */
.p26-brand::before,
.p26-brand::after,
.p26-brand-logo::before,
.p26-brand-logo::after,
.p26-brand-text::before,
.p26-brand-text::after {
    content: none !important;
    display: none !important;
}

/* Hilangkan garis aktif di bawah menu */
.p26-header nav a::after,
.p26-header nav li::after,
.p26-header .current-menu-item > a::after,
.p26-header .current_page_item > a::after,
.p26-header a[aria-current="page"]::after {
    content: none !important;
    display: none !important;
}

.p26-header .current-menu-item > a,
.p26-header .current_page_item > a,
.p26-header a[aria-current="page"] {
    border-bottom: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

/* Nav lebih clean dan elegan */
.p26-header nav a,
.p26-header .menu a {
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Brand text lebih elegan */
.p26-brand-title {
    font-weight: 800;
    letter-spacing: -0.025em;
}

.p26-brand-subtitle,
.p26-topbar-text,
.p26-topbar-ministry {
    letter-spacing: -0.01em;
}

/* === P26 0.2.6 HEADER POLISH END === */


/* ==========================================================
   P26 0.2.7 FINAL HEADER CLEAN
========================================================== */

/* Hilangkan divider panjang di bawah area logo/masthead */
.p26-masthead::after {
    content: none !important;
    display: none !important;
}

/* Pastikan tidak ada underline menu aktif */
.p26-menu .current-menu-item > a,
.p26-menu .current_page_item > a,
.p26-menu a[aria-current="page"] {
    border-bottom: 0 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.p26-menu .current-menu-item > a::before,
.p26-menu .current-menu-item > a::after,
.p26-menu .current_page_item > a::before,
.p26-menu .current_page_item > a::after,
.p26-menu a[aria-current="page"]::before,
.p26-menu a[aria-current="page"]::after {
    content: none !important;
    display: none !important;
}
