:root {
    --clr-text-default: #4c535a; /* Teks abu-abu gelap */
    --clr-active-bg: #766ee4; /* Latar belakang Pill/Badge (ungu) */
    --clr-active-text: #fff; /* Teks putih untuk kontras */
    --clr-bg: #fff;
}

/* ----------------------------- */
/* BASE STYLE & POSITIONING      */
/* ----------------------------- */
.navigation-wrapper {
    position: fixed;
    top: 0; /* POSISI MENU DI ATAS */
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    background: var(--clr-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navigation {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 55px; /* Tinggi navigasi */
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.navigation ul {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    justify-content: space-around;
}

.navigation ul li {
    position: relative;
    height: 40px; /* Tinggi item di dalam navigasi */
    margin: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.navigation ul li a {
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 10px;
    border-radius: 20px; /* Bentuk Pill/Badge */
    transition: background-color 0.3s ease;
}

/* ----------------------------- */
/* TEXT & ACTIVE STYLES          */
/* ----------------------------- */
.navigation ul li a .text {
    color: var(--clr-text-default);
    font-weight: 500;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

/* GAYA PILL/BADGE AKTIF */
.navigation ul li.active a {
    background-color: var(--clr-active-bg);
    box-shadow: 0 4px 8px rgba(118, 110, 228, 0.4);
}

.navigation ul li.active a .text {
    color: var(--clr-active-text);
}

/* Efek Hover */
.navigation ul li:not(.active) a:hover .text {
    color: var(--clr-active-bg);
}

/* ---------------------------------------------------- */
/* RESPONSIF FINAL: Memastikan 6 Menu Masuk (Flex Force) */
/* ---------------------------------------------------- */
@media (max-width: 768px) {
    .navigation-wrapper {
        box-shadow: none !important;
        border-bottom: 1px solid #eee !important;
    }

    .navigation {
        max-width: 100% !important;
        padding: 0 5px !important; 
        height: 45px !important;
    }

    .navigation ul {
        display: flex !important;
        width: 100% !important;
        justify-content: space-around !important;
        
        /* Matikan fitur scroll yang membatasi tampilan */
        overflow-x: hidden !important; 
        white-space: normal !important;
    }

    .navigation ul li {
        /* KUNCI: Membagi ruang secara merata (1/6 dari lebar total) */
        height: 35px !important;
        margin: 0 2px !important; /* Margin antar item sangat kecil */
        padding: 0 !important;
        
        flex-grow: 1 !important; /* Memaksa item untuk berbagi ruang sama rata */
        flex-basis: 0 !important; 
        flex-shrink: 1 !important;
        
        overflow: hidden !important;
    }

    .navigation ul li a {
         padding: 0 4px !important; /* Padding di dalam badge minimal */
    }
    
    .navigation ul li a .text {
        font-size: 0.7em !important; /* KUNCI: Ukuran font sangat kecil untuk 6 item */
        text-align: center !important; 
        white-space: nowrap !important; /* Cegah teks pindah baris */
        overflow: hidden !important;
        text-overflow: ellipsis !important; /* Tambahkan ... jika teks terpotong */
    }
    
    /* Hapus bayangan agar tampilan lebih bersih di HP */
    .navigation ul li.active a {
        box-shadow: none !important;
    }
}