 .modern-search {
  position: relative;
  max-width: 450px;
  margin: 0 auto 40px;
}

.modern-search i {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: #888;
  font-size: 16px;
}

.modern-search input {
  width: 100%;
  padding: 14px 45px 14px 18px;
  border-radius: 50px;
  border: 1px solid #e5e5e5;
  font-size: 16px;
  background: #000000;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  color: #fff;
}

/* Hover */
.modern-search input:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Focus */
.modern-search input:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
}

/* Mobile */
@media (max-width: 480px) {
  .modern-search {
    max-width: 100%;
  }
}



.no-results {
  text-align: center;
  font-size: 18px;
  color: #777;
  margin-top: 40px;
  display: none;
}


.modern-search {
  position: relative;
}

.search-icon {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  color: #888;
}

.clear-search {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 16px;
  color: #999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

/* يظهر الزر لما المستخدم يكتب */
.modern-search input:not(:placeholder-shown) ~ .clear-search {
  opacity: 1;
  pointer-events: auto;
}

.clear-search:hover {
  color: #000;
}
