/* =============================================================
   services-page-revamp.css
   Revamped "All Services" page  (/freelancer/services/all)
   Refined & elevated to match the freelancer home-page design language.
   Palette : deep blue #203983 / #152658 · purple #9e4cf4 / #8a3cd9
             green #09c76b · text #2d3748 / #4a5568 / #95979d
             borders #eef2f6 / #e4e5e7 · surfaces #fff / #f8f9fb
   Scope   : everything is namespaced so other pages stay untouched.
   ============================================================= */

:root {
    --svc-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --svc-purple: #9e4cf4;
    --svc-purple-dark: #8a3cd9;
    --svc-purple-soft: #faf5ff;
    --svc-ink: #2d3748;
    --svc-ink-soft: #4a5568;
    --svc-muted: #95979d;
    --svc-border: #e4e5e7;
    --svc-border-soft: #eef2f6;
    --svc-grad-blue: linear-gradient(135deg, #203983 0%, #152658 100%);
    --svc-grad-purple: linear-gradient(135deg, #9e4cf4 0%, #8a3cd9 100%);
}

/* Apply the home-page typeface across the revamped surfaces (body copy
   inside cards keeps Inter too for a clean, cohesive look). */
.services-hero,
.services-cat-nav,
.services-preview-area {
    font-family: var(--svc-font);
}

/* =============================================================
   1. CATEGORY BAR  (scoped redesign of the shared categorySub bar)
   The shared component markup is reused as-is; these rules only apply
   inside .services-cat-nav, so the home page / job pages are unaffected.
   ============================================================= */
.services-cat-nav .categorySub-area,
.services-cat-nav .categorySub-area.bg-white,
.services-cat-nav .categorySub-area.category-light,
.services-cat-nav .categorySub-area.category-light.bg-white {
    background-color: #fff !important;
    border-top: none !important;
    border-bottom: 1px solid var(--svc-border-soft) !important;
    position: relative;
    z-index: 20;
}

.services-cat-nav .categorySub-padding {
    padding: 9px 0;
}

/* Category chip links */
.services-cat-nav .categorySub-area .categorySub-list-slide-list > a,
.services-cat-nav .categorySub-area.category-light .categorySub-list-slide-list > a {
    background-color: #f6f7f9;
    color: var(--svc-ink-soft) !important;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: 0.1px;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.services-cat-nav .categorySub-area .categorySub-list-slide-list > a:hover,
.services-cat-nav .categorySub-area .categorySub-list-slide-list:hover > a,
.services-cat-nav .categorySub-area .categorySub-list-slide-list.open > a,
.services-cat-nav .categorySub-area.category-light .categorySub-list-slide-list > a:hover,
.services-cat-nav .categorySub-area.category-light .categorySub-list-slide-list:hover > a,
.services-cat-nav .categorySub-area.category-light .categorySub-list-slide-list.open > a {
    background-color: var(--svc-purple-soft) !important;
    color: var(--svc-purple) !important;
    border-color: transparent !important;
    border-bottom-color: transparent !important;
    opacity: 1;
}

/* Subcategory dropdown — show on hover (desktop) and keep .open for mobile JS */
.services-cat-nav .categorySub-list-slide-list:hover > ul.categorySub-slide-submenu,
.services-cat-nav .categorySub-list-slide-list.open > ul.categorySub-slide-submenu {
    visibility: visible;
    opacity: 1;
    display: block;
}

.services-cat-nav .categorySub-area .categorySub-list-slide-list ul.categorySub-slide-submenu {
    margin-top: 10px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--svc-border-soft);
    border-radius: 12px;
    box-shadow: 0 12px 32px -10px rgba(20, 38, 88, 0.28);
    min-width: 230px;
    z-index: 9999;
}

/* little connector so the hover gap doesn't drop the menu */
.services-cat-nav .categorySub-area .categorySub-list-slide-list ul.categorySub-slide-submenu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.services-cat-nav .categorySub-area .categorySub-list-slide-list ul.categorySub-slide-submenu li a {
    padding: 8px 14px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--svc-ink-soft);
    border-radius: 8px;
    line-height: 20px;
    transition: all 0.15s ease;
}

.services-cat-nav .categorySub-area .categorySub-list-slide-list ul.categorySub-slide-submenu li a:hover {
    background-color: var(--svc-purple-soft);
    color: var(--svc-purple);
}

.services-cat-nav .categorySub-area .categorySub-list-slide-list ul.categorySub-slide-submenu li a::before {
    display: none;
}

/* Scroll arrows */
.services-cat-nav .categorySub-area .categorySub-list.has-arrows .categorySub-arrow::before {
    background-color: #fff;
    border: 1px solid var(--svc-border);
    color: var(--svc-ink-soft);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.services-cat-nav .categorySub-area .categorySub-arrow:hover::before {
    background-color: var(--svc-purple) !important;
    border-color: var(--svc-purple) !important;
    color: #fff !important;
}

/* =============================================================
   2. HERO BANNER
   ============================================================= */
.services-hero {
    position: relative;
    /* Exact match of the volnyn.test root hero (.ai-hero) — brand-green aurora mesh */
    background:
        radial-gradient(115% 70% at 50% 0%, #ffffff 0%, rgba(255,255,255,0) 50%),
        radial-gradient(50% 50% at 10% 60%, rgba(16,185,129,0.50) 0%, rgba(16,185,129,0) 70%),
        radial-gradient(50% 50% at 90% 55%, rgba(45,212,191,0.45) 0%, rgba(45,212,191,0) 70%),
        radial-gradient(55% 45% at 50% 92%, rgba(34,197,94,0.42) 0%, rgba(34,197,94,0) 72%),
        radial-gradient(40% 40% at 80% 12%, rgba(96,165,250,0.28) 0%, rgba(96,165,250,0) 70%),
        radial-gradient(40% 40% at 18% 14%, rgba(110,231,183,0.30) 0%, rgba(110,231,183,0) 70%),
        linear-gradient(180deg, #f6fffb 0%, #ecfdf5 100%);
    background-color: #f6fffb;
    color: #0a0d14;
    padding: 56px 0 52px;
    overflow: hidden;
}

/* Root hero has no decorative blobs — keep ours clean too */
.services-hero::before,
.services-hero::after {
    display: none;
}

.services-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

/* Eyebrow badge */
.services-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin-bottom: 18px;
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #0f172a;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.services-hero-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #09c76b;
    box-shadow: 0 0 0 0 rgba(9, 199, 107, 0.6);
    animation: svc-pulse 2s infinite;
}

@keyframes svc-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(9, 199, 107, 0.55); }
    70%  { box-shadow: 0 0 0 7px rgba(9, 199, 107, 0); }
    100% { box-shadow: 0 0 0 0 rgba(9, 199, 107, 0); }
}

.services-hero-title {
    font-family: var(--svc-font);
    font-size: 42px;
    font-weight: 800;
    color: #0a0d14;
    margin: 0 0 14px;
    line-height: 1.15;
    letter-spacing: -0.8px;
}

.services-hero-subtitle {
    font-size: 16px;
    color: #475569;
    margin: 0 auto 30px;
    line-height: 1.6;
    max-width: 560px;
}

.services-hero-search {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 50px;
    padding: 6px 6px 6px 24px;
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.14);
    max-width: 600px;
    margin: 0 auto;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.services-hero-search:focus-within {
    box-shadow: 0 14px 36px rgba(16, 185, 129, 0.20);
}

.services-hero-search > i {
    color: var(--svc-purple);
    font-size: 18px;
    flex-shrink: 0;
}

.services-hero-search input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    padding: 13px 16px;
    font-size: 15px;
    color: var(--svc-ink);
    background: transparent;
    font-family: var(--svc-font);
}

