/* ===========================================================
   JobNomix — Core Stylesheet
   Brand: bright blue (#0c83fc) + deep navy (#0d1f44)
   Design inspired by Working Nomads (clean, list-based board)
   =========================================================== */

:root {
  --orange: #0c83fc;        /* brand bright blue (primary CTA / accent) */
  --orange-dark: #0a6cd8;
  --orange-d: #0a6cd8;
  --blue: #1565c0;          /* secondary blue (apply buttons / links) */
  --blue-dark: #104f97;
  --blue-deep: #0a1f49;     /* deep navy (dark sections) */
  --green: #2f9e44;
  --ink: #0d1f44;           /* navy headings (matches "Job") */
  --body: #44525d;
  --muted: #7d8a94;
  --line: #e6ebef;
  --bg: #f5f7f9;
  --card: #ffffff;
  --radius: 12px;
  --shadow: 0 2px 14px rgba(20,40,60,.06);
  --shadow-lg: 0 10px 30px rgba(20,40,60,.10);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
}
a { color: var(--blue); text-decoration: none; transition: color .15s; }
a:hover { color: var(--orange); }
img { max-width: 100%; display: block; }
h1,h2,h3,h4,h5 { color: var(--ink); line-height: 1.25; font-weight: 700; }
ul { list-style: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 760px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 8px; font-weight: 600; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; transition: all .15s; white-space: nowrap;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-d); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost { background: transparent; color: var(--body); }
.btn-ghost:hover { color: var(--orange); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 30px; font-size: 16px; }

/* ---------- Scam alert marquee ---------- */
.scam-marquee {
  background: #2a1206; color: #ffd9c2; font-size: 13px; overflow: hidden;
  border-bottom: 2px solid var(--orange);
}
.scam-marquee .track {
  display: inline-block; white-space: nowrap; padding: 8px 0;
  animation: marquee 38s linear infinite;
}
.scam-marquee .track strong { color: #ffb38a; }
.scam-marquee:hover .track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(100%); } to { transform: translateX(-100%); } }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo img { height: 46px; width: auto; display: block; }
.main-nav { display: flex; align-items: center; gap: 22px; margin-left: 6px; }
.main-nav a { color: var(--ink); font-weight: 500; font-size: 14.5px; }
.main-nav a:hover { color: var(--orange); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 24px; color: var(--ink); cursor: pointer; }

