/* =============================================
   JOB PORTAL - style.css
   Modern Glassmorphism Design
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* === CSS VARIABLES === */
:root {
    --primary: #D97706;
    --primary-light: #F59E0B;
    --primary-dark: #B45309;
    --primary-pale: #FEF3C7;
    --secondary: #92400E;
    --accent: #FBBF24;
    --success: #10b981;
    --warning: #F59E0B;
    --danger: #ef4444;
    --gradient: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    --gradient-soft: linear-gradient(135deg, #FEF9C3 0%, #FEF3C7 100%);

    /* Light Mode */
    --bg: #FFFBEB;
    --bg-2: #FEF9C3;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-solid: #ffffff;
    --surface-hover: rgba(255, 255, 255, 0.98);
    --glass: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.85);
    --text-primary: #1c1917;
    --text-secondary: #57534e;
    --text-muted: #a8a29e;
    --border: rgba(180, 83, 9, 0.15);
    --shadow: 0 4px 24px rgba(217, 119, 6, 0.10);
    --shadow-md: 0 8px 40px rgba(217, 119, 6, 0.14);
    --shadow-lg: 0 20px 60px rgba(217, 119, 6, 0.20);
    --navbar-bg: rgba(255, 251, 235, 0.80);
}

[data-theme="dark"] {
    --bg: #1c1400;
    --bg-2: #231a00;
    --surface: rgba(35, 26, 0, 0.90);
    --surface-solid: #231a00;
    --surface-hover: rgba(45, 34, 0, 0.98);
    --glass: rgba(35, 26, 0, 0.65);
    --glass-border: rgba(245, 158, 11, 0.25);
    --text-primary: #fef3c7;
    --text-secondary: #d6b67a;
    --text-muted: #78614a;
    --border: rgba(245, 158, 11, 0.18);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 40px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.7);
    --navbar-bg: rgba(28, 20, 0, 0.85);
}

[data-theme="dark"] .btn-apply-white:disabled,
[data-theme="dark"] .btn-apply-white.is-disabled {
    background: #44403c;
    color: #a8a29e;
}

/* === RESET & BASE === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    transition: background 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 80% 60% at 20% -10%, rgba(245, 158, 11, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 110%, rgba(217, 119, 6, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

input, select, textarea {
    font-family: inherit;
    outline: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.2;
}

.font-display {
    font-family: 'Space Grotesk', sans-serif;
}

/* === UTILITY === */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-8 {
    gap: 8px;
}

.gap-12 {
    gap: 12px;
}

.gap-16 {
    gap: 16px;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-primary);
    flex-shrink: 0;
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
}

.logo-text span {
    color: var(--primary);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.25s ease;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: rgba(217, 119, 6, 0.08);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-ghost {
    padding: 9px 20px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    background: transparent;
    border: 1.5px solid var(--border);
    transition: all 0.25s ease;
}

.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(217, 119, 6, 0.06);
}

.btn-primary {
    padding: 9px 20px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    background: var(--gradient);
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.25s ease;
}

.theme-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--surface);
    border: 1.5px solid var(--border);
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.detail-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, rgba(245, 158, 11, .06) 0%, rgba(217, 119, 6, .04) 100%);
    border-bottom: 1px solid var(--border);
}

.detail-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
}

.detail-company-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.detail-logo {
    width: 72px;
    height: 72px;
    background: var(--gradient-soft);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 1px solid var(--border);
    flex-shrink: 0;
}


.detail-header-card {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 32px;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-md);
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.45) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: float1 8s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.35) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: float2 10s ease-in-out infinite;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.45) 0%, transparent 70%);
    top: 50%;
    left: 40%;
    animation: float3 7s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes float3 {
    0%, 100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(20px, -15px);
    }

    66% {
        transform: translate(-15px, 10px);
    }
}

.hero-content {
    position: relative;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 28px;
    animation: slideDown 0.6s ease forwards;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

    50% {
        opacity: 0.6;
        transform: scale(1.3);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 20px;
    animation: slideUp 0.7s ease 0.1s both;
}

.hero-title .gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 44px;
    line-height: 1.7;
    animation: slideUp 0.7s ease 0.2s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 52px;
    animation: slideUp 0.7s ease 0.3s both;
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Hero CTA Buttons */
.hero-cta-wrap {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    animation: slideUp 0.7s ease 0.4s both;
}

.btn-hero-primary {
    padding: 14px 32px;
    background: var(--gradient);
    color: white;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.40);
    transition: all 0.25s ease;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(217, 119, 6, 0.55);
}

