/* Dropdown styling */
.dropdown {
  position: absolute;
  top: 100%; /* Position directly below the input field */
  width: 100%;
  background-color: #181818;
  border: 1px solid #ccc;
  max-height: 300px; /* Limit height with scroll */
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: none; /* Hidden by default */
  padding: 0;
  margin-top: 0; /* Ensure no space above the dropdown */
}

/* Dropdown result item */
.search-result-item {
  display: flex; /* Align meta image and title */
  align-items: center;
  padding: 10px;
  cursor: pointer;
  font-size: 16px;
  border-bottom: 1px solid #eee; /* Divider between results */
  color: #c0c0c0;
}

/* Meta image styling */
.search-result-item img {
  width: 40px; /* Adjust size */
  height: 40px;
  object-fit: cover; /* Ensure images fit nicely */
  margin-right: 10px;
  border-radius: 4px; /* Optional rounded corners */
}

/* Remove bottom border from last result */
.search-result-item:last-child {
  border-bottom: none;
}

/* Adjust the container on small screens */
@media screen and (max-width: 768px) {
  .header__search {
  }

  .dropdown {
    max-height: 250px; /* Shorter max height on mobile */
    padding: 0;
  }

  .dropdown div {
    font-size: 14px; /* Smaller font size */
  }
}