/* ============================================================
   FIX: Logo and nav bar shift to the right on mobile

   Root cause: The nav <ul> uses overflow-x:auto (mobile-hor-swipe)
   but the grandparent div has text-center, which combined with
   the overflow scroll container creates a rightward offset.
   Nav items are inline-block with total width > screen width,
   so the scroll starts off-center and content appears shifted right.

   Upload to: public/assets/css/mobile-header-fix.css
   (Already linked in app.blade.php head - just replace the file)
   ============================================================ */

@media (max-width: 991.98px) {

    /* 1. Make nav container a column on mobile:
          logo on top, nav strip below, both left-aligned */
    .aiz-header .aiz-navbar .container > .d-lg-flex {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100% !important;
    }

    /* 2. Logo: full width, left-aligned (change to center if preferred) */
    .aiz-header .logo {
        width: 100% !important;
        text-align: left !important;
        flex-shrink: 0 !important;
    }

    /* 3. Nav ul: proper flex row from LEFT edge — eliminates right shift */
    .aiz-header ul.mobile-hor-swipe {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        white-space: nowrap !important;
        width: 100% !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
        text-align: left !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }

    /* Hide scrollbar visually - still scrollable by touch */
    .aiz-header ul.mobile-hor-swipe::-webkit-scrollbar {
        display: none !important;
    }

    /* 4. Nav items: flex items that don't shrink */
    .aiz-header ul.mobile-hor-swipe > li {
        display: flex !important;
        flex-shrink: 0 !important;
        align-items: center !important;
        padding-bottom: 0 !important;
    }
}