/* =========================================
   RESET & BASE
   ========================================= */
.nav-menu,
.nav-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
    box-sizing: border-box;
}

/* =========================================
   HEADER LAYOUT
   ========================================= */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
}

#logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 979px) {
    #logo {
        width: 100%;
    }

    .headerleft {
        display: none;
    }
}

/* =========================================
   MOBILE TRIGGER / HAMBURGER
   ========================================= */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    margin-left: 20px;
    position: relative;
    z-index: 10002;
}

@media (max-width: 979px) {
    .mobile-menu-toggle {
        display: flex;
    }
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    color: #5d0046;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    border-radius: 4px;
}

/* Keep the hamburger/X visible above the overlay */
.hamburger.active {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hamburger-box {
    width: 24px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    display: block;
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #5d0046;
    border-radius: 4px;
    transition:
        top 0.2s ease,
        bottom 0.2s ease,
        transform 0.2s ease,
        background-color 0.2s ease;
}

.hamburger-inner {
    top: 50%;
    margin-top: -1px;
}

.hamburger-inner::before {
    content: "";
    top: -8px;
}

.hamburger-inner::after {
    content: "";
    bottom: -8px;
}

/*
   Fixed X animation:
   Do NOT use opacity on .hamburger-inner here,
   because that would also hide ::before and ::after.
*/
.hamburger.active .hamburger-inner {
    background-color: transparent;
}

.hamburger.active .hamburger-inner::before {
    top: 0;
    transform: rotate(45deg);
}

.hamburger.active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* =========================================
   DESKTOP MENU
   Closer to original: normal weight, compact,
   no separators, no top-level arrow
   ========================================= */
.desktop-menu {
    display: none;
}

@media (min-width: 980px) {
    .desktop-menu {
        display: block;
    }
}

.desktop-menu .nav-menu {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    margin-top: 13px;
}

.desktop-menu .nav-item {
    position: relative;
}

.desktop-menu .nav-item > a {
    display: block;
    padding: 11px 25px;
    color: #5d0046;
    text-decoration: none;
    text-transform: uppercase;
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    font-weight: normal;
    font-size: 11px;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* Active / hover */
.desktop-menu .nav-item:hover > a,
.desktop-menu .nav-item.current > a,
.desktop-menu .nav-item.active > a {
    background:  #5d0046;
    color: #ffffff;
}

.desktop-menu .nav-item.current.active > a {
  background: url(../images/mainnav-active.gif) no-repeat left top #5d0046 !important
}



/* No top-level dropdown arrow, closer to your old version */
.desktop-menu .has-child > a::after {
    display: none;
}

/* Desktop dropdown */
.desktop-menu .nav-child {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 230px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-top: 3px solid #5d0046;
}

.desktop-menu .nav-item:hover > .nav-child {
    display: block;
}

.desktop-menu .nav-child li a {
    display: block;
    padding: 11px 25px;
    color: #333333;
    text-decoration: none;
    font-size: 11px;
    /*border-bottom: 1px solid #f4f4f4;*/
    text-transform: none;
    font-weight: normal;
    transition: all 0.2s ease;
}

.desktop-menu .nav-child li:hover > a {
    background: #5d0046;
    color: #ffffff;
    padding-left: 25px;
}

/* Second level dropdown */
.desktop-menu .nav-child .nav-child {
    top: 0;
    left: 100%;
    border-top: none;
    border-left: 3px solid #5d0046;
}

/* =========================================
   MOBILE OVERLAY
   ========================================= */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: #ffffff;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    overflow-y: auto;
    z-index: 99999999;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-overlay.active .mobile-menu-container {
    transform: translateX(0);
}

.mobile-menu-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    background: #fafafa;
}

.close-menu {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #5d0046;
    line-height: 1;
    padding: 0;
}

/* =========================================
   MOBILE MENU ITEMS
   ========================================= */
.mobile-menu-container .nav-item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-container .nav-item > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    text-decoration: none;
    color: #333333;
    font-weight: 500;
    font-size: 15px;
}

.mobile-menu-container .nav-item.current > a,
.mobile-menu-container .nav-item.active > a {
    color: #5d0046;
    font-weight: 700;
    background: #fdf8fc;
}

.mobile-menu-container .has-child > a::after {
    content: "+";
    font-size: 22px;
    color: #5d0046;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.mobile-menu-container .has-child.expanded > a::after {
    transform: rotate(45deg);
}

.mobile-menu-container .nav-child {
    display: none;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
}

.mobile-menu-container .nav-child.expanded {
    display: block;
}

.mobile-menu-container .nav-child li a {
    padding-left: 40px;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid #eee;
}

.mobile-menu-container .nav-child .nav-child li a {
    padding-left: 60px;
}

/* =========================================
   BODY SCROLL LOCK
   ========================================= */
body.menu-open {
    overflow: hidden;
    height: 100vh;
}