/* Search container */
.search-container {
    position: relative;
    margin-right: 15px;
}

/* Search wrapper */
.search-wrapper {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 5px 10px;
    min-width: 200px;
}

/* Search input */
.search-input {
    border: none;
    background: transparent;
    padding: 5px 10px;
    font-size: 14px;
    width: 100%;
    outline: none;
}

/* Search submit button */
.search-submit {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-submit img {
    width: 18px;
    height: 18px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.search-submit:hover img {
    opacity: 1;
}

/* Search results dropdown */
.search-results {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 5px;
    display: none;
}

.search-results a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.search-results a:hover {
    background-color: #f5f5f5;
}

.search-results .search-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.search-results .search-excerpt {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.search-results .no-results {
    padding: 15px;
    color: #666;
    text-align: center;
}

/* Make search input visible on mobile */
@media (max-width: 768px) {
    .search-wrapper {
        width: 100%;
        margin: 10px 0;
    }
    
    .search-container {
        width: 100%;
        margin-right: 0;
    }
    
    .search-input {
        width: calc(100% - 40px);
    }
}
