﻿/* ==========================================================================
   N-Jobs â€” Front-End Design System
   Theme Tokens, Full-Width Search Workspace, Responsive Board Rows,
   Accessible Filter Drawer, Clean Text-Led Components
   ========================================================================== */

:root {
    --nj-slate: #463e56;
    --nj-slate-hover: #373044;
    --nj-slate-dark: #181520;
    --nj-slate-light: #f8fafc;
    --nj-slate-muted: #64748b;
    --nj-black: #0f172a;
    --nj-red: #FF4045;
    --nj-red-hover: #e03237;
    --nj-red-light: #fef2f2;
    --nj-lavender: #f0f3ff;
    --nj-lavender-border: #dbe2ff;
    --nj-lavender-text: #3b4580;
    --nj-teal: #2F7F78;
    --nj-teal-light: #f0f7f6;
    --nj-teal-border: #bfe0dc;
    --job-journey-accent: var(--nj-teal);
    --nj-border: #e2e8f0;
    --nj-border-hover: #cbd5e1;
    --nj-card-bg: #ffffff;
    --nj-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --nj-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    --nj-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
    --nj-radius-sm: 6px;
    --nj-radius-md: 8px;
    --nj-radius-lg: 12px;
    --nj-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--nj-font);
    background-color: var(--nj-slate-light);
    color: #1e293b;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Accessible focus ring */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--nj-slate);
    outline-offset: 2px;
}

.nj-container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Cookie Consent */
.nj-cookie-banner {
    background-color: #ffffff;
    border-top: 1px solid var(--nj-border);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 990;
    padding: 1rem 0;
}

    .nj-cookie-banner.hidden {
        display: none !important;
    }

.nj-cookie-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .nj-cookie-inner {
        flex-direction: row;
    }
}

.nj-cookie-text {
    font-size: 0.875rem;
    color: #475569;
}

    .nj-cookie-text a {
        color: var(--nj-slate);
        text-decoration: underline;
        font-weight: 600;
    }

/* Header */
.nj-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--nj-border);
    position: sticky;
    top: 0;
    z-index: 900;
    transition: box-shadow 0.2s;
}

    .nj-header.scrolled {
        box-shadow: var(--nj-shadow-md);
    }

.nj-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
}

.nj-brand-logo {
    height: 44px;
    width: auto;
    display: block;
}

.nj-nav-menu {
    display: none;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

@media (min-width: 768px) {
    .nj-nav-menu {
        display: flex;
    }
}

.nj-nav-link {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #475569;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.15s;
}

    .nj-nav-link:hover, .nj-nav-link.active {
        color: var(--nj-slate);
    }

    .nj-nav-link.active {
        color: var(--nj-slate);
        font-weight: 700;
    }

        .nj-nav-link.active::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 2px;
            background-color: var(--nj-slate);
            border-radius: 2px;
        }

.nj-header-actions {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .nj-header-actions {
        display: flex;
    }
}

.nj-hamburger-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .nj-hamburger-btn {
        display: none;
    }
}

.nj-hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--nj-slate);
    border-radius: 2px;
}

/* Mobile Drawer */
.nj-mobile-drawer {
    display: none;
    background-color: #ffffff;
    border-bottom: 1px solid var(--nj-border);
    padding: 1.25rem;
    box-shadow: var(--nj-shadow-lg);
}

    .nj-mobile-drawer.open {
        display: block;
    }

.nj-mobile-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

    .nj-mobile-links a {
        font-weight: 600;
        font-size: 1rem;
        color: #334155;
        display: block;
        padding: 0.4rem 0;
    }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--nj-radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--nj-slate);
    color: #ffffff;
}

    .btn-primary:hover {
        background-color: var(--nj-slate-hover);
    }

.btn-secondary {
    background-color: var(--nj-black);
    color: #ffffff;
}

    .btn-secondary:hover {
        background-color: #1e293b;
    }

.btn-accent {
    background-color: var(--nj-red);
    color: #ffffff;
}

    .btn-accent:hover {
        background-color: var(--nj-red-hover);
    }

