/* Jobs Page Styles */

.container {
    max-width: 88rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Jobs Headers (Flat Full White Background) --- */
.jobs-header-section {
    padding: 8.5rem 0 2.5rem;
    background: #ffffff;
}

.jobs-header-content {
    max-width: 48rem;
}

.jobs-subtitle {
    display: inline-block;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.jobs-main-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--fg);
    line-height: 1.15;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.jobs-desc {
    font-size: 1.05rem;
    color: var(--muted-fg);
    line-height: 1.6;
}

/* Jobs Section */
.jobs-section {
    padding: 4rem 0 6rem;
    background: #f8fafc;
    border-top: 1px solid var(--border);
}

/* Jobs Grid */
.jobs-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .jobs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Job Card */
.job-card {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid var(--border);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.job-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.job-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(17, 115, 212, 0.06);
    color: var(--primary);
}

.job-badge-hot {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
}

.job-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 1rem;
    line-height: 1.35;
    transition: color 0.2s ease;
}

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

.job-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.job-meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--muted-fg);
}

.job-meta-item i {
    color: var(--primary);
    font-size: 1rem;
    width: 1.25rem;
    text-align: center;
}

.job-card-footer {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.job-view {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.job-view i {
    transition: transform 0.2s ease;
}

.job-card:hover .job-view i {
    transform: translateX(4px);
}

/* Pagination */
.pagination-container {
    margin-top: 3.5rem;
    display: flex;
    justify-content: center;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 5rem 1rem;
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid var(--border);
}

.empty-state i {
    font-size: 3.5rem;
    color: var(--border);
    margin-bottom: 1.25rem;
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--muted-fg);
    font-size: 0.95rem;
}

/* Job Detail Section */
.job-detail-section {
    padding: 4rem 0 6rem;
    background: #f8fafc;
    border-top: 1px solid var(--border);
}

.job-detail-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .job-detail-grid {
        grid-template-columns: 1fr 360px;
    }
}

.job-detail-main {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.job-info-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.info-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 500;
    background: #f1f5f9;
    color: var(--fg);
    border: 1px solid var(--border);
}

.info-chip i {
    color: var(--primary);
}

.job-salary-box {
    background: linear-gradient(135deg, rgba(17, 115, 212, 0.03), rgba(17, 115, 212, 0.08));
    border: 1px solid rgba(17, 115, 212, 0.15);
    border-radius: 0.75rem;
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
}

.salary-label {
    font-size: 0.875rem;
    color: var(--muted-fg);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.salary-value {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary);
}

.job-description h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--fg);
    border-left: 4px solid var(--primary);
    padding-left: 0.75rem;
}

.job-description-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--fg);
}

.job-description-content p {
    margin-bottom: 1.25rem;
}

.job-description-content ul,
.job-description-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.job-description-content li {
    margin-bottom: 0.5rem;
}

/* Sidebar */
.job-detail-sidebar {
    position: sticky;
    top: 6rem;
}

.sidebar-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.sidebar-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--fg);
}

.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.sidebar-list li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.95rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-label {
    color: var(--muted-fg);
}

.sidebar-value {
    color: var(--fg);
    font-weight: 500;
    text-align: right;
}

.salary-highlight {
    color: #16a34a;
    font-weight: 600;
}

.btn-apply {
    width: 100%;
    justify-content: center;
}