/* NAVIGATION BUG FIX */

        /* iOS Mobile Navigation Fix */
        @media (max-width: 1023px) {
            /* Force hardware acceleration and fix transform issues */
            header#pq-header .pq-bottom-header .navbar .navbar-collapse {
                -webkit-transform: translateZ(0);
                transform: translateZ(0);
                -webkit-backface-visibility: hidden;
                backface-visibility: hidden;
                -webkit-perspective: 1000;
                perspective: 1000;
            }

            /* Ensure proper overflow and positioning */
            header#pq-header .pq-bottom-header .navbar {
                overflow: visible !important;
            }

                /* Fix for iOS scroll and rendering issues */
                header#pq-header .pq-bottom-header .navbar .navbar-collapse {
                    overflow: visible !important;
                    max-height: none !important;
                    -webkit-overflow-scrolling: touch;
                }

                    /* Alternative fix: Force repaint on iOS */
                    header#pq-header .pq-bottom-header .navbar .navbar-collapse.show {
                        -webkit-transform: translate3d(0, 0, 0);
                        transform: translate3d(0, 0, 0);
                    }
        }

        /* iOS Safari specific fixes */
        @supports (-webkit-touch-callout: none) {
            @media (max-width: 1023px) {
                header#pq-header .pq-bottom-header .navbar .navbar-collapse {
                    position: absolute !important;
                    width: 100% !important;
                    left: 0 !important;
                    top: 100% !important;
                    display: block !important;
                    visibility: hidden;
                    opacity: 0;
                    transition: opacity 0.35s ease, visibility 0.35s ease;
                }

                    header#pq-header .pq-bottom-header .navbar .navbar-collapse.show {
                        visibility: visible !important;
                        opacity: 1 !important;
                    }

                    /* Remove the default bootstrap collapse behavior for iOS */
                    header#pq-header .pq-bottom-header .navbar .navbar-collapse.collapsing {
                        height: auto !important;
                    }
            }
        }
/* END NAVIGATION BUG FIX */