.btn-hero-ghost {
    padding: 14px 32px;
    background: var(--glass);
    color: var(--text-primary);
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid var(--border);
    backdrop-filter: blur(10px);
    transition: all 0.25s ease;
}

.btn-hero-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Search Bar (detail page) */
.search-wrapper {
    animation: slideUp 0.7s ease 0.4s both;
    max-width: 900px;
    margin: 0 auto;
}

.search-card {
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 8px;
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.search-input-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg);
    border-radius: 14px;
    border: 1.5px solid var(--border);
    transition: all 0.25s ease;
}

.search-input-group:focus-within {
    border-color: var(--primary);
    background: var(--surface-solid);
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.1);
}

.search-input-group i {
    color: var(--text-muted);
    font-size: 1rem;
    flex-shrink: 0;
}

.search-input-group input,
.search-input-group select {
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    width: 100%;
}

.search-input-group select {
    appearance: none;
    cursor: pointer;
}

.search-input-group input::placeholder {
    color: var(--text-muted);
}

.search-divider {
    width: 1px;
    background: var(--border);
    margin: 8px 0;
    align-self: stretch;
}

.btn-search {
    padding: 14px 32px;
    background: var(--gradient);
    color: white;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.4);
    flex-shrink: 0;
}

.btn-search:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(217, 119, 6, 0.55);
}

/* =============================================
   JOBS SECTION
   ============================================= */
.jobs-section {
    padding: 80px 0;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 36px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.section-count {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Sort controls */
.jobs-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sort-select {
    padding: 10px 16px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s;
    appearance: none;
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a8a29e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.sort-select:focus {
    border-color: var(--primary);
}

.view-toggle {
    display: flex;
    gap: 4px;
}

.view-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.25s;
}

.view-btn.active, .view-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.filter-input-group {
    flex: 1;
    min-width: 180px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--surface);
    border-radius: 12px;
    border: 1.5px solid var(--border);
    transition: all 0.25s ease;
}

.filter-input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.10);
}

.filter-input-group i {
    color: var(--text-muted);
    font-size: 1rem;
    flex-shrink: 0;
}

.filter-input-group input,
.filter-input-group select {
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    width: 100%;
}

.filter-input-group select {
    appearance: none;
    cursor: pointer;
}

.filter-input-group input::placeholder {
    color: var(--text-muted);
}

/* Jobs Grid */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.jobs-grid.list-view {
    grid-template-columns: 1fr;
}

/* Job Card */
.job-card {
    background: var(--surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: var(--shadow);
}

.job-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(217, 119, 6, 0.4);
}

.job-card:hover::before {
    opacity: 0.03;
}

.job-card>* {
    position: relative;
    z-index: 1;
}

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

.company-logo {
    width: 52px;
    height: 52px;
    background: var(--gradient-soft);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

[data-theme="dark"] .company-logo {
    background: rgba(217, 119, 6, 0.15);
}

[data-theme="dark"] .detail-logo {
    background: rgba(217, 119, 6, .15);
}

.detail-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.2;
}

.detail-company-name {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.detail-header-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.detail-meta-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: .83rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.job-card-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
}

.badge-type-full {
    background: rgba(217, 119, 6, 0.12);
    color: var(--primary);
}

.badge-type-part {
    background: rgba(146, 64, 14, 0.12);
    color: var(--secondary);
}

.badge-type-contract {
    background: rgba(245, 158, 11, 0.15);
    color: #B45309;
}

.badge-type-intern {
    background: rgba(6, 182, 212, 0.12);
    color: #0E7490;
}

.badge-type-remote {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.badge-new {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
}

.badge-status-active {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
}

.badge-status-closed {
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-muted);
}

.job-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.job-card-company {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
    font-weight: 500;
}

