#search-input {
    width: 100%;
    max-width: 300px; /* Set max width to avoid stretching */
    padding: 10px 15px;
    background-color: #222; /* Dark background */
    border: 2px solid #444; /* Subtle border */
    border-radius: 8px; /* Smooth rounded corners */
    color: #fff; /* Light text color */
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#search-input::placeholder {
    color: #aaa; /* Lighter placeholder color */
    font-style: italic;
}

#search-input:focus {
    border-color: #ff9e58; /* Highlighted border on focus */
    box-shadow: 0 0 10px rgba(255, 158, 88, 0.5); /* Subtle glow */
}

.header__search-container {
    display: flex;
    justify-content: center; /* Center align the search box */
    align-items: center;
    margin: 20px 0;
}
#search-results {
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    background: #333;
    border: 1px solid #444;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

#search-results div {
    padding: 10px;
    color: #ddd;
    border-bottom: 1px solid #444;
    cursor: pointer;
    transition: background 0.3s;
}

#search-results div:last-child {
    border-bottom: none;
}

#search-results div:hover {
    background: #444;
    color: #ff9e58;
}

/* Ensure consistent padding for search results */
#search-results {
    padding: 16px; /* Add padding around the results container */
    box-sizing: border-box; /* Include padding in the element's total size */
}

.result-item:last-child {
    margin-bottom: 0; /* Remove margin for the last item */
}