.mobile-navbar .header {
    padding: 0.5rem !important;
}

#searchForm {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 1000;
    width: 100%;
    height: 100%;
    top: 0;
    padding-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
}

#search {
    width: 700px;
    max-width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
    text-align: center;
    border-radius: 5px 5px 0 0;
    border: 2px solid var(--green-color);
    color: var(--green-color);
}

#search:focus {
    outline: none;
    box-shadow: none;
}

.search-results {
    border: 2px solid var(--green-color);
    background-color: #fff;
    border-radius: 0 0 5px 5px;
    max-height: 80%;
    overflow-y: auto;
    width: 700px;
    max-width: 100%;
}
.result {
    padding: 10px;
    cursor: pointer;
}
.result:hover {
    background-color: #eee;
}

.result a {
    display: flex;
    gap: 1rem;
    color: #444;
    text-decoration: none;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}

.result img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
}

.result a div {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result a .category {
    color: #999;
    font-size: 1rem;
}

.result a .title {
    font-size: 1.3rem;
}

.not-found {
    padding: 10px;
    text-align: center;
    font-size: 1.2rem;
    color: #f34;
}

.search-close {
    position: absolute;
    top: 10px;
    right: -20px;
    font-size: 0.8rem;
    cursor: pointer;
    background: #fff;
    padding: 5px 7px;
    border-radius: 50%;
    border: 3px solid #666;
}

@media (max-width: 700px) {
    .search-input {
        width: 90%;
    }
    .search-results {
        width: 90%;
    }
    .result a .category {
        font-size: 1rem;
    }
    .result a .title {
        font-size: 1.2rem;
    }
    .search-close {
        top: -40px;
        right: -15px;
    }
}
