/* ── Search page layout ── */
.search-page-wrapper {
    margin: 0 auto;
    padding: 0 16px;
}

.search-page-bar {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8eaf0;
}

/* ── Tabs (pill) ── */
.search-page-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.search-page-tabs::-webkit-scrollbar {
    display: none;
}

.search-page-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #e4e6ef;
    border-radius: 999px;
    background: #fff;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-page-tab:hover {
    background: #f5f6fa;
    border-color: #ccc;
}

.search-page-tab.active {
    background: #FFEDE9;
    color: #FB471F;
    border-color: #FB471F;
    font-weight: 600;
}

.search-page-tab i {
    font-size: 16px;
}

/* ── Badge ── */
.search-page-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: #eee;
    color: #666;
}

.search-page-badge:empty {
    display: none;
}

.search-page-tab.active .search-page-badge {
    background: #FB471F;
    color: #fff;
}

/* ── Form controls (register style: 48px, pill) ── */
.search-page-bar .form-group {
    margin-bottom: 0;
}

.search-page-bar .form-control {
    height: 48px;
    border-radius: 100px;
    font-size: 14px;
}

.search-page-bar .select2-container--bootstrap-5 .select2-selection--single {
    height: 48px;
    border-radius: 30px;
    display: flex;
    align-items: center;
}

.search-page-bar .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    line-height: 48px;
    padding-left: 0;
    padding-right: 40px;
}

.search-page-bar .select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    height: 48px;
}

.search-page-bar .select2-container--bootstrap-5.select2-container--open.select2-container--below .select2-selection {
    border-top-right-radius: 30px !important;
    border-top-left-radius: 30px !important;
}

.search-page-bar .select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--selected,
.search-page-bar .select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option[aria-selected=true]:not(.select2-results__option--highlighted) {
    color: #fff !important;
    background-color: #FB471F !important;
}

.search-page-bar .btn-outline-secondary {
    border-color: #cbcbcb;
    background-color: white;
}

.search-page-bar .btn-outline-secondary:hover {
    color: #012172;
    background-color: white;
    border-color: #cbcbcb;
}

/* ── Toggle button ── */
.search-page-toggle {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
    padding: 0;
}

.search-page-toggle:hover {
    color: #FB471F;
}

/* ── Clear button ── */
.search-page-clear {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    transition: color 0.2s;
}

.search-page-clear:hover {
    color: #FB471F;
}

/* ── Submit button ── */
.search-page-submit {
    height: 48px;
    padding: 0 28px;
    background: #FB471F;
    color: #fff;
    border: none;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.search-page-submit:hover {
    background: #e03e18;
}

/* ── Filter area ── */
.search-page-filter-title {
    text-transform: uppercase;
    color: #3949AB;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

#advancedFilters .form-control {
    height: 48px;
    border-radius: 100px;
}

#advancedFilters .select2-container--bootstrap-5 .select2-selection--single {
    height: 48px;
    border-radius: 30px;
    display: flex;
    align-items: center;
}

/* ── Results area ── */
#search-results {
    min-height: 200px;
}

/* ── Card overrides for search grid ── */
#search-results .job-card-v1,
#search-results .prod-card {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
}

#search-results .blog-card {
    width: 100%;
    max-width: 100%;
}

#search-results .job-card-v1 .job-card-img-v1 {
    height: 200px;
    border-radius: 16px 16px 0 0;
}

#search-results .row>[class*="col-"]>.card,
#search-results .row>[class*="col-"]>.job-card-v1,
#search-results .row>[class*="col-"]>.course-card-v2,
#search-results .row>[class*="col-"]>.prod-card {
    width: 100% !important;
    flex: 1 1 auto !important;
}

#search-results .row {
    align-items: stretch;
}

#search-results .row>[class*="col-"] {
    display: flex;
}

#search-results .row>[class*="col-"]>* {
    width: 100%;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .search-page-bar {
        padding: 1rem !important;
        border-radius: 12px;
    }

    .search-page-tab {
        padding: 6px 12px;
        font-size: 13px;
    }

    .search-page-submit {
        height: 42px;
        padding: 0 20px;
    }
}

@media (max-width: 575px) {
    .search-page-wrapper {
        padding: 0 8px;
    }

    .search-page-tab i {
        display: none;
    }

    .search-page-submit {
        width: 100%;
        justify-content: center;
    }
}