/* Desktop Menu - Hidden on Mobile */
.desktop-menu {
    display: block;
    background-color: #ff8c00;
    padding: 0;
    margin: 0;
}

.desktop-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.desktop-menu > ul > li {
    position: relative;
}

.desktop-menu > ul > li > a {
    display: block;
    padding: 15px 25px;
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.desktop-menu > ul > li > a:hover {
    background-color: #e67e00;
}

.desktop-menu .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 100;
}

.desktop-menu li:hover > .submenu {
    display: block;
}

.desktop-menu .submenu li {
    border-bottom: 1px solid #e0e0e0;
}

.desktop-menu .submenu li:last-child {
    border-bottom: none;
}

.desktop-menu .submenu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.desktop-menu .submenu a:hover {
    background-color: #f0f0f0;
    color: #ff8c00;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    position: relative;
    background-color: #ff8c00;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 0;
    z-index: 1001;
    margin: 0;
    width: 100%;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.mobile-menu-toggle:hover {
    background-color: #e67e00;
}

.mobile-menu-toggle.active {
    background-color: #e67e00;
}

/* Hamburger Icon */
.hamburger-icon {
    display: inline-block;
    width: 24px;
    height: 18px;
    position: relative;
    vertical-align: middle;
}

.hamburger-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transition: .25s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
    top: 0px;
}

.hamburger-icon span:nth-child(2) {
    top: 7px;
}

.hamburger-icon span:nth-child(3) {
    top: 14px;
}

.mobile-menu-toggle.active .hamburger-icon span:nth-child(1) {
    top: 7px;
    transform: rotate(135deg);
}

.mobile-menu-toggle.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.mobile-menu-toggle.active .hamburger-icon span:nth-child(3) {
    top: 7px;
    transform: rotate(-135deg);
}

/* Down Arrow for Toggle Button */
.toggle-arrow {
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.3s ease;
    font-size: 14px;
}

.mobile-menu-toggle.active .toggle-arrow {
    transform: rotate(180deg);
}

.mobile-nav {
    display: none;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    overflow: hidden;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav > ul > li {
    border-bottom: 1px solid #e0e0e0;
}

.mobile-nav > ul > li:last-child {
    border-bottom: none;
}

.mobile-nav > ul > li > a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.mobile-nav > ul > li > a:hover {
    background-color: #f5f5f5;
    color: #ff8c00;
}

.mobile-nav .has-submenu > a {
    position: relative;
    padding-right: 45px;
}

.mobile-nav .has-submenu > a::after {
    content: '\25BC';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    transition: transform 0.3s ease;
}

.mobile-nav .has-submenu.open > a::after {
    transform: translateY(-50%) rotate(180deg);
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    background-color: #f9f9f9;
    transition: max-height 0.3s ease;
}

.mobile-submenu.active {
    max-height: 600px;
}

.mobile-submenu li {
    border-bottom: 1px solid #e8e8e8;
}

.mobile-submenu li:last-child {
    border-bottom: none;
}

.mobile-submenu a {
    display: block;
    padding: 12px 20px 12px 40px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
}

.mobile-submenu a:hover {
    background-color: #efefef;
    color: #ff8c00;
}

/* Responsive behavior */
@media (max-width: 1024px) {
    .desktop-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

@media (min-width: 1025px) {
    .mobile-menu-toggle,
    .mobile-nav {
        display: none !important;
    }
}