.job-card-desc {
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-card-meta {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 18px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.meta-item i {
    width: 16px;
    color: var(--text-muted);
    text-align: center;
}

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

.job-deadline {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.job-deadline span {
    color: var(--warning);
    font-weight: 600;
}

.card-actions {
    display: flex;
    gap: 8px;
}

.btn-save {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.25s;
}

.btn-save:hover, .btn-save.saved {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
    color: var(--danger);
}

.btn-detail {
    padding: 8px 18px;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.25s;
}

.btn-detail:hover {
    background: var(--primary-dark);
    transform: translateX(2px);
}

/* List View */
.jobs-grid.list-view .job-card {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 0 16px;
    align-items: start;
    padding: 20px;
}

.jobs-grid.list-view .job-card-top {
    grid-column: 1;
    grid-row: 1 / 4;
    margin-bottom: 0;
}

.jobs-grid.list-view .job-card-body {
    grid-column: 2;
}

.jobs-grid.list-view .job-card-side {
    grid-column: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    gap: 16px;
    text-align: center;
}

.empty-icon-wrap {
    width: 80px;
    height: 80px;
    background: var(--primary-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(217, 119, 6, 0.20);
}

.empty-icon-wrap i {
    font-size: 2.2rem;
    color: var(--primary);
}

.empty-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.empty-sub {
    font-size: 0.875rem;
    color: var(--text-muted);
    max-width: 320px;
    line-height: 1.6;
}

.btn-reset-filter {
    margin-top: 8px;
    padding: 10px 24px;
    background: var(--primary-pale);
    border: 1.5px solid rgba(217, 119, 6, 0.30);
    border-radius: 10px;
    color: var(--primary-dark);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.25s;
}

.btn-reset-filter:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* No results (legacy) */
.no-results {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-muted);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.4;
}

.no-results p {
    font-size: 1.1rem;
    font-weight: 500;
}

.no-results small {
    font-size: 0.875rem;
}

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

.page-btn {
    min-width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    transition: all 0.25s;
}

.page-btn:hover, .page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.page-btn:disabled {
    opacity: 0.4;
    pointer-events: none;
}

.load-more-wrap {
    text-align: center;
    margin-top: 40px;
}

.btn-load-more {
    padding: 14px 40px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-load-more:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(217, 119, 6, 0.05);
    transform: translateY(-1px);
}

/* =============================================
   JOB DETAIL MODAL
   ============================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--surface-solid);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    width: 100%;
    max-width: 760px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.modal-overlay.open .modal {
    transform: scale(1) translateY(0);
}

.modal::-webkit-scrollbar {
    width: 6px;
}

.modal::-webkit-scrollbar-track {
    background: transparent;
}

.modal::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.modal-header {
    padding: 28px 28px 0;
    position: sticky;
    top: 0;
    background: var(--surface-solid);
    z-index: 10;
    border-radius: 24px 24px 0 0;
}

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

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.25s;
    flex-shrink: 0;
}

.modal-close:hover {
    color: var(--danger);
    border-color: var(--danger);
}

.modal-divider {
    height: 1px;
    background: var(--border);
    margin: 0 -28px;
}

.modal-body {
    padding: 28px;
}

.modal-job-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.modal-fptk {
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 600;
    font-family: 'Space Grotesk', monospace;
    background: rgba(217, 119, 6, 0.1);
    padding: 3px 10px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 16px;
}

.modal-badges {
    margin-bottom: 24px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.modal-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.info-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
}

.info-card-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.info-card-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-section {
    margin-bottom: 24px;
}

.modal-section-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-section-title i {
    color: var(--primary);
}

.modal-section p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.req-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.req-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.req-item i {
    color: var(--success);
    margin-top: 2px;
    flex-shrink: 0;
}

.modal-footer {
    padding: 20px 28px 28px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid var(--border);
    position: sticky;
    bottom: 0;
    background: var(--surface-solid);
    border-radius: 0 0 24px 24px;
}

.btn-save-job {
    padding: 12px 24px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s;
}

.btn-save-job:hover {
    border-color: var(--danger);
    color: var(--danger);
}

.btn-apply-now {
    padding: 12px 32px;
    background: var(--gradient);
    color: white;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s;
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.4);
}

.btn-apply-now:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(217, 119, 6, 0.55);
}

/* =============================================
   APPLICATION FORM MODAL
   ============================================= */
.apply-modal {
    max-width: 820px;
}

.form-sections {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.form-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(217, 119, 6, 0.15);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.form-col-2 {
    grid-column: span 2;
}

.form-col-1 {
    grid-column: span 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-label span {
    color: var(--danger);
    margin-left: 2px;
}

.form-control {
    padding: 11px 14px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.25s;
    width: 100%;
}

.form-control:focus {
    border-color: var(--primary);
    background: var(--surface-solid);
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.1);
}

.form-control.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.form-error {
    font-size: 0.75rem;
    color: var(--danger);
    font-weight: 500;
    display: none;
}

.form-error.show {
    display: block;
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    appearance: none;
    cursor: pointer;
}

.upload-area {
    border: 2px dashed var(--border);
    border-radius: 14px;
    padding: 28px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
}

.upload-area:hover, .upload-area.drag-over {
    border-color: var(--primary);
    background: rgba(217, 119, 6, 0.04);
}

.upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.upload-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.upload-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.upload-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(217, 119, 6, 0.06);
    border-radius: 10px;
    border: 1px solid rgba(217, 119, 6, 0.2);
    margin-top: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
}

/* Progress Steps */
.form-progress {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 28px;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: all 0.3s;
    z-index: 1;
    position: relative;
}

.step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 8px;
    transition: all 0.3s;
}

.progress-step.active .step-circle {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.2);
}

.progress-step.active .step-label {
    color: var(--primary);
}

.progress-step.done .step-circle {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.progress-step.done+.progress-line {
    background: var(--success);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-weight: 500;
}

/* =============================================
   BREADCRUMB SECTION
   ============================================= */
.breadcrumb a {
    color: var(--primary);
    transition: opacity .2s;
}

.breadcrumb a:hover {
    opacity: .8;
}

.breadcrumb i {
    font-size: .65rem;
}



.tracking-section {
    padding: 80px 0;
    background: var(--bg-2);
}

[data-theme="dark"] .tracking-section {
    background: rgba(13, 21, 48, 0.6);
}

.tracking-card {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.tracking-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.tracking-job-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.tracking-app-date {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Timeline */
.timeline {
    display: flex;
    align-items: flex-start;
    gap: 0;
    position: relative;
    overflow-x: auto;
    padding-bottom: 10px;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 100px;
    position: relative;
}

.timeline-step::before {
    content: '';
    position: absolute;
    top: 20px;
    right: -50%;
    width: 100%;
    height: 3px;
    background: var(--border);
    z-index: 0;
}

.timeline-step:last-child::before {
    display: none;
}

.timeline-step.done::before {
    background: var(--success);
}

.timeline-step.active::before {
    background: linear-gradient(to right, var(--success), var(--border));
}

.timeline-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg);
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-muted);
    z-index: 1;
    position: relative;
    transition: all 0.3s;
    margin-bottom: 10px;
}

.timeline-step.done .timeline-icon {
    background: var(--success);
    border-color: var(--success);
    color: white;
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.15);
}

