/* @font-face {
            font-family: "Noto Sans JP";
            src: url("../assets/fonts/NotoSansJP/NotoSansJP-Regular.woff2") format("woff2");
            font-weight: 400;
            font-style: normal;
            font-display: swap;
        }

        @font-face {
            font-family: "Noto Sans JP";
            src: url("../assets/fonts/NotoSansJP/NotoSansJP-Medium.woff2") format("woff2");
            font-weight: 500;
            font-style: normal;
            font-display: swap;
        }

        @font-face {
            font-family: "Noto Sans JP";
            src: url("../assets/fonts/NotoSansJP/NotoSansJP-SemiBold.woff2") format("woff2");
            font-weight: 600;
            font-style: normal;
            font-display: swap;
        }

        @font-face {
            font-family: "Noto Sans JP";
            src: url("../assets/fonts/NotoSansJP/NotoSansJP-Bold.woff2") format("woff2");
            font-weight: 700;
            font-style: normal;
            font-display: swap;
        } */
:root {
            --primary-color: #e91e63;
            --secondary-color: #2563eb;
            --royal-blue: #2563eb;
            --ebony-clay: #1f2937;
            --accent-color: #10b981;
            --font-sans: "Noto Sans JP", sans-serif;
            --text-12: 12px;
            --text-13: 13px;
            --text-14: 14px;
            --text-16: 16px;
            --lh-tight: 1.2;
            --lh-normal: 1.6;
            --animation-speed: 0.2s ease;
            --jobcard-radius: 18px;
            --gray-50: #f9fafb;
            --gray-100: #f3f4f6;
            --gray-200: #e5e7eb;
            --gray-400: #9ca3af;
            --gray-500: #6b7280;
            --gray-700: #374151;
            --gray-800: #1f2937;
            --gray-900: #1f2937;
            --red-500: #ef4444;
            --red-600: #dc2626;
            --blue-500: #3b82f6;
            --green-500: #10b981;
            --amaranth: #e91e63;
            --container-max: 1360px;
            --container-pad: 12px;
            --header-height: 88px;
            --m-header-height: 56px;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html,
        body {
            width: 100%;
            overflow-x: hidden;
        }

        body {
            font-family: var(--font-sans);
            font-size: var(--text-14);
            background: #f9fafb;
            color: #1f2937;
            line-height: 1.6;
            animation: fadeIn 0.6s ease-out;
            overflow-x: hidden;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes slideInUp {
            from { 
                opacity: 0; 
                transform: translateY(30px); 
            }
            to { 
                opacity: 1; 
                transform: translateY(0); 
            }
        }

        @keyframes slideInDown {
            from { 
                opacity: 0; 
                transform: translateY(-20px); 
            }
            to { 
                opacity: 1; 
                transform: translateY(0); 
            }
        }

        @keyframes scaleIn {
            from { 
                opacity: 0; 
                transform: scale(0.95); 
            }
            to { 
                opacity: 1; 
                transform: scale(1); 
            }
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }

        @keyframes shimmer {
            0% { background-position: -200px 0; }
            100% { background-position: calc(200px + 100%) 0; }
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
        }

        @keyframes ripple {
            to {
                transform: scale(4);
                opacity: 0;
            }
        }

        .container {
            max-width: var(--container-max);
            width: 100%;
            margin: 0 auto;
            padding: 0 12px;
            box-sizing: border-box;
        }

        @media (max-width: 768px) {
            :root { --container-pad: 12px; }
        }

        /* Responsive images */
        img,
        svg {
            max-width: 100%;
            height: auto;
            display: block;
        }

        /* Header */
        .header {
            position: sticky;
            top: 0;
            z-index: 100;
            background: rgba(255, 255, 255, 0.95);
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            padding: 14px 0;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            width: 100%;
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 24px;
        }

        .breadcrumb-action-bar {
            position: sticky;
            top: var(--header-height);
            z-index: 90;
            background: #fff;
            border-bottom: 1px solid rgba(229,231,235,1);
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
            padding: 8px 0;
            min-height: 56px;
        }

        .nav-container {
            min-height: 48px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
        }

        .breadcrumb-nav {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: nowrap;
            overflow: hidden;
        }

        .breadcrumb-link {
            color: var(--royal-blue);
            font-weight: 500;
            text-decoration: none;
            font-size: 14px;
            padding: 6px 12px;
            border-radius: 6px;
            transition: all var(--animation-speed);
            white-space: nowrap;
        }

        .breadcrumb-link:hover {
            color: var(--amaranth);
            background: rgba(233, 30, 99, 0.08);
            text-decoration: none;
        }

        .breadcrumb-separator {
            color: var(--ebony-clay);
            font-weight: 700;
            font-size: 14px;
            line-height: 1;
            margin: 0 8px;
            white-space: nowrap;
        }

        .breadcrumb-current {
            color: var(--ebony-clay);
            font-weight: 700;
            font-size: 14px;
            padding: 6px 12px;
            background: rgba(31, 41, 55, 0.05);
            border-radius: 6px;
            white-space: nowrap;
        }

/* FIXED LOGO STYLES  */

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible; /* Changed from hidden to visible */
    height: 60px;
    width: auto; /* Let width adjust naturally */
}

.logo-svg {
    height: 55px;     /* Fixed height instead of using container height */
    width: auto;      /* Maintains aspect ratio */
    max-width: 300px; /* Prevents it from getting too wide */
    display: block;   /* Removes any inline spacing issues */
}

/* Keep existing hover effects */
.logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(233, 30, 99, 0.3),
        transparent
    );
    transition: left 0.5s;
}