.services-hero-search input::placeholder {
    color: #a0aec0;
}

.services-hero-search button {
    background: var(--svc-grad-purple);
    color: #fff;
    border: none;
    padding: 13px 30px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: var(--svc-font);
}

.services-hero-search button:hover {
    background: linear-gradient(135deg, #8a3cd9 0%, #7a2cc9 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(158, 76, 244, 0.45);
}

/* Stats */
.services-hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    margin-top: 34px;
    flex-wrap: wrap;
}

.services-hero-stat {
    text-align: center;
    min-width: 84px;
}

.services-hero-stat-divider {
    width: 1px;
    height: 38px;
    background: rgba(15, 23, 42, 0.10);
}

.services-hero-stat-number {
    display: block;
    font-family: var(--svc-font);
    font-size: 30px;
    font-weight: 800;
    color: #0a0d14;
    line-height: 1;
    letter-spacing: -0.5px;
}

.services-hero-stat-label {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 500;
}

/* =============================================================
   3. PREVIEW AREA  (sidebar + results)
   ============================================================= */
.services-preview-area {
    background: #f8f9fb;
    padding: 26px 0 64px;
    min-height: 400px;
}

/* Filters now live in an off-canvas drawer, so the host reserves no column space */
.services-sidebar-col.services-filter-drawer {
    width: auto;
    flex-shrink: 0;
}

