.navbar {
    background: linear-gradient(
        to bottom,
        #ffffff 85%,
        #d4d6da 100%
    );
    font-family: 'Montserrat', sans-serif;
    padding: 0 30px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(44, 44, 44, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-logo img {
    height: 170px;
    width: auto;
    margin-left: 0;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 38px;
    padding: 0;
    margin-left: auto;
}

.nav-menu a {
    position: relative;
    text-decoration: none;
    color: #7a7a7a;
    font-weight: 550;
    font-size: 14px;
    padding: 6px 0;
    transition: color 0.3s ease;
}

/* underline hidden */
.nav-menu a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0;
    height: 3px;
    background: #000;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

/* hover effect */
.nav-menu a:hover {
    color: #000;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* active page */
.nav-menu a.active {
    color: #000;
}

.nav-menu a.active::after {
    width: 100%;
}

/* ===== DROPDOWN MENU ===== */
.nav-item-dropdown {
    position: relative;
}

.dropdown-icon {
    font-size: 10px;
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.nav-item-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 5px); /* Position completely beneath the navbar item */
    left: 0;
    min-width: 260px;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-radius: 8px;
    list-style: none;
    padding: 12px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 1001;
    border: 1px solid #eee;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Remove default underline effect for dropdown links */
.dropdown-menu li a::after {
    display: none !important;
}

.dropdown-menu li a:hover {
    background-color: #f8fafc;
    color: #667eea;
    padding-left: 28px;
}
/* ===== NAVBAR TOGGLE (BURGER) ===== */
.nav-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #4b5563;
    z-index: 1002;
    padding: 5px;
    transition: 0.3s;
}

/* ===== RESPONSIVE NAVBAR (PREMIUM MOBILE STYLE) ===== */
@media (max-width: 992px) {
    .navbar {
        padding: 0 20px;
        height: 60px;
    }
    .nav-logo img {
        height: 100px; /* Logo diperkecil agar tidak makan tempat vertikal */
    }
    .nav-toggle {
        display: block;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding-top: 80px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        margin-left: 0;
    }
    .nav-menu.active {
        right: 0;
    }
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
    }
    .nav-menu a {
        display: block;
        padding: 15px 30px;
        font-size: 16px;
        font-weight: 600;
        width: 100%;
        color: #1e293b;
    }
    .nav-menu a::after {
        display: none; /* Hilangkan underline desktop */
    }
    
    /* Dropdown inside mobile menu */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 20px;
        min-width: 100%;
        display: none; /* Bisa dikembangkan kalau mau klik dropdown di mobile */
    }
    /* Simple fix: just show dropdown items in mobile list */
    .nav-item-dropdown:hover .dropdown-menu {
        display: block;
    }
}

@media (max-width: 480px) {
    .navbar {
        height: 55px;
        padding: 0 15px;
    }
    .nav-logo img {
        height: 90px;
    }
}