.timeline-step.active .timeline-icon {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 0 6px rgba(217, 119, 6, 0.15);
    animation: timeline-pulse 2s infinite;
}

.timeline-step.rejected .timeline-icon {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
}

@keyframes timeline-pulse {
    0%, 100% {
        box-shadow: 0 0 0 6px rgba(217, 119, 6, 0.15);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(217, 119, 6, 0.06);
    }
}

.timeline-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
}

.timeline-date {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 4px;
}

.timeline-step.done .timeline-label,
.timeline-step.active .timeline-label {
    color: var(--text-primary);
}

.tracking-notes {
    margin-top: 20px;
    padding: 16px;
    background: var(--bg);
    border-radius: 12px;
    border-left: 3px solid var(--primary);
}

.tracking-notes p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.tracking-notes strong {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    margin-bottom: 6px;
}

/* =============================================
   TOAST NOTIFICATIONS
   ============================================= */
.toast-container {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--surface-solid);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    font-size: 0.875rem;
    font-weight: 600;
    min-width: 280px;
    max-width: 380px;
    animation: toastIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.toast.success::before {
    background: var(--success);
}

.toast.error::before {
    background: var(--danger);
}

.toast.info::before {
    background: var(--primary);
}

.toast.warning::before {
    background: var(--warning);
}