.btn-outline {
    border-color: var(--nj-slate);
    color: var(--nj-slate);
    background-color: transparent;
}

    .btn-outline:hover {
        background-color: var(--nj-lavender);
    }

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* Homepage Hero */
.nj-hero {
    background: linear-gradient(135deg, #1f1b26 0%, #342d40 50%, #463e56 100%);
    color: #ffffff;
    padding: 3.75rem 0 4.25rem;
    position: relative;
    overflow: hidden;
}

.nj-hero-content {
    position: relative;
    z-index: 10;
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.nj-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .nj-hero-title {
        font-size: 3.25rem;
    }
}

.nj-hero-subtitle {
    font-size: 1.0625rem;
    color: #cbd5e1;
    max-width: 780px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    text-align: center;
}

/* Clean Search Console */
.nj-search-console {
    background-color: #ffffff;
    padding: 0.5rem;
    border-radius: var(--nj-radius-lg);
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

@media (min-width: 768px) {
    .nj-search-console {
        flex-direction: row;
        align-items: center;
        padding: 0.5rem 0.6rem;
    }
}

.nj-search-segment {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #f8fafc;
    border: 1px solid var(--nj-border);
    border-radius: var(--nj-radius-md);
    padding: 0.5rem 0.85rem;
    transition: border-color 0.15s, background-color 0.15s;
}

    .nj-search-segment:focus-within {
        border-color: var(--nj-slate);
        background-color: #ffffff;
        box-shadow: 0 0 0 2px rgba(70, 62, 86, 0.15);
    }

.nj-search-segment-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--nj-slate-muted);
    letter-spacing: 0.03em;
    margin-bottom: 0.1rem;
}

.nj-search-input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    color: #1e293b;
    outline: none;
}

    .nj-search-input::placeholder {
        color: #94a3b8;
    }

.nj-search-radius {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    color: #1e293b;
    outline: none;
    cursor: pointer;
}

@media (min-width: 768px) {
    .nj-search-segment.radius-segment {
        flex: 0 0 160px;
    }
}

.nj-search-btn {
    background-color: var(--nj-black);
    color: #ffffff;
    padding: 0.75rem 1.75rem;
    font-weight: 700;
    font-size: 0.9375rem;
    font-family: inherit;
    border-radius: var(--nj-radius-md);
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
}

    .nj-search-btn:hover {
        background-color: var(--nj-red);
    }

.nj-hero-trending {
    margin-top: 1.25rem;
    font-size: 0.8125rem;
    color: #cbd5e1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

    .nj-hero-trending span {
        color: #94a3b8;
    }

    .nj-hero-trending a {
        color: #e2e8f0;
        text-decoration: underline;
        text-underline-offset: 2px;
        transition: color 0.15s;
    }

        .nj-hero-trending a:hover {
            color: #ffffff;
        }

/* Browse Jobs by Category Section */
.nj-categories-section {
    padding: 4.5rem 0;
    background-color: #ffffff;
}

.nj-section-kicker {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--nj-slate);
    margin-bottom: 0.5rem;
}

.nj-section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3rem;
}

.nj-section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.nj-section-desc {
    font-size: 0.9375rem;
    color: var(--nj-slate-muted);
    line-height: 1.6;
}

.nj-category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 600px) {
    .nj-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .nj-category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.nj-category-card {
    background-color: #ffffff;
    border: 1px solid var(--nj-border);
    border-radius: var(--nj-radius-lg);
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
    box-shadow: var(--nj-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
}

    .nj-category-card:hover {
        transform: translateY(-3px);
        border-color: var(--nj-slate);
        box-shadow: var(--nj-shadow-md);
    }

.nj-category-card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.35rem;
    transition: color 0.15s;
}

.nj-category-card:hover .nj-category-card-title {
    color: var(--nj-slate);
}

.nj-category-card-desc {
    font-size: 0.8125rem;
    color: var(--nj-slate-muted);
    line-height: 1.45;
}

.nj-category-card-meta {
    margin-top: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--nj-slate);
}

.nj-categories-cta-wrapper {
    text-align: center;
    margin-top: 2.75rem;
}