/* =============================================================
   4. SMART STICKY TOOLBAR
   ============================================================= */
.services-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 12px 18px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(20, 38, 88, 0.05);
    border: 1px solid var(--svc-border-soft);
    gap: 12px;
    flex-wrap: wrap;
}

.services-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.services-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 16px;
    background: #fff;
    color: var(--svc-ink);
    border: 1.5px solid var(--svc-border);
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.services-filter-toggle:hover {
    border-color: var(--svc-purple);
    color: var(--svc-purple);
    background: var(--svc-purple-soft);
}

.services-result-count {
    font-size: 14px;
    color: #62646a;
    font-weight: 500;
    white-space: nowrap;
}

.services-result-count strong {
    color: var(--svc-ink);
    font-weight: 700;
}

/* Active filter chips */
.services-active-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.services-active-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px 5px 12px;
    background: var(--svc-purple-soft);
    border: 1px solid #e9d5ff;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--svc-purple);
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.services-active-chip:hover {
    background: var(--svc-purple);
    color: #fff;
    border-color: var(--svc-purple);
}

.services-active-chip i {
    font-size: 10px;
    margin-left: 2px;
}

.services-active-chip-clear-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: transparent;
    border: none;
    font-size: 12px;
    font-weight: 600;
    color: #e53e3e;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.15s ease;
}

.services-active-chip-clear-all:hover {
    color: #c53030;
}

/* Toolbar right */
.services-toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.services-view-toggle {
    display: flex;
    border: 1.5px solid var(--svc-border);
    border-radius: 8px;
    overflow: hidden;
    height: 38px;
}

.services-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 100%;
    background: #fff;
    border: none;
    color: var(--svc-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.services-view-btn:hover {
    color: var(--svc-purple);
    background: var(--svc-purple-soft);
}

.services-view-btn.active {
    background: var(--svc-grad-purple);
    color: #fff;
}

.services-sort-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.services-sort-wrapper > label {
    font-size: 13px;
    font-weight: 600;
    color: #62646a;
    white-space: nowrap;
    margin: 0;
}

.services-sort-select {
    height: 38px;
    padding: 0 34px 0 14px;
    border: 1.5px solid var(--svc-border);
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--svc-ink);
    background-color: #fff;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239e4cf4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.services-sort-select:hover {
    border-color: var(--svc-purple);
}

.services-sort-select:focus {
    border-color: var(--svc-purple);
    box-shadow: 0 0 0 3px rgba(158, 76, 244, 0.10);
}

/* =============================================================
   5. GIG CARDS — professional restyle (overrides gig-7.css base;
   this file loads after gig-7.css so equal specificity wins).
   ============================================================= */

/* Card shell */
.compact-project-card {
    border-radius: 16px;
    border: 1px solid var(--svc-border-soft);
    box-shadow: 0 2px 12px rgba(20, 38, 88, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.compact-project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(158, 76, 244, 0.28);
    box-shadow: 0 16px 36px rgba(158, 76, 244, 0.16);
}

/* Full-bleed image (top corners rounded by the card's overflow) */
.compact-project-card .project-image-wrapper {
    padding: 0;
    background: var(--svc-border-soft);
    aspect-ratio: 16 / 9;
}

.compact-project-card .project-image-slider,
.compact-project-card .project-image {
    border-radius: 0;
    background: var(--svc-border-soft);
}

.compact-project-card:hover .project-image,
.compact-project-card:hover .slider-item img {
    transform: scale(1.04);
}

/* Content */
.compact-project-card .project-content {
    padding: 15px 16px 16px;
}

/* Category — restrained, muted */
.compact-project-card .project-category {
    color: #8a94a6;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
}

/* Title */
.compact-project-card .project-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--svc-ink);
    margin: 0 0 8px;
    min-height: 43px;
}

.compact-project-card .project-title a {
    transition: color 0.18s ease;
}

.compact-project-card .project-title a:hover,
.compact-project-card:hover .project-title a {
    color: var(--svc-purple);
}

