/* ===================================
   Mobile Menu Redesign - Premium Look
   Voxa Digital
   =================================== */

.vl-offcanvas {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 450px !important;
    max-width: 100% !important;
    height: 100% !important;
    background: #0c0c11 !important;
    color: #ffffff !important;
    padding: 30px !important;
    display: flex !important;
    flex-direction: column !important;
    z-index: 1000 !important;
    transition: all 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0) !important;
    overflow-y: auto !important;
}

@media only screen and (max-width: 450px) {
    .vl-offcanvas {
        width: 100% !important;
    }
}

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

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

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

.vl-offcanvas-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Header */
.vl-offcanvas-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 50px !important;
    width: 100%;
}

.vl-offcanvas-header-right {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
}

.vl-offcanvas-close-toggle {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 28px !important;
    cursor: pointer !important;
    padding: 0 !important;
}

/* Nav Menu Styles - TRULY CENTERED */
.vl-offcanvas-menu {
    width: 100%;
    display: flex;
    justify-content: center;
}

.vl-offcanvas-menu nav {
    width: 100%;
}

.vl-offcanvas-menu nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vl-offcanvas-menu nav ul li {
    margin-bottom: 25px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.menu-item-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    cursor: pointer;
    padding: 5px 0;
}

.vl-offcanvas-menu nav ul li a {
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: inline-block;
}

.vl-offcanvas-menu nav ul li a:hover {
    color: #c084fc !important;
    transform: scale(1.05);
}

.submenu-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(147, 51, 234, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    /* Let the wrapper handle the click */
}

.submenu-toggle-icon.active {
    transform: rotate(180deg);
    background: #9333ea;
    border-color: #c084fc;
}

/* Submenu */
.vl-offcanvas-menu .sub-menu {
    width: 100% !important;
    max-height: 0;
    overflow: hidden !important;
    opacity: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    position: relative !important;
    visibility: visible !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    list-style: none !important;
    background: transparent !important;
    left: auto !important;
    top: auto !important;
}

.vl-offcanvas-menu .sub-menu.active {
    margin-top: 15px !important;
    margin-bottom: 15px !important;
    opacity: 1 !important;
    max-height: 2000px;
    /* Fallback if JS fails */
}

.vl-offcanvas-menu .sub-menu li {
    margin-bottom: 15px !important;
}

.vl-offcanvas-menu .sub-menu li a {
    font-size: 16px !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Info Section - TRULY CENTERED */
.vl-offcanvas-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: auto !important;
    padding-bottom: 30px !important;
}

.vl-offcanvas-sm-title {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 25px !important;
    text-align: center;
}

.vl-offcanvas-info-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    width: 100%;
}

.vl-offcanvas-info-links a {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 16px !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: color 0.3s ease;
    width: 100%;
}

.vl-offcanvas-info-links a i {
    color: #ffffff !important;
    font-size: 18px;
}

/* RTL handling for info links icons */
[dir="rtl"] .vl-offcanvas-info-links a {
    flex-direction: row-reverse;
}

.vl-offcanvas-info-links a:hover {
    color: #c084fc !important;
}

/* Social Icons */
.vl-offcanvas-social {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px !important;
}

.vl-offcanvas-social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.vl-offcanvas-social-icons a {
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 18px;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.vl-offcanvas-social-icons a:hover {
    border-color: #c084fc;
    color: #c084fc !important;
    background: rgba(192, 132, 252, 0.1);
}

/* Button */
.vl-offcanvas-btn {
    width: 100%;
    display: flex;
    justify-content: center;
}

.vl-offcanvas-btn a.vl-btn-redesign {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111118;
    color: #ffffff !important;
    width: 100%;
    max-width: 300px;
    height: 60px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none !important;
    border: 1px solid rgba(147, 51, 234, 0.4);
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.25);
    transition: all 0.3s ease;
}

.vl-offcanvas-btn a.vl-btn-redesign:hover {
    box-shadow: 0 0 30px rgba(147, 51, 234, 0.4);
    transform: translateY(-2px);
    border-color: #c084fc;
    background: #161620;
}

/* Language Switcher Overrides */
.vl-offcanvas-lang-switcher .voxa-lang-toggle-btn {
    background: #2d1d4d !important;
    border: 1px solid rgba(147, 51, 234, 0.4) !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
}

/* RTL Support - Consistency */
[dir="rtl"] .vl-offcanvas-header {
    flex-direction: row !important;
    /* Logo Right, Actions Left */
}

[dir="rtl"] .vl-offcanvas-lang-switcher .voxa-lang-toggle-btn {
    flex-direction: row-reverse;
    /* Icon Left, Text Right */
}

[dir="rtl"] .vl-offcanvas-menu nav ul li {
    text-align: center !important;
}

[dir="rtl"] .menu-item-wrapper {
    flex-direction: row;
    /* Text Right, Icon Left -> Visually Icon then Text */
}

[dir="rtl"] .vl-offcanvas-info-links a {
    flex-direction: row-reverse;
    /* Icon Left, Text Right -> Visually Icon then Text */
}