/* 
 * FIX DOUBLE ICONS
 * CSS untuk memperbaiki tampilan icon ganda pada submenu
 */

@media screen and (max-width: 768px) {
    /* Memperbaiki posisi container */
    .menu-item-container {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        justify-content: flex-start !important;
    }
    
    /* Memastikan hanya satu icon yang muncul */
    .dropdown-menu li a::before {
        display: none !important;
        content: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
    }
    
    /* Memastikan struktur menu tetap rapi */
    .dropdown-menu li a {
        padding: 0.7rem !important;
    }
    
    /* Styling untuk icon */
    .menu-item-container .menu-icon {
        margin-right: 10px !important;
        font-size: 1.2rem !important;
        min-width: 24px !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Styling untuk teks */
    .menu-item-container .menu-text {
        flex-grow: 1 !important;
        text-align: left !important;
    }
    
    /* Styling khusus untuk submenu terakhir (Website Development) */
    .dropdown-menu li:last-child .menu-item-container {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    .dropdown-menu li:last-child .menu-icon {
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin-right: 10px !important;
        width: 24px !important;
        min-width: 24px !important;
        height: 24px !important;
        text-align: center !important;
    }
    
    /* Styling khusus untuk submenu ke-5 (Website Development) */
    .dropdown-menu li:nth-child(5) .menu-item-container {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        justify-content: flex-start !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
        text-indent: 0 !important;
    }
    
    .dropdown-menu li:nth-child(5) .menu-icon {
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin-right: 10px !important;
        width: 24px !important;
        min-width: 24px !important;
        height: 24px !important;
        text-align: center !important;
        margin-left: 0 !important;
    }
    
    .dropdown-menu li:nth-child(5) .menu-text {
        flex-grow: 1 !important;
        text-align: left !important;
        display: inline-block !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
    
    /* Memperbaiki padding dan margin a element */
    .dropdown-menu li:nth-child(5) a {
        padding-left: 0.7rem !important;
        text-indent: 0 !important;
        padding-right: 0.7rem !important;
        margin-left: 0.5rem !important;
        margin-right: 0.5rem !important;
    }
}
