/* ===========================================
   MOBILE MENU STYLES
   =========================================== */

/* Mobile Menu Button */
.menu_btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
}

.menu_btn .hamburger-icon {
    display: block;
    width: 24px;
    height: 18px;
    position: relative;
    transition: all 0.3s ease;
}

.menu_btn .hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: #333;
    margin-bottom: 4px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu_btn .hamburger-icon span:last-child {
    margin-bottom: 0;
}

.menu_btn.active .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu_btn.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.menu_btn.active .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.menu_btn .menu-text {
    display: none;
    margin-left: 8px;
    font-size: 14px;
    font-weight: 500;
}

/* Mobile Menu Overlay */
.mobile-menu-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;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.mobile-menu-logo img {
    max-height: 40px;
    width: auto;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: #e9ecef;
    color: #000;
}

/* Mobile Menu Content */
.mobile-menu-content {
    padding: 20px 0;
}

.mobile-navigation {
    width: 100%;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-item:last-child {
    border-bottom: none;
}

.mobile-nav-link {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: #f8f9fa;
    color: #007bff;
    padding-left: 30px;
}

.mobile-nav-link:hover::before {
    content: "→";
    position: absolute;
    left: 15px;
    color: #007bff;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 991px) {
    .menu_btn {
        display: flex !important;
        align-items: center;
    }

    .menu_btn .menu-text {
        display: block;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 280px;
        right: -280px;
    }

    .mobile-menu-header {
        padding: 15px;
    }

    .mobile-menu-content {
        padding: 15px 0;
    }

    .mobile-nav-link {
        padding: 12px 15px;
    }
}

/* Body scroll lock when menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* Animation for menu items */
.mobile-nav-item {
    animation: slideInRight 0.3s ease-out forwards;
    opacity: 0;
    transform: translateX(20px);
}

.mobile-nav-item:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav-item:nth-child(2) { animation-delay: 0.15s; }
.mobile-nav-item:nth-child(3) { animation-delay: 0.2s; }
.mobile-nav-item:nth-child(4) { animation-delay: 0.25s; }
.mobile-nav-item:nth-child(5) { animation-delay: 0.3s; }
.mobile-nav-item:nth-child(6) { animation-delay: 0.35s; }
.mobile-nav-item:nth-child(7) { animation-delay: 0.4s; }

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hide existing hamburger menu styles */
.hamburger-area,
.body-overlay,
.hamburger-area .hamburger_bg,
.hamburger-area .hamburger_wrapper {
    display: none !important;
}