/* Mobile Menu Styles */

/* Hide desktop menu on mobile */
@media (max-width: 991px) {
    .d-none.d-lg-block {
        display: none !important;
    }
    
    .d-block.d-lg-none {
        display: block !important;
    }
}

/* Mobile menu toggle button */
.vl-offcanvas-toggle {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
}

.vl-offcanvas-toggle:hover {
    background-color: #f5f5f5;
    border-color: #161A40;
}

.vl-offcanvas-toggle i {
    display: block !important;
    color: #161A40 !important;
    font-size: 20px !important;
}

.vl-offcanvas-toggle img {
    width: 24px;
    height: 24px;
}

/* Hamburger icon - Using FontAwesome now */

/* Mobile offcanvas menu */
.vl-offcanvas {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: #ffffff !important;
    background-color: #ffffff !important;
    z-index: 999999 !important;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 5px 0 20px rgba(0,0,0,0.1);
}

.vl-offcanvas-bg-1 {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

.vl-offcanvas.vl-offcanvas-open {
    left: 0;
}

/* Overlay / Backdrop */
.vl-offcanvas-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0,0,0,0.7) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 999998 !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.vl-offcanvas-overlay.vl-offcanvas-overlay-open {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Offcanvas wrapper */
.vl-offcanvas-wrapper {
    padding: 20px;
    background: #ffffff !important;
    background-color: #ffffff !important;
}

/* Offcanvas header */
.vl-offcanvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.vl-offcanvas-logo img {
    max-width: 150px;
}

.vl-offcanvas-close-toggle {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 5px;
}

.vl-offcanvas-close-toggle:hover {
    color: #FF3131;
}

/* Mobile menu navigation */
.vl-offcanvas-menu {
    margin-bottom: 30px;
}

.vl-offcanvas-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vl-offcanvas-menu ul li {
    border-bottom: 1px solid #f0f0f0;
}

.vl-offcanvas-menu ul li:last-child {
    border-bottom: none;
}

.vl-offcanvas-menu ul li a {
    display: block;
    padding: 12px 0;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.vl-offcanvas-menu ul li a:hover {
    color: #FF3131;
}

/* Dropdown menu */
.vl-offcanvas-menu ul li.has-dropdown {
    position: relative;
}

.vl-offcanvas-menu ul li.has-dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vl-offcanvas-menu ul li.has-dropdown > a span {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.vl-offcanvas-menu ul li.has-dropdown.active > a span {
    transform: rotate(90deg);
}

.vl-offcanvas-menu ul li .sub-menu {
    display: none;
    padding-left: 20px;
    padding-top: 10px;
}

.vl-offcanvas-menu ul li.has-dropdown.active .sub-menu {
    display: block;
}

.vl-offcanvas-menu ul li .sub-menu li {
    border-bottom: none;
}

.vl-offcanvas-menu ul li .sub-menu li a {
    padding: 8px 0;
    font-size: 14px;
    font-weight: 400;
}

/* Mobile menu close button */
.vl-menu-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #666;
    font-size: 14px;
    cursor: pointer;
}

/* Contact info in mobile menu */
.vl-offcanvas-info {
    margin-bottom: 30px;
}

.vl-offcanvas-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #161A40;
    margin-bottom: 15px;
}

.vl-offcanvas-info span {
    display: block;
    margin-bottom: 10px;
}

.vl-offcanvas-info span a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.vl-offcanvas-info span a:hover {
    color: #FF3131;
}

.vl-offcanvas-info span img {
    width: 16px;
    height: 16px;
    margin-right: 10px;
}

/* Social links in mobile menu */
.vl-offcanvas-social h3 {
    font-size: 18px;
    font-weight: 600;
    color: #161A40;
    margin-bottom: 15px;
}

.vl-footer-social ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
}

.vl-footer-social ul li a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 50%;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.vl-footer-social ul li a:hover {
    background: #FF3131;
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 575px) {
    .vl-offcanvas {
        width: 280px;
        left: -280px;
    }
    
    .vl-offcanvas-wrapper {
        padding: 15px;
    }
    
    .vl-offcanvas-menu ul li a {
        font-size: 15px;
        padding: 10px 0;
    }
}

/* Ensure proper display on mobile */
@media (max-width: 991px) {
    /* Make header sticky on mobile */
    .vl-header-area,
    .vl-header-area-2 {
        position: sticky !important;
        position: -webkit-sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
        background: #ffffff !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    }
    
    .vl-header-action-item {
        display: flex !important;
        justify-content: flex-end;
        align-items: center;
    }
    
    .vl-header-action-item > div {
        display: flex !important;
        align-items: center;
        gap: 10px;
    }
    
    /* Force hamburger menu icon color on all headers */
    .vl-offcanvas-toggle i,
    .vl-header-area .vl-offcanvas-toggle i,
    .vl-header-area-2 .vl-offcanvas-toggle i,
    .vl-transparent-header .vl-offcanvas-toggle i {
        color: #161A40 !important;
        display: inline-block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Prevent body shift when mobile menu opens */
body.mobile-menu-open {
    overflow-y: scroll !important;
    position: fixed !important;
    width: 100% !important;
}