/* === Search Form Styling === */
.search-form {
  position: relative;
  width: 300px;
  margin: 40px auto;
}

.common-input {
  width: 100%;
  padding: 10px 16px;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 50px;
  outline: none;
  transition: all 0.2s ease;
}

.common-input:focus {
  border-color: hsl(209, 94%, 41%);
  box-shadow: 0 0 0 3px rgba(0, 110, 255, 0.15);
}

/* Search button */
.search-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  background: hsl(209, 94%, 41%);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.search-btn:hover {
  background: hsl(209, 94%, 36%);
}

/* === Dropdown Results === */
.search-results {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 10px 0;
  display: none;
  z-index: 9999;
  max-height: 320px;
  overflow-y: auto;
}

/* Each result item */
.result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  text-decoration: none;
  color: #111f62;
  transition: background 0.2s ease;
}

.result-item:hover {
  background: hsl(209, 94%, 41%, 0.1);
}

.result-item img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.course-info {
  display: flex;
  flex-direction: column;
}

.course-info .course-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.course-info .course-category {
  font-size: 0.8rem;
  color: #666;
}

/* Responsive */
@media (max-width: 768px) {
  .search-form {
    width: 90%;
  }
}
