/* Search Overlay Styles */
#search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#search-overlay.active {
    display: flex;
    opacity: 1;
}

#search-input {
    width: 100%;
    max-width: 600px;
    padding: 15px 20px;
    font-size: 1.5rem;
    border: 2px solid #ddd;
    border-radius: 30px;
    outline: none;
    transition: border-color 0.3s ease;
}

#search-input:focus {
    border-color: #007bff;
}

#search-results {
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.search-result-item {
    margin-bottom: 15px;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: #f9f9f9;
}

.search-result-item a {
    text-decoration: none;
    color: #333;
}

.search-result-item h3 {
    margin: 0 0 5px;
    font-size: 1.2rem;
    color: #007bff;
}

.search-result-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

#close-search {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
    background: none;
    border: none;
}

.no-results {
    text-align: center;
    color: #999;
    font-style: italic;
}

/* Search Icon in Header */
#search-icon {
    cursor: pointer;
    margin-left: 15px;
    font-size: 1.2rem;
    color: #333;
    transition: color 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 10px;
    z-index: 1002;
    position: relative;
    opacity: 1 !important;
    visibility: visible !important;
}

#search-icon:hover {
    color: #007bff;
}
