/* ══════════════════════════════════
   NAVBAR GALLERY DROPDOWN
══════════════════════════════════ */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.nav-dropdown-chevron {
    transition: transform .25s ease;
    flex-shrink: 0;
}

.nav-dropdown.open .nav-dropdown-chevron {
    transform: rotate(180deg);
}

/* Bridge transparan agar mouse tidak "keluar" saat jeda antara toggle dan menu */
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;           /* langsung menempel ke bawah toggle, tanpa gap */
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
    min-width: 160px;
    padding: 8px 0;
    z-index: 9999;       /* pastikan tampil di atas elemen lain */
    list-style: none;
    /* padding-top tambahan agar ada ruang klik nyaman */
    margin-top: 0;
    background-color:blue ;
}

/* Pseudo-element "jembatan" transparan supaya hover tidak putus */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu li a {
    display: block;
    padding: 10px 18px;
    font-size: .88rem;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
    text-decoration: none;
    transition: background .15s, color .15s;
    background-color: var(--primary-color);
}

.nav-dropdown-menu li a:hover,
.nav-dropdown-menu ul li.active a {
    background-color: var(--primary-color);
}

/* ══════════════════════════════════
   SIDENAV GALLERY DROPDOWN
══════════════════════════════════ */
.side-dropdown {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.side-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
}

.side-chevron {
    transition: transform .25s ease;
    flex-shrink: 0;
}

.side-dropdown.open .side-chevron {
    transform: rotate(180deg);
}

.side-dropdown-menu {
    display: none;
    flex-direction: column;
    padding-left: 16px;
    margin-top: 4px;
    gap: 2px;
}

.side-dropdown-menu.open {
    display: flex;
}

.side-sub {
    font-size: .9rem;
    padding: 8px 12px;
    border-radius: 8px;
    opacity: .85;
    transition: opacity .15s, background .15s;
}

.side-sub:hover,
.side-sub.active {
    opacity: 1;
    background: rgba(255, 255, 255, .12);
}
