/* ==================== PREMIUM TUTOR SEARCH ISOLATED STYLING ==================== */
.pst-search-section {
    background-color: #f8fafc;
    padding: 40px 20px 80px;
    font-family: inherit;
    box-sizing: border-box;
}

.pst-search-section *, 
.pst-search-section *::before, 
.pst-search-section *::after {
    box-sizing: border-box;
}

.pst-container {
    max-width: 1280px;
    margin: 0 auto;
}

.pst-results-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.pst-results-count {
    font-size: 14.5px;
    color: #475569;
}

.pst-results-count strong {
    color: #0f172a;
}

.pst-top-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pst-mobile-filter-btn {
    display: none;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #7c3aed 0%, #a21caf 100%);
    color: #fff;
    border: none;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.pst-sort-select {
    padding: 7px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    font-size: 13.5px;
    color: #0f172a;
    outline: none;
    cursor: pointer;
}

.pst-active-tags-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.pst-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f3e8ff;
    color: #7c3aed;
    border: 1px solid #e9d5ff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}

.pst-tag-pill button {
    background: none;
    border: none;
    color: #7c3aed;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
}

.pst-clear-all {
    font-size: 13.5px;
    font-weight: 700;
    color: #db2777;
    text-decoration: none;
}

.pst-clear-all:hover {
    text-decoration: underline;
}

.pst-layout-grid {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 24px;
    align-items: start;
}

/* Left Filter Sidebar - Independent Scrolling */
.pst-filter-sidebar {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.pst-sidebar-mobile-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.pst-sidebar-mobile-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.pst-sidebar-mobile-header button {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #64748b;
}

.pst-sidebar-title-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.pst-sidebar-title-area h2 {
    font-size: 20px;
    font-weight: 800;
    color: #1e1b4b;
}

.pst-expand-all {
    font-size: 13px;
    font-weight: 700;
    color: #a21caf;
    text-decoration: none;
}

.pst-sidebar-sub {
    font-size: 12.5px;
    color: #64748b;
    margin-bottom: 16px;
}

.pst-search-box-wrap {
    position: relative;
    margin-bottom: 16px;
}

.pst-search-box-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
}

.pst-search-box-wrap input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 13.5px;
    outline: none;
    color: #0f172a;
}

.pst-filter-card {
    border: 1px solid #f1f5f9;
    background: #faf5ff50;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.pst-card-header {
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.pst-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pst-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #fae8ff;
    color: #a21caf;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.pst-card-header h4 {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.pst-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pst-badge-count {
    background: #7c3aed;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pst-arrow {
    font-size: 12px;
    color: #64748b;
    transition: transform 0.3s ease;
}

.pst-card-body {
    padding: 14px;
    background: #fff;
}

.pst-label-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #64748b;
    margin-bottom: 8px;
    display: block;
}

.pst-pill-group {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.pst-filter-pill {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pst-filter-pill i {
    color: #a21caf;
}

.pst-filter-pill.active {
    background: #fdf4ff;
    border-color: #a21caf;
    color: #a21caf;
}

.pst-select-box {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13.5px;
    outline: none;
    background: #fff;
    cursor: pointer;
}

.pst-sidebar-footer {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 10px;
    margin-top: 20px;
}

.pst-reset-btn {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
}

.pst-search-submit-btn {
    background: linear-gradient(135deg, #7c3aed 0%, #a21caf 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-badge {
    background: rgba(255,255,255,0.25);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Right Tutors Grid */
.pst-tutors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pst-tutor-item-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.pst-tutor-img-wrap {
    width: 100%;
    height: 230px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pst-tutor-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pst-tutor-details {
    padding: 18px 16px 12px;
    text-align: center;
}

.pst-tutor-name {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.pst-tutor-uni {
    font-size: 12.5px;
    color: #64748b;
    margin-bottom: 6px;
}

.pst-tutor-sub {
    font-size: 14.5px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.pst-tutor-loc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.pst-view-details-btn {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #7c3aed 0%, #a21caf 100%);
    color: #fff;
    text-decoration: none;
    padding: 11px;
    font-size: 14px;
    font-weight: 600;
}

/* Not Found Box */
.pst-not-found {
    text-align: center;
    padding: 50px 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    grid-column: span 3;
}

.pst-not-found i {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 15px;
}

.pst-not-found h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.pst-not-found p {
    font-size: 14px;
    color: #64748b;
}

/* Pagination */
.pst-pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    background: #fff;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}

.pst-page-btn {
    background: #fff;
    border: 1px solid #cbd5e1;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
}

.pst-page-numbers {
    display: flex;
    gap: 6px;
}

.pst-num-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
}

.pst-num-btn.active {
    background: #7c3aed;
    color: #fff;
    border-color: #7c3aed;
}