/* Rating row — gold star + score; no heavy divider; collapses when empty */
.compact-project-card .project-rating {
    border-bottom: none;
    padding-bottom: 0;
    margin: 0;
    gap: 6px;
    min-height: 0;
}

.compact-project-card .single-star {
    color: #fbbf24;
    font-size: 13px;
}

.compact-project-card .rating-text {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--svc-ink-soft);
}

/* Delivery badge */
.compact-project-card .project-delivery {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--svc-muted);
    margin-top: 6px;
    margin-bottom: 0;
}

.compact-project-card .project-delivery i {
    font-size: 11px;
    color: var(--svc-purple);
}

/* Footer — divider + seller / price */
.compact-project-card .project-footer {
    margin-top: 13px;
    padding-top: 13px;
    border-top: 1px solid var(--svc-border-soft);
}

.compact-project-card .author-avatar-wrapper {
    width: 36px;
    height: 36px;
}

.compact-project-card .avatar-initial {
    background: var(--svc-grad-purple);
    font-size: 15px;
}

.compact-project-card .author-name {
    font-size: 13px;
    color: var(--svc-ink-soft);
}

.compact-project-card .price-line {
    font-size: 12px;
    color: var(--svc-muted);
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    line-height: 1.2;
}

.compact-project-card .price-amount {
    font-size: 18px;
    font-weight: 800;
    color: var(--svc-ink);
}

.compact-project-card .price-amount s {
    font-size: 12px;
    font-weight: 500;
    color: var(--svc-muted);
    margin-left: 4px;
}

/* Pro / Sponsored badge */
.compact-project-card .card-pro-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 11px;
    background: var(--svc-grad-purple);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    box-shadow: 0 3px 10px rgba(158, 76, 244, 0.40);
}

.compact-project-card .card-pro-badge i {
    font-size: 9px;
}

/* Bookmark heart */
.compact-project-card .gig-heart-bookmark {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
}

/* Slider dots / arrows refined for the larger image */
.compact-project-card .slider-arrow {
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.92);
    color: var(--svc-ink);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.compact-project-card .slider-arrow:hover {
    background-color: #fff;
    color: var(--svc-purple);
}

.compact-project-card .slider-dot.active {
    background-color: #fff;
    transform: scale(1.3);
}

/* =============================================================
   6. LIST VIEW
   ============================================================= */
.search_result.list-view .col-xxl-4,
.search_result.list-view .col-lg-4,
.search_result.list-view .col-md-6 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    margin-bottom: 16px;
}

/* In list view the image returns to a fixed left panel (not full-bleed top) */
.search_result.list-view .compact-project-card .project-image-wrapper {
    aspect-ratio: auto;
}

.search_result.list-view .compact-project-card {
    flex-direction: row;
    align-items: stretch;
}

.search_result.list-view .project-image-wrapper {
    width: 300px;
    flex-shrink: 0;
    aspect-ratio: auto;
    padding: 6px;
}

.search_result.list-view .project-image {
    border-radius: 10px;
}

.search_result.list-view .project-content {
    flex: 1;
    padding: 18px 22px;
    justify-content: center;
}

.search_result.list-view .project-title {
    font-size: 18px;
    -webkit-line-clamp: 1;
    min-height: auto;
    margin-bottom: 6px;
}

.search_result.list-view .project-category {
    margin-bottom: 6px;
}

.search_result.list-view .project-rating {
    padding-bottom: 10px;
    margin-bottom: 8px;
}

.search_result.list-view .project-footer {
    margin-top: 12px;
}

.search_result.list-view .author-avatar-wrapper {
    width: 36px;
    height: 36px;
}

.search_result.list-view .author-name {
    font-size: 14px;
}

.search_result.list-view .price-amount {
    font-size: 20px;
}

.search_result.list-view .price-line {
    font-size: 12px;
}

/* =============================================================
   7. SKELETON LOADER
   ============================================================= */
.services-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.services-skeleton-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--svc-border-soft);
}

.services-skeleton-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(90deg, #f0f0f0 25%, #e6e6e6 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

.services-skeleton-body {
    padding: 14px 16px;
}

.services-skeleton-line {
    height: 10px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e6e6e6 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    margin-bottom: 9px;
}

.services-skeleton-line.short { width: 40%; }
.services-skeleton-line.medium { width: 70%; }
.services-skeleton-line.long { width: 90%; }

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =============================================================
   8. EMPTY STATE
   ============================================================= */
.services-empty-state {
    text-align: center;
    padding: 64px 20px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--svc-border-soft);
}

