.search-wrapper {
    position: relative;
}

#search-results {
    display: none;
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    min-width: 320px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    max-height: 400px;
    overflow-y: auto;
}

#search-results.active {
    display: block;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    transition: 0.2s;
}

.search-item:hover {
    background: #f0f6ff;
}

.search-item-type {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: #005baa;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: capitalize;
    white-space: nowrap;
}

.search-item-title {
    font-size: 14px;
    color: #24364b;
    font-weight: 500;
}

.search-loading,
.search-no-result {
    padding: 15px 18px;
    font-size: 14px;
    color: #888;
    text-align: center;
}

.search-show-all {
    display: block;
    text-align: center;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    border-top: 1px solid #eee;
    transition: 0.2s;
    background: #1a3c65;
}

.search-show-all:hover {
    background: #F4A300;
    color: white;
}

/*SEARCH PAGE*/
.vwt-search-page {
    margin-top: 140px;
    min-height: 80vh;
    background: #f7f9fc;
}

/* Hero */
.vwt-search-hero {
    background: #fff;
    border-bottom: 1px solid #e8edf3;
    padding: 0px 40px;
}

.vwt-search-hero h1 {
    color: #1a2b3c;
    font-size: 22px;
    font-weight: 600;
    margin: 0;
}

.vwt-search-hero h1 span {
    color: #005baa;
}

.vwt-search-hero p {
    color: #6b7c93;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 400;
}

/* Layout */
.vwt-search-container {
    display: flex;
    gap: 0;
    max-width: 80%;
    margin: 0 auto;
}

/* Sidebar */
.vwt-search-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid #e8edf3;
    min-height: calc(100vh - 200px);
    padding: 20px 0;
    position: sticky;
    top: 140px;
    height: fit-content;
    align-self: flex-start;
    margin-top: 23px;
    border-radius: 10px;
}

.vwt-cat-filter {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vwt-cat-filter li {
    padding: 13px 28px;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    cursor: pointer;
    transition: 0.15s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid transparent;
}

.vwt-cat-filter li:hover {
    background: #f0f6ff;
    color: #005baa;
    border-left-color: #005baa;
}

.vwt-cat-filter li.active {
    background: #f0f6ff;
    color: #005baa;
    font-weight: 600;
    border-left-color: #005baa;
}

.vwt-cat-count {
    font-size: 12px;
    color: #999;
    font-weight: 400;
}

.vwt-cat-filter li.active .vwt-cat-count {
    color: #005baa;
}

/* Results Area */
.vwt-search-results-area {
    flex: 1;
    padding: 24px 32px;
}

/* Result Card */
.vwt-result-card {
    display: flex;
    gap: 0;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 4px;
    margin-bottom: 12px;
    transition: 0.2s;
    overflow: hidden;
}

.vwt-result-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-color: #c5d5e8;
}

/* Card Image */
.vwt-result-img {
    width: 140px;
    height: 110px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f0f4f8;
}

.vwt-result-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.vwt-result-card:hover .vwt-result-img img {
    transform: scale(1.03);
}

.vwt-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c5d5e8;
    font-size: 28px;
}

/* Card Body */
.vwt-result-body {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.vwt-result-type {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: #005baa;
    background: #e8f0fb;
    padding: 2px 10px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.vwt-result-body h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1a2b3c;
    line-height: 1.4;
    margin: 0;
}

.vwt-result-body h3 a {
    text-decoration: none;
    color: inherit;
    transition: 0.15s;
}

.vwt-result-body h3 a:hover {
    color: #005baa;
}

.vwt-result-body p {
    font-size: 13px;
    color: #6b7c93;
    line-height: 1.6;
    margin: 0;
}

.vwt-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #005baa;
    text-decoration: none;
    margin-top: 4px;
    transition: 0.15s;
}

.vwt-learn-more:hover {
    gap: 8px;
}

.vwt-learn-more i {
    font-size: 11px;
}

/* Loading */
.vwt-loading {
    text-align: center;
    padding: 80px 20px;
    font-size: 15px;
    color: #6b7c93;
}

.vwt-loading::before {
    content: '';
    display: block;
    width: 32px;
    height: 32px;
    border: 3px solid #e8edf3;
    border-top-color: #005baa;
    border-radius: 50%;
    animation: vwtSpin 0.8s linear infinite;
    margin: 0 auto 16px;
}


.vwt-pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
}

.vwt-pagination-top {
    margin-bottom: 30px;
}

.vwt-pagination-bottom {
    margin-top: 10px;
    padding: 0px 50px 20px 0px;
}

.vwt-page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.vwt-page-btn.active {
    background: #000;
    /* apna primary color */
    color: #fff;
    border-color: #000;
}

.vwt-page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.vwt-page-dots {
    min-width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #999;
}
@media (max-width: 425px) {
    .vwt-pagination {
        justify-content: center;
    }

    .vwt-search-sidebar {
        display: none !important;
    }
}

@keyframes vwtSpin {
    to {
        transform: rotate(360deg);
    }
}

.vwt-no-result {
    text-align: center;
    padding: 80px 20px;
    font-size: 15px;
    color: #6b7c93;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 4px;
}

/* Responsive */
@media(max-width: 768px) {
    .vwt-search-page {
        margin-top: 60px;
    }

    .vwt-search-container {
        flex-direction: column;
    }

    .vwt-search-sidebar {
        width: 100%;
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid #e8edf3;
        padding: 10px 0;
        z-index: 999;
        top: 80px !important;
    }

    .vwt-cat-filter {
        display: flex;
        flex-wrap: wrap;
        padding: 8px;
        gap: 6px;
    }

    .vwt-cat-filter li {
        border-left: none;
        border-radius: 20px;
        padding: 6px 14px;
        font-size: 13px;
        border: 1px solid #e8edf3;
    }

    .vwt-cat-filter li.active {
        background: #005baa;
        color: #fff;
        border-color: #005baa;
    }

    .vwt-search-results-area {
        padding: 16px;
    }

    .vwt-result-card {
        flex-direction: column;
    }

    .vwt-result-img {
        width: 100%;
        height: 160px;
    }

    .vwt-search-hero {
        padding: 10px 16px !important;
    }

    .vwt-search-hero h1 {
        font-size: 14px !important;
    }

    .vwt-search-page {
        margin-top: 0px;
       
    }
}