/* =========================================================
   MILITARYLOOP HUB NAVIGATION
   ========================================================= */

#ml-hub-nav,
#ml-hub-nav * {
    box-sizing: border-box;
}

#ml-hub-nav {
    width: 100%;
    background: #0b1729;
    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

#ml-hub-nav .ml-hub-inner {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 10px 20px 12px;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* =========================================================
   LABEL
   ========================================================= */

#ml-hub-nav .ml-hub-label {
    flex: 0 0 auto;
    color: #e7ef4f;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .12em;
    white-space: nowrap;
}

/* =========================================================
   NAV AREA
   ========================================================= */

#ml-hub-nav .ml-hub-nav-area {
    flex: 1 1 auto;
    min-width: 0;
}

/* =========================================================
   SCROLL / SWIPE MESSAGE
   ========================================================= */

#ml-hub-nav .ml-hub-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    margin: 0 42px 5px 0;
    color: rgba(255,255,255,.60);
    font-size: 9px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .09em;
}

#ml-hub-nav .ml-hub-hint-mobile {
    display: none;
}

#ml-hub-nav .ml-hub-hint-arrow {
    color: #e7ef4f;
    font-size: 14px;
    font-weight: 800;
}

/* =========================================================
   SCROLL AREA WRAPPER
   ========================================================= */

#ml-hub-nav .ml-hub-links-wrap {
    position: relative;
    width: 100%;
    min-width: 0;
}

/* =========================================================
   LINK ROW
   ========================================================= */

#ml-hub-nav .ml-hub-links {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-right: 54px;
    padding-left: 0;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    overscroll-behavior-inline: contain;
}

#ml-hub-nav .ml-hub-links::-webkit-scrollbar {
    display: none;
}

/* =========================================================
   NORMAL BUTTON
   ========================================================= */

#ml-hub-nav .ml-hub-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 42px;
    padding: 9px 18px;
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 999px;
    background: rgba(255,255,255,.025);
    color: #ffffff !important;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none !important;

    transition:
        background-color .18s ease,
        border-color .18s ease,
        color .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

/* =========================================================
   HOVER = GREEN
   ========================================================= */

#ml-hub-nav .ml-hub-link:hover,
#ml-hub-nav .ml-hub-link:focus-visible {
    background: #dce65a;
    border-color: #dce65a;
    color: #0b1729 !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
}

#ml-hub-nav .ml-hub-link:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* =========================================================
   ACTIVE HUB
   PHP APPLIES .is-active
   ========================================================= */

#ml-hub-nav .ml-hub-link.is-active,
#ml-hub-nav .ml-hub-link[aria-current="page"] {
    background: #dce65a;
    border-color: #dce65a;
    color: #0b1729 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
    transform: none;
}

#ml-hub-nav .ml-hub-link.is-active:hover,
#ml-hub-nav .ml-hub-link[aria-current="page"]:hover {
    background: #dce65a;
    border-color: #dce65a;
    color: #0b1729 !important;
    transform: none;
}

/* =========================================================
   RIGHT EDGE FADE
   ========================================================= */

#ml-hub-nav .ml-hub-links-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 68px;
    pointer-events: none;

    background: linear-gradient(
        to right,
        rgba(11,23,41,0),
        rgba(11,23,41,.92) 68%,
        #0b1729 100%
    );

    transition: opacity .2s ease;
    z-index: 4;
}

#ml-hub-nav .ml-hub-links-wrap.ml-at-end::after {
    opacity: 0;
}

/* =========================================================
   LEFT EDGE FADE
   ========================================================= */

#ml-hub-nav .ml-hub-links-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 58px;
    pointer-events: none;

    background: linear-gradient(
        to left,
        rgba(11,23,41,0),
        rgba(11,23,41,.92) 68%,
        #0b1729 100%
    );

    opacity: 0;
    transition: opacity .2s ease;
    z-index: 4;
}

#ml-hub-nav .ml-hub-links-wrap.ml-has-scrolled::before {
    opacity: 1;
}

/* =========================================================
   CLICKABLE SCROLL ARROWS
   ========================================================= */

#ml-hub-nav .ml-hub-scroll-arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 32px;
    height: 32px;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background: #dce65a;
    color: #0b1729;

    font-family: inherit;
    font-size: 28px;
    line-height: 1;
    font-weight: 800;

    box-shadow: 0 2px 8px rgba(0,0,0,.28);

    cursor: pointer;
    z-index: 6;

    transition:
        transform .18s ease,
        background-color .18s ease,
        box-shadow .18s ease;
}

#ml-hub-nav .ml-hub-scroll-arrow:hover {
    background: #eef57a;
    transform: translateY(-50%) scale(1.07);
    box-shadow: 0 4px 12px rgba(0,0,0,.30);
}

#ml-hub-nav .ml-hub-scroll-arrow:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

#ml-hub-nav .ml-hub-scroll-arrow[hidden] {
    display: none !important;
}

#ml-hub-nav .ml-hub-scroll-right {
    right: 4px;
}

#ml-hub-nav .ml-hub-scroll-left {
    left: 4px;
}

/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 900px) {

    #ml-hub-nav .ml-hub-inner {
        display: block;
        padding: 11px 16px 13px;
    }

    #ml-hub-nav .ml-hub-label {
        display: block;
        margin-bottom: 3px;
        font-size: 11px;
    }

    #ml-hub-nav .ml-hub-scroll-hint {
        justify-content: flex-start;
        margin: 0 0 8px 0;
        font-size: 10px;
    }

    #ml-hub-nav .ml-hub-hint-desktop {
        display: none;
    }

    #ml-hub-nav .ml-hub-hint-mobile {
        display: inline;
    }

    #ml-hub-nav .ml-hub-hint-arrow {
        font-size: 16px;
    }

    #ml-hub-nav .ml-hub-links {
        gap: 8px;
        padding-right: 48px;
    }

    #ml-hub-nav .ml-hub-link {
        min-height: 38px;
        padding: 8px 14px;
        font-size: 14px;
    }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    #ml-hub-nav .ml-hub-inner {
        padding-left: 14px;
        padding-right: 14px;
    }

    #ml-hub-nav .ml-hub-scroll-hint {
        font-size: 9px;
    }

    #ml-hub-nav .ml-hub-link {
        min-height: 36px;
        padding: 7px 13px;
        font-size: 13px;
    }

    #ml-hub-nav .ml-hub-scroll-arrow {
        width: 29px;
        height: 29px;
        font-size: 25px;
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    #ml-hub-nav .ml-hub-link,
    #ml-hub-nav .ml-hub-scroll-arrow,
    #ml-hub-nav .ml-hub-links-wrap::before,
    #ml-hub-nav .ml-hub-links-wrap::after {
        transition: none;
    }

    #ml-hub-nav .ml-hub-links {
        scroll-behavior: auto;
    }
}