/* ==========================================================
   Flixica Jobs — Design System
   Palette:
     --night      #14314F  deep Himalayan-blue, primary
     --night-2    #1D4066  primary hover
     --marigold   #D6A419  accent / CTAs
     --marigold-2 #B8890E  accent hover
     --rhodo      #B23A48  urgent / featured tag
     --leaf       #3C8C63  success / remote tag
     --paper      #FBF9F5  page background
     --card       #FFFFFF  card background
     --ink        #1E2430  primary text
     --ink-soft   #5B6472  secondary text
     --mist       #E4E1D8  borders / dividers
   Type: display = 'Sora', body = 'Inter', data/tags = 'IBM Plex Mono'
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
    --night: #1C1B29;
    --night-2: #2A2840;
    --marigold: #E08E45;
    --marigold-2: #C2701F;
    --rhodo: #A8324B;
    --leaf: #4C8B6B;
    --paper: #FBF7F0;
    --card: #FFFFFF;
    --ink: #201E28;
    --ink-soft: #635F70;
    --mist: #E6E1DA;
    --hero-bg: #17151F;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(28,27,41,0.08), 0 6px 20px rgba(28,27,41,0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.55;
}

h1, h2, h3, h4 {
    font-family: 'Sora', system-ui, sans-serif;
    color: var(--night);
    line-height: 1.2;
    margin: 0 0 .5em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}



/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius);
    padding: 12px 22px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--marigold); color: var(--night); }
.btn-primary:hover { background: var(--marigold-2); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-dark { background: var(--night); color: #fff; }
.btn-dark:hover { background: var(--night-2); }
.btn-ghost { background: transparent; color: var(--night); border-color: var(--mist); }
.btn-ghost:hover { background: #F2EFE7; }
.btn-danger { background: #fff; color: var(--rhodo); border-color: var(--rhodo); }
.btn-danger:hover { background: var(--rhodo); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
    background: var(--night);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.logo {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 21px;
    color: #fff;
    letter-spacing: -.02em;
}
.logo span { color: var(--marigold); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: rgba(255,255,255,.85); }
.nav-links a:hover { color: #fff; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; }

/* ---------- Hero (search is the thesis) ---------- */
.hero {
    background: #0E1116;
    color: #fff;
    padding: 56px 0 0;
    position: relative;
}
.hero-inner { text-align: center; padding-bottom: 64px; }
.eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--marigold);
    margin-bottom: 14px;
    display: inline-block;
}
.hero h1 { color: #fff; font-size: clamp(28px, 4.4vw, 44px); max-width: 780px; margin: 0 auto 14px; }
.hero p { color: rgba(255,255,255,.75); max-width: 560px; margin: 0 auto 32px; font-size: 16.5px; }

.search-box {
    background: #fff;
    border-radius: 14px;
    padding: 10px;
    display: flex;
    gap: 8px;
    max-width: 720px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0,0,0,.25);
    flex-wrap: wrap;
}
.search-box input, .search-box select {
    border: none;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    padding: 12px 14px;
    color: var(--ink);
    background: transparent;
    flex: 1;
    min-width: 140px;
}
.search-box .divider { width: 1px; background: var(--mist); margin: 6px 0; }

.popular-searches { margin-top: 18px; font-size: 13.5px; color: rgba(255,255,255,.65); display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.popular-searches-label { font-weight: 600; color: rgba(255,255,255,.85); }
.popular-searches a { color: rgba(255,255,255,.9); text-decoration: underline; text-underline-offset: 3px; }
.popular-searches a:hover { color: var(--marigold); }

/* ---------- Nav dropdown (mega menu) ---------- */
.nav-drop { position: relative; }
.nav-drop-trigger {
    display: inline-flex; align-items: center; gap: 6px;
    background: none; border: none; cursor: pointer;
    font-family: 'Inter', sans-serif; font-size: 14.5px; font-weight: 500;
    color: rgba(255,255,255,.85); padding: 0;
}
.nav-drop-trigger:hover { color: #fff; }
.nav-drop-caret { transition: transform .15s ease; flex-shrink: 0; }
.nav-drop.open .nav-drop-caret { transform: rotate(180deg); }
.nav-mega {
    display: none;
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 48px rgba(20,49,79,.22);
    padding: 22px;
    gap: 30px;
    min-width: 560px;
    z-index: 60;
}
.nav-drop.open .nav-mega { display: flex; }
.nav-mega-col { min-width: 150px; }
.nav-mega-col h5 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
    color: var(--ink-soft); margin: 0 0 10px;
}
.nav-mega-col a {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    font-size: 14px; color: var(--ink); padding: 6px 0;
}
.nav-mega-col a:hover { color: var(--marigold-2); }
.nav-mega-col a span { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--ink-soft); }