/* ==========================================================================
   Full-Width Search Jobs Workspace
   ========================================================================== */
.nj-search-workspace {
    padding: 2.5rem 0 4.5rem;
}

.nj-search-header {
    margin-bottom: 1.75rem;
}

.nj-search-header-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.nj-search-header-sub {
    font-size: 0.9375rem;
    color: var(--nj-slate-muted);
    margin-top: 0.25rem;
}

.nj-search-panel-full {
    background-color: #ffffff;
    border: 1px solid var(--nj-border);
    border-radius: var(--nj-radius-lg);
    padding: 0.75rem;
    box-shadow: var(--nj-shadow-md);
    margin-bottom: 1.5rem;
}

.nj-search-panel-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

@media (min-width: 900px) {
    .nj-search-panel-form {
        flex-direction: row;
        align-items: center;
    }
}

.nj-results-control-bar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--nj-border);
    margin-bottom: 1.75rem;
}

@media (min-width: 768px) {
    .nj-results-control-bar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.nj-results-summary-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.nj-results-count {
    font-size: 0.9375rem;
    color: #334155;
}

.nj-active-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nj-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: var(--nj-lavender);
    color: var(--nj-lavender-text);
    border: 1px solid var(--nj-lavender-border);
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
}

.nj-results-actions-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nj-sort-wrapper {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nj-sort-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.nj-sort-select {
    border: 1px solid var(--nj-border);
    border-radius: var(--nj-radius-sm);
    padding: 0.4rem 0.65rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1e293b;
    background-color: #ffffff;
    outline: none;
    cursor: pointer;
}

.nj-filter-drawer {
    background-color: #ffffff;
    border: 1px solid var(--nj-border);
    border-radius: var(--nj-radius-lg);
    padding: 1.75rem;
    box-shadow: var(--nj-shadow-md);
    margin-bottom: 2rem;
    display: none;
    animation: filterSlide 0.2s ease;
}

    .nj-filter-drawer.open {
        display: block;
    }

@keyframes filterSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nj-filter-drawer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .nj-filter-drawer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .nj-filter-drawer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.nj-filter-col-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.nj-filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    list-style: none;
}

.nj-filter-checkbox-label {
    font-size: 0.8125rem;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

    .nj-filter-checkbox-label input {
        accent-color: var(--nj-slate);
    }

.nj-filter-drawer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--nj-border);
}

