/* Mobile Navigation Styles */
.vl-offcanvas {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: #ffffff !important;
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.vl-offcanvas.active {
    right: 0;
}

.vl-offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.vl-offcanvas-overlay.active {
    opacity: 1;
    visibility: visible;
}

.vl-offcanvas-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #032530;
    padding: 0.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.vl-offcanvas-toggle:hover {
    color: #6E9419;
}

.vl-offcanvas-toggle.active {
    color: #6E9419;
}

.vl-offcanvas-close-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #032530;
    padding: 0.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

.vl-offcanvas-wrapper {
    padding: 2rem 1.5rem;
    height: 100%;
}

.vl-offcanvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.vl-offcanvas-logo img {
    max-height: 40px;
}

.vl-offcanvas-menu .navbar-nav {
    flex-direction: column;
    gap: 0.5rem;
}

.vl-offcanvas-menu .nav-link {
    padding: 0.75rem 0;
    color: #032530;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    display: block;
    transition: color 0.3s ease;
}

.vl-offcanvas-menu .nav-link:hover,
.vl-offcanvas-menu .nav-link.active {
    color: #6E9419;
}

.vl-offcanvas-info span {
    display: block;
    margin-bottom: 0.5rem;
}

.vl-offcanvas-info a {
    color: #50514E;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vl-offcanvas-info a:hover {
    color: #6E9419;
}

.vl-offcanvas-social {
    margin-top: 2rem;
}

.vl-offcanvas-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 0.5rem;
    color: #032530;
    text-decoration: none;
    transition: all 0.3s ease;
}

.vl-offcanvas-social a:hover {
    background: #6E9419;
    color: #fff;
}

/* Body scroll lock when offcanvas is open */
body.offcanvas-open {
    overflow: hidden;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .vl-offcanvas {
        width: 100%;
        right: -100%;
    }

    .vl-offcanvas.active {
        right: 0;
    }
}

/* Ensure navbar is properly positioned */
.custom-navbar {
    z-index: 1000;
}

/* Mobile menu button styling */
.vl-header-action-item {
    display: flex;
    align-items: center;
}

/* Hide mobile menu on desktop screens */
@media (min-width: 992px) {
    .vl-offcanvas {
        display: none !important;
    }

    .vl-offcanvas-overlay {
        display: none !important;
    }

    .vl-header-action-item {
        display: none !important;
    }
}

/* Ensure mobile menu is visible only on mobile */
@media (max-width: 991px) {
    .vl-header-action-item {
        display: flex !important;
    }
}

/* Mobile Menu Text Colors for White Background */
.vl-offcanvas .vl-offcanvas-menu .nav-link {
    color: #374151 !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.vl-offcanvas .vl-offcanvas-menu .nav-link:hover {
    color: #28a745 !important;
}

.vl-offcanvas .vl-offcanvas-menu .nav-link.active {
    color: #28a745 !important;
    font-weight: 600;
}

.vl-offcanvas .vl-offcanvas-sm-title {
    color: #1f2937 !important;
    font-weight: 600;
}

.vl-offcanvas .vl-offcanvas-info span a {
    color: #6b7280 !important;
    transition: color 0.3s ease;
}

.vl-offcanvas .vl-offcanvas-info span a:hover {
    color: #374151 !important;
}

.vl-offcanvas .vl-offcanvas-info span a i {
    color: #9ca3af !important;
    margin-right: 8px;
}

.vl-offcanvas .vl-offcanvas-social a {
    color: #6b7280 !important;
    transition: color 0.3s ease;
}

.vl-offcanvas .vl-offcanvas-social a:hover {
    color: #28a745 !important;
}

.vl-offcanvas .vl-offcanvas-header {
    border-bottom: 1px solid #e5e7eb !important;
}

.vl-offcanvas .vl-offcanvas-logo img {
    filter: none !important;
}

.vl-offcanvas .vl-offcanvas-logo-link {
    display: block;
    transition: opacity 0.3s ease;
}

.vl-offcanvas .vl-offcanvas-logo-link:hover {
    opacity: 0.8;
}

/* WhatsApp Button in Mobile Menu */
.vl-offcanvas .btn-success {
    background-color: #6E9419 !important;
    border-color: #28a745 !important;
    color: #ffffff !important;
    transition: all 0.3s ease;
}

.vl-offcanvas .btn-success:hover {
    background-color: #218838 !important;
    border-color: #1e7e34 !important;
    color: #ffffff !important;
}

/* Ensure proper spacing and contrast */
.vl-offcanvas .vl-offcanvas-menu {
    margin-bottom: 2rem;
}

.vl-offcanvas .vl-offcanvas-info {
    margin-bottom: 2rem;
}

.vl-offcanvas .vl-offcanvas-social {
    margin-bottom: 1rem;
}