/* ═══════════════ NAVBAR ═══════════════ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 5vw;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(17, 17, 17, .07);
    transition: box-shadow .3s;
}

nav.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, .09);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.nav-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 6px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--black);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 13px;
    border-radius: 999px;
    transition: background .18s, color .18s;
}

.nav-links a:hover {
    background: var(--gray);
}

.nav-links a.active {
    color: var(--blue);
    background: rgba(15, 76, 129, .08);
}

.nav-cta {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    border: none;
    background: none;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(17, 17, 17, .07);
    z-index: 99;
    padding: 16px 5vw 20px;
    flex-direction: column;
    gap: 4px;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
}

.mobile-menu.open {
    display: flex;
}

.mob-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-menu a {
    display: block; /* Membuat menu berjejer ke bawah */
    width: 100%;
    text-align: left; /* Rata kiri */
    text-decoration: none;
    color: var(--black);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 12px;
    transition: background .18s;
    box-sizing: border-box;
}

.mobile-menu a:hover {
    background: var(--gray);
}

.mob-auth-section {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mob-auth-section .mob-link {
    display: block;
    width: 100%;
    text-align: left;
    text-decoration: none;
    color: var(--black);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 12px;
    transition: background .18s;
    box-sizing: border-box;
}

.mob-auth-section .mob-link:hover {
    background: var(--gray);
}

.mobile-menu .mob-cta {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Dropdown */
.nav-links li.dropdown {
    position: relative;
}

.nav-links li.dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 13px;
    border-radius: 999px;
    transition: background .18s, color .18s;
}

.nav-links li.dropdown .dropdown-toggle:hover {
    background: var(--gray);
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.nav-links li.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    min-width: 200px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 101;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-links li.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--black);
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.dropdown-menu li a:hover {
    background: rgba(15, 76, 129, 0.05);
    color: var(--blue);
}

/* Mobile dropown overrides */
.mob-dropdown-title {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 14px 4px;
    margin-top: 4px;
    border-top: 1px solid rgba(0,0,0,0.05);
}