/* Menu program KTAC Education — ringan, mobile-first, tanpa font luaran. */
.nav-program-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    line-height: inherit;
    text-align: left;
    cursor: pointer;
}

.nav-program-button__arrow {
    display: inline-block;
    font-size: .9em;
    transition: transform 140ms ease;
}

.nav-program-button[aria-expanded="true"] .nav-program-button__arrow {
    transform: rotate(180deg);
}

.program-menu {
    position: fixed;
    inset: auto 8px 8px;
    width: auto;
    max-width: 460px;
    max-height: min(82svh, 680px);
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(15, 31, 61, .10);
    border-radius: 22px;
    background: #fff;
    color: #101a3b;
    box-shadow: 0 18px 55px rgba(8, 20, 48, .20);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.program-menu[open] {
    display: flex;
    flex-direction: column;
}

.program-menu::backdrop {
    background: rgba(5, 16, 39, .28);
    backdrop-filter: blur(2px);
}

.program-menu__handle {
    flex: 0 0 auto;
    width: 42px;
    height: 4px;
    margin: 9px auto 2px;
    border-radius: 999px;
    background: #d7dce6;
}

.program-menu__header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 14px 12px 16px;
    border-bottom: 1px solid #edf0f5;
}

.program-menu__header p {
    margin: 0 0 2px;
    color: #2f61e9;
    font-size: .65rem;
    font-weight: 850;
    letter-spacing: .14em;
}

.program-menu__header h2 {
    margin: 0;
    color: #101a3b;
    font-size: 1.08rem;
    font-weight: 850;
    letter-spacing: -.02em;
    line-height: 1.15;
}

.program-menu__close {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f2f4f8;
    color: #101a3b;
    font: inherit;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}

.program-menu__close:where(:hover, :focus-visible) {
    background: #e8edfa;
    outline: 0;
}

.program-menu__list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 5px 10px;
}

.program-menu__group,
.program-menu__item {
    border-bottom: 1px solid #edf0f5;
}

.program-menu__group summary,
.program-menu__item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 62px;
    padding: 8px 7px;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.program-menu__group summary {
    list-style: none;
}

.program-menu__group summary::-webkit-details-marker {
    display: none;
}

.program-menu__group summary:where(:hover, :focus-visible),
.program-menu__item:where(:hover, :focus-visible) {
    background: #f5f7fc;
    outline: 0;
}

.program-menu__number {
    color: #2f61e9;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .05em;
}

.program-menu__name {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.program-menu__name strong {
    overflow: hidden;
    font-size: .95rem;
    font-weight: 820;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.program-menu__name small {
    overflow: hidden;
    color: #6c7488;
    font-size: .74rem;
    font-weight: 600;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.program-menu__chevron,
.program-menu__arrow {
    color: #526078;
    font-size: 1.05rem;
    font-weight: 800;
    transition: transform 140ms ease;
}

.program-menu__group[open] > summary .program-menu__chevron {
    transform: rotate(180deg);
}

.program-menu__children {
    display: grid;
    margin: -1px 7px 8px 26px;
    padding: 4px 0 4px 12px;
    border-left: 2px solid #dbe5ff;
}

.program-menu__children a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 42px;
    padding: 7px 8px;
    border-radius: 9px;
    color: #27324d;
    font-size: .78rem;
    font-weight: 680;
    line-height: 1.3;
    text-decoration: none;
}

.program-menu__children a:where(:hover, :focus-visible) {
    background: #edf3ff;
    color: #174fc9;
    outline: 0;
}

.program-menu__children .program-menu__all {
    justify-content: flex-start;
    color: #1e57d5;
    font-weight: 800;
}

.program-menu__status {
    flex: 0 0 auto;
    padding: 4px 7px;
    border-radius: 999px;
    background: #f1f3f7;
    color: #737b8d;
    font-size: .56rem;
    font-style: normal;
    font-weight: 850;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.program-menu__status--open {
    background: #e6f8ee;
    color: #137a43;
}

.program-menu__footer {
    flex: 0 0 auto;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid #edf0f5;
    background: #fff;
}

.program-menu__footer a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    color: #1b2850;
    font-size: .78rem;
    font-weight: 820;
    text-decoration: none;
}

.program-menu__footer a:where(:hover, :focus-visible) {
    color: #2458d7;
    outline: 0;
}

@media (min-width: 961px) {
    .nav-program-button {
        position: relative;
    }

    .nav-program-button::after {
        position: absolute;
        right: 100%;
        bottom: -7px;
        left: 0;
        height: 2px;
        background: var(--red, #cf233b);
        content: "";
        transition: right 180ms ease;
    }

    .nav-program-button:where(:hover, :focus-visible)::after,
    .nav-program-button[aria-expanded="true"]::after {
        right: 0;
    }

    .nav-program-button:focus-visible {
        outline: 2px solid #2f61e9;
        outline-offset: 7px;
        border-radius: 2px;
    }

    .program-menu {
        inset: var(--program-menu-top, 86px) var(--program-menu-right, 24px) auto auto;
        width: min(380px, calc(100vw - 24px));
        max-height: calc(100svh - var(--program-menu-top, 86px) - 16px);
        margin: 0;
        border-radius: 16px;
        box-shadow: 0 16px 44px rgba(8, 20, 48, .16);
    }

    .program-menu::backdrop {
        background: rgba(5, 16, 39, .09);
        backdrop-filter: none;
    }

    .program-menu__handle {
        display: none;
    }

    .program-menu__header {
        padding-top: 14px;
    }

    .program-menu__group summary,
    .program-menu__item {
        min-height: 58px;
    }
}

@media (min-width: 641px) and (max-width: 960px) {
    .desktop-nav .nav-program-button {
        justify-content: space-between;
        width: 100%;
        min-height: 50px;
        border-bottom: 1px solid var(--line, #e5e7ed);
    }
}

@media (prefers-reduced-motion: reduce) {
    .program-menu *,
    .program-menu *::before,
    .program-menu *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
