/* ===== SIMPLE MOBILE MENU - NO PLUGIN ===== */

/* Header positioning */
.mainmenu__wrap {
    position: relative;
}

/* Hide desktop menu on mobile */
@media (max-width: 991px) {
    .main__menu__nav {
        display: none !important;
    }
}

/* Hide mobile menu on desktop */
@media (min-width: 992px) {
    .mobile-menu-area,
    #mobile-hamburger,
    #mobile-menu-sidebar {
        display: none !important;
    }
}

/* Hide original mobile menu source */
.mobile-menu {
    display: none !important;
}

/* Hamburger button container */
.mobile-menu-area {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    z-index: 9999;
}

/* Hamburger button */
#mobile-hamburger {
    width: 30px;
    height: 22px;
    position: relative;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

#mobile-hamburger span {
    display: block;
    position: absolute;
    width: 30px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
    left: 0;
}

#mobile-hamburger span:nth-child(1) {
    top: 0;
}

#mobile-hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

#mobile-hamburger span:nth-child(3) {
    bottom: 0;
}

/* Hamburger animation when open */
#mobile-hamburger.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

#mobile-hamburger.active span:nth-child(2) {
    opacity: 0;
}

#mobile-hamburger.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Mobile menu sidebar */
#mobile-menu-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: #fff;
    z-index: 9998;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
}

#mobile-menu-sidebar.active {
    left: 0;
}

/* Menu header */
#mobile-menu-sidebar .menu-header {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    text-align: right;
}

#mobile-menu-sidebar .menu-close {
    font-size: 24px;
    color: #333;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

#mobile-menu-sidebar .menu-close:hover {
    color: #2E86AB;
}

/* Menu list */
#mobile-menu-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#mobile-menu-sidebar ul li {
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

#mobile-menu-sidebar ul li a {
    display: block;
    padding: 16px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#mobile-menu-sidebar ul li a:hover {
    background: #f8f9fa;
    color: #2E86AB;
    padding-left: 25px;
}

/* Submenu toggle button */
#mobile-menu-sidebar ul li.has-submenu > a {
    padding-right: 50px;
}

#mobile-menu-sidebar .submenu-toggle {
    position: absolute;
    right: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    color: #2E86AB;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#mobile-menu-sidebar .submenu-toggle:hover {
    background: #f0f0f0;
}

#mobile-menu-sidebar .submenu-toggle.active {
    transform: rotate(180deg);
}

/* Submenu */
#mobile-menu-sidebar ul li ul {
    display: none;
    background: #f9f9f9;
}

#mobile-menu-sidebar ul li ul.active {
    display: block;
}

#mobile-menu-sidebar ul li ul li a {
    padding-left: 30px;
    font-size: 14px;
    color: #555;
}

#mobile-menu-sidebar ul li ul li a:hover {
    padding-left: 35px;
}

/* Overlay */
#mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9997;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* ===== DESKTOP MENU ALIGNMENT ===== */

/* Menu wrapper alignment */
.main__menu__nav {
    text-align: right;
}

/* Main menu styling */
.main__menu {
    display: inline-flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0;
}

.main__menu > li {
    white-space: nowrap;
    flex-shrink: 0;
}

.main__menu > li > a {
    padding: 10px 10px;
    display: block;
    font-size: 13px;
}

/* ===== HEADER TOP STYLING ===== */

/* Header top background */
.htc__header__top {
    background: #2c3e50 !important;
    padding: 0 !important;
    min-height: 0 !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
}

.htc__header__top .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.htc__header__top .row {
    margin: 0 !important;
}

/* Left side items */
.heaher__top__left {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    gap: 30px !important;
}

.heaher__top__left li {
    color: #fff !important;
    font-size: 11px !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.heaher__top__left li i {
    color: #F9BA32 !important;
    font-size: 12px !important;
}

.heaher__top__left li a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.heaher__top__left li a:hover {
    color: #F9BA32;
}

/* Right side button */
.header__top__right {
    text-align: right;
}

.heaher__top__btn a {
    display: inline-block;
    background: #F9BA32;
    color: #000;
    padding: 6px 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.heaher__top__btn a:hover {
    background: #e5a820;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Mobile header top adjustments */
@media (max-width: 767px) {
    .htc__header__top {
        padding: 8px 0;
    }

    .heaher__top__left {
        flex-direction: column;
        gap: 8px;
        font-size: 12px;
    }

    .heaher__top__left li i {
        font-size: 14px;
    }

    .header__top__right {
        text-align: center;
        margin-top: 10px;
    }

    .heaher__top__btn a {
        font-size: 12px;
        padding: 6px 20px;
    }
}
