/* Responsive styles for filters */
.jobs-filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
    text-align: left;
}
.jobs-filter-wrapper select,
.jobs-filter-wrapper button {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    padding: 8px 12px;
    font-size: 16px;
    border: 1px solid #1e3a5f;
    border-radius: 5px;
    background: #f8fafc;
    margin-bottom: 0;
}
.jobs-filter-wrapper button {
    background: #e2e8f0;
    color: #1e3a5f;
    cursor: pointer;
    margin-left: 16px;
}

@media (max-width: 700px) {
    .jobs-filter-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .jobs-filter-wrapper select,
    .jobs-filter-wrapper button {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin-left: 0;
    }
}
/* ── Job Card Flex Container ── */
.job-card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    align-items: stretch;
}
.job-card {
    width: 30%;
    max-width: 320px;
    min-width: 300px;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: #334155;
    line-height: 1.6;
    background: #f1f5f9;
}

/* ── Header ── */
.site-header {
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: 'DM Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #1e3a5f;
}
.main-nav a {
    margin-left: 32px;
    color: #334155;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.main-nav a:hover, .main-nav a.active { color: #0891b2; }

/* ── Hero Banner ── */
.hero-banner {
    background: linear-gradient(135deg, #1e3a5f 0%, #0c4a6e 40%, #0891b2 100%);
    padding: 56px 24px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-banner::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(8,145,178,0.25) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-banner::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-banner h1 {
    font-family: 'DM Sans', sans-serif;
    font-size: 40px;
    color: white;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}
.hero-banner p {
    color: rgba(255,255,255,0.85);
    font-size: 18px;
    position: relative;
    z-index: 1;
}

/* ── Stats Strip ── */
.stats-strip {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 24px;
}
.stats-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 0;
}
.stat-item {
    padding: 20px 48px;
    text-align: center;
    border-right: 1px solid #e2e8f0;
}
.stat-item:last-child { border-right: none; }
.stat-number {
    font-family: 'DM Sans', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #0891b2;
}
.stat-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
    margin-top: 2px;
}

/* ── Toolbar ── */
.toolbar {
    max-width: 1400px;
    margin: 32px auto 24px;
    padding: 0 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.search-box {
    flex: 1;
    min-width: 280px;
    position: relative;
}
.search-box input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s;
    background: white;
}
.search-box input:focus { outline: none; border-color: #0891b2; }
.search-box .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
}
.filter-btn {
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    color: #475569;
}
.filter-btn:hover { border-color: #0891b2; color: #0891b2; }
.filter-btn.active { background: #0891b2; color: white; border-color: #0891b2; }
.view-toggle {
    display: flex;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}
.view-toggle button {
    padding: 10px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    color: #94a3b8;
    transition: all 0.2s;
}
.view-toggle button.active { background: #1e3a5f; color: white; }
.view-toggle button:hover:not(.active) { color: #0891b2; }

/* ── Filter Chips ── */
.active-filters {
    max-width: 1400px;
    margin: 0 auto 20px;
    padding: 0 24px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.chip-dept { background: #dbeafe; color: #1e40af; }
.chip-type { background: #fce7f3; color: #be185d; }
.chip-status { background: #d1fae5; color: #059669; }
.chip-loc { background: #fef3c7; color: #d97706; }
.chip .remove { opacity: 0.6; font-size: 11px; }
.chip:hover .remove { opacity: 1; }

/* ── Main Content ── */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.jazz-hr-jobs-list{
    display: flex;
    width: 100%;
}
div.job-card-container{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    align-items: stretch;   
}
a.apply-btn {
    padding: 5px 20px;
    border: solid 1px #c7c7c7;
    border-radius: 4px;
    color: #484747;
    font-size: 14px;
    text-decoration: none !important;
    background: #ffffff;
    transition: color .7s, background .7s;
}
a.apply-btn:hover{
    background: #484747;
    color: #ffffff;
    transition: color .7s, background .7s;
}
/* ── Card Grid View ── */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 24px;
}

.job-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}
.job-card:hover {
    box-shadow: 0 8px 30px rgba(30,58,95,0.12);
    transform: translateY(-3px);
}
.job-card.expanded { grid-column: 1 / -1; }

/* Status accent stripe */
.card-accent {
    height: 4px;
    width: 100%;
}
.accent-open { background: linear-gradient(90deg, #059669, #34d399); }
.accent-draft { background: linear-gradient(90deg, #d97706, #fbbf24); }
.accent-closed { background: linear-gradient(90deg, #dc2626, #f87171); }
.accent-on-hold { background: linear-gradient(90deg, #6366f1, #a78bfa); }

.card-body { padding: 24px; }

.card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.card-badges { display: flex; gap: 6px; flex-wrap: wrap; }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-open { background: #d1fae5; color: #059669; }
.badge-draft { background: #fef3c7; color: #d97706; }
.badge-closed { background: #fee2e2; color: #dc2626; }
.badge-on-hold { background: #e0e7ff; color: #6366f1; }
.badge-ft { background: #dbeafe; color: #2563eb; }
.badge-pt { background: #fce7f3; color: #be185d; }
.badge-contract { background: #f3e8ff; color: #7c3aed; }
.badge-temp { background: #ffedd5; color: #ea580c; }
.badge-board { background: #ecfdf5; color: #047857; font-size: 10px; padding: 2px 8px; }

.card-id {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
    font-family: 'SF Mono', 'Fira Code', monospace;
    white-space: nowrap;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 6px;
    line-height: 1.3;
}

.card-dept {
    font-size: 14px;
    font-weight: 600;
    color: #0891b2;
    margin-bottom: 16px;
}

/* Info grid inside card */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
    margin-bottom: 16px;
}
.info-item { display: flex; flex-direction: column; }
.info-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
    margin-bottom: 2px;
}
.info-value {
    font-size: 14px;
    color: #334155;
    font-weight: 500;
}
.info-value.salary {
    color: #059669;
    font-weight: 600;
}

/* Salary visual bar */
.salary-bar-wrapper {
    margin: 16px 0;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
}
.salary-bar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.salary-bar-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
}
.salary-bar-amount {
    font-size: 13px;
    font-weight: 600;
    color: #1e3a5f;
}
.salary-track {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}
.salary-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #0891b2, #06b6d4);
    transition: width 0.6s ease;
}
.salary-public-marker {
    position: absolute;
    top: -3px;
    height: 14px;
    width: 2px;
    background: #1e3a5f;
    border-radius: 1px;
}
.salary-legend {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #64748b;
}
.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.legend-dot.internal { background: #0891b2; }
.legend-dot.public { background: #1e3a5f; }

/* Expandable detail section */
.card-details {
    
    transition: max-height 0.4s ease, padding 0.3s ease;
    border-top: 0px solid transparent;
}
.card-details.open {
    max-height: 600px;
    border-top: 1px solid #e2e8f0;
    padding: 20px 0 0;
}
.detail-grid {
    /*display: grid;*/
    display: none;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px 24px;
}
.detail-notes {
    grid-column: 1 / -1;
    margin-top: 8px;
    padding: 12px 16px;
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
    border-radius: 0 6px 6px 0;
    font-size: 13px;
    color: #92400e;
    line-height: 1.5;
}
.detail-description {
    grid-column: 1 / -1;
    margin-top: 4px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
    max-height: 100px;
    overflow-y: auto;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.hiring-lead {
    display: flex;
    align-items: center;
    gap: 8px;
}
.lead-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a5f, #0891b2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 13px;
    font-weight: 700;
}
.lead-info { display: flex; flex-direction: column; }
.lead-name { font-size: 13px; font-weight: 600; color: #1e3a5f; }
.lead-role { font-size: 11px; color: #94a3b8; }

.expand-btn {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}
.expand-btn:hover { border-color: #0891b2; color: #0891b2; }

/* ── Table View ── */
.jobs-table-wrapper {
    display: none;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow-x: auto;
}
.jobs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.jobs-table thead {
    background: #f8fafc;
    position: sticky;
    top: 0;
}
.jobs-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}
.jobs-table th:hover { color: #0891b2; }
.jobs-table th .sort-arrow { margin-left: 4px; font-size: 10px; }
.jobs-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    white-space: nowrap;
}
.jobs-table tbody tr {
    transition: background 0.15s;
}
.jobs-table tbody tr:hover { background: #f8fafc; }
.table-title {
    font-weight: 600;
    color: #1e3a5f;
    max-width: 220px;
    white-space: normal;
}
.table-dept { color: #0891b2; font-weight: 500; }
.table-salary { color: #059669; font-weight: 600; }
.table-id { font-family: 'SF Mono', monospace; font-size: 12px; color: #94a3b8; }
.table-location { color: #475569; }
.table-date { color: #64748b; }
.board-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.board-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.board-dot.yes { background: #059669; }
.board-dot.no { background: #dc2626; }



/* ── Responsive ── */
@media (max-width: 900px) {
    .jobs-grid { grid-template-columns: 1fr; }
    .hero-banner h1 { font-size: 28px; }
    .stat-item { padding: 16px 24px; }
    .stats-inner { flex-wrap: wrap; }
    .detail-grid { grid-template-columns: 1fr 1fr; }
    .main-nav { display: none; }
    .info-grid { grid-template-columns: 1fr; }
}

/* ── Animations ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.job-card { animation: fadeUp 0.5s ease both; }
.job-card:nth-child(2) { animation-delay: 0.05s; }
.job-card:nth-child(3) { animation-delay: 0.1s; }
.job-card:nth-child(4) { animation-delay: 0.15s; }
.job-card:nth-child(5) { animation-delay: 0.2s; }
.job-card:nth-child(6) { animation-delay: 0.25s; }