/* ============================================
   HEADER - GG Mountain Theme
   ============================================ */

.gg-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 100;
}

.gg-header-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

/* ====== JUDUL JURNAL ====== */
.gg-site-name {
    flex: 0 1 40%;
}

.gg-site-name a {
    font-weight: 800;
    text-decoration: none;
    color: #1b4332;
    font-size: 17px;
    line-height: 1.3;
    display: block;
}

.gg-site-name a:hover {
    color: #c1922f;
}

/* ====== KANAN: MENU + TOMBOL ====== */
.gg-header-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
}

.gg-nav {
    position: relative;
    padding-right: 25px;
    border-right: 1px solid #e5e5e5;
    margin-right: 25px;
}

/* ====== MENU UTAMA ====== */
#navigationPrimary.pkp_navigation_primary {
    display: flex !important;
    align-items: center !important;
    gap: 25px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#navigationPrimary > li {
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

#navigationPrimary > li > a {
    color: #333 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    padding: 8px 0 !important;
    display: inline-block !important;
    transition: color 0.2s;
    white-space: nowrap;
    background: transparent !important;
    border: none !important;
}

#navigationPrimary > li > a:hover {
    color: #1b4332 !important;
}

#navigationPrimary > li.current > a {
    color: #1b4332 !important;
    border-bottom: 2px solid #c1922f !important;
    padding-bottom: 6px !important;
}

#navigationPrimary > li:has(> ul) > a::after {
    content: ' ▾' !important;
    font-size: 11px;
    opacity: 0.6;
    margin-left: 3px;
    display: inline-block;
}

/* ====== SUBMENU (DROPDOWN) ====== */
#navigationPrimary > li > ul {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    background: #ffffff !important;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    padding: 8px 0 !important;
    width: 220px;
    list-style: none !important;
    margin: 0 !important;
    z-index: 9999;
    box-sizing: border-box;
    overflow: visible !important;   /* ← TAMBAHKAN INI */
    max-height: none !important;    /* ← TAMBAHKAN INI */
    height: auto !important;        /* ← TAMBAHKAN INI */
}



#navigationPrimary > li:hover > ul {
    display: block;
}

#navigationPrimary > li > ul > li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

#navigationPrimary > li > ul > li > a {
    display: block !important;
    padding: 10px 20px !important;
    font-weight: 500 !important;
    font-size: 13.5px !important;
    color: #444 !important;
    border-bottom: none !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.2s;
    background: transparent !important;
}

/* HOVER SUBMENU - WARNA EMAS */
#navigationPrimary > li > ul > li > a:hover {
    background: #c1922f !important;
    color: #ffffff !important;
    padding-left: 25px !important;
}

/* ====== TOMBOL LOGIN / REGISTER ====== */
.gg-user-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.gg-btn {
    padding: 8px 22px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    transition: all 0.2s;
    white-space: nowrap;
}

.gg-btn-outline {
    border: 2px solid #1b4332;
    color: #1b4332;
    background: #fff;
}

.gg-btn-outline:hover {
    background: #1b4332;
    color: #fff;
}

.gg-btn-solid {
    background: #1b4332;
    color: #fff;
    border: 2px solid #1b4332;
}

.gg-btn-solid:hover {
    background: #c1922f;
    border-color: #c1922f;
    color: #fff;
}

/* ====== FULL WIDTH (hilangkan celah & scrollbar) ====== */
html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 991px) {
    .gg-header-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .gg-site-name {
        flex: 1 1 100%;
    }

    .gg-header-right {
        flex: 1 1 100%;
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 15px;
    }

    .gg-nav {
        padding-right: 0;
        border-right: none;
        margin-right: 0;
    }
}

@media (max-width: 576px) {
    .gg-header-wrapper {
        padding: 15px 20px;
    }

    #navigationPrimary > li > a {
        font-size: 13px !important;
    }

    .gg-btn {
        padding: 6px 14px;
        font-size: 13px;
    }
}

/* Paksa hilangkan scrollbar di submenu */
#navigationPrimary ul {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
}

#navigationPrimary ul li {
    overflow: visible !important;
    max-height: none !important;
}

/* Paksa hilangkan scrollbar di submenu */
#navigationPrimary > li > ul {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
    overflow-y: visible !important;
}

#navigationPrimary > li > ul > li {
    overflow: visible !important;
    max-height: none !important;
}

/* Sembunyikan scrollbar secara visual juga */
#navigationPrimary > li > ul::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
}

#navigationPrimary > li > ul {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}