/* Search Bar Styles */
.searchbar-div{
    text-align: center;
    width: 100%;
    max-width: 576px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.blog-search-wrapper {
    display: flex;
    position: relative;
    border-radius: 100px;
    border: 1px solid #E3E3E3;
    overflow: hidden;
}

.blog-search-input {
    flex: 1;
    border: none;
    padding: 16px 20px;
    font-size: 14px;
    outline: none;
    background: #fff;
    color: #333;
    width: 100%;
}

.blog-search-input::placeholder {
    color: #707070;
    font-size: 14px;
}

.blog-search-button {
    background: #EA3934;
    color: white;
    border: none;
    padding: 12px 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    font-weight: 600;
    letter-spacing: 0;
}

.blog-search-button:hover {
    background: #97211e;
}
.blog-search-button svg{
    display: none;
}
.min-chars-message {
    text-align: left;
}
.rtl .min-chars-message {
    text-align: right;
}
/* Loading Spinner */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #3A307F;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Search Results Message */
.search-results-message {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    padding: 10px 15px;
    background: #f8f8f8;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-results-reset {
    margin-left: 10px;
    color: #3A307F;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 500;
}

.search-results-reset:hover {
    color: #534AA4;
}

/* No Results Styling */
.no-posts-found {
    text-align: left;
    padding: 12px;
    margin: 0;
}
.rtl .no-posts-found{
    text-align: right;
}
@media (max-width: 1024px) {
    .searchbar-div{
        text-align: left;
        width: 100%;
        max-width: 100%;
    }
    .rtl .searchbar-div{
        text-align: right;
    }
}
@media (max-width: 768px) {
    .blog-search-container {
        max-width: 100%;
    }
    
    .blog-search-button {
        padding: 14px 17px;
        background-color: #3A307F;
    }
    .blog-search-button svg{
        display: flex;
    }
    .blog-search-button .search-text{
        display: none;
    }

    .search-results-message {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-results-reset {
        margin-left: 0;
        margin-top: 5px;
    }
}