.services-empty-state-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.services-empty-state-icon i {
    font-size: 32px;
    color: var(--svc-purple);
}

.services-empty-state-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--svc-ink);
    margin: 0 0 8px;
}

.services-empty-state-text {
    font-size: 14px;
    color: var(--svc-muted);
    margin: 0 auto 20px;
    line-height: 1.6;
    max-width: 420px;
}

.services-empty-state-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: var(--svc-grad-purple);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.services-empty-state-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(158, 76, 244, 0.38);
}

/* =============================================================
   9. SIDEBAR — professional restyle (scoped overrides of the
   vendored filter-01-shared framework, which is !important-heavy,
   so these use .services-sidebar-col prefix + !important to win).
   ============================================================= */

/* Panel shell — off-canvas DRAWER at all widths (filters moved to top) */
.services-sidebar-col .filter-wrap-01-shared {
    position: fixed !important;
    top: 0 !important;
    left: -360px !important;
    width: 330px !important;
    max-width: 88vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    overflow-y: auto !important;
    /* Above the framework overlay (z 9998) so the drawer is clickable on desktop too */
    z-index: 10000 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: 0 0 50px rgba(15, 23, 42, 0.28) !important;
    font-family: var(--svc-font) !important;
    transition: left 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.services-sidebar-col .filter-wrap-01-shared.active-01-shared {
    left: 0 !important;
}

/* Overlay sits below the drawer (10000) but above the page; scoped selector
   (0,2,0) so it actually beats the framework's `.filter-overlay-01-shared` 9998. */
.services-sidebar-col .filter-overlay-01-shared {
    z-index: 9990 !important;
}

.services-sidebar-col .filter-close-btn-01-shared {
    display: block !important;
}

/* The sticky wrapper no longer reserves height (panel is fixed) */
.services-sidebar-col .filter-sticky-01-shared {
    position: static !important;
    height: 0 !important;
}

.services-sidebar-col .filter-header-01-shared {
    background: var(--svc-grad-blue) !important;
    border-bottom: none !important;
    padding: 15px 18px !important;
}

.services-sidebar-col .filter-header-01-shared h5 {
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px !important;
}

.services-sidebar-col .filter-header-01-shared .filter-close-btn-01-shared {
    color: rgba(255, 255, 255, 0.85) !important;
}

.services-sidebar-col .filter-header-01-shared .filter-close-btn-01-shared:hover {
    color: #fff !important;
}

.services-sidebar-col .filter-body-01-shared {
    padding: 4px 18px 18px !important;
}

/* Sections + titles */
.services-sidebar-col .filter-section-01-shared {
    padding: 15px 0 16px !important;
    border-bottom: 1px solid var(--svc-border-soft) !important;
}

.services-sidebar-col .filter-title-01-shared {
    color: var(--svc-ink) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.4px !important;
    margin: 0 0 11px !important;
}

/* Checkbox rows */
.services-sidebar-col .filter-checkbox-label-01-shared {
    gap: 9px !important;
    font-size: 13px !important;
    color: var(--svc-ink-soft) !important;
    padding: 5px 8px !important;
    border-radius: 7px !important;
    align-items: center !important;
    transition: background 0.15s ease, color 0.15s ease !important;
}

.services-sidebar-col .filter-checkbox-label-01-shared:hover {
    background: var(--svc-purple-soft) !important;
    color: var(--svc-purple) !important;
}

/* Custom purple checkbox */
.services-sidebar-col .filter-checkbox-label-01-shared input[type=checkbox] {
    width: 16px !important;
    height: 16px !important;
    border: 1.5px solid #cbd0d8 !important;
    border-radius: 4px !important;
    position: relative !important;
    flex-shrink: 0 !important;
    background: #fff !important;
}

.services-sidebar-col .filter-checkbox-label-01-shared input[type=checkbox]:hover {
    border-color: var(--svc-purple) !important;
    box-shadow: 0 0 0 3px rgba(158, 76, 244, 0.10) !important;
}

.services-sidebar-col .filter-checkbox-label-01-shared input[type=checkbox]:checked {
    background: var(--svc-grad-purple) !important;
    border-color: var(--svc-purple) !important;
}

.services-sidebar-col .filter-checkbox-label-01-shared input[type=checkbox]:checked::after {
    content: '' !important;
    position: absolute !important;
    left: 5px !important;
    top: 2px !important;
    width: 4px !important;
    height: 8px !important;
    border: solid #fff !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
    display: block !important;
}

.services-sidebar-col .filter-checkbox-label-01-shared input[type=checkbox]:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(158, 76, 244, 0.18) !important;
}

