.main-navigation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.main-navigation.active .menu::before {
    content: '';
    display: flex;
    width: 100%;
    margin: auto;
}
.menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu li {
    position: relative;
}

.menu a {
    display: block;
    padding: 12px 14px;
    text-decoration: none;
    /* color: #333; */
    transition: all 0.3s ease;
}
.menu .sub-menu a {
    color: #333;
} 

.menu .dropdown-toggle {
    display: inline-block;
    margin-left: 5px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.3s ease;
}

.sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: var(--light-bg);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
    border-radius: 12px
}

.menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu .sub-menu {
    top: 0;
    left: 100%;
}

.mobile-menu-btn.active {
    background: var(--primary-color);
}

.mobile-menu-btn {
    background: none;
    display: none;
    border: none;
    cursor: pointer;
    padding: 15px;
    z-index: 1000;
}

.burger-line {
    display: block;
    width: 25px;
    height: 2px;
    background: rgb(255, 255, 255);
    margin: 5px 0;
    transition: all 0.3s ease;
}

@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        max-height: 100%;
        background: var(--primary-color);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 999;
        overflow-y: auto;
        padding-top: 70px;
    }
    
    .main-navigation.active {
        right: 0;
    }
    
    .menu {
        flex-direction: column;
        padding: 0 20px;
    }
    
    .sub-menu {
        display: block !important;
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .menu li.menu-item-has-children.active > .sub-menu {
        max-height: 1000px;
    }
    
    .sub-menu .sub-menu {
        padding-left: 20px;
    }
    
    .mobile-menu-btn.active .burger-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .mobile-menu-btn.active .burger-line:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active .burger-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .menu .dropdown-toggle {
        position: absolute;
        right: 15px;
        top: 25px;
        transform: rotate(-90deg);
    }
    
    .menu li.menu-item-has-children.active > a .dropdown-toggle {
        transform: rotate(0deg);
    }
}

.wp-block-image img {
    display: block;
    margin: 2rem auto;
}