/* ========================================
   CUSTOM MOBILE MENU - Premium Design
   ======================================== */

/* Hide SlickNav completely on mobile */
@media (max-width: 991px) {

    .slicknav_menu,
    .responsive-menu {
        display: none !important;
    }
}

/* Custom Hamburger Button */
.custom-hamburger {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    padding: 12px;
    box-shadow: 0 4px 20px rgba(255, 203, 5, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-hamburger:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(255, 203, 5, 0.5);
}

.custom-hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hamburger animation when open */
.custom-hamburger.active {
    background: #fff;
}

.custom-hamburger.active span {
    background: var(--primary-color);
}

.custom-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.custom-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.custom-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Sidebar */
.custom-mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: linear-gradient(180deg, #001a3d 0%, #00102a 100%);
    z-index: 9999;
    overflow-y: auto;
    overflow-x: hidden;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
}

.custom-mobile-menu.active {
    left: 0;
}

/* Custom Scrollbar */
.custom-mobile-menu::-webkit-scrollbar {
    width: 6px;
}

.custom-mobile-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.custom-mobile-menu::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

/* Menu Header with Logo */
.custom-mobile-menu .menu-header {
    padding: 30px 25px 25px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 2px solid var(--accent-color);
    position: relative;
}

.custom-mobile-menu .menu-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 25px;
    width: 60px;
    height: 2px;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

.custom-mobile-menu .menu-header img {
    max-width: 180px;
    height: auto;
    filter: brightness(1.1);
}

/* Menu Items Container */
.custom-mobile-menu nav {
    padding: 10px 0;
    flex: 1;
}

.custom-mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-mobile-menu>nav>ul>li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.custom-mobile-menu>nav>ul>li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--accent-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.custom-mobile-menu>nav>ul>li:hover::before {
    transform: scaleY(1);
}

.custom-mobile-menu a {
    display: flex;
    align-items: center;
    padding: 16px 25px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.custom-mobile-menu>nav>ul>li>a {
    font-size: 16px;
}

.custom-mobile-menu a:hover {
    background: rgba(255, 203, 5, 0.1);
    padding-left: 30px;
    color: var(--accent-color);
}

/* Menu Icons */
.custom-mobile-menu .menu-icon {
    width: 20px;
    margin-right: 12px;
    font-size: 16px;
    color: var(--accent-color);
    text-align: center;
}

/* Submenu Styling */
.custom-mobile-menu .submenu {
    position: relative;
}

.custom-mobile-menu .submenu>a {
    justify-content: space-between;
}

.custom-mobile-menu .submenu>a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 14px;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.custom-mobile-menu .submenu.open>a::after {
    transform: rotate(180deg);
}

.custom-mobile-menu .submenu>ul {
    display: none;
    background: rgba(0, 0, 0, 0.3);
    border-left: 2px solid var(--accent-color);
    margin-left: 25px;
}

.custom-mobile-menu .submenu.open>ul {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-mobile-menu .submenu>ul>li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-mobile-menu .submenu>ul>li:last-child {
    border-bottom: none;
}

.custom-mobile-menu .submenu>ul>li>a {
    padding: 12px 25px 12px 15px;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
}

.custom-mobile-menu .submenu>ul>li>a::before {
    content: '›';
    margin-right: 8px;
    color: var(--accent-color);
    font-size: 18px;
}

.custom-mobile-menu .submenu>ul>li>a:hover {
    padding-left: 20px;
    color: #fff;
}

/* Menu Footer */
.menu-footer {
    padding: 20px 20px 25px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 2px solid rgba(255, 203, 5, 0.2);
    margin-top: auto;
    overflow: hidden;
}

.menu-footer-title {
    font-size: 11px;
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.menu-footer-title i {
    margin-right: 6px;
    font-size: 12px;
}

.menu-footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-footer-contact li {
    margin-bottom: 0;
    display: block;
}

.menu-footer-contact span {
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    display: block;
}

/* Overlay */
.custom-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.custom-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Show on mobile only */
@media (max-width: 991px) {
    .custom-hamburger {
        display: block;
    }
}

/* Desktop - hide custom menu */
@media (min-width: 992px) {

    .custom-hamburger,
    .custom-mobile-menu,
    .custom-menu-overlay {
        display: none !important;
    }
}

/* Mobile responsive */
@media (max-width: 480px) {
    .custom-mobile-menu {
        width: 270px;
    }

    .menu-footer {
        padding: 16px 16px 20px;
    }

    .menu-footer-title {
        font-size: 10px;
        margin-bottom: 10px;
    }

    .menu-footer-contact li {
        margin-bottom: 10px;
        gap: 6px;
    }

    .menu-footer-contact a,
    .menu-footer-contact span {
        font-size: 11px;
        line-height: 1.4;
    }

    .menu-footer-contact i {
        font-size: 11px;
        width: 12px;
        min-width: 12px;
    }
}

@media (max-width: 360px) {
    .custom-mobile-menu {
        width: 250px;
    }

    .menu-footer {
        padding: 14px 14px 18px;
    }

    .menu-footer-contact a,
    .menu-footer-contact span {
        font-size: 10px;
    }
}