/* Per-section search box */
.services-sidebar-col .services-filter-search-wrap {
    position: relative;
    margin-bottom: 10px;
}

.services-sidebar-col .services-filter-search-wrap i {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 12px;
    pointer-events: none;
}

.services-sidebar-col .services-filter-search {
    width: 100%;
    padding: 8px 12px 8px 31px;
    border: 1.5px solid var(--svc-border);
    border-radius: 8px;
    font-size: 13px;
    color: var(--svc-ink);
    background: #fff;
    outline: none;
    transition: all 0.18s ease;
}

.services-sidebar-col .services-filter-search::placeholder {
    color: #a0aec0;
}

.services-sidebar-col .services-filter-search:focus {
    border-color: var(--svc-purple);
    box-shadow: 0 0 0 3px rgba(158, 76, 244, 0.10);
}

/* Capped-height scroll list for long sections */
.services-sidebar-col .services-filter-scroll {
    max-height: 210px;
    overflow-y: auto;
    padding-right: 4px !important;
    margin-right: -4px;
}

.services-sidebar-col .services-filter-scroll::-webkit-scrollbar {
    width: 6px;
}

.services-sidebar-col .services-filter-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.services-sidebar-col .services-filter-scroll::-webkit-scrollbar-thumb {
    background: #ddd2f3;
    border-radius: 10px;
}

.services-sidebar-col .services-filter-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--svc-purple);
}

.services-sidebar-col .services-filter-noresult {
    font-size: 12px;
    color: var(--svc-muted);
    padding: 6px 8px;
    font-style: italic;
}

/* Hide the framework's see-more inside searchable sections (search replaces it) */
.services-sidebar-col .services-filter-searchable .filter-see-more-01-shared,
.services-sidebar-col .services-filter-searchable .filter-see-less-01-shared {
    display: none !important;
}

/* See-more (other sections, if any) in brand purple */
.services-sidebar-col .filter-see-more-01-shared,
.services-sidebar-col .filter-see-less-01-shared {
    color: var(--svc-purple) !important;
    font-weight: 600 !important;
}

/* Dynamic "select a category first" helper text */
.services-sidebar-col .filter-dynamic-empty-01-shared {
    font-size: 12px !important;
    color: var(--svc-muted) !important;
    font-style: italic !important;
}

/* Price slider — purple */
.services-sidebar-col .filter-price-label-01-shared {
    color: var(--svc-purple) !important;
    background: var(--svc-purple-soft) !important;
    border-color: #e9d5ff !important;
    font-weight: 700 !important;
}

.services-sidebar-col .filter-slider-range-01-shared {
    background: var(--svc-grad-purple) !important;
}

.services-sidebar-col .filter-slider-wrap-01-shared input[type=range]::-webkit-slider-thumb {
    border-color: var(--svc-purple) !important;
}

.services-sidebar-col .filter-slider-wrap-01-shared input[type=range]::-webkit-slider-thumb:hover {
    border-color: var(--svc-purple-dark) !important;
    box-shadow: 0 0 0 4px rgba(158, 76, 244, 0.15) !important;
}

.services-sidebar-col .filter-slider-wrap-01-shared input[type=range]::-moz-range-thumb {
    border-color: var(--svc-purple) !important;
}

/* Star rating rows — gold stars, purple hover/selected */
.services-sidebar-col .filter-rating-row-01-shared {
    color: var(--svc-ink-soft) !important;
    padding: 6px 8px !important;
    border-radius: 7px !important;
}

.services-sidebar-col .filter-rating-row-01-shared:hover {
    background: var(--svc-purple-soft) !important;
    color: var(--svc-purple) !important;
}

.services-sidebar-col .filter-rating-row-01-shared.selected-01-shared {
    background: var(--svc-purple-soft) !important;
    color: var(--svc-purple) !important;
    border-left: 3px solid var(--svc-purple) !important;
}

.services-sidebar-col .f-star-filled-01-shared {
    color: #fbbf24 !important;
}

