.container {
    max-width: 1200px;
    margin: 0 auto;
}

.navbar {
    position: relative;
}

.main-menu .navbar {
    padding-top: 0;
    padding-bottom: 0;
}

.level-1 {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-link {
    color: white;
    padding: 20px 25px;
    display: block;
    text-decoration: none;
}

.main-link:hover {
    background: #34495e;
}

.level-2-accordion {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 85%;
    background: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    overflow-y: auto;
    border-radius: 10px;
}

.grid-container {
    display: flex;
    padding: 20px;
    gap: 20px;
}

.column {
    flex: 1;
    border-right: 1px solid #eee;
    padding-right: 15px;
}

.column:last-child {
    border-right: none;
}

.title {
    color: #3498db;
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.level-3, .level-4 {
    list-style: none;
    padding: 0;
}

.level-3 a, .level-4 a {
    display: flex;
    justify-content: space-between;
    padding: 4px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f9f9f9;
    font-size: 14px;
}

.level-3 a:hover, .level-4 a:hover {
    background: #f69b0f;
}

.level-4 {
    background: #f9f9f9;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.level-4 a {
    padding-left: 30px;
    font-size: 14px;
    color: #666;
}

.content.open {
    max-height: 75vh;
}

.arrow, .fa-plus {
    transition: transform 0.3s;
}

.active .arrow {
    transform: rotate(180deg);
}

.active .fa-plus {
    transform: rotate(45deg);
    color: #e74c3c;
}

@media (max-width: 768px) {
    .level-1 {
        flex-direction: column;
    }

    .grid-container {
        flex-direction: column;
    }

    .level-2-accordion {
        position: static;
    }
    .content.open {
        max-height: 55vh;
    }
}

.burger-btn {
    display: none;
    width: 40px;
    height: 45px;
    position: relative;
    margin: 30px auto;
    transform: rotate(0deg);
    transition: .5s ease-in-out;
    cursor: pointer;
}
.burger-btn .line {
    display: block;
    position: absolute;
    height: 6px;
    width: 100%;
    background: #82878C;
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}
@media (min-width: 993px) {
    .has-submenu:hover .level-2-accordion {
        visibility: visible;
        opacity: 1;
        max-height: 85vh;
    }

    .content.open {
        max-height: 55vh;
    }
}

@media (max-width: 992px) {
    .has-submenu {
        margin: 0;
        padding: 0;
    }
    .burger-btn { display: flex; }
    .level-1 {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    .level-1.active { display: flex; }

    .level-2-accordion {
        position: static;
        visibility: visible;
        opacity: 1;
        width: 100%;

    }
    .grid-container {
        flex-direction: column;
        padding: 0;
        gap: 0;
    }
}

.burger-btn span:nth-child(1) {
    top: 10px;
}
.burger-btn span:nth-child(2) {
    top: 21px;
}
.burger-btn span:nth-child(3) {
    top: 32px;
}
.burger-btn.open span:nth-child(1) {
    top: 18px;
    transform: rotate(135deg);
}
.burger-btn.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
}
.burger-btn.open span:nth-child(3) {
    top: 18px;
    transform: rotate(-135deg);
}

