.ajax-search-container {
    position: relative;
    display: inline-block;
    margin: 20px 0;
    direction: rtl;
}

.search-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 25px;

    background: #f0f0f000;
border: 2px solid #dddddd00;
}

.search-wrapper.expanded {
    width: 300px;
    background: white;
        overflow: unset;
        border: 2px solid #ddd;
}

.search-icon {
  position: absolute;
      top: 53%;
      right: 14px;
      transform: translateY(-50%);
      width: 29px;
      height: 29px;
      background-image: url('https://hashalhevet.org.il/wp-content/themes/shalhavotStaff/images/moreshet/SVG/i_search.svg');
      background-size: contain;
      background-repeat: no-repeat;
      cursor: pointer;
      z-index: 2;
      transition: all 0.3s ease;
      background-position: center;
}

/* להחלפת התמונה - שנה את ה-URL כאן */
.search-icon.custom-image {
    background-image: url('https://hashalhevet.org.il/wp-content/themes/shalhavotStaff/images/moreshet/SVG/i_search.svg');
}

#ajax-search-input {
    width: 100%;
    height: 46px;
    padding: 0 50px 0 20px;
    border: none;
    background: transparent;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease 0.1s;
    outline: none;
    direction: rtl;
}

.search-wrapper.expanded #ajax-search-input {
    opacity: 1;
}

#ajax-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: none;
}

.search-wrapper.expanded #ajax-search-results {
    display: block;
}

.search-results-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.search-results-list li {
    border-bottom: 1px solid #eee;
}

.search-results-list li:last-child {
    border-bottom: none;
}

.search-results-list a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
}

.search-results-list a:hover {
    background-color: #f5f5f5;
}

/* אנימציה נחמדה */
.search-wrapper:hover {
    transform: scale(1.05);
}

.search-wrapper.expanded:hover {
    transform: scale(1);
}