.nj-results-board {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.nj-result-row {
    background-color: #ffffff;
    border: 1px solid var(--nj-border);
    border-radius: var(--nj-radius-lg);
    padding: 1.75rem;
    box-shadow: var(--nj-shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

    .nj-result-row:hover {
        transform: translateY(-2px);
        border-color: var(--nj-slate);
        box-shadow: var(--nj-shadow-md);
    }

.nj-result-row-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .nj-result-row-header {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}

.nj-row-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.nj-row-salary {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

.nj-row-snippet {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.6;
}

.nj-result-row-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

@media (min-width: 768px) {
    .nj-result-row-footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.nj-row-meta-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: #64748b;
}

.nj-badge-partner {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    background-color: var(--nj-lavender);
    color: var(--nj-lavender-text);
    border: 1px solid var(--nj-lavender-border);
    padding: 0.2rem 0.55rem;
    border-radius: var(--nj-radius-sm);
    width: fit-content;
}

.nj-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 2rem;
}

.nj-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    background-color: #ffffff;
    border: 1px solid var(--nj-border);
    border-radius: var(--nj-radius-sm);
    transition: all 0.15s;
}

    .nj-page-btn:hover {
        border-color: var(--nj-slate);
        color: var(--nj-slate);
    }

    .nj-page-btn.active {
        background-color: var(--nj-slate);
        color: #ffffff;
        border-color: var(--nj-slate);
    }

.nj-no-results-box {
    background-color: #ffffff;
    border: 1px solid var(--nj-border);
    border-radius: var(--nj-radius-lg);
    padding: 3.5rem 2rem;
    text-align: center;
    box-shadow: var(--nj-shadow-sm);
}

.nj-no-results-title {
    font-size: 1.375rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.nj-no-results-text {
    font-size: 0.9375rem;
    color: #64748b;
    max-width: 820px;
    margin: 0 auto 1.75rem;
    line-height: 1.6;
    text-align: center;
}

/* Inner Page Banner */
.nj-inner-banner {
    background: linear-gradient(135deg, #241f2d 0%, #463e56 100%);
    color: #ffffff;
    padding: 2.75rem 0;
}

.nj-inner-title {
    font-size: 1.875rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.nj-breadcrumbs {
    font-size: 0.8125rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .nj-breadcrumbs a {
        color: #e2e8f0;
    }

        .nj-breadcrumbs a:hover {
            color: #ffffff;
            text-decoration: underline;
        }

/* Forms & Cards */
.nj-card-box {
    background-color: #ffffff;
    border: 1px solid var(--nj-border);
    border-radius: var(--nj-radius-lg);
    padding: 2rem;
    box-shadow: var(--nj-shadow-sm);
}

.nj-form-group {
    margin-bottom: 1.25rem;
}

.nj-form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.4rem;
}

.nj-input {
    width: 100%;
    height: 46px;
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
    font-family: inherit;
    color: #1e293b;
    background-color: #ffffff;
    border: 1px solid var(--nj-border);
    border-radius: var(--nj-radius-sm);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

    .nj-input:focus {
        border-color: var(--nj-slate);
        box-shadow: 0 0 0 3px rgba(70, 62, 86, 0.15);
    }

    .nj-input.is-invalid {
        border-color: var(--nj-red) !important;
        background-color: var(--nj-red-light);
    }

.nj-error-text {
    font-size: 0.75rem;
    color: var(--nj-red);
    margin-top: 0.35rem;
    font-weight: 600;
    display: block;
}

.nj-validation-summary {
    background-color: var(--nj-red-light);
    border: 1px solid #fca5a5;
    border-radius: var(--nj-radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    color: #991b1b;
    font-size: 0.8125rem;
}

    .nj-validation-summary strong {
        display: block;
        font-size: 0.875rem;
        margin-bottom: 0.35rem;
    }

    .nj-validation-summary ul {
        list-style: disc inside;
    }

/* ==========================================================================
   Footer Network Statement Wrapping
   ========================================================================== */
.nj-footer {
    background-color: var(--nj-slate-dark);
    color: #94a3b8;
    font-size: 0.875rem;
    border-top: 1px solid #241f2d;
}

.nj-footer-top {
    padding: 4rem 0 3rem;
}

.nj-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .nj-footer-grid {
        grid-template-columns: 2fr 1fr 1fr 2fr;
    }
}

.nj-footer-title {
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.nj-footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

    .nj-footer-links a {
        color: #cbd5e1;
        transition: color 0.15s;
    }

        .nj-footer-links a:hover {
            color: #ffffff;
        }

.nj-footer-logo {
    height: 38px;
    width: auto;
    max-width: 160px;
    display: block;
    margin-bottom: 1rem;
}

.nj-footer-statement {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #94a3b8;
}

.nj-nowrap {
    white-space: nowrap;
    display: inline;
}

.nj-footer-bottom {
    border-top: 1px solid #241f2d;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.8125rem;
    color: #64748b;
}

/* Modal */
.nj-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

    .nj-modal-overlay.hidden {
        display: none !important;
    }

.nj-modal-card {
    background-color: #ffffff;
    border-radius: var(--nj-radius-lg);
    max-width: 480px;
    width: 100%;
    padding: 2rem;
    box-shadow: var(--nj-shadow-lg);
    position: relative;
}

/* ==========================================================================
   Reusable Infographic Section: jb-journey-section
   "Your next opportunity in three simple steps"
   With Photographic 4:3 Image Boxes, Muted Teal Theme Accent (#2F7F78),
   and Single-Line Desktop Supporting Sentence
   ========================================================================== */
.jb-journey-section {
    padding: 4.5rem 0 5rem;
    background-color: var(--nj-slate-light);
    border-top: 1px solid var(--nj-border);
    border-bottom: 1px solid var(--nj-border);
    position: relative;
    overflow: hidden;
}

.jb-journey-header {
    text-align: center;
    max-width: 960px;
    margin: 0 auto 3rem;
}

.jb-journey-kicker {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--job-journey-accent);
    background-color: var(--nj-teal-light);
    border: 1px solid var(--nj-teal-border);
    padding: 0.3rem 0.85rem;
    border-radius: 9999px;
    margin-bottom: 0.85rem;
}

/* Controlled Heading Wrapping */
.jb-journey-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.025em;
    line-height: 1.25;
    margin-bottom: 0.75rem;
    text-align: center;
}

.jb-journey-title-line {
    display: inline;
}

@media (min-width: 1024px) {
    .jb-journey-title {
        font-size: 2.35rem;
        white-space: nowrap;
    }

    .jb-journey-title-line {
        display: inline;
    }
}

@media (max-width: 1023px) {
    .jb-journey-title {
        font-size: 1.85rem;
    }

    .jb-journey-title-line {
        display: block;
    }
}

@media (max-width: 480px) {
    .jb-journey-title {
        font-size: 1.5rem;
    }
}

/* Supporting Sentence: Single Line at Desktop Widths */
.jb-journey-subtitle {
    font-size: 1.0625rem;
    color: var(--nj-slate-muted);
    line-height: 1.6;
    max-width: 70rem;
    margin: 0 auto;
    text-align: center;
}

@media (min-width: 1024px) {
    .jb-journey-subtitle {
        white-space: nowrap;
    }
}

@media (max-width: 1023px) {
    .jb-journey-subtitle {
        white-space: normal;
        max-width: 38rem;
    }
}

/* Unified Infographic Container */
.jb-infographic-container {
    max-width: 1140px;
    margin: 0 auto;
    background-color: #ffffff;
    border: 1px solid var(--nj-border);
    border-radius: var(--nj-radius-lg);
    padding: 3.5rem 2.5rem;
    box-shadow: var(--nj-shadow-sm);
    position: relative;
}

@media (max-width: 640px) {
    .jb-infographic-container {
        padding: 2.5rem 1.25rem;
    }
}

/* Infographic Track */
.jb-infographic-track {
    position: relative;
}

@media (min-width: 860px) {
    .jb-infographic-track {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
        /* Continuous Teal CSS connecting line behind numbers */
        .jb-infographic-track::before {
            content: "";
            position: absolute;
            top: 18px;
            left: 16%;
            right: 16%;
            height: 2px;
            background-color: var(--job-journey-accent);
            opacity: 0.35;
            z-index: 1;
        }
}

@media (max-width: 859px) {
    .jb-infographic-track {
        display: flex;
        flex-direction: column;
        gap: 2.5rem;
    }
}

/* Step Item */
.jb-infographic-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Step Visual Node with Number and 4:3 Photographic Image Box */
.jb-step-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 1.5rem;
}

.jb-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 800;
    background-color: var(--job-journey-accent);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(47, 127, 120, 0.3);
    border: 3px solid #ffffff;
    margin-bottom: -18px;
    position: relative;
    z-index: 4;
}

/* Identical Image Box Format (4:3 Landscape Ratio) */
.jb-step-image-box {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--nj-radius-md);
    overflow: hidden;
    border: 1px solid var(--nj-border);
    box-shadow: var(--nj-shadow-sm);
    background-color: #f8fafc;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    z-index: 2;
}

.jb-infographic-step:hover .jb-step-image-box {
    transform: translateY(-3px);
    border-color: var(--job-journey-accent);
    box-shadow: var(--nj-shadow-md);
}

.jb-step-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Step Content (Identical Typography and Alignment across all 3 steps) */
.jb-step-content {
    width: 100%;
}

.jb-step-heading {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.015em;
    margin-bottom: 0.5rem;
}

.jb-step-desc {
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.6;
    max-width: 330px;
    margin: 0 auto;
    text-align: center;
}

/* CTA */
.jb-journey-cta-wrapper {
    text-align: center;
    margin-top: 3rem;
}
/* Controlled balanced lines for deliberate desktop text wrapping */
.nj-balanced-line,
.jb-balanced-line {
    display: block;
}

.nj-no-results-alert-text {
    font-size: 0.8125rem;
    color: #64748b;
    margin-bottom: 0.75rem;
    line-height: 1.5;
    text-align: center;
}

.nj-footer-newsletter-text {
    font-size: 0.8125rem;
    color: #94a3b8;
    line-height: 1.55;
    margin-bottom: 1rem;
}

/* Scoped Content Typography for Text Pages (About, Privacy, Terms) */
.nj-card-box h2 {
    font-size: 1.375rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 2.25rem;
    margin-bottom: 0.85rem;
    line-height: 1.3;
}

    .nj-card-box h2:first-of-type {
        margin-top: 0;
    }

.nj-card-box p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
    color: #334155;
    font-size: 0.9375rem;
}

.nj-card-box ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    color: #334155;
    font-size: 0.9375rem;
}

.nj-card-box li {
    line-height: 1.6;
}

.nj-card-box a {
    color: var(--nj-slate);
    text-decoration: underline;
    font-weight: 600;
}

    .nj-card-box a:hover {
        color: var(--nj-slate-hover);
    }

.text-danger, .validation-summary-errors li {
    color: red;
    font-size: 13px;
}

.text-center {
    text-align: center;
}

.dropdown {
    position: relative;
}

/* Style the dropdown button */
.dropbtn {
    font-family: var(--nj-font);
    background-color: white;
    color: #475569;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

/* Dropdown content */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

    /* Links inside dropdown content */
    .dropdown-content a {
        color: #475569;
        padding: 10px 10px;
        text-decoration: none;
        display: block;
        font-size: 0.9375rem;
        font-weight: 600;
        font-family: var(--nj-font);
    }

        /* Change color of dropdown links on hover */
        .dropdown-content a:hover {
            background-color: #f1f1f1;
            color: black;
        }

/* Show the dropdown content on hover */
.dropdown:hover .dropdown-content {
    display: block;
}


/* ==========================================================================
   Job Detail & Expired Job Templates (N-Jobs Design System)
   ========================================================================== */

.nj-vacancy-container {
    max-width: 980px;
    padding: 2.5rem 1.5rem 4rem;
}

/* Back Link Navigation */
.nj-back-navigation {
    margin-bottom: 1.5rem;
}

.nj-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--nj-slate);
    font-weight: 600;
    font-size: 0.875rem;
    transition: color 0.15s;
}

    .nj-back-link:hover {
        color: var(--nj-slate-hover);
        text-decoration: underline;
    }

    .nj-back-link svg {
        flex-shrink: 0;
    }

