/*
*==========================================
*   Default Search  ( 11 - 68 )
*==========================================
*   Search suggestions ( 70 - 111 )
*==========================================
*   Responsive ( 113 - 142 )
*==========================================
*/

/*
 * Default Search
*/
.ssc-custom-search-results,
.smart-search-control-result-header,
.smarseco-default-search-container {
    max-width: 100%;
}

.smarseco-default-search-container {
    width: 100%;
    margin: 0 auto 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ssc-header-inner-wrapper {
    width: min(100%, 960px);
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.smarseco-default-search-bar-container {
    width: min(100%, 480px);
    min-height: 48px;
    margin: 0 auto;
}

.smarseco-default-search-bar {
    width: 100%;
    min-width: 0;
    background: inherit;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 0;
    min-height: 48px;
}

.ssc-flex {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-start;
    gap: 1.25rem;
    margin-top: 2rem;
}

.ssc-search-result-item {
    background: rgba(0, 0, 0, 0.02);
    padding: 1.25rem;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.ssc-search-result-item.ssc-list-view {
    display: flex;
    align-items: flex-start;
    width: min(100%, 960px);
    margin: 0 auto 1.5rem;
    gap: 1.25rem;
}

.ssc-search-result-item.ssc-grid-view {
    display: grid;
    width: min(100%, 320px);
}

.ssc-search-result-item img {
    width: 100%;
    display: block;
}

.ssc-search-result-item.ssc-list-view .ssc-post-content-wrapper {
    width: 100%;
    margin-left: 0;
}

.smarseco-default-search-btn {
    color: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    min-width: 48px;
    border: none;
    height: 100%;
    text-decoration: none;
    background: transparent;
    cursor: pointer;
}

.smarseco-default-search-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    color: inherit;
    border: none;
    flex-shrink: 0;
}

.smarseco-default-search-icon span {
    font-size: 20px;
    line-height: 1;
}

.smarseco-default-search-input {
    flex-grow: 1;
    border: none;
    outline: none;
    box-shadow: none;
    padding: 0.8rem 1rem;
    width: 100%;
    font-size: 1rem;
    background: transparent;
    line-height: 1.4;
}

/*
 * Search suggestions
*/
.search-suggestions {
    width: min(100%, 480px);
    min-width: 250px;
    margin: 0 auto;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 5px;
    display: none;
    z-index: 1000;
    position: relative;
}

.search-suggestions ul,
.search-suggestions .no-results {
    box-sizing: border-box;
    list-style: none;
    position: absolute;
    padding: 0;
    margin: 0;
    font-weight: 700;
    font-size: 16px;
    background: #fff;
    width: 100%;
    border: 1px solid #e4e4e4;
    border-radius: 5px;
}

.search-suggestions li {

    padding: 5px 15px !important;   
    cursor: pointer;
}

.search-suggestions li a{
    text-decoration: none;
}

.search-suggestions li:hover {
    background-color: #D6EAF8 ;
}

.search-suggestions .no-results {
    padding: 10px 15px;
    color: #5DADE2;
}

.highlighted {
    background-color: #D6EAF8 ;
    border-left: 2px solid #5DADE2 ;
}
.see-more {
    padding: 15px;
    display: inline-block;
    color: #5DADE2;
    font-weight: 700;
    float: right;
    border: none;
    outline: none;
    cursor: pointer;
}

.see-more a {
    color: inherit;
    text-decoration: none;
}
.smart-search-control-no-result{
    text-align: center;
}

.smart-search-control-no-result h2{
    margin: 0;
}


/* 
 *Pagination Styling
*/
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination a, .pagination span {
    padding: 8px 14px;
    margin: 0 3px;
    background-color: #fff;
    color: #2271b1;
    font-weight: 600;
    font-size: 14px;
    border-radius: 50px;
    text-decoration: none;
    transition: 0.3s;
}

.pagination a:hover {
    background-color: #2271b1;
    color: #fff;
}

.pagination .current {
    background-color: #2271b1;
    color: #fff;
}

.pagination .disabled {
    background-color: #eaeaea;
    color: #ccc;
}
.ssc-view-option-wrapper {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
    flex-wrap: wrap;
}

.ssc-view-option-wrapper .ssc-button {
    padding: 0.55rem 0.9rem;
    font-size: 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ssc-view-option-wrapper .ssc-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ssc-list-view .ssc-view-option-wrapper .ssc-btn-background {
    background: transparent;
    border-color: rgba(0, 0, 0, 0.12);
}

.ssc-list-view .ssc-post-featured-wrapper {
    flex: 0 0 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ssc-grid-view .ssc-post-featured-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.ssc-grid-view .ssc-post-featured-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.ssc-post-featured-wrapper img {
    width: 100%;
    height: 100%;
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.03);
    padding: 6px;
}

.ssc-view-option-wrapper .ssc-button span {
    vertical-align: middle;
}

.ssc-full-width {
    width: 100%;
}

.ssc-responsive-width {
    width: min(100%, 220px);
}

.search-title strong {
    font-weight: 700;
    background-color: #FFD700;
    color: #333;
    padding: 2px 6px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(255, 215, 0, 0.4);
}

.search-excerpt strong {
    font-weight: 700;
    background-color: #FFD700;
    color: #333;
    padding: 2px 6px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(255, 215, 0, 0.4);
}

/*
 *Responsive
*/
@media ( max-width: 992px ) {
    .smarseco-default-search-bar {
        width: 100%;
    }
}

@media ( max-width: 1050px ) {
    .ssc-search-result-item.ssc-grid-view {
        width: min(100%, 320px);
    }
}

@media ( max-width: 768px ) {
    .smarseco-default-search-bar,
    .search-suggestions {
        width: 100%;
    }

    .smarseco-default-search-bar-container {
        width: 100%;
    }

    .search-title {
        font-size: 1.2em;
    }

    .search-excerpt {
        font-size: 0.95em;
    }
}

@media ( max-width: 600px ) {
    .ssc-search-result-item.ssc-list-view,
    .ssc-custom-search-results.ssc-flex {
        display: block;
    }

    .ssc-custom-search-results .ssc-post-featured-wrapper,
    .ssc-search-result-item.ssc-list-view {
        width: 100%;
    }

    .ssc-view-option-wrapper {
        display: none;
    }

    .ssc-search-result-item.ssc-grid-view {
        width: 100%;
    }

    .ssc-search-result-item {
        margin-bottom: 20px;
    }
}

@media ( max-width: 480px ) {
    .smarseco-default-search-input {
        width: 100%;
        min-width: 0;
    }

    .search-title {
        font-size: 1.1em;
    }
}