/* Reset button */
.services-sidebar-col .filter-reset-btn-01-shared {
    background: var(--svc-grad-purple) !important;
    color: #fff !important;
    border: none !important;
    font-weight: 600 !important;
    padding: 11px 12px !important;
    border-radius: 9px !important;
    margin-top: 6px !important;
    box-shadow: 0 2px 8px rgba(158, 76, 244, 0.22) !important;
    transition: all 0.2s ease !important;
}

.services-sidebar-col .filter-reset-btn-01-shared:hover {
    background: linear-gradient(135deg, #8a3cd9 0%, #7a2cc9 100%) !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(158, 76, 244, 0.30) !important;
}

/* =============================================================
   9b. CATEGORY SECTIONS + HORIZONTAL CAROUSELS
   ============================================================= */
.cat-section {
    margin-bottom: 38px;
}

.cat-section:last-child {
    margin-bottom: 0;
}

.cat-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.cat-section-title {
    font-family: var(--svc-font);
    font-size: 22px;
    font-weight: 800;
    color: var(--svc-ink);
    margin: 0;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.cat-section-viewall {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--svc-purple);
    white-space: nowrap;
    flex-shrink: 0;
    transition: gap 0.2s ease, color 0.2s ease;
}

.cat-section-viewall:hover {
    color: var(--svc-purple-dark);
    gap: 9px;
}

/* Carousel track */
.gig-row {
    position: relative;
}

.gig-row-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    padding: 4px 2px 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gig-row-track::-webkit-scrollbar {
    display: none;
}

/* Bigger cards in the full-width carousel */
.gig-row-item {
    flex: 0 0 320px;
    max-width: 320px;
    scroll-snap-align: start;
}

.gig-row-item .compact-project-card {
    height: 100%;
}

/* Carousel arrows */
.gig-row-arrow {
    position: absolute;
    top: calc(50% - 12px);
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--svc-border-soft);
    background: #fff;
    color: var(--svc-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 6;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.gig-row-arrow:hover {
    background: var(--svc-purple);
    border-color: var(--svc-purple);
    color: #fff;
}

.gig-row-arrow[hidden] {
    display: none;
}

.gig-row-prev {
    left: -18px;
}

.gig-row-next {
    right: -18px;
}

/* Touch devices use swipe — hide arrows */
@media (hover: none) {
    .gig-row-arrow {
        display: none !important;
    }
}

/* =============================================================
   10. RESPONSIVE
   ============================================================= */
@media (max-width: 1199px) {
    .services-skeleton-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .services-hero {
        padding: 40px 0 38px;
    }

    .services-hero-title {
        font-size: 30px;
    }

    .services-hero-stats {
        gap: 20px;
    }

    .services-hero-stat-number {
        font-size: 24px;
    }

    .services-skeleton-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .search_result.list-view .project-image-wrapper {
        width: 210px;
    }

    .gig-row-item {
        flex-basis: 300px;
        max-width: 300px;
    }

    .cat-section-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .services-filter-toggle {
        display: inline-flex;
    }

    .services-toolbar {
        padding: 10px 14px;
    }

    .services-toolbar-right {
        width: 100%;
        justify-content: space-between;
    }

    .services-sort-wrapper {
        flex: 1;
        justify-content: flex-end;
    }

    .services-sort-wrapper > label {
        display: none;
    }

    .services-skeleton-grid {
        grid-template-columns: 1fr;
    }

    .gig-row-item {
        flex-basis: 80vw;
        max-width: 340px;
    }

    .cat-section-title {
        font-size: 18px;
    }

    .services-hero-search {
        flex-wrap: wrap;
        border-radius: 14px;
        padding: 10px;
    }

    .services-hero-search > i {
        display: none;
    }

    .services-hero-search input {
        width: 100%;
        padding: 11px 12px;
    }

    .services-hero-search button {
        width: 100%;
        border-radius: 10px;
        padding: 12px;
    }
}

@media (max-width: 575px) {
    .services-hero-title {
        font-size: 25px;
    }

    .services-hero-subtitle {
        font-size: 14px;
    }

    .services-hero-stats {
        gap: 14px;
    }

    .services-hero-stat {
        min-width: 70px;
    }

    .services-hero-stat-number {
        font-size: 21px;
    }

    .services-hero-stat-divider {
        height: 30px;
    }

    .services-skeleton-grid {
        grid-template-columns: 1fr;
    }

    .search_result.list-view .compact-project-card {
        flex-direction: column;
    }

    .search_result.list-view .project-image-wrapper {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .services-view-toggle {
        display: none;
    }

    .services-active-chips {
        width: 100%;
    }
}