.job-card-logo { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; background: #fff; border: 1px solid var(--mist); padding: 3px; flex-shrink: 0; }
.job-card-heading { display: flex; gap: 10px; align-items: flex-start; }

/* Signature: Himalayan ridge divider under the hero */
.ridge {
    width: 100%;
    display: block;
    height: 46px;
    fill: var(--paper);
}

/* ---------- Hero v2: two-column layout, photo + floating stat cards ---------- */
.hero-inner-v2 {
    display: flex;
    align-items: center;
    gap: 48px;
    text-align: left;
    padding-bottom: 64px;
}
.hero-inner-v2 .hero-left { flex: 1 1 480px; min-width: 0; }
.hero-inner-v2 .hero-left .search-box { margin: 0; }
.hero-inner-v2 .eyebrow,
.hero-inner-v2 h1,
.hero-inner-v2 p { margin-left: 0; margin-right: 0; }

.hero-right {
    flex: 1 1 360px;
    display: flex;
    justify-content: center;
}

.hero-photo-wrap {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 20px 40px 40px 0;
}
.hero-photo {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    object-fit: cover;
    aspect-ratio: 4 / 5;
    background: var(--mist);
}

.hero-stat-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card);
    border-radius: var(--radius);
    padding: 12px 18px 12px 12px;
    box-shadow: var(--shadow);
    white-space: nowrap;
}
.hero-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.hero-stat-icon-blue   { background: var(--night); }
.hero-stat-icon-green  { background: var(--leaf); }
.hero-stat-icon-purple { background: var(--marigold-2); }

.hero-stat-num {
    font-family: 'Sora', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--night);
    line-height: 1.2;
}
.hero-stat-label {
    font-size: 0.82rem;
    color: var(--ink-soft);
}

.card-1 { top: 6%;   left: -6%; }
.card-2 { top: 42%;  right: -8%; }
.card-3 { bottom: 4%; left: 4%; }

@media (max-width: 900px) {
    .hero-inner-v2 { flex-direction: column; text-align: center; }
    .hero-right { order: -1; }
    .hero-photo-wrap { max-width: 320px; padding: 16px 28px 28px 0; }
    .hero-stat-card { padding: 8px 12px 8px 8px; gap: 8px; }
    .hero-stat-icon { width: 32px; height: 32px; }
    .hero-stat-num { font-size: 0.9rem; }
    .hero-stat-label { font-size: 0.72rem; }
}
@media (max-width: 480px) {
    .card-1 { left: -2%; }
    .card-2 { right: -2%; }
    .card-3 { left: 2%; }
}