.toast-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: var(--success);
}

.toast.error .toast-icon {
    color: var(--danger);
}

.toast.info .toast-icon {
    color: var(--primary);
}

.toast.warning .toast-icon {
    color: var(--warning);
}

.toast-msg {
    flex: 1;
    color: var(--text-primary);
}

.toast-close {
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 4px;
}

.toast-close:hover {
    color: var(--text-primary);
}

.toast.hide {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    padding: 64px 0 32px;
    border-top: 1px solid var(--border);
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-top: 16px;
    max-width: 280px;
}

.footer-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color 0.2s;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 12px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all 0.25s;
}

.social-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* =============================================
   MOBILE MENU
   ============================================= */
.mobile-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface-solid);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    z-index: 999;
    transform: translateY(-110%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
}

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

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}

.mobile-nav-links .nav-link {
    padding: 12px 16px;
    font-size: 0.95rem;
}

.mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-actions .btn-ghost,
.mobile-actions .btn-primary {
    width: 100%;
    text-align: center;
}

/* =============================================
   SCROLL TO TOP
   ============================================= */
.scroll-top {
    position: fixed;
    bottom: 28px;
    left: 28px;
    width: 44px;
    height: 44px;
    background: var(--gradient);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.4);
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.55);
}

/* =============================================
   SKELETON LOADER
   ============================================= */
.skeleton {
    background: linear-gradient(90deg, var(--border) 0%, rgba(255, 255, 255, 0.1) 50%, var(--border) 100%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 8px;
}

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

    100% {
        background-position: -200% center;
    }
}

/* =============================================
   HIGHLIGHT SEARCH
   ============================================= */
mark {
    background: rgba(217, 119, 6, 0.15);
    color: var(--primary);
    border-radius: 3px;
    padding: 0 2px;
}

/* =============================================
   RICH TEXT CONTENT
   ============================================= */
.job-description-content {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.9;
}

.job-description-content>*:first-child {
    margin-top: 0;
}

.job-description-content>*:last-child {
    margin-bottom: 0;
}

.job-description-content p {
    margin-bottom: 14px;
}

.job-description-content h1,
.job-description-content h2,
.job-description-content h3,
.job-description-content h4 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-primary);
    margin: 20px 0 10px;
    line-height: 1.35;
}

.job-description-content h1 {
    font-size: 1.25rem;
}

.job-description-content h2 {
    font-size: 1.15rem;
}

.job-description-content h3 {
    font-size: 1.05rem;
}

.job-description-content h4 {
    font-size: 0.95rem;
}

.job-description-content ul,
.job-description-content ol {
    margin: 0 0 14px;
    padding-left: 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.job-description-content ul {
    list-style: disc;
}

.job-description-content ol {
    list-style: decimal;
}

.job-description-content li {
    color: var(--text-secondary);
}

.job-description-content li::marker {
    color: var(--primary);
}

.job-description-content strong, .job-description-content b {
    color: var(--text-primary);
    font-weight: 700;
}

.job-description-content em, .job-description-content i {
    font-style: italic;
}

.job-description-content u {
    text-decoration: underline;
}

.job-description-content a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(217, 119, 6, 0.35);
}

.job-description-content a:hover {
    text-decoration-color: var(--primary);
}

.job-description-content blockquote {
    margin: 0 0 14px;
    padding: 10px 16px;
    border-left: 3px solid var(--primary);
    background: var(--bg);
    border-radius: 0 10px 10px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.job-description-content code {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 0.85em;
    color: var(--primary-dark);
}

.job-description-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 14px;
    font-size: 0.85rem;
}

.job-description-content table th,
.job-description-content table td {
    border: 1px solid var(--border);
    padding: 8px 10px;
    text-align: left;
}

.job-description-content table th {
    background: var(--bg);
    color: var(--text-primary);
    font-weight: 700;
}

.job-description-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 10px 0;
}

.job-description-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 20px 0;
}

/* ── About page extra: Business Unit ── */
.bu-section {
    display: grid;
    grid-template-columns: 0.95fr 1.15fr;
    gap: 40px;
    align-items: center;
}

.bu-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.bu-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    cursor: default;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.bu-row:hover {
    transform: translateX(4px);
}