/* 1. Job Header Card */
.nj-job-header-card {
    background-color: #ffffff;
    border: 1px solid var(--nj-border);
    border-radius: var(--nj-radius-lg);
    padding: 2rem;
    box-shadow: var(--nj-shadow-sm);
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .nj-job-header-card {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}

.nj-job-header-main {
    flex: 1;
    min-width: 0;
}

.nj-job-badge-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.nj-badge-status {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: var(--nj-radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.nj-badge-active {
    background-color: var(--nj-teal-light);
    color: var(--nj-teal);
    border: 1px solid var(--nj-teal-border);
}

.nj-badge-expired {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.nj-job-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 0.85rem;
    word-break: break-word;
}

@media (min-width: 768px) {
    .nj-job-title {
        font-size: 2rem;
    }
}

.nj-job-primary-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    font-size: 0.9375rem;
    color: #475569;
}

.nj-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nj-meta-divider {
    color: #cbd5e1;
}

.nj-meta-salary {
    font-weight: 700;
    color: #0f172a;
}

.nj-job-header-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    min-width: 190px;
    text-align: center;
}

@media (min-width: 768px) {
    .nj-job-header-actions {
        align-items: flex-end;
    }
}

.nj-btn-apply {
    min-width: 190px;
}

.nj-external-note {
    font-size: 0.75rem;
    color: #64748b;
    display: block;
}

/* 2. Horizontal Structured Job-Facts Strip */
.nj-job-facts-strip {
    background-color: #ffffff;
    border: 1px solid var(--nj-border);
    border-radius: var(--nj-radius-lg);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--nj-shadow-sm);
}

