/* Standard Bootstrap mobile nav: header expands, links stack. */

@media (max-width: 991.98px) {
    html body {
        padding-top: 70px !important;
    }

    html body.mj-nav-open {
        overflow: hidden !important;
    }

    html body .container-fluid.sticky-top > .position-absolute {
        display: none !important;
    }

    html body .container-fluid.sticky-top {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 1050 !important;
        background: #fff !important;
        box-shadow: 0 2px 12px rgba(16, 33, 71, 0.08) !important;
        height: auto !important;
        min-height: 70px !important;
        max-height: none !important;
        overflow: visible !important;
    }

    html body.mj-nav-open .container-fluid.sticky-top {
        max-height: 100vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    html body .container-fluid.sticky-top .container,
    html body .container-fluid.sticky-top .navbar,
    html body .sticky-top .container .navbar {
        height: auto !important;
        min-height: 70px !important;
        max-height: none !important;
        overflow: visible !important;
    }

    html body .container-fluid.sticky-top .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    html body .navbar.navbar-expand-lg {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        background: #fff !important;
        padding: 4px 0 !important;
    }

    html body .navbar-brand,
    html body .container-fluid.sticky-top .navbar-brand {
        display: flex !important;
        align-items: center !important;
        max-width: calc(100% - 52px) !important;
        margin: 0 !important;
        padding: 0 !important;
        height: auto !important;
        overflow: visible !important;
    }

    html body .navbar-brand img,
    html body .navbar-logo,
    html body .sticky-top .navbar-brand img,
    html body .sticky-top .navbar-logo,
    html body .navbar-brand img.img-fluid,
    html body .navbar-logo.img-fluid {
        height: 48px !important;
        max-height: 48px !important;
        min-height: 0 !important;
        width: auto !important;
        max-width: 110px !important;
        object-fit: contain !important;
        object-position: left center !important;
        transform: none !important;
        will-change: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }

    html body .navbar-toggler,
    html body .navbar-toggler:hover,
    html body .navbar-toggler:focus,
    html body .navbar-toggler:active,
    html body .navbar-toggler:focus-visible {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 40px !important;
        height: 40px !important;
        padding: 0 !important;
        margin-left: auto !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        outline: none !important;
        order: 2;
    }

    html body .navbar-toggler .mj-burger {
        position: relative;
        display: block;
        width: 22px;
        height: 15px;
    }

    html body .navbar-toggler .mj-burger span {
        position: absolute;
        left: 0;
        width: 22px;
        height: 1.5px;
        background: #102147;
        border-radius: 1px;
        transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
    }

    html body .navbar-toggler .mj-burger span:nth-child(1) { top: 0; }
    html body .navbar-toggler .mj-burger span:nth-child(2) { top: 6.5px; }
    html body .navbar-toggler .mj-burger span:nth-child(3) { top: 13px; }

    html body .navbar-toggler[aria-expanded="true"] {
        background: transparent !important;
    }

    html body .navbar-toggler[aria-expanded="true"] .mj-burger span:nth-child(1) {
        top: 6.5px;
        transform: rotate(45deg);
    }

    html body .navbar-toggler[aria-expanded="true"] .mj-burger span:nth-child(2) {
        opacity: 0;
    }

    html body .navbar-toggler[aria-expanded="true"] .mj-burger span:nth-child(3) {
        top: 6.5px;
        transform: rotate(-45deg);
    }

    [data-theme="dark"] html body .navbar-toggler .mj-burger span {
        background: #e8eaed;
    }

    html body #navbarCollapse.collapse:not(.show) {
        display: none !important;
    }

    html body #navbarCollapse.show,
    html body #navbarCollapse.navbar-collapse.show {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: static !important;
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        flex-basis: 100% !important;
        flex-grow: 1 !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        order: 3;
        background: #fff !important;
        padding: 8px 0 12px !important;
        margin: 0 !important;
        border-top: 1px solid #eee;
    }

    html body #navbarCollapse.show .navbar-nav {
        display: block !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        margin: 0 !important;
        padding: 0 !important;
        height: auto !important;
    }

    html body #navbarCollapse.show .nav-item,
    html body #navbarCollapse.show .nav-link,
    html body #navbarCollapse.show a.nav-item.nav-link {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 12px 4px !important;
        height: auto !important;
        line-height: 1.4 !important;
        white-space: normal !important;
        text-align: left !important;
        color: #102147 !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        visibility: visible !important;
        opacity: 1 !important;
        overflow: visible !important;
    }

    html body #navbarCollapse.show .nav-item::before,
    html body #navbarCollapse.show .nav-item::after,
    html body #navbarCollapse.show a.nav-item::before,
    html body #navbarCollapse.show a.nav-item::after {
        content: none !important;
        display: none !important;
        border: 0 !important;
        width: 0 !important;
        height: 0 !important;
    }

    html body #navbarCollapse.show .nav-link.active,
    html body #navbarCollapse.show .nav-link:hover {
        color: #44D2F6 !important;
    }

    html body #navbarCollapse.show > .d-flex {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        width: 100% !important;
        margin: 10px 0 0 !important;
        padding: 12px 0 0 !important;
        gap: 10px !important;
        border-top: 1px solid #eee;
    }

    html body .navbar .mj-admin-btn {
        display: inline !important;
        margin-left: 4px;
        padding: 0;
        border: 0;
        background: none;
        color: #102147;
        font-size: 14px;
        font-weight: 600;
        text-decoration: underline;
        height: auto;
        border-radius: 0;
    }

    .about-img img,
    .service-img img,
    .project-img img,
    .team-img img {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

.mj-admin-entry {
    color: #44D2F6 !important;
    font-weight: 600;
    text-decoration: underline;
}

.navbar .mj-admin-btn {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    color: #102147;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    background: none;
    border: 0;
    padding: 0 8px;
    height: auto;
    border-radius: 0;
}

.navbar .mj-admin-btn:hover {
    color: #44D2F6;
}

@media (min-width: 992px) {
    .mj-menu { display: none !important; }
}