.bu-row-num {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--primary);
    color: #1a1a1a;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: .8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bu-row-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(245, 191, 35, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    color: var(--primary);
}

.bu-row-text {
    min-width: 0;
}

.bu-row-text strong {
    display: block;
    font-size: .88rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bu-row-text span {
    font-size: .75rem;
    opacity: .65;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bu-image-wrap {
    display: flex;
    justify-content: center;
}

.bu-image {
    max-width: 100%;
    width: 540px;
    height: auto;
}


/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 860px) {
    .bu-section {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .bu-image-wrap {
        order: -1;
    }

    .bu-image {
        width: 320px;
    }
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .navbar-menu, .navbar-actions {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .hero-stats {
        gap: 24px;
    }

    .hero-stats .stat-num {
        font-size: 1.4rem;
    }

    .hero-cta-wrap {
        flex-direction: column;
        align-items: center;
    }

    .search-card {
        flex-direction: column;
        padding: 12px;
    }

    .search-divider {
        display: none;
    }

    .search-input-group {
        min-width: unset;
    }

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

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

    .filter-bar {
        flex-direction: column;
    }

    .filter-input-group {
        min-width: unset;
    }

    .modal-info-grid {
        grid-template-columns: 1fr;
    }

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

    .form-col-2 {
        grid-column: span 1;
    }

    .form-grid.cols-3 {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .modal-footer {
        flex-direction: column;
    }

    .timeline {
        flex-direction: column;
        gap: 0;
    }

    .timeline-step {
        flex-direction: row;
        align-items: flex-start;
        width: 100%;
        gap: 16px;
        min-width: unset;
        padding-bottom: 24px;
    }

    .timeline-step::before {
        top: 44px;
        left: 22px;
        width: 3px;
        height: 100%;
        right: auto;
    }

    .timeline-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .timeline-content {
        flex: 1;
    }

    .timeline-label {
        text-align: left;
    }

    .timeline-date {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-badge {
        font-size: 0.72rem;
    }

    .modal-body, .modal-header {
        padding: 20px;
    }

    .modal-footer {
        padding: 16px 20px;
    }

    .toast-container {
        left: 16px;
        right: 16px;
    }

    .toast {
        min-width: unset;
    }

    .form-grid.cols-3 {
        grid-template-columns: 1fr;
    }
}


/* =============================================
   JOB DETAIL PAGE - Additional Styles
   ============================================= */

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

.detail-meta-chip .badge {
    font-size: .78rem;
}

.btn-apply-now:disabled,
.btn-apply-now.is-disabled {
    background: var(--bg);
    color: var(--text-muted);
    box-shadow: none;
    cursor: not-allowed;
    border: 1.5px solid var(--border);
}

.btn-apply-now:disabled:hover,
.btn-apply-now.is-disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-apply-white:disabled,
.btn-apply-white.is-disabled {
    background: #e5e5e5;
    color: #737373;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-apply-white:disabled:hover,
.btn-apply-white.is-disabled:hover {
    transform: none;
    box-shadow: none;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    padding: 48px 0;
    align-items: start;
}

.detail-card {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.detail-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-card-title i {
    color: var(--primary);
}

.detail-card p {
    font-size: .9rem;
    color: var(--text-secondary);
    line-height: 1.9;
}

.detail-sidebar {
    position: sticky;
    top: 90px;
}

.sidebar-card {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.sidebar-title {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.sidebar-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: .85rem;
}

.sidebar-info-row:last-child {
    border-bottom: none;
}

.sidebar-info-row .label {
    color: var(--text-muted);
    font-weight: 500;
}

.sidebar-info-row .value {
    color: var(--text-primary);
    font-weight: 700;
    text-align: right;
    max-width: 55%;
}

.apply-cta-card {
    background: var(--gradient);
    border-radius: 20px;
    padding: 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.apply-cta-card.is-closed {
    background: var(--bg);
    border: 1.5px solid var(--border);
}

.apply-cta-card.is-closed h3,
.apply-cta-card.is-closed p {
    color: var(--text-primary);
}

.apply-cta-card.is-closed p {
    color: var(--text-muted);
}

.apply-cta-card::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, .1);
    border-radius: 50%;
}

.apply-cta-card.is-closed::before {
    display: none;
}

.apply-cta-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.apply-cta-card p {
    font-size: .83rem;
    color: rgba(255, 255, 255, .8);
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-apply-white {
    width: 100%;
    padding: 13px;
    background: white;
    color: var(--primary);
    border-radius: 12px;
    font-weight: 700;
    font-size: .9rem;
    transition: all .25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    border: none;
    cursor: pointer;
}

.btn-apply-white:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
}

.btn-save-white {
    width: 100%;
    padding: 11px;
    background: rgba(255, 255, 255, .15);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    font-size: .875rem;
    border: 1.5px solid rgba(255, 255, 255, .3);
    transition: all .25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.btn-save-white:hover {
    background: rgba(255, 255, 255, .25);
}

.apply-cta-card.is-closed .btn-save-white {
    background: var(--surface);
    color: var(--text-primary);
    border-color: var(--border);
}

.apply-cta-card.is-closed .btn-save-white:hover {
    background: var(--surface-hover);
}

.similar-job-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    margin-bottom: 10px;
    cursor: pointer;
    transition: all .25s;
    text-decoration: none;
}

.similar-job-item:hover {
    border-color: var(--primary);
    background: rgba(217, 119, 6, .04);
    transform: translateX(3px);
}

.similar-job-icon {
    width: 42px;
    height: 42px;
    background: var(--bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.similar-job-title {
    font-size: .85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.similar-job-meta {
    font-size: .75rem;
    color: var(--text-muted);
}

/* Apply modal progress steps (detail page variant) */
.form-progress {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 20px 0 20px;
    overflow-x: auto;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg);
    transition: all .3s;
}

.progress-step.active .step-circle {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.progress-step.done .step-circle {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.step-label {
    font-size: .7rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.progress-step.active .step-label {
    color: var(--primary);
}

.progress-step.done .step-label {
    color: var(--success);
}

.progress-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    min-width: 20px;
    margin-bottom: 22px;
    transition: background .3s;
}

.progress-line.done {
    background: var(--success);
}

/* Screening question cards */
.question-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    transition: border-color .2s;
}

.question-card:focus-within {
    border-color: var(--primary);
}

.question-card.has-error {
    border-color: var(--danger) !important;
}

.question-label {
    font-size: .9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.question-label .q-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    font-size: .72rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.question-badge-required {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(239, 68, 68, .1);
    color: #dc2626;
    border-radius: 6px;
    font-size: .7rem;
    font-weight: 600;
    flex-shrink: 0;
    margin-left: auto;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    margin-bottom: 8px;
    cursor: pointer;
    font-size: .875rem;
    color: var(--text-secondary);
    transition: all .2s;
    background: var(--surface);
    user-select: none;
}

.option-label:hover {
    border-color: var(--primary);
    background: rgba(217, 119, 6, .04);
    color: var(--text-primary);
}

.option-label.selected {
    border-color: var(--primary);
    background: rgba(217, 119, 6, .07);
    color: var(--text-primary);
}

.option-label input[type="radio"],
.option-label input[type="checkbox"] {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
}

.form-error-msg {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .78rem;
    color: var(--danger);
    margin-top: 8px;
    min-height: 18px;
}

.form-error-msg i {
    font-size: .75rem;
    flex-shrink: 0;
}

.screening-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(245, 158, 11, .08), rgba(217, 119, 6, .06));
    border: 1px solid rgba(217, 119, 6, .2);
    border-radius: 14px;
    margin-bottom: 24px;
}

.screening-banner-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.screening-banner-icon i {
    color: white;
    font-size: 1rem;
}

.screening-banner-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: .9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.screening-banner-desc {
    font-size: .8rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.validation-blocked-badge {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(239, 68, 68, .1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, .25);
    border-radius: 8px;
    font-size: .78rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.validation-blocked-badge.show {
    display: flex;
}

/* === RESPONSIVE: DETAIL PAGE === */
@media (max-width: 900px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        position: static;
    }
}

@media (max-width: 600px) {
    .detail-header-top {
        flex-direction: column;
    }

    .detail-header-actions {
        width: 100%;
    }

    .detail-header-actions button,
    .detail-header-actions a {
        flex: 1;
    }
}