.logo:hover::before {
    left: 100%;
}

.logo:hover {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo {
        height: auto;
    }
    
    .logo-svg {
        height: 40px;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .logo {
        height: auto;
    }
    
    .logo-svg {
        height: 40px;
        max-width: 260px;
    }
}

        .main-nav {
            display: flex;
            align-items: center;
            gap: 24px;
            flex: 1;
            justify-content: flex-end;
            margin-right: 48px;
        }

        .nav-item {
            color: #374151;
            text-decoration: none;
            font-size: 15px;
            font-weight: 500;
            padding: 8px 12px;
            border-radius: 6px;
            transition: all 0.3s ease;
            position: relative;
            white-space: nowrap;
            overflow: hidden;
        }

        .nav-item::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 2px;
            background: var(--amaranth);
            transition: all 0.3s ease;
            transform: translateX(-50%);
        }

        .nav-item:hover::before,
        .nav-item.current::before {
            width: 80%;
        }

        .nav-item:hover {
            color: var(--amaranth);
            background: rgba(233, 30, 99, 0.05);
        }

        .nav-item.current {
            color: var(--amaranth);
            font-weight: 700;
        }

        /* Mobile Menu */
        .mobile-menu-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 10px 14px;
            min-width: 44px;
            min-height: 44px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            background: var(--amaranth);
            color: #fff;
            font-size: clamp(20px, 3vw, 24px);
            line-height: 1;
            box-shadow: 0 6px 20px rgba(0,0,0,.12);
        }

        .mobile-menu-btn img {
            width: 20px;
            height: 20px;
            display: block;
        }

        @media (min-width: 769px) {
            .mobile-menu-btn { display: none; }
        }

        .mobile-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,.35);
            opacity: 0;
            pointer-events: none;
            transition: opacity .2s ease;
            z-index: 9998;
        }

        .mobile-overlay.show {
            opacity: 1;
            pointer-events: auto;
        }

        .mobile-menu {
            position: fixed;
            top: 0;
            right: 0;
            height: 100vh;
            width: 300px;
            max-width: 88vw;
            background: #fff;
            transform: translateX(100%);
            transition: transform .22s ease;
            z-index: 9999;
            display: flex;
            flex-direction: column;
            box-sizing: border-box;
        }

        .mobile-menu.open { transform: translateX(0); }

        .mobile-menu-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px;
            border-bottom: 1px solid #eee;
            position: relative;
            z-index: 2;
        }

        .mobile-menu-title {
            font-weight: 700;
            font-size: 13px;
            color: #111827;
        }

        .mobile-menu-close {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border: none;
            border-radius: 10px;
            background: #f3f4f6;
            color: #111827;
            line-height: 1;
            cursor: pointer;
        }

        .mobile-menu-close img {
            width: 16px;
            height: 16px;
            display: block;
        }

        body.menu-open,
        body.selector-open { overflow: hidden; }

        .mobile-menu-nav {
            padding: 20px 0;
        }

        .mobile-nav-item {
            display: block;
            padding: 14px 18px;
            color: var(--gray-700);
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            border-bottom: 1px solid var(--gray-100);
            transition: all 0.2s;
        }

        .mobile-nav-item:hover,
        .mobile-nav-item.current {
            background: rgba(233, 30, 99, 0.05);
            color: var(--primary-color);
        }