/* ---------- Hero / Search ---------- */
.hero {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  color: #fff; padding: 60px 0 70px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(12,131,252,.45), transparent 70%); border-radius: 50%;
}
.hero h1 { color: #fff; font-size: 40px; margin-bottom: 12px; }
.hero h1 span { color: #7cc4ff; }
.hero p { color: #d4e7f3; font-size: 17px; max-width: 620px; margin-bottom: 28px; }
.search-bar {
  background: #fff; border-radius: 12px; padding: 10px; display: flex; gap: 8px;
  box-shadow: var(--shadow-lg); max-width: 880px; position: relative; z-index: 2;
}
.search-bar .field { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-right: 1px solid var(--line); }
.search-bar .field:last-of-type { border-right: 0; }
.search-bar .field i { color: var(--muted); font-style: normal; }
.search-bar input, .search-bar select {
  border: 0; outline: 0; width: 100%; font-size: 14px; color: var(--ink); background: transparent; padding: 12px 0;
}
.hero-stats { display: flex; gap: 34px; margin-top: 26px; flex-wrap: wrap; }
.hero-stats div b { display: block; font-size: 26px; color: #fff; }
.hero-stats div span { color: #bcd9ec; font-size: 13px; }

/* ---------- Section headers ---------- */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; gap: 16px; flex-wrap: wrap; }
.section-head h2 { font-size: 27px; }
.section-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.eyebrow { color: var(--orange); font-weight: 700; font-size: 12.5px; letter-spacing: .8px; text-transform: uppercase; margin-bottom: 8px; }

/* ---------- Job list / cards ---------- */
.layout { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px){ .layout { grid-template-columns: 1fr; } }

.filter-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.filter-card h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .5px; color: var(--ink); margin-bottom: 12px; }
.filter-group { margin-bottom: 22px; }
.filter-group:last-child { margin-bottom: 0; }
.check { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 14px; color: var(--body); cursor: pointer; }
.check input { accent-color: var(--orange); width: 16px; height: 16px; }
.check .count { margin-left: auto; color: var(--muted); font-size: 12px; background: var(--bg); padding: 1px 8px; border-radius: 20px; }

.job-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; display: flex; gap: 16px; align-items: center; box-shadow: var(--shadow);
  transition: all .15s; margin-bottom: 14px; position: relative;
}
.job-card:hover { border-color: var(--blue); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.job-card.featured { border-left: 4px solid var(--orange); }
.job-logo { width: 56px; height: 56px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 6px; flex-shrink: 0; }
.job-logo-fallback { width: 56px; height: 56px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 22px; border: 1px solid rgba(0,0,0,.06); }
.job-main { flex: 1; min-width: 0; }
.job-main h3 { font-size: 17px; margin-bottom: 4px; }
.job-main h3 a { color: var(--ink); }
.job-main h3 a:hover { color: var(--orange); }
.job-company { color: var(--body); font-size: 13.5px; font-weight: 600; }
.job-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; color: var(--muted); font-size: 13px; }
.job-meta span { display: inline-flex; align-items: center; gap: 5px; }
.job-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { background: #eef4f9; color: var(--blue-dark); font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.tag.green { background: #e8f6e7; color: #2f8a2b; }
.tag.orange { background: #e3f0ff; color: var(--orange-d); }
.job-side { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.job-side .posted { color: var(--muted); font-size: 12px; }
.badge-featured { position: absolute; top: -9px; right: 16px; background: var(--orange); color: #fff; font-size: 10.5px; font-weight: 700; padding: 2px 10px; border-radius: 20px; letter-spacing: .5px; }

/* ---------- Category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px,1fr)); gap: 16px; }
.cat-tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow); transition: all .15s; display: block;
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--orange); }
.cat-tile .ico { width: 46px; height: 46px; border-radius: 10px; background: #eef4f9; color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 14px; }
.cat-tile h3 { font-size: 16px; color: var(--ink); margin-bottom: 3px; }
.cat-tile span { color: var(--muted); font-size: 13px; }

/* ---------- Employer showcase ---------- */
.logo-strip { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.logo-strip .co {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 26px;
  font-weight: 700; color: var(--blue-dark); box-shadow: var(--shadow); min-width: 150px; text-align: center;
}

/* ---------- Newsletter / CTA ---------- */
.newsletter { background: linear-gradient(135deg, var(--orange), var(--orange-d)); color: #fff; border-radius: 16px; padding: 44px; text-align: center; }
.newsletter h2 { color: #fff; font-size: 26px; margin-bottom: 8px; }
.newsletter p { color: #d6e9ff; margin-bottom: 22px; }
.newsletter form { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; }
.newsletter input { flex: 1; border: 0; border-radius: 8px; padding: 14px 16px; font-size: 15px; outline: 0; }
.cta-band { background: var(--blue-deep); color: #fff; border-radius: 16px; padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c9e0ef; }

/* ---------- Ad slots ---------- */
.ad-slot {
  background: repeating-linear-gradient(45deg,#f0f3f6,#f0f3f6 12px,#eaeef2 12px,#eaeef2 24px);
  border: 1px dashed #c9d3db; border-radius: 10px; color: #9aa6af; font-size: 12px;
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 90px; font-weight: 600;
}
.ad-slot.tall { min-height: 600px; }
.ad-slot.banner { min-height: 110px; }

/* ---------- Share row ---------- */
.share-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.share-row span { font-size: 13px; color: var(--muted); font-weight: 600; }
.share-btn { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; }
.s-fb{background:#1877f2}.s-tw{background:#111}.s-li{background:#0a66c2}.s-wa{background:#25d366}.s-link{background:#64748b}

/* ---------- Scam box (in post) ---------- */
.scam-box { background: #fff7ed; border: 1px solid #f6d8a8; border-left: 4px solid #e8920b; border-radius: 10px; padding: 18px 20px; }
.scam-box h4 { color: #b9791a; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 15px; }
.scam-box p { font-size: 13.5px; color: #7a5e38; }

/* ---------- Blog cards ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 22px; }
.blog-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all .15s; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.blog-card .thumb { height: 180px; background: linear-gradient(135deg,var(--blue),var(--blue-deep)); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 40px; }
.blog-card .body { padding: 18px 20px; }
.blog-card .body .meta { color: var(--muted); font-size: 12.5px; margin-bottom: 8px; }
.blog-card .body h3 { font-size: 18px; margin-bottom: 8px; }
.blog-card .body h3 a { color: var(--ink); }
.blog-card .body p { font-size: 14px; color: var(--body); }

/* ---------- Forms / panels ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.form-grid { display: grid; gap: 18px; }
.form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
@media (max-width:620px){ .form-grid.cols-2 { grid-template-columns: 1fr; } }
.field-row label { display: block; font-weight: 600; font-size: 13.5px; color: var(--ink); margin-bottom: 6px; }
.field-row input, .field-row select, .field-row textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px; font-size: 14px;
  font-family: var(--font); color: var(--ink); outline: 0; background: #fff; transition: border .15s;
}
.field-row input:focus, .field-row select:focus, .field-row textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27,130,196,.12); }
.field-row textarea { min-height: 130px; resize: vertical; }
.field-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: calc(100vh - 72px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card .panel { padding: 32px; }
.auth-head { text-align: center; margin-bottom: 24px; }
.auth-head h1 { font-size: 24px; margin-bottom: 6px; }
.auth-head p { color: var(--muted); font-size: 14px; }

/* ---------- Breadcrumb / page head ---------- */
.page-head { background: #fff; border-bottom: 1px solid var(--line); padding: 30px 0; }
.page-head h1 { font-size: 30px; }
.breadcrumb { color: var(--muted); font-size: 13px; margin-top: 6px; }
.breadcrumb a { color: var(--blue); }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 30px; }
.pagination a { min-width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line); background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--body); font-size: 14px; font-weight: 600; }
.pagination a.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.pagination a:hover:not(.active){ border-color: var(--blue); }

/* ---------- Footer ---------- */
.site-footer { background: #0a1a3a; color: #aebcc6; padding: 54px 0 0; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 40px; }
@media (max-width: 800px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h5 { color: #fff; font-size: 14px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .5px; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer a { color: #aebcc6; font-size: 14px; }
.site-footer a:hover { color: var(--orange); }
.footer-brand img { height: 44px; margin-bottom: 14px; background: #fff; padding: 7px 10px; border-radius: 8px; }
.footer-brand p { font-size: 13.5px; max-width: 280px; }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a { width: 36px; height: 36px; border-radius: 8px; background: #16264f; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.social-row a:hover { background: var(--orange); }
.footer-bottom { border-top: 1px solid #16264f; padding: 18px 0; text-align: center; font-size: 13px; color: #7e909d; }

/* ---------- Report (broken link / expired) widget ---------- */
.report-wrap { position: relative; display: inline-block; }
.btn-report { background: #fff; color: #c23b3b; border: 1px solid #f0c9c9; }
.btn-report:hover { background: #fff4f4; border-color: #e2a8a8; color: #a82f2f; }
.report-menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow-lg); padding: 8px; width: 250px; z-index: 40; display: none; }
.report-menu.open { display: block; }
.report-menu h6 { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: 4px 8px 6px; }
.report-menu button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none;
  border: 0; padding: 10px 9px; border-radius: 7px; font-size: 13.5px; color: var(--body); cursor: pointer; }
.report-menu button:hover { background: #f3f6f9; color: var(--ink); }
.report-menu button i { width: 16px; color: #c23b3b; }
.report-done { display: none; align-items: center; gap: 8px; font-size: 13px; color: #2f8a2b; padding: 8px; }

/* ---------- "Found-it" editable referral box (per post) ---------- */
.found-box { position: relative; display: flex; align-items: center; gap: 13px;
  background: linear-gradient(135deg,#eaf3ff,#f4f9ff); border: 1px solid #bcd9f7; border-left: 4px solid var(--orange);
  border-radius: 10px; padding: 14px 16px; margin: 16px 0; }
.found-box > .ico { color: var(--orange); font-size: 20px; flex-shrink: 0; }
.found-box .fb-text { flex: 1; font-size: 14px; color: #243b52; font-weight: 500; outline: none; }
.found-box .fb-text b { color: var(--ink); }
.found-box .fb-text[contenteditable="true"] { background: #fff; border-radius: 6px; box-shadow: 0 0 0 2px rgba(12,131,252,.25); padding: 4px 8px; }
.found-box .fb-edit { flex-shrink: 0; width: 32px; height: 32px; border-radius: 7px; border: 1px solid #bcd9f7;
  background: #fff; color: var(--blue); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 13px; }
.found-box .fb-edit:hover { background: var(--blue); color: #fff; }

/* ---------- Affiliate / sponsored box (between job cards) ---------- */
.affiliate-box { position: relative; display: flex; align-items: center; gap: 16px;
  border: 1px solid #ffe1b0; background: linear-gradient(135deg,#fff8ec,#fffdf9); border-radius: 12px;
  padding: 18px 20px; margin-bottom: 14px; box-shadow: var(--shadow); }
.affiliate-box .spon-label { position: absolute; top: 9px; right: 13px; font-size: 9.5px; font-weight: 700;
  letter-spacing: .6px; text-transform: uppercase; color: #b9791a; background: #fff3df; padding: 2px 8px; border-radius: 20px; }
.affiliate-box .aff-ico { width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center;
  justify-content: center; font-size: 24px; color: #fff; background: linear-gradient(135deg,#f5a623,#e8920b); }
.affiliate-box .aff-body { flex: 1; min-width: 0; }
.affiliate-box .aff-body h4 { font-size: 16px; color: var(--ink); margin-bottom: 2px; }
.affiliate-box .aff-body p { font-size: 13px; color: #6b5a3d; }
.affiliate-box .btn { flex-shrink: 0; }
@media (max-width: 600px){ .affiliate-box { flex-wrap: wrap; } .affiliate-box .btn { width: 100%; } }

/* ---------- Rich-text editor ---------- */
.rte { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.rte-toolbar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; background: #f6f8fa; border-bottom: 1px solid var(--line); }
.rte-btn { border: 1px solid transparent; background: #fff; border-radius: 6px; padding: 5px 10px; font-size: 13px; cursor: pointer; color: var(--ink); min-width: 32px; }
.rte-btn:hover { border-color: var(--line); background: #eef4ff; color: var(--blue); }
.rte-area { min-height: 160px; padding: 12px 14px; font-size: 14px; line-height: 1.6; color: var(--ink); outline: none; }
.rte-area:focus { box-shadow: inset 0 0 0 2px rgba(12,131,252,.12); }
.rte-area h2 { font-size: 19px; margin: 14px 0 8px; }
.rte-area h3 { font-size: 16px; margin: 12px 0 6px; }
.rte-area ul, .rte-area ol { padding-left: 22px; margin: 8px 0; }
.rte-area p { margin-bottom: 10px; }

/* ---------- Utilities ---------- */
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:32px}
.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}
.text-center{text-align:center}
.muted{color:var(--muted)}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
@media (max-width:800px){.grid-3,.grid-2{grid-template-columns:1fr}}
.prose p{margin-bottom:14px}.prose h2{font-size:22px;margin:26px 0 12px}.prose h3{font-size:18px;margin:20px 0 10px}
.prose ul{list-style:disc;padding-left:22px;margin-bottom:14px}.prose li{margin-bottom:6px}

/* ---------- Responsive header ---------- */
@media (max-width: 860px){
  .main-nav { position: fixed; inset: 72px 0 auto 0; background:#fff; flex-direction: column; align-items: flex-start;
    padding: 16px 20px; gap: 4px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); display: none; margin: 0; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; margin-left: auto; }
  .header-actions .btn-hide { display: none; }
  .hero h1 { font-size: 30px; }
  .search-bar { flex-direction: column; }
  .search-bar .field { border-right: 0; border-bottom: 1px solid var(--line); }
  .search-bar .field:last-of-type { border-bottom: 0; }
}
