.cas-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    position: relative;
    max-width: 50%;
}
.cas-input {
    font-family: 'Onest';
    font-size: 16px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d7d7d7;
    border-radius: 3px;
    outline: none;
}
.cas-input::placeholder {
    color: #222222;
    font-size: 16px;
} 
.cas-input:focus {
    border-color: #999;
}
.cas-results {
    flex-direction: column;
    display: none;
    position: absolute;
    left: 0!important; 
    top: 40px!important;
    right: 0;
    margin-top: 6px;
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius:3px;
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
    list-style: none;
    padding: 6px;
    z-index: 9999;
    max-height: 380px;
    overflow: auto;
    flex-direction: column;
}

.cas-item { 
    display: flex;
    position: relative;
    padding: 6px;
    border-radius: 3px; 
}

.cas-item:hover { 
    background: #f6f7f9; 
}

.cas-link {
    font-family: 'Onest';
    display: flex;
    gap: 10px;
    align-items: center;
    text-decoration: none;
    color: #222;
}

.cas-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 3px;
    flex: 0 0 44px;
    background: #f0f0f0;
}

.cas-text { 
    font-family: 'Onest';
    display: flex; 
    flex-direction: column; 
    gap: 2px;
    text-align: left; 
}

.cas-title { 
    font-family: 'Onest';
    font-size: 16px;
    font-weight: 600; 
    line-height: 18px; 
    text-align: left;
}

.cas-meta { 
    font-size: 14px; 
    color: #222222; 
}

.cas-tags { 
    color: #777; 
}

.cas-noresults {
    font-size: 16px;
    text-align: left !important;
    font-family: 'Onest';
    padding: 10px;
    color: #666;
    text-align: left;

}

#custom-ajax-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    display: none;
    line-height: 1;
}

#custom-ajax-search-clear:hover {
    color: #222222;
}

@media (max-width: 576px) {
    .cas-wrapper {
        max-width: 90%;
    }
}