/* ==========================================================
   HEADER
========================================================== */

.navbar-custom{
    position: sticky;
    top: 0;
    z-index: 1050;

    background: linear-gradient(
        135deg,
        #0f2d5c,
        #18468f
    );

    min-height: 78px;
}

.navbar-custom.navbar-scrolled{
    background: linear-gradient(
        135deg,
        #0f2d5c,
        #18468f
    );

    box-shadow: 0 12px 32px rgba(15,45,92,.35);
}


/* ==========================================================
   CONTAINER
========================================================== */

.navbar-container{
    max-width: 1320px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 32px;
    padding: 12px 20px;
}


/* ==========================================================
   BRAND
========================================================== */

.navbar-brand{
    display: flex;
    align-items: center;
    gap: 14px;

    text-decoration: none;
    flex-shrink: 0;
}

.navbar-brand img{
    width: 58px;
    height: 58px;
    object-fit: contain;

    background: #fff;
    padding: 6px;
    border-radius: 14px;

    box-shadow:
        0 10px 24px rgba(255,255,255,.20),
        0 4px 14px rgba(0,0,0,.18);

    flex-shrink: 0;
}

.brand-info{
    display: flex;
    flex-direction: column;
}

.brand-title{
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.brand-subtitle{
    color: rgba(255,255,255,.85);
    font-size: 12px;
    margin-top: 2px;
}


/* ==========================================================
   DESKTOP MENU
========================================================== */

.navbar-menu{
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.navbar-menu-center{
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.navbar-nav{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    gap: 8px;
    width: 100%;

    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item{
    position: relative;
    display: flex;
    align-items: center;
}


/* ==========================================================
   NAV LINK
========================================================== */

.nav-link{
    position: relative;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 10px 16px;
    border-radius: 12px;

    text-decoration: none;

    color: rgba(255,255,255,.88) !important;

    font-size: 14px;
    font-weight: 600;

    transition: all .25s ease;
}

/* Hover */
.nav-link:hover{
    color: #ffffff !important;
    background: rgba(255,255,255,.08);
}

/* ACTIVE MENU */
.nav-link.active,
.nav-item.active > .nav-link{
    color: #ffffff !important;
    font-weight: 700;
    background: rgba(255,255,255,.08);
}

/* ACTIVE LINE */
.nav-link.active::after,
.nav-item.active > .nav-link::after{
    content: '';

    position: absolute;

    left: 14px;
    right: 14px;
    bottom: 4px;

    height: 3px;
    border-radius: 999px;

    background: #ffffff;
}


/* ==========================================================
   DROPDOWN ARROW
========================================================== */

.has-dropdown > .nav-link::after{
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 11px;

    transition: transform .25s ease;
}

.has-dropdown.open > .nav-link::after{
    transform: rotate(180deg);
}


/* ==========================================================
   DROPDOWN LEVEL 1
========================================================== */

.dropdown-menu-buat{
    position: absolute;

    top: 100%;
    left: 0;

    min-width: 260px;
    max-width: 320px;

    margin-top: 12px;
    padding: 8px;

    background: #fff;
    border-radius: 14px;

    box-shadow: 0 15px 40px rgba(0,0,0,.12);

    list-style: none;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(10px);
    transition: all .2s ease;

    z-index: 1100;
}

.nav-item.open > .dropdown-menu-buat{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}


/* ==========================================================
   DROPDOWN ITEM
========================================================== */

.dropdown-item{
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    text-decoration: none;

    padding: 11px 14px;
    border-radius: 10px;

    color: #334155;

    font-size: 14px;
    font-weight: 500;

    transition: all .2s ease;
}

.dropdown-item:hover{
    background: var(--primary);
    color: #ffffff;
}

/* ACTIVE DROPDOWN */
.dropdown-item.active{
    background: var(--primary);
    color: #ffffff !important;
    font-weight: 600;
}


/* ==========================================================
   SUBMENU
========================================================== */

.dropdown-submenu{
    position: relative;
}


/* ==========================================================
   SUBMENU ARROW
========================================================== */

.submenu-toggle{
    position: relative;
    padding-right: 34px;
}

.submenu-toggle::after{
    content: "\f105";

    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 11px;

    position: absolute;
    right: 14px;
    top: 50%;

    transform: translateY(-50%);
}


/* ==========================================================
   SUBMENU PANEL
========================================================== */

.dropdown-submenu > .dropdown-menu-buat{
    position: absolute;

    top: -8px;
    left: 100%;

    margin-left: 8px;

    min-width: 260px;
    max-width: 320px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateX(10px);
    transition: all .2s ease;
}

.dropdown-submenu.open > .dropdown-menu-buat{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

/* ==========================================================
   FLIP LEFT SUBMENU
========================================================== */

.dropdown-submenu.dropdown-left
> .dropdown-menu-buat{
    left:auto;
    right:100%;

    margin-left:0;
    margin-right:8px;
}

/* ==========================================================
   SAFE HOVER GAP
========================================================== */

.dropdown-submenu::before{
    content:'';

    position:absolute;

    top:0;
    right:-10px;

    width:10px;
    height:100%;
}

/* ==========================================================
   TOGGLER
========================================================== */

.navbar-toggler{
    display:none;

    border:none;
    background:none;

    color:#ffffff;

    font-size:26px;

    cursor:pointer;

    transition:all .25s ease;
}

.navbar-toggler:hover{
    opacity:.85;
}

/* ==========================================================
   MOBILE OFFCANVAS
========================================================== */

.mobile-offcanvas{
    width:340px;

    background:
        linear-gradient(
            135deg,
            #0f2d5c,
            #18468f
        );

    color:#ffffff;
}

.mobile-offcanvas .offcanvas-header{
    border-bottom:
        1px solid rgba(255,255,255,.10);
}

.mobile-offcanvas .offcanvas-body{
    padding:0;
    overflow-y:auto;
}

/* ==========================================================
   MOBILE MENU
========================================================== */

.mobile-menu{
    list-style:none;
    margin:0;
    padding:14px;
}

.mobile-menu-item{
    list-style:none;
    margin-bottom:4px;
}

/* ==========================================================
   MOBILE LINK & BUTTON
========================================================== */

.mobile-menu-link,
.mobile-submenu-toggle{
    width:100%;

    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:12px;

    padding:14px 16px;

    border:none;
    background:none;

    color:#ffffff !important;

    text-decoration:none;

    font-size:14px;
    font-weight:500;

    border-radius:12px;

    transition:all .25s ease;
}

/* Hover seragam desktop */
.mobile-menu-link:hover,
.mobile-submenu-toggle:hover{
    background:rgba(255,255,255,.08);
    color:#ffffff !important;
}

/* Active seragam desktop */
.mobile-menu-link.active,
.mobile-submenu-toggle.active{
    background:rgba(255,255,255,.14);
    color:#ffffff !important;
    font-weight:600;
}

/* Prevent bootstrap override */
.mobile-menu-link:focus,
.mobile-menu-link:active,
.mobile-submenu-toggle:focus,
.mobile-submenu-toggle:active{
    color:#ffffff !important;
}

/* ==========================================================
   MOBILE TEXT
========================================================== */

.mobile-menu-text{
    display:flex;
    align-items:center;

    gap:10px;

    flex:1;

    text-align:left;

    overflow:hidden;
}

.mobile-menu-text i{
    width:18px;
    text-align:center;
    flex-shrink:0;
}

/* ==========================================================
   SUBMENU ARROW
========================================================== */

.submenu-arrow{
    font-size:12px;

    color:#ffffff;

    flex-shrink:0;

    transition:transform .25s ease;
}

.mobile-submenu-toggle:not(.collapsed)
.submenu-arrow{
    transform:rotate(180deg);
}

/* ==========================================================
   SUBMENU WRAPPER
========================================================== */

.mobile-submenu{
    margin-top:4px;
}

.mobile-submenu-list{
    list-style:none;
    margin:0;
    padding:0;
}

/* ==========================================================
   LEVEL 1
========================================================== */

.level-1{
    margin-left:14px;
}

.level-1 .mobile-menu-link,
.level-1 .mobile-submenu-toggle{
    font-size:13px;
    background:rgba(255,255,255,.04);
    color:#ffffff !important;
}

/* ==========================================================
   LEVEL 2
========================================================== */

.level-2{
    margin-left:28px;
}

.level-2 .mobile-menu-link,
.level-2 .mobile-submenu-toggle{
    font-size:13px;
    background:rgba(255,255,255,.06);
    color:#ffffff !important;
}

/* ==========================================================
   LEVEL 3+
========================================================== */

.level-3,
.level-4,
.level-5,
.level-6{
    margin-left:42px;
}

.level-3 .mobile-menu-link,
.level-3 .mobile-submenu-toggle,
.level-4 .mobile-menu-link,
.level-4 .mobile-submenu-toggle,
.level-5 .mobile-menu-link,
.level-5 .mobile-submenu-toggle,
.level-6 .mobile-menu-link,
.level-6 .mobile-submenu-toggle{
    font-size:12px;
    background:rgba(255,255,255,.08);
    color:#ffffff !important;
}

/* ==========================================================
   EMPTY MENU
========================================================== */

.mobile-empty-menu{
    padding:50px 20px;
    text-align:center;

    color:rgba(255,255,255,.7);
}

.mobile-empty-menu i{
    font-size:40px;
    display:block;
    margin-bottom:10px;
}

/* ==========================================================
   SCROLLBAR
========================================================== */

.mobile-offcanvas .offcanvas-body::-webkit-scrollbar{
    width:6px;
}

.mobile-offcanvas .offcanvas-body::-webkit-scrollbar-thumb{
    background:rgba(255,255,255,.18);
    border-radius:999px;
}

/* ==========================================================
   MOBILE BRAND
========================================================== */

.mobile-brand{
    display:flex;
    align-items:center;
    gap:12px;

    flex:1;
    min-width:0;
}

.mobile-brand img{
    width:50px;
    height:50px;

    object-fit:contain;

    background:#ffffff;
    padding:6px;
    border-radius:12px;
}

.mobile-brand-info{
    min-width:0;
}

.mobile-brand-title{
    font-size:15px;
    font-weight:700;

    line-height:1.3;

    color:#ffffff;

    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.mobile-brand-subtitle{
    font-size:12px;
    color:rgba(255,255,255,.80);
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width:991px){

    .navbar-container{
        gap:12px;
        padding:10px 16px;
    }

    .navbar-toggler{
        display:block;
        margin-left:auto;
    }

    .navbar-menu-center{
        display:none !important;
    }

    .brand-title{
        font-size:15px;
    }

    .brand-subtitle{
        display:none;
    }

    .navbar-brand img{
        width:42px;
        height:42px;
    }
}

@media (min-width:992px){

    .navbar-menu-center{
        display:flex !important;
    }

    .navbar-toggler{
        display:none !important;
    }
}

@media (max-width:576px){

    .navbar-brand img{
        width:48px;
        height:48px;
    }

    .brand-title{
        font-size:14px;
    }

    .mobile-offcanvas{
        width:100%;
    }
}