#search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#search-modal .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #f9fbfc 0%, #ffffff 100%);
    width: 80%;
    max-width: 650px;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
    animation: slideIn 0.3s ease-in-out;
    overflow: hidden;
}

@keyframes slideIn {
    from {
        top: 45%;
        opacity: 0;
    }

    to {
        top: 50%;
        opacity: 1;
    }
}

#search-modal .search-box {
    width: 100%;
    padding: 16px 20px;
    font-size: 18px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    color: #32325d;
}

#search-modal .search-box:focus {
    border-color: #6772e5;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
}

#search-modal .close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #8898aa;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

#search-modal .close-button:hover {
    color: #32325d;
    background-color: #f0f4f8;
}

#search-results {
    margin-top: 25px;
    max-height: 350px;
    overflow-y: auto;
    border-top: 2px solid #f0f4f8;
    padding-top: 20px;
}

#search-results::-webkit-scrollbar {
    width: 8px;
}

#search-results::-webkit-scrollbar-thumb {
    background-color: #d1dce8;
    border-radius: 4px;
}

#search-results .result-item {
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
}

#search-results .result-item:hover {
    background-color: #f6f9fc;
    transform: translateX(5px);
}

#search-results .result-title {
    font-weight: 600;
    color: #32325d;
    font-size: 16px;
    margin-bottom: 6px;
}

#search-results .result-excerpt {
    color: #6b7c93;
    font-size: 14px;
    line-height: 1.5;
}

#search-results .result-item:empty {
    text-align: center;
    padding: 40px 0;
    color: #8898aa;
}

.sub-menu {
    visibility: hidden;
    position: absolute;
    top: calc(100% + 1px);
    transition: all 0.3s ease, visibility 0.3s;
    opacity: 0;
    left: 10px;
    min-width: 200px;
    background-color: #fff;
    padding: 0;
    border-radius: 0.375rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.menu-item-has-children:hover>.sub-menu {
    visibility: visible;
    opacity: 1;
}

.menu-item-has-children {
    position: relative;
}

@media (max-width: 768px) {
    .sub-menu {
        position: static;
        box-shadow: none;
        padding-left: 1rem;
        min-width: auto;
        visibility: hidden;
        opacity: 1;
        transition: all 0.3s ease, visibility 0.3s;
    }

    .menu-item-has-children:hover>.sub-menu {
        visibility: hidden;
    }

    .menu-item-has-children.active>.sub-menu {
        visibility: visible;
    }
}

.sub-menu .sub-menu {
    left: 100%;
    top: 0;
}

.sub-menu li {
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.sub-menu li:hover {
    background-color: #f3f4f6;
    transform: translateX(5px);
}

.sub-menu a {
    color: #374151;
    white-space: nowrap;
}

.current-menu-item > a,
.current-menu-parent > a {
    color: var(--primary-color, #6772e5);
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}
.animate-slide-up {
    animation: slideUp 0.5s ease-out;
}
.bg-gradient-primary {
    background: linear-gradient(135deg, #165DFF 0%, #0A36B1 100%) !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}