.navbar-link {
    position: relative;
    display: inline-block;
    padding: 8px 0;
    overflow: hidden;
}

.navbar-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #D4A536;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-out;
}

/* Memicu animasi HANYA saat link di-hover */
.navbar-link:hover::after {
    transform: scaleX(1);
}

/* Menampilkan garis secara permanen untuk link yang aktif (tanpa perlu hover) */
.navbar-link.active::after {
    transform: scaleX(1);
}

#mobile-menu a {
    position: relative;
    transition: color 0.2s ease;
    width: fit-content;
    /* <-- TAMBAHKAN BARIS INI */
}

/* Biarkan aturan CSS lainnya tetap sama */

#mobile-menu a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #D4A536;
    transition: all 0.3s ease-out;
    transform: translateX(-50%);
}

#mobile-menu a:hover::after {
    width: 70%;
}

#mobile-menu a:hover::after {
    width: 70%;
}