#primary-menu li {
    position: relative;
}

.dropdown-menu {
    display: none !important;
}

#primary-menu > li:hover .dropdown-menu {
    display: block !important;
    animation: fadeInDown 0.3s ease-out;
    min-width: 300px;
    width: max-content;
}

.sub-dropdown-menu {
    display: none !important;
}

.dropdown-menu > li:hover > .sub-dropdown-menu {
    display: block !important;
    animation: fadeInRight 0.3s ease-out;
    min-width: 250px;
    width: max-content;
}

.sub-dropdown-menu:hover {
    display: block !important;
}

.dropdown-menu > li:hover .sub-dropdown-menu {
    display: block !important;
}

.sub-dropdown-menu .sub-dropdown-menu {
    display: none !important;
}

.sub-dropdown-menu > li:hover > .sub-dropdown-menu {
    display: block !important;
    animation: fadeInRight 0.3s ease-out;
    min-width: 200px;
    width: max-content;
}

.sub-dropdown-menu .sub-dropdown-menu:hover {
    display: block !important;
}

#primary-menu > li:not(:hover) .dropdown-menu {
    display: none !important;
}

.dropdown-menu > li:not(:hover) .sub-dropdown-menu {
    display: none !important;
}

.sub-dropdown-menu > li:not(:hover) .sub-dropdown-menu {
    display: none !important;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#mobile-search-input {
    transition: all 0.3s ease-in-out;
}

#mobile-search-input.hidden {
    display: none;
}

#mobile-search-field {
    font-size: 16px;
}

#mobile-search-close {
    transition: color 0.2s ease-in-out;
}

#mobile-search-close:hover {
    color: #1f93f5;
}

.mobile-navigation {
    display: block !important;
}

#mobile-menu::-webkit-scrollbar {
    width: 6px;
}

#mobile-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

#mobile-menu::-webkit-scrollbar-thumb {
    background: #1f93f5;
    border-radius: 3px;
}

#mobile-menu::-webkit-scrollbar-thumb:hover {
    background: #1f93f5;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
}

.search-form input[type="search"] {
    padding-right: 2.5rem !important;
}

.search-form button[type="submit"],
.search-form button[type="button"] {
    pointer-events: auto;
    z-index: 10;
}