.nj-facts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin: 0;
}

@media (min-width: 576px) {
    .nj-facts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 860px) {
    .nj-facts-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.nj-fact-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    border-left: 3px solid var(--nj-slate);
    padding-left: 0.85rem;
}

.nj-fact-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.nj-fact-val {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.nj-fact-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    background-color: var(--nj-lavender);
    color: var(--nj-lavender-text);
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
}

/* 3. Main Job Description Card & Content */
.nj-job-body-card {
    background-color: #ffffff;
    border: 1px solid var(--nj-border);
    border-radius: var(--nj-radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--nj-shadow-sm);
}

.nj-job-section {
    margin-bottom: 2.25rem;
}

    .nj-job-section:last-of-type {
        margin-bottom: 2.5rem;
    }

.nj-job-section-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.85rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid #f1f5f9;
}

.nj-job-body-card p {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: #334155;
    margin-bottom: 1.15rem;
}

.nj-job-list {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: #334155;
    line-height: 1.6;
}

/* 4. Footer CTA */
.nj-job-footer-cta {
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, var(--nj-lavender) 100%);
    border: 1px solid var(--nj-lavender-border);
    border-radius: var(--nj-radius-md);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 640px) {
    .nj-job-footer-cta {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.nj-cta-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.nj-cta-subtitle {
    font-size: 0.875rem;
    color: #64748b;
}

/* ==========================================================================
   Expired Job Specific Styles
   ========================================================================== */

.nj-expired-card {
    background-color: #ffffff;
    border: 1px solid var(--nj-border);
    border-radius: var(--nj-radius-lg);
    padding: 3rem 2rem;
    box-shadow: var(--nj-shadow-sm);
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.nj-expired-header {
    margin-bottom: 2rem;
}

.nj-expired-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 0.85rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .nj-expired-title {
        font-size: 2.25rem;
    }
}

.nj-expired-lead {
    font-size: 1rem;
    color: #475569;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Reassuring Snapshot Box */
.nj-expired-snapshot {
    background-color: #f8fafc;
    border: 1px solid var(--nj-border);
    border-radius: var(--nj-radius-md);
    padding: 1.75rem;
    margin-bottom: 2.25rem;
    text-align: left;
}

.nj-snapshot-heading {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.nj-snapshot-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 0;
}

@media (min-width: 576px) {
    .nj-snapshot-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.nj-snapshot-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

    .nj-snapshot-item dt {
        font-size: 0.75rem;
        color: #64748b;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }

    .nj-snapshot-item dd {
        font-size: 0.9375rem;
        color: #0f172a;
        font-weight: 500;
        margin: 0;
    }

/* Expired Actions */
.nj-expired-actions {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

@media (min-width: 576px) {
    .nj-expired-actions {
        flex-direction: row;
        gap: 1rem;
    }
}

.nj-expired-help {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
}

    .nj-expired-help a {
        color: var(--nj-slate);
        font-weight: 600;
        text-decoration: underline;
    }

        .nj-expired-help a:hover {
            color: var(--nj-slate-hover);
        }

/* Responsive Breakpoint Polish for Job Detail and Expired Job */
@media (max-width: 640px) {
    .nj-vacancy-container {
        padding: 1.5rem 1rem 3rem;
    }

    .nj-job-header-card,
    .nj-job-facts-strip,
    .nj-job-body-card {
        padding: 1.5rem 1.15rem;
    }

    .nj-job-title {
        font-size: 1.25rem;
        line-height: 1.3;
        word-break: normal;
        overflow-wrap: break-word;
    }

    .nj-expired-card {
        padding: 2rem 1.15rem;
    }

    .nj-expired-title {
        font-size: 1.35rem;
        line-height: 1.25;
    }

    .nj-expired-lead {
        font-size: 0.9375rem;
        line-height: 1.5;
    }

    .nj-expired-actions {
        flex-direction: column;
        width: 100%;
    }

        .nj-expired-actions .btn {
            width: 100%;
        }

    .nj-snapshot-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
}