/* ---------- Category chips ---------- */
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 28px 0 8px;
}
.chip {
    font-size: 13.5px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--mist);
    color: var(--ink-soft);
}
.chip:hover, .chip.active { border-color: var(--night); color: var(--night); background: #F2EFE7; }

/* ---------- Section headers ---------- */
.section { padding: 40px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; }
.section-head h2 { font-size: 24px; margin: 0; }
.section-head a { font-size: 14px; font-weight: 600; color: var(--night); }

/* ---------- Job Card (ticket-stub style: colored left edge = job type) ---------- */
.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.job-card {
    background: var(--card);
    border: 1px solid var(--mist);
    border-left: 5px solid var(--night);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: transform .15s ease, box-shadow .15s ease;
}
.job-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(20,49,79,.12); }
.job-card.tag-fulltime  { border-left-color: var(--night); }
.job-card.tag-parttime  { border-left-color: #6D87A6; }
.job-card.tag-internship{ border-left-color: var(--marigold); }
.job-card.tag-remote    { border-left-color: var(--leaf); }
.job-card.tag-contract  { border-left-color: var(--rhodo); }

.job-card-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.job-title { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 16.5px; color: var(--night); margin-bottom: 3px; }
.job-company { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 12px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.meta-pill {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11.5px;
    color: var(--ink-soft);
    background: #F2EFE7;
    border-radius: 6px;
    padding: 4px 9px;
}
.type-badge {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 4px 9px;
    border-radius: 6px;
    color: #fff;
    background: var(--night);
}
.tag-parttime .type-badge   { background: #6D87A6; }
.tag-internship .type-badge { background: var(--marigold); color: var(--night); }
.tag-remote .type-badge     { background: var(--leaf); }
.tag-contract .type-badge   { background: var(--rhodo); }

.job-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 12px; border-top: 1px dashed var(--mist); }
.job-salary { font-weight: 600; color: var(--night); font-size: 14px; }
.job-posted { font-size: 12px; color: var(--ink-soft); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.empty-state h3 { color: var(--ink); }

.featured-badge {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--marigold-2);
    background: #FDF4E1;
    border-radius: 5px;
    padding: 2px 7px;
    margin-right: 6px;
    vertical-align: middle;
}

.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 30px; }

.icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--mist);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--night);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}
.icon-btn:hover { background: #F2EFE7; }
.icon-btn.active { background: var(--night); color: #fff; border-color: var(--night); }
.icon-btn.applied { background: var(--leaf); color: #fff; border-color: var(--leaf); cursor: default; }

.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.share-btn {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600; padding: 8px 14px;
    border-radius: 8px; border: 1px solid var(--mist); color: var(--ink-soft);
    background: #fff; cursor: pointer; font-family: 'Inter', sans-serif;
}
.share-btn:hover { background: #F2EFE7; }

/* ---------- Company profile page ---------- */
.company-head {
    background: linear-gradient(135deg, var(--night), var(--night-2));
    padding: 40px 0;
}
.company-head-inner { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.company-logo-lg {
    width: 88px; height: 88px; border-radius: 14px; object-fit: contain;
    background: #fff; padding: 8px; flex-shrink: 0;
}
.company-logo-fallback {
    display: flex; align-items: center; justify-content: center;
    font-family: 'Sora', sans-serif; font-weight: 700; font-size: 34px; color: var(--night);
}
.company-name { color: #fff; font-size: 26px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.verified-badge {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(60,140,99,.18); color: #7FD9A6;
    border: 1px solid rgba(127,217,166,.4);
    font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px;
}
.company-meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.company-meta-row .meta-pill { background: rgba(255,255,255,.12); color: rgba(255,255,255,.85); border-color: transparent; }
.company-links { display: flex; flex-wrap: wrap; gap: 16px; }
.company-links a { color: var(--marigold); font-size: 13.5px; font-weight: 600; }
.company-links a:hover { color: var(--marigold-2); }

/* ---------- Homepage "Trusted by" logo strip ---------- */
.logo-strip-section { 
    padding: 15px 0; 
    overflow: hidden; 
    background: linear-gradient(135deg, #0f203a08 0%, #c58a1f0d 100%);
}

.logo-strip-title { 
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center; 
    font-size: 20px; 
    font-weight: 700; 
    letter-spacing: .08em; 
    text-transform: uppercase; 
    color: var(--ink-soft); 
    margin-bottom: 28px; 
}

.logo-strip-title::before,
.logo-strip-title::after {
    content: '';
    height: 1px;
    width: 60px;
    background: linear-gradient(90deg, transparent, var(--gold, #c58a1f));
}

.logo-strip-title::after {
    background: linear-gradient(90deg, var(--gold, #c58a1f), transparent);
}

.logo-strip-track {
    display: flex; 
    gap: 0; 
    align-items: center;
    animation: logo-scroll 3s linear infinite;
    width: max-content;
}

.logo-strip-section:hover .logo-strip-track { animation-play-state: paused; }

.logo-strip-item { 
    display: flex; 
    align-items: center; 
    gap: 30px; 
    flex-shrink: 0; 
    opacity: 1.5; 
    transition: opacity .8s, transform .8s;
    padding: 0 32px;
    position: relative;
}

.logo-strip-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 24px;
    background: var(--ink-soft, #8a93a6);
    opacity: .3;
}

.logo-strip-item:last-child::after {
    display: none;
}

.logo-strip-item:hover { 
    opacity: 1; 
    transform: translateY(-2px);
}

.logo-strip-item img { width: 80px; height: 80px; object-fit: contain; }

.logo-strip-item span { 
    font-family: 'Sora', sans-serif; 
    font-weight: 600; 
    font-size: 14px; 
    color: var(--night); 
    white-space: nowrap; 
}

@keyframes logo-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---------- Blog ---------- */
.blog-card { display: flex; flex-direction: column; }
.blog-card-cover { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; margin-bottom: 12px; }
.blog-body { font-size: 16px; line-height: 1.7; color: var(--ink); }
.blog-body p { margin-bottom: 1em; white-space: pre-line; }
.video-embed {
    position: relative; width: 100%; padding-top: 56.25%;
    border-radius: 14px; overflow: hidden; margin-bottom: 22px; background: #000;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: rgba(255,255,255,.65); padding: 40px 0 24px; margin-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-grid h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.footer-grid a { display: block; font-size: 13.5px; color: rgba(255,255,255,.65); margin-bottom: 8px; }
.footer-grid a:hover { color: var(--marigold); }
.footer-bottom { padding-top: 18px; font-size: 12.5px; text-align: center; }

/* ---------- Forms (auth + post job + admin) ---------- */
.form-wrap {
    max-width: 480px;
    margin: 50px auto;
    background: var(--card);
    border: 1px solid var(--mist);
    border-radius: 14px;
    padding: 36px;
    box-shadow: var(--shadow);
}
.form-wrap.wide { max-width: 720px; }
.form-wrap h2 { margin-bottom: 4px; }
.form-sub { color: var(--ink-soft); font-size: 14px; margin-bottom: 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--night); margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--mist);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    color: var(--ink);
    background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--night);
    box-shadow: 0 0 0 3px rgba(20,49,79,.10);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- Password field with show/hide toggle ---------- */
.password-field {
    position: relative;
}
.password-field input {
    padding-right: 42px;
}
.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ink-soft);
    padding: 4px;
    display: flex;
    align-items: center;
}
.password-toggle:hover { color: var(--night); }
.password-toggle svg.eye-off { display: none; }
.password-toggle.active svg.eye { display: none; }
.password-toggle.active svg.eye-off { display: block; }

.form-foot { margin-top: 18px; font-size: 14px; color: var(--ink-soft); text-align: center; }
.form-foot a { color: var(--night); font-weight: 600; }

.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 18px; }
.alert-error { background: #FCEBEC; color: var(--rhodo); border: 1px solid #F3C6CA; }
.alert-success { background: #E9F5EE; color: var(--leaf); border: 1px solid #BFE3CE; }
.alert-info { background: #FDF4E1; color: var(--marigold-2); border: 1px solid #F1DBA0; }

.login-gate {
    background: #F2EFE7;
    border: 1px dashed var(--mist);
    border-radius: 10px;
    padding: 18px 20px;
    margin: 14px 0;
}
.login-gate p { margin: 0 0 10px; color: var(--ink); font-size: 14.5px; }

/* ---------- Dashboard shell (employer + admin) ---------- */
.dash {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: calc(100vh - 0px);
}
.dash-side {
    background: var(--night);
    color: #fff;
    padding: 26px 18px;
}
.dash-side .logo { display: block; margin-bottom: 30px; }
.dash-side-toggle { display: none; }
.dash-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 14px; border-radius: 8px;
    font-size: 14px; font-weight: 500;
    color: rgba(255,255,255,.75);
    margin-bottom: 4px;
}
.dash-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.dash-nav a.active { background: var(--marigold); color: var(--night); font-weight: 700; }
.dash-main { padding: 32px 36px; background: var(--paper); min-width: 0; }
.dash-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; flex-wrap: wrap; gap: 12px; }
.dash-topbar h1 { font-size: 22px; margin: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 30px; }
.stat-card { background: #fff; border: 1px solid var(--mist); border-radius: 12px; padding: 20px; }
.stat-card .num { font-family: 'Sora', sans-serif; font-size: 28px; font-weight: 800; color: var(--night); }
.stat-card .label { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

.table-wrap { background: #fff; border: 1px solid var(--mist); border-radius: 12px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--mist); }
th { background: #F7F5EF; font-family: 'Sora', sans-serif; font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-soft); }
tr:last-child td { border-bottom: none; }
.badge { font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; text-transform: capitalize; }
.badge-pending { background: #FDF4E1; color: var(--marigold-2); }
.badge-approved { background: #E9F5EE; color: var(--leaf); }
.badge-rejected { background: #FCEBEC; color: var(--rhodo); }
.badge-closed { background: #EEECE6; color: var(--ink-soft); }
.row-actions { display: flex; gap: 8px; }
.row-actions button, .row-actions a { cursor: pointer; }

/* ---------- Job detail ---------- */
.job-detail-head {
    background: var(--night); color: #fff; padding: 40px 0 60px;
}
.job-detail-card {
    background: #fff; border-radius: 14px; padding: 30px;
    box-shadow: var(--shadow); margin-top: -46px; position: relative;
}
.jd-title { font-size: 26px; margin-bottom: 6px; }
.jd-company { color: var(--ink-soft); font-size: 15px; margin-bottom: 16px; }
.jd-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.jd-body h4 { font-size: 15px; margin: 22px 0 8px; }
.jd-body p, .jd-body li { color: var(--ink-soft); font-size: 14.5px; }
.jd-apply { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--mist); }

/* ---------- Tables: allow horizontal scroll instead of breaking layout ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap table { min-width: 640px; }

/* ==========================================================
   HOMEPAGE — fresh build, prefixed hp- so it never collides
   with shared components (job-card, chip, section-head, btn
   are still reused below for consistency with the rest of
   the site).
   ========================================================== */

/* ---- Hero ---- */
.hp-hero {
    background: radial-gradient(circle at 15% 20%, rgba(214,164,25,.14), transparent 45%),
                linear-gradient(160deg, var(--night) 0%, var(--night-2) 100%);
    color: #fff;
    padding: 64px 0 0;
    position: relative;
    overflow: hidden;
}
.hp-hero-inner { text-align: center; padding-bottom: 60px; position: relative; z-index: 2; }
.hp-pulse-tag {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px; padding: 7px 16px 7px 12px;
    font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: rgba(255,255,255,.85);
    margin-bottom: 22px;
}
.hp-pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); flex-shrink: 0; animation: hp-pulse 1.8s ease-in-out infinite; }
@keyframes hp-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(60,140,99,.55); }
    50% { box-shadow: 0 0 0 6px rgba(60,140,99,0); }
}
.hp-hero h1 { color: #fff; font-size: clamp(30px, 4.6vw, 48px); max-width: 780px; margin: 0 auto 16px; }
.hp-hero h1 .accent { color: var(--marigold); }
.hp-hero-sub { color: rgba(255,255,255,.7); max-width: 560px; margin: 0 auto 34px; font-size: 16.5px; }

.hp-search {
    background: #fff;
    border-radius: 16px;
    padding: 8px;
    display: flex;
    gap: 6px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 24px 50px rgba(0,0,0,.3);
    flex-wrap: wrap;
}
.hp-search input {
    border: none; outline: none; font-family: 'Inter', sans-serif; font-size: 15px;
    padding: 13px 16px; color: var(--ink); background: transparent; flex: 1; min-width: 160px;
}
.hp-search .hp-search-divider { width: 1px; background: var(--mist); margin: 8px 0; }
.hp-search button {
    font-family: 'Sora', sans-serif; font-weight: 600; font-size: 15px;
    background: var(--marigold); color: var(--night); border: none; border-radius: 10px;
    padding: 13px 26px; cursor: pointer; transition: background .15s;
}
.hp-search button:hover { background: var(--marigold-2); }

.hp-trending { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin-top: 20px; font-size: 13px; }
.hp-trending span.lbl { color: rgba(255,255,255,.55); font-weight: 600; padding: 6px 0; }
.hp-trending a {
    color: rgba(255,255,255,.85); background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 6px 13px;
}
.hp-trending a:hover { background: rgba(255,255,255,.16); color: #fff; }

.hp-hero-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35; z-index: 1; }
.hp-hero-blob.b1 { width: 340px; height: 340px; background: var(--marigold); top: -120px; right: -80px; }
.hp-hero-blob.b2 { width: 260px; height: 260px; background: var(--leaf); bottom: -100px; left: -60px; }

/* ---- Section shell shared by homepage blocks ---- */
.hp-section { padding: 46px 0; }
.hp-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.hp-section-head .hp-kicker { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--marigold-2); display: block; margin-bottom: 6px; }
.hp-section-head h2 { font-size: 25px; margin: 0; }
.hp-section-head p { color: var(--ink-soft); font-size: 14px; margin: 6px 0 0; max-width: 460px; }
.hp-see-all { font-size: 14px; font-weight: 600; color: var(--night); white-space: nowrap; }
.hp-see-all:hover { color: var(--marigold-2); }

/* ---- Horizontal carousel (spotlight jobs + hiring now) ---- */
.hp-carousel-wrap { position: relative; }
.hp-carousel {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity;
    padding: 4px 4px 14px; scrollbar-width: thin; scrollbar-color: var(--mist) transparent;
}
.hp-carousel::-webkit-scrollbar { height: 6px; }
.hp-carousel::-webkit-scrollbar-thumb { background: var(--mist); border-radius: 10px; }
.hp-carousel > * { scroll-snap-align: start; flex: 0 0 300px; }
.hp-carousel-nav { display: flex; gap: 8px; }
.hp-carousel-btn {
    width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--mist);
    background: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    color: var(--night); font-size: 16px; transition: background .15s;
}
.hp-carousel-btn:hover { background: #F2EFE7; }

/* ---- Bento category grid ---- */
.hp-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 132px; gap: 14px; }
.hp-bento-tile {
    grid-column: span 1; grid-row: span 1;
    background: var(--card); border: 1px solid var(--mist); border-radius: 14px;
    padding: 18px; display: flex; flex-direction: column; justify-content: space-between;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
    position: relative; overflow: hidden;
}
.hp-bento-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--marigold); }
.hp-bento-tile.big {
    grid-column: span 2; grid-row: span 2;
    justify-content: flex-end;
    background: linear-gradient(160deg, #F2EFE7 0%, var(--card) 60%);
}
.hp-bento-tile.big .hp-bento-icon {
    font-size: 64px; position: absolute; top: 22px; right: 18px; opacity: .85;
}
.hp-bento-tile.big .hp-bento-name { font-size: 20px; }
.hp-bento-tile.big .hp-bento-count { font-size: 13px; }
.hp-bento-icon { font-size: 24px; }
.hp-bento-name { font-family: 'Sora', sans-serif; font-weight: 700; color: var(--night); font-size: 14.5px; }
.hp-bento-count { font-size: 12.5px; color: var(--ink-soft); font-family: 'IBM Plex Mono', monospace; }
.hp-bento-tile.dark { background: linear-gradient(135deg, var(--night), var(--night-2)); border-color: transparent; }
.hp-bento-tile.dark .hp-bento-name { color: #fff; }
.hp-bento-tile.dark .hp-bento-count { color: rgba(255,255,255,.65); }

/* ---- Hiring Now company cards ---- */
.hp-co-card {
    background: var(--card); border: 1px solid var(--mist); border-radius: 14px;
    padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.hp-co-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.hp-co-logo { width: 44px; height: 44px; border-radius: 9px; object-fit: contain; background: #fff; border: 1px solid var(--mist); padding: 4px; flex-shrink: 0; }
.hp-co-logo-fallback {
    width: 44px; height: 44px; border-radius: 9px; flex-shrink: 0;
    background: var(--night); color: var(--marigold); display: flex; align-items: center; justify-content: center;
    font-family: 'Sora', sans-serif; font-weight: 700; font-size: 17px;
}
.hp-co-name { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 14.5px; color: var(--night); line-height: 1.3; }
.hp-co-count { font-size: 12px; color: var(--ink-soft); }
.hp-co-roles { list-style: none; margin: 0 0 14px; padding: 0; flex: 1; }
.hp-co-roles li { font-size: 13.5px; padding: 7px 0; border-top: 1px dashed var(--mist); }
.hp-co-roles li:first-child { border-top: none; }
.hp-co-roles a { color: var(--ink); }
.hp-co-roles a:hover { color: var(--marigold-2); }
.hp-co-view { text-align: center; font-size: 13px; font-weight: 600; color: var(--night); border-top: 1px solid var(--mist); padding-top: 12px; }
.hp-co-view:hover { color: var(--marigold-2); }

/* ---- Live stats band ---- */
.hp-stats-band {
    background: var(--night); color: #fff; border-radius: 20px;
    padding: 40px 30px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center;
}
.hp-stat-num { font-family: 'Sora', sans-serif; font-weight: 800; font-size: clamp(26px, 3vw, 38px); color: var(--marigold); line-height: 1; }
.hp-stat-lbl { font-size: 12.5px; color: rgba(255,255,255,.65); margin-top: 8px; letter-spacing: .02em; }

/* ---- Icon stats band (homepage) ---- */
.hp-stats-hero {
    background: #EDF2FA;
    border-radius: 20px;
    padding: 44px 30px;
    margin: 32px 0;
}
.hp-stats-heading {
    text-align: center;
    font-size: 26px;
    margin: 0 0 36px;
}
.hp-stats-heading .accent { color: var(--marigold-2); }
.hp-stats-row {
    display: flex;
    justify-content: center;
    gap: 64px;
    flex-wrap: wrap;
}
.hp-stat-item { text-align: left; }
.hp-stat-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.hp-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--night);
    flex-shrink: 0;
}
.hp-stat-label {
    font-size: 15px;
    color: var(--ink);
    font-weight: 500;
}
.hp-stat-value {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 34px;
    color: var(--night);
    padding-left: 64px;
}
@media (max-width: 640px) {
    .hp-stats-row { flex-direction: column; align-items: center; gap: 28px; }
    .hp-stat-item { text-align: center; }
    .hp-stat-top { justify-content: center; }
    .hp-stat-value { padding-left: 0; text-align: center; }
}

/* ---- Why Flixica: alternating feature rows ---- */
.hp-feature-row {
    display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: flex-start;
    padding: 22px 0; border-bottom: 1px solid var(--mist);
}
.hp-feature-row:last-child { border-bottom: none; }
.hp-feature-num {
    width: 56px; height: 56px; border-radius: 14px; background: #F2EFE7;
    display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.hp-feature-row h4 { margin-bottom: 6px; font-size: 17px; }
.hp-feature-row p { color: var(--ink-soft); font-size: 14.5px; max-width: 560px; margin: 0; }

/* ---- How it works: stepper ---- */
.hp-stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.hp-step { position: relative; padding: 0 14px; text-align: center; }
.hp-step-circle {
    width: 44px; height: 44px; border-radius: 50%; background: var(--night); color: var(--marigold);
    display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
    font-family: 'Sora', sans-serif; font-weight: 700; font-size: 16px; position: relative; z-index: 2;
}
.hp-step::before {
    content: ''; position: absolute; top: 22px; left: -50%; width: 100%; height: 2px;
    background: var(--mist); z-index: 1;
}
.hp-step:first-child::before { display: none; }
.hp-step h4 { font-size: 14.5px; margin-bottom: 6px; }
.hp-step p { font-size: 13px; color: var(--ink-soft); line-height: 1.6; margin: 0; }

/* ---- Dual CTA ---- */
.hp-dual-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hp-cta-card {
    border-radius: 18px; padding: 34px; position: relative; overflow: hidden;
}
.hp-cta-card.seeker { background: linear-gradient(135deg, var(--night), var(--night-2)); color: #fff; }
.hp-cta-card.employer { background: linear-gradient(135deg, var(--marigold), var(--marigold-2)); color: var(--night); }
.hp-cta-card h3 { font-size: 21px; margin-bottom: 8px; }
.hp-cta-card.seeker h3 { color: #fff; }
.hp-cta-card.employer h3 { color: var(--night); }
.hp-cta-card p { font-size: 14px; margin: 0 0 20px; max-width: 340px; }
.hp-cta-card.seeker p { color: rgba(255,255,255,.75); }
.hp-cta-card.employer p { color: rgba(20,49,79,.75); }

/* ---- Empty state (reuses .empty-state look but for hp sections) ---- */
.hp-empty { text-align: center; padding: 40px 20px; color: var(--ink-soft); background: var(--card); border: 1px dashed var(--mist); border-radius: 14px; }

@media (max-width: 900px) {
    .hp-bento { grid-template-columns: repeat(2, 1fr); }
    .hp-bento-tile.big { grid-column: span 2; grid-row: span 1; }
    .hp-stats-band { grid-template-columns: repeat(2, 1fr); }
    .hp-stepper { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
    .hp-step:nth-child(3)::before { display: none; }
    .hp-dual-cta { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .hp-bento { grid-template-columns: 1fr 1fr; }
    .hp-carousel > * { flex-basis: 260px; }
    .hp-search { flex-direction: column; }
    .hp-search .hp-search-divider { display: none; }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 860px) {
    /* Dashboard: sidebar becomes a collapsible top bar instead of vanishing */
    .dash { grid-template-columns: 1fr; }
    .dash-side { padding: 14px 16px; position: relative; }
    .dash-side .logo { display: inline-block; margin-bottom: 0; }
    .dash-side-toggle {
        display: inline-flex;
        float: right;
        background: rgba(255,255,255,.12);
        color: #fff;
        border: none;
        border-radius: 8px;
        padding: 8px 12px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
    }
    .dash-nav {
        display: none;
        margin-top: 16px;
        border-top: 1px solid rgba(255,255,255,.15);
        padding-top: 12px;
    }
    .dash-nav.open { display: block; }
    .dash-main { padding: 24px 18px; }
    .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .nav-links, .nav-cta .btn-outline { display: none; }
    .nav-toggle { display: block; }
    .search-box { flex-direction: column; }
    .search-box .divider { display: none; }
    .job-grid { grid-template-columns: 1fr; }
    .cta-band { padding: 28px 20px; text-align: center; justify-content: center; }
    .hero h1 { font-size: 26px; }
    .form-wrap { padding: 26px 20px; margin: 30px auto; }
    .form-wrap.wide { padding: 24px 18px; }
    .jd-title { font-size: 21px; }
    .job-detail-card { padding: 22px 18px; margin-top: -30px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .dash-topbar { flex-direction: column; align-items: flex-start; }
    .row-actions { flex-wrap: wrap; }
    .hero-stats-row { gap: 18px; }
    .nav-mega { position: static; transform: none; min-width: 0; flex-direction: column; box-shadow: none; padding: 10px 0 0 12px; gap: 14px; }
    .nav-drop-trigger { color: rgba(255,255,255,.85); width: 100%; justify-content: space-between; padding: 10px 0; }
    .toptabs { width: 100%; }
    .toptabs button { flex: 1; }
    .company-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero h1 { font-size: 22px; }
    .hero p { font-size: 14.5px; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .stat-card .num { font-size: 22px; }
    .form-wrap { padding: 22px 16px; }
    .logo { font-size: 18px; }
}