/* Footer */
.footer {
    background: #333;
    color: #fff;
    padding: 40px 0 0px;
    margin-top: 30px;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 12px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 15px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

.footer-section p, .footer-section a {
    color: #ccc;
    text-decoration: none;
    line-height: 1.6;
    font-size: 14px;
    font-weight: 300;
    margin-bottom: 8px;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #ccc;
    font-size: 12px;
    font-weight: 300;
}
        /* Main Content */
.main-content,
.search-main,
main {
    width: 100%;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 0 24px;
}

        /* Search Section */
        .search-section {
            background: #fff;
            border-radius: 16px;
            padding: 24px 24px 16px;
            box-shadow: 0 4px 12px rgba(233, 30, 99, 0.15);
            border: 2px solid rgba(233, 30, 99, 0.1);
            margin-bottom: 4px;
            animation: slideInUp 0.8s ease-out 0.2s both;
            position: relative;
            overflow: visible;
            z-index: 10;
        }

        .search-section::before {
            content: none;
        }

        .search-title {
            font-size: 22px;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 16px;
            text-align: center;
            animation: slideInUp 0.6s ease-out 0.4s both;
            position: relative;
        }

        .search-title::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            margin-left: -40px;
            width: 80px;
            height: 3px;
            background: linear-gradient(90deg, var(--primary-color), #c2185b);
            border-radius: 2px;
            animation: scaleIn 0.8s ease-out 0.6s both;
        }

        .search-grid {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 12px;
            align-items: end;
            margin-bottom: 12px;
        }

        .field-wrap {
            position: relative;
            width: 100%;
        }

        .field {
            width: 100%;
            background: #fff;
            border: 2px solid rgba(209,213,219,.85);
            border-radius: 14px;
            padding: 12px 44px 12px 14px;
            font-size: var(--text-14);
            line-height: var(--lh-tight);
            color: #111827;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
            font-family: inherit;
        }

        .field-select {
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            background: #fff;
            cursor: pointer;
        }

        .field-button {
            background: #fff;
            cursor: pointer;
            display: flex;
            align-items: center;
            text-align: left;
        }

        .field:hover {
            border-color: rgba(209,213,219,1);
        }

        .field:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 4px rgba(233,30,99,.10);
        }

        .field-caret {
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            width: 14px;
            height: 14px;
            opacity: .75;
            pointer-events: none;
            color: #6b7280;
            display: block;
        }

        .field-wrap:hover .field-caret {
            opacity: .9;
        }

        .field-wrap:focus-within .field-caret {
            color: var(--primary-color);
            opacity: 1;
        }

        .wage-hourly,
        .wage-monthly,
        .recommended-words {
            grid-column: auto;
        }

        .selected-summary {
            grid-column: 1 / -1;
            padding: 10px 12px;
            border-radius: 12px;
            background: #f9fafb;
            border: 1px solid rgba(229,231,235,1);
            font-size: 12px;
            color: #374151;
            line-height: 1.4;
        }

        .selected-summary .pill {
            display: inline-block;
            max-width: 120px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            background: #fff;
            border: 1px solid rgba(229,231,235,1);
            border-radius: 999px;
            padding: 4px 8px;
            margin: 2px 6px 2px 0;
            font-weight: 600;
            font-size: 11px;
        }

        .filter-group {
            margin-bottom: 0;
        }

        .filter-label {
            display: block;
            font-weight: 700;
            color: var(--gray-800);
            margin-bottom: 10px;
            font-size: var(--text-14);
            letter-spacing: 0.3px;
        }

        .input-field {
            width: 100%;
            padding: 14px 16px;
            border: 2px solid rgba(209,213,219,.85);
            border-radius: 14px;
            font-size: var(--text-14);
            font-family: inherit;
            font-weight: 500;
            transition: all 0.3s ease;
            position: relative;
            background: #fff;
            box-shadow: none;
            line-height: var(--lh-tight);
        }

        .input-field:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.10);
            background: #ffffff;
        }

        .input-field:hover {
            border-color: rgba(209,213,219,1);
        }

        .input-field::placeholder {
            color: var(--gray-400);
            font-weight: 400;
        }

        /* Dropdown Styles */
        .custom-dropdown {
            position: relative;
            width: 100%;
        }



        .dropdown-content {
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            right: 0;
            background: white;
            border: 1px solid var(--gray-200);
            border-radius: 8px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.15);
            max-height: 300px;
            overflow-y: auto;
            z-index: 1000;
            display: none;
        }

        .dropdown-content.show {
            display: block;
        }

        .region-group {
            padding: 8px 0;
            border-bottom: 1px solid var(--gray-100);
        }

        .region-group:last-child {
            border-bottom: none;
        }

        .region-group-title {
            padding: 8px 16px;
            font-size: 12px;
            font-weight: 600;
            color: var(--gray-500);
            background: var(--gray-50);
            border-bottom: 1px solid var(--gray-100);
        }

        .dropdown-option {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 16px;
            cursor: pointer;
            transition: background 0.2s;
        }

        .dropdown-option:hover {
            background: var(--gray-50);
        }

        .dropdown-option input[type="checkbox"] {
            width: 16px;
            height: 16px;
            accent-color: var(--primary-color);
            cursor: pointer;
        }

        .dropdown-option label {
            font-size: 13px;
            color: var(--gray-700);
            cursor: pointer;
            flex: 1;
        }

        /* Search Button */
        .search-button {
            grid-column: 1 / -1;
            justify-self: center;
            width: 200px;
            padding: 16px;
            background: linear-gradient(135deg, var(--primary-color), #c2185b);
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 18px;
            font-weight: 700;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
            transition: all 0.4s ease;
            position: relative;
            overflow: hidden;
        }

        .search-button::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        .search-button:hover::before {
            width: 300px;
            height: 300px;
        }

        .search-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(233, 30, 99, 0.4);
            animation: pulse 2s infinite;
        }

        .search-button:active {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(233, 30, 99, 0.5);
        }

        .tag-selector-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,.35);
            opacity: 0;
            pointer-events: none;
            transition: opacity .2s ease;
            z-index: 10000;
        }

        .tag-selector-overlay.show {
            opacity: 1;
            pointer-events: auto;
        }

        .tag-selector-modal {
            position: fixed;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            opacity: 0;
            pointer-events: none;
            transition: opacity .2s ease;
            z-index: 10001;
        }

        .tag-selector-modal.open {
            opacity: 1;
            pointer-events: auto;
        }

        .tag-selector-panel {
            width: min(720px, 92vw);
            max-height: 80vh;
            background: #fff;
            border-radius: 16px;
            box-shadow: 0 20px 60px rgba(0,0,0,.25);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .input-field,
        .field {
            min-height: 44px;
        }

        .tag-selector-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px;
            border-bottom: 1px solid var(--gray-100);
        }

        .tag-selector-title {
            font-weight: 700;
            font-size: 14px;
            color: var(--gray-800);
        }

        .tag-selector-close {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            border: none;
            border-radius: 10px;
            background: #f3f4f6;
            cursor: pointer;
        }

        .tag-selector-close img {
            width: 16px;
            height: 16px;
            display: block;
        }

        .tag-selector-body {
            padding: 16px;
            overflow-y: auto;
            flex: 1;
        }

        .tag-selector-footer {
            display: flex;
            justify-content: flex-end;
            gap: 12px;
            padding: 16px;
            border-top: 1px solid var(--gray-100);
            background: #fff;
        }

        .tag-selector-clear {
            padding: 10px 16px;
            border-radius: 10px;
            border: 1px solid var(--gray-200);
            background: #fff;
            color: var(--gray-700);
            font-weight: 600;
            cursor: pointer;
        }

        .tag-selector-apply {
            padding: 10px 16px;
            border-radius: 10px;
            border: none;
            background: linear-gradient(135deg, var(--primary-color), #c2185b);
            color: #fff;
            font-weight: 700;
            cursor: pointer;
        }


        /* Tag Filter */
        .tag-container {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .tag-chip {
            padding: 8px 16px;
            background: linear-gradient(145deg, var(--gray-100), #f1f3f4);
            border: 1px solid var(--gray-200);
            border-radius: 20px;
            font-size: 12px;
            color: var(--gray-700);
            cursor: pointer;
            transition: all 0.3s ease;
            user-select: none;
            position: relative;
            overflow: hidden;
        }

        .tag-chip::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                90deg,
                transparent,
                rgba(233, 30, 99, 0.1),
                transparent
            );
            transition: left 0.3s ease;
        }

        .tag-chip:hover::before {
            left: 100%;
        }

        .tag-chip:hover {
            background: linear-gradient(145deg, var(--gray-200), #e5e7eb);
            transform: translateY(-2px) scale(1.02);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        .tag-chip.selected {
            background: linear-gradient(135deg, var(--primary-color), #c2185b);
            color: white;
            border-color: var(--primary-color);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
        }

        .tag-chip.selected:hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 6px 16px rgba(233, 30, 99, 0.4);
        }

        /* Results Section */
        .results-section {
            background: white;
            border-radius: 16px;
            padding: 24px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            margin-top: 6px;
        }

        .results-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
            flex-wrap: wrap;
            gap: 12px;
        }

        .results-count {
            font-size: 18px;
            font-weight: 600;
            color: var(--gray-900);
        }

        .view-controls {
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .sort-select {
            padding: 8px 12px;
            border: 1px solid var(--gray-200);
            border-radius: 6px;
            font-size: 14px;
            background: white;
            cursor: pointer;
        }

        /* Job Cards Grid */
        .job-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
        }

        @media (min-width: 1024px) {
            .job-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
        }


        .job-card {
            background: white;
            border-radius: var(--jobcard-radius);
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            transition: all 0.4s ease;
            cursor: pointer;
            border: 1px solid var(--gray-200);
            position: relative;
            animation: slideInUp 0.6s ease-out both;
        }

        .job-card * {
            min-width: 0;
        }

        .job-card:nth-child(1) { animation-delay: 0.1s; }
        .job-card:nth-child(2) { animation-delay: 0.2s; }
        .job-card:nth-child(3) { animation-delay: 0.3s; }
        .job-card:nth-child(4) { animation-delay: 0.4s; }
        .job-card:nth-child(5) { animation-delay: 0.5s; }
        .job-card:nth-child(6) { animation-delay: 0.6s; }

        .job-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(
                135deg,
                rgba(233, 30, 99, 0.05),
                rgba(194, 24, 91, 0.05)
            );
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }

        .job-card:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: 0 16px 40px rgba(0,0,0,0.15);
            border-color: rgba(233, 30, 99, 0.3);
        }

        .job-image {
            width: 100%;
            aspect-ratio: 16 / 9;
            height: auto;
            min-height: clamp(140px, 20vw, 180px);
            max-height: clamp(180px, 26vw, 240px);
            border-radius: 0;
            border: 1px solid rgba(229,231,235,1);
            box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
            background: #fff;
            background-size: cover;
            background-position: center;
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .job-image::after {
            content: "";
            position: absolute;
            inset: 0;
            background: rgba(255,255,255,.18);
            pointer-events: none;
            z-index: 1;
        }

        .job-image.p1 { background: #ede9fe; }
        .job-image.p2 { background: #e0f2fe; }
        .job-image.p3 { background: #ecfdf3; }
        .job-image.p4 { background: #fff7ed; }

        /* Job thumbnails should fit without stretching */
        .job-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            position: relative;
            z-index: 0;
        }

        .job-card:hover .job-image {
            transform: scale(1.05);
        }

        .job-badge {
            position: absolute;
            top: 12px;
            left: 12px;
            z-index: 2;
            background: var(--red-600);
            color: white;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 600;
        }

        .job-badge.new {
            background: var(--green-500);
            animation: float 3s ease-in-out infinite;
            transform: translateY(-4px);
            box-shadow: 0 12px 32px rgba(0,0,0,0.15);
        }

        .job-content {
            padding: 16px;
            position: relative;
        }

        .job-title {
            font-size: 16px;
            font-weight: 700;
            color: var(--gray-900);
            margin-bottom: 8px;
            line-height: 1.4;
            transition: color 0.3s ease;
        }

        .job-card:hover .job-title {
            color: var(--primary-color);
        }

        .job-location {
            font-size: 14px;
            color: var(--gray-500);
            margin-bottom: 12px;
            transition: all 0.3s ease;
        }

        .job-salary {
            font-size: 16px;
            font-weight: 600;
            color: var(--red-600);
            margin-bottom: 12px;
            transition: all 0.3s ease;
        }

        .job-card:hover .job-salary {
            transform: scale(1.02);
            color: #dc2626;
        }

        .job-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            max-height: 66px;
            overflow: hidden;
            margin-bottom: 12px;
            min-width: 0;
        }

        .job-tag {
            display: inline-flex;
            align-items: center;
            padding: 6px 12px;
            background: var(--gray-100);
            color: var(--gray-700);
            border-radius: 999px;
            font-size: 11px;
            font-weight: 500;
            max-width: 96px;
            flex: 0 1 auto;
            text-overflow: ellipsis;
            overflow: hidden;
            height: 28px;
            line-height: 28px;
            transition: all 0.3s ease;
            min-width: 0;
            white-space: nowrap;
        }

        .job-tag .tag-text {
            display: block;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .job-tag.highlight {
            background: #fef3c7;
            color: #92400e;
            animation: shimmer 2s infinite;
            background-image: linear-gradient(
                90deg,
                #fef3c7 0px,
                #fbbf24 40px,
                #fef3c7 80px
            );
            background-size: 200px;
        }

        .job-card:hover .job-tag {
            transform: translateY(-1px);
        }

        .job-meta {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            gap: 12px;
            margin-top: 10px;
        }

        .job-code {
            font-size: 11px;
            font-weight: 600;
            color: #9ca3af;
        }

        .job-posted {
            font-size: 12px;
            color: #6b7280;
        }

        /* Pagination */
        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            margin-top: 32px;
        }

        .pagination button {
            padding: 8px 12px;
            border: 1px solid var(--gray-200);
            background: white;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.2s;
        }

        .pagination button.active {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }

        .pagination button:hover:not(.active) {
            background: var(--gray-50);
            transform: translateY(-1px);
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            body {
                font-size: var(--text-13);
            }

            .header-content {
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
            }

            .main-nav {
                display: none;
            }

            .logo {
                font-size: 28px;
            }

            .search-grid {
                grid-template-columns: 1fr;
                gap: 10px;
            }

            .search-grid > * {
                grid-column: 1 / -1;
            }

            .breadcrumb-action-bar {
                top: var(--m-header-height);
            }

            .breadcrumb-nav {
                gap: 8px;
            }

            .breadcrumb-link,
            .breadcrumb-current {
                font-size: 13px;
                padding: 6px 10px;
            }

            .breadcrumb-separator {
                margin: 0 6px;
            }

            .wage-hourly,
            .wage-monthly,
            .recommended-words {
                grid-column: 1 / -1;
            }

            .filter-group {
                margin: 0;
            }

            .filter-label {
                margin: 0 0 6px 0;
                font-size: var(--text-13);
            }

            .search-section {
                padding: 16px 12px 12px;
                margin-bottom: 6px;
            }

            .field,
            .input-field,
            .select-field,
            .dropdown-button,
            .tag-selector-btn {
                min-height: 44px;
            }

            .job-grid {
                grid-template-columns: 1fr;
            }

            .results-header {
                flex-direction: column;
                align-items: stretch;
            }

            .main-content {
                padding: 8px 0 16px;
            }


            /* Mobile search optimizations */
            .search-title {
                font-size: 17px;
                margin-bottom: 10px;
            }

            .search-grid {
                padding-bottom: 12px;
            }

            .field,
            .input-field {
                min-height: 44px;
            }

            .input-field {
                padding: 12px 14px;
                font-size: var(--text-13);
                border-radius: 12px;
            }

            .field {
                padding: 12px 44px 12px 14px;
                font-size: var(--text-13);
                border-radius: 12px;
            }

            .search-button {
                padding: 16px;
                font-size: 15px;
                margin-top: 8px;
                border-radius: 12px;
            }

            .custom-dropdown {
                margin-bottom: 12px;
            }

            .tag-chip {
                padding: 10px 14px;
                font-size: 12px;
                border-radius: 18px;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                max-width: 110px;
            }


            /* Better mobile dropdowns */
            .dropdown-content {
                max-height: 60vh;
                font-size: 15px;
                z-index: 1500;
                border-radius: 16px;
                box-shadow: 0 20px 60px rgba(0,0,0,0.25);
                position: absolute;
                top: calc(100% + 8px);
                left: 0;
                right: 0;
                width: 100%;
                padding-bottom: 8px;
            }

            .dropdown-option {
                padding: 16px 20px;
            }

            .dropdown-option label {
                font-size: 15px;
            }

            .tag-selector-modal {
                align-items: flex-end;
                padding: 0;
            }

            .tag-selector-panel {
                width: 100%;
                max-height: 80vh;
                border-radius: 16px 16px 0 0;
            }

            /* Mobile job cards */
            .job-card {
                margin-bottom: 12px;
            }

            .job-content {
                padding: 14px;
            }

            .job-tags {
                gap: 6px;
                max-height: 58px;
                overflow: hidden;
            }

            .job-tag {
                max-width: 84px;
                font-size: 11px;
                padding: 6px 10px;
                height: 26px;
                line-height: 26px;
            }

            .job-save {
                width: 36px;
                height: 36px;
                font-size: 18px;
            }
            /* Mobile pagination - compact */
            .pagination {
                gap: 4px;
                margin-top: 20px;
            }

            .pagination button {
                padding: 6px 8px;
                font-size: 12px;
                min-width: 32px;
            }

            .pagination .mobile-hidden {
                display: none;
            }
        }

.filter-group-full {
    grid-column: 1 / -1;
}


.job-badge.popular {
    background: #f59e0b;
}

@media (max-width: 768px) {
  .breadcrumb-action-bar {
    display: none !important;
  }
}
