/* ============================================================
   Việc Làm 24 Giờ — vieclam24g.vn
   Mockup giao diện (Năng động: cam–xanh) · v2 tinh chỉnh
   ============================================================ */

:root {
  --primary: #FF6B2C;        /* Cam năng lượng */
  --primary-dark: #E5551A;
  --primary-soft: #FFF1EA;
  --secondary: #1A56DB;      /* Xanh dương tin cậy */
  --secondary-dark: #133fa3;
  --accent: #FFC107;         /* Vàng 24h */
  --ink: #1F2937;            /* Chữ chính */
  --muted: #6B7280;          /* Chữ phụ */
  --line: #ECEEF2;           /* Đường viền */
  --bg: #F6F7F9;             /* Nền nhạt */
  --white: #FFFFFF;
  --green: #15A34A;
  --radius: 16px;
  --shadow-xs: 0 1px 2px rgba(17,24,39,.05);
  --shadow: 0 8px 28px rgba(17, 24, 39, .08);
  --shadow-lg: 0 20px 56px rgba(17, 24, 39, .14);
  --shadow-primary: 0 10px 24px rgba(255, 107, 44, .32);
  --font: 'Be Vietnam Pro', 'Inter', -apple-system, Segoe UI, Roboto, sans-serif;
  --header-h: 70px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
::selection { background: var(--primary); color: #fff; }
:focus-visible { outline: 3px solid rgba(26,86,219,.4); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 11px; font-weight: 600;
  font-size: 15px; cursor: pointer; border: none; transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  white-space: nowrap; font-family: var(--font); line-height: 1.2;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-primary); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255,107,44,.4); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: var(--secondary-dark); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.btn-lg { padding: 15px 30px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100;
}
.nav { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.logo .mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; display: grid; place-items: center; font-size: 12.5px; font-weight: 800;
  line-height: 1.02; text-align: center; box-shadow: 0 6px 14px rgba(255,107,44,.3);
}
.logo b { color: var(--primary); }
.nav-menu { display: flex; gap: 22px; font-weight: 500; color: var(--ink); }
.nav-menu a { position: relative; padding: 4px 0; }
.nav-menu a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--primary); border-radius: 2px; transition: width .22s ease;
}
.nav-menu a:hover { color: var(--primary); }
.nav-menu a:hover::after { width: 100%; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* Hamburger */
.hamburger {
  display: none; width: 44px; height: 44px; border: 1.5px solid var(--line); background: #fff;
  border-radius: 11px; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.hamburger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu panel */
.mobile-menu {
  display: none; flex-direction: column; gap: 4px; padding: 12px 20px 20px;
  background: #fff; border-bottom: 1px solid var(--line);
}
.mobile-menu.open { display: flex; animation: slideDown .22s ease; }
.mobile-menu a { padding: 13px 12px; border-radius: 10px; font-weight: 600; }
.mobile-menu a:hover { background: var(--bg); color: var(--primary); }
.mobile-menu .divider { height: 1px; background: var(--line); margin: 8px 0; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px);} to { opacity: 1; transform: none;} }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #FF6B2C 0%, #F2542D 38%, #1A56DB 100%);
  color: #fff; padding: 64px 0 96px; position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.16) 1px, transparent 0);
  background-size: 26px 26px; opacity: .5;
}
.hero::after {
  content: ""; position: absolute; right: -90px; top: -90px;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%);
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { font-size: 44px; line-height: 1.16; font-weight: 800; max-width: 740px; letter-spacing: -.5px; }
.hero h1 .hl { color: var(--accent); }
.hero p.lead { font-size: 18px; opacity: .96; margin-top: 16px; max-width: 600px; }

.search-bar {
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 10px; margin-top: 32px; display: flex; gap: 8px; max-width: 880px;
}
.search-field { flex: 1; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 12px; transition: background .15s; }
.search-field:focus-within { background: var(--bg); }
.search-field + .search-field { border-left: 1px solid var(--line); }
.search-field .ico { font-size: 18px; }
.search-field input {
  border: none; outline: none; font-size: 15px; width: 100%; background: transparent;
  font-family: var(--font); color: var(--ink);
}
.search-field input::placeholder { color: #9CA3AF; }

.hot-keywords { margin-top: 18px; font-size: 14px; opacity: .95; }
.hot-keywords a {
  background: rgba(255,255,255,.18); padding: 5px 13px; border-radius: 20px;
  margin: 4px 4px 0 0; display: inline-block; transition: .15s; backdrop-filter: blur(4px);
}
.hot-keywords a:hover { background: #fff; color: var(--primary); transform: translateY(-1px); }

.hero-stats { display: flex; gap: 44px; margin-top: 38px; flex-wrap: wrap; }
.hero-stats .num { font-size: 30px; font-weight: 800; letter-spacing: -.5px; }
.hero-stats .lbl { font-size: 14px; opacity: .92; }

/* ---------- Sections ---------- */
.section { padding: 58px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 28px; gap: 16px; }
.section-head h2 { font-size: 27px; font-weight: 800; letter-spacing: -.4px; }
.section-head .sub { color: var(--muted); font-size: 15px; margin-top: 4px; }
.section-head a.more { color: var(--secondary); font-weight: 600; font-size: 15px; white-space: nowrap; }
.section-head a.more:hover { color: var(--primary); }
.section.alt { background: #fff; }

/* ---------- Job cards ---------- */
.job-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.job-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.job-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative; display: flex; flex-direction: column; overflow: hidden;
}
.job-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.job-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: #FBD9C8; }
.job-card:hover::before { transform: scaleX(1); }
.job-card .top { display: flex; gap: 12px; align-items: flex-start; }
.job-logo {
  width: 52px; height: 52px; border-radius: 13px; flex: none;
  display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 18px;
  box-shadow: var(--shadow-xs);
}
.job-title { font-weight: 700; font-size: 16px; line-height: 1.35; transition: color .15s; }
.job-title:hover { color: var(--primary); }
.job-company { color: var(--muted); font-size: 14px; margin-top: 3px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag {
  font-size: 12.5px; background: var(--bg); color: #374151;
  padding: 5px 11px; border-radius: 8px; display: inline-flex; gap: 5px; align-items: center;
}
.tag.salary { background: #E9FBF0; color: var(--green); font-weight: 700; }
.job-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: 13px; color: var(--muted);
}
.job-foot .save { cursor: pointer; transition: .15s; }
.job-foot .save:hover { color: var(--primary); }
.badge {
  position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 7px; text-transform: uppercase; letter-spacing: .3px; z-index: 2;
}
.badge.urgent { background: #FEE2E2; color: #DC2626; }
.badge.new { background: #DBEAFE; color: var(--secondary); }
.badge.hot { background: #FEF3C7; color: #B45309; }

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 14px; text-align: center; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.cat-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-4px); }
.cat-card .ic {
  font-size: 28px; width: 58px; height: 58px; margin: 0 auto; border-radius: 14px;
  display: grid; place-items: center; background: var(--primary-soft); transition: .18s;
}
.cat-card:hover .ic { background: var(--primary); transform: scale(1.05); }
.cat-card .name { font-weight: 600; margin-top: 12px; font-size: 14.5px; }
.cat-card .cnt { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* ---------- Companies ---------- */
.company-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.company-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: grid; place-items: center; gap: 10px; transition: .18s; text-align: center;
}
.company-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #FBD9C8; }
.company-card .clogo {
  width: 58px; height: 58px; border-radius: 15px; display: grid; place-items: center;
  font-weight: 800; color: #fff; font-size: 20px; box-shadow: var(--shadow-xs);
}
.company-card .cname { font-weight: 600; font-size: 14px; }
.company-card .cjobs { color: var(--primary); font-size: 13px; font-weight: 600; }

/* ---------- Employer CTA ---------- */
.employer-cta {
  background: linear-gradient(120deg, #1A56DB, #2563EB 60%, #133fa3); color: #fff;
  border-radius: 22px; padding: 46px; display: flex; align-items: center;
  justify-content: space-between; gap: 30px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.employer-cta::after {
  content: ""; position: absolute; right: -40px; bottom: -60px; width: 240px; height: 240px;
  border-radius: 50%; background: rgba(255,255,255,.08);
}
.employer-cta > * { position: relative; z-index: 2; }
.employer-cta h2 { font-size: 29px; font-weight: 800; letter-spacing: -.4px; }
.employer-cta p { opacity: .94; margin-top: 8px; max-width: 520px; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.blog-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .18s, box-shadow .18s; }
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.blog-card .thumb { height: 168px; background: linear-gradient(135deg, #FFD6C2, #C9D8FF); position: relative; }
.blog-card .thumb::after { content: "📄"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 38px; opacity: .5; }
.blog-card .body { padding: 18px; }
.blog-card .cat { color: var(--primary); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.blog-card h3 { font-size: 16px; margin-top: 7px; line-height: 1.4; }
.blog-card:hover h3 { color: var(--secondary); }
.blog-card .meta { color: var(--muted); font-size: 13px; margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: #111827; color: #cbd5e1; padding: 56px 0 26px; margin-top: 24px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.foot-grid h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.foot-grid a { display: block; padding: 6px 0; font-size: 14px; color: #cbd5e1; transition: .15s; }
.foot-grid a:hover { color: var(--primary); transform: translateX(3px); }
.foot-bottom {
  border-top: 1px solid #1f2937; margin-top: 36px; padding-top: 22px;
  display: flex; justify-content: space-between; font-size: 13px; color: #9CA3AF; flex-wrap: wrap; gap: 10px;
}
.foot-logo { color: #fff; font-weight: 800; font-size: 20px; }

/* ============================================================
   LISTING PAGE
   ============================================================ */
.page-head { background: #fff; border-bottom: 1px solid var(--line); padding: 22px 0; }
.breadcrumb { color: var(--muted); font-size: 14px; }
.breadcrumb a:hover { color: var(--primary); }
.page-head h1 { font-size: 24px; margin-top: 6px; letter-spacing: -.3px; }

.search-bar.compact { margin-top: 16px; box-shadow: var(--shadow); }

.listing { display: grid; grid-template-columns: 280px 1fr; gap: 26px; padding: 30px 0; align-items: start; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: calc(var(--header-h) + 16px); }
.filters > h3 { font-size: 16px; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; }
.filters .close-filters { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--muted); }
.filter-group { padding: 16px 0; border-bottom: 1px solid var(--line); }
.filter-group:last-of-type { border-bottom: none; }
.filter-group .gtitle { font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.filter-opt { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 14px; color: #374151; cursor: pointer; }
.filter-opt input { accent-color: var(--primary); width: 16px; height: 16px; }
.filter-opt .c { margin-left: auto; color: var(--muted); font-size: 13px; }

.filter-toggle { display: none; }

.results-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.results-bar .count b { color: var(--ink); }
.results-bar select { padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; font-family: var(--font); background: #fff; }

.job-list { display: flex; flex-direction: column; gap: 14px; }
.job-row {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; gap: 16px; transition: transform .16s, box-shadow .16s, border-color .16s; position: relative;
}
.job-row:hover { box-shadow: var(--shadow); border-color: #FBD9C8; transform: translateY(-2px); }
.job-row .info { flex: 1; min-width: 0; }
.job-row .job-title { font-size: 17px; }
.job-row .apply-col { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; justify-content: center; flex: none; }
.job-row .deadline { font-size: 12.5px; color: var(--muted); }
.job-row .save-ico { font-size: 18px; cursor: pointer; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 30px; }
.pagination a {
  min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; transition: .15s;
}
.pagination a.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: var(--shadow-primary); }
.pagination a:hover:not(.active) { border-color: var(--primary); color: var(--primary); }

/* ============================================================
   DETAIL PAGE
   ============================================================ */
.detail { display: grid; grid-template-columns: 1fr 340px; gap: 26px; padding: 30px 0; align-items: start; }
.detail-main { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.detail-hero { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.detail-hero h1 { font-size: 24px; line-height: 1.3; letter-spacing: -.3px; }
.detail-hero .company { color: var(--secondary); font-weight: 600; margin-top: 4px; }
.detail-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0; }
.quick-item { background: var(--bg); border-radius: 13px; padding: 15px; }
.quick-item .k { color: var(--muted); font-size: 13px; }
.quick-item .v { font-weight: 700; margin-top: 3px; font-size: 15px; }
.detail-section { margin-top: 26px; }
.detail-section h3 { font-size: 18px; margin-bottom: 12px; padding-left: 12px; border-left: 4px solid var(--primary); }
.detail-section ul { padding-left: 20px; }
.detail-section li { margin: 7px 0; }
.detail-section p { margin: 8px 0; }

.apply-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: calc(var(--header-h) + 16px); box-shadow: var(--shadow-xs); }
.apply-box .salary-big { font-size: 25px; font-weight: 800; color: var(--green); }
.apply-box .meta-line { display: flex; gap: 9px; align-items: center; padding: 10px 0; font-size: 14px; color: #374151; border-bottom: 1px solid var(--line); }
.apply-box .meta-line:last-of-type { border-bottom: none; }
.company-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 18px; text-align: center; box-shadow: var(--shadow-xs); }
.company-box .clogo { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 12px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 24px; }

/* Sticky mobile apply bar (detail) */
.mobile-apply-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: #fff; border-top: 1px solid var(--line); padding: 12px 16px;
  box-shadow: 0 -8px 28px rgba(17,24,39,.12); gap: 12px; align-items: center;
}
.mobile-apply-bar .mab-salary { font-weight: 800; color: var(--green); font-size: 17px; line-height: 1.1; }
.mobile-apply-bar .mab-sub { font-size: 12px; color: var(--muted); }
.mobile-apply-bar .btn { flex: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .job-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  :root { --header-h: 62px; }
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  .nav-right .btn-ghost { display: none; }
  .cat-grid, .company-row { grid-template-columns: repeat(4, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .job-grid { grid-template-columns: repeat(2, 1fr); }
  .listing, .detail { grid-template-columns: 1fr; }
  .apply-box { display: none; }            /* thay bằng thanh đáy cố định */
  .mobile-apply-bar { display: flex; }
  .detail { padding-bottom: 90px; }

  /* Filters trở thành drawer trượt từ trái */
  .filter-toggle {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
    padding: 11px 18px; border-radius: 11px; border: 1.5px solid var(--line);
    background: #fff; font-weight: 600; font-family: var(--font); cursor: pointer; font-size: 15px;
  }
  .filters {
    position: fixed; top: 0; left: 0; bottom: 0; width: 84%; max-width: 330px;
    z-index: 200; border-radius: 0; transform: translateX(-100%); transition: transform .28s ease;
    overflow-y: auto; box-shadow: var(--shadow-lg);
  }
  .filters.open { transform: translateX(0); }
  .filters .close-filters { display: block; }
  .filter-backdrop {
    display: none; position: fixed; inset: 0; background: rgba(17,24,39,.45); z-index: 150;
  }
  .filter-backdrop.open { display: block; }
  .hero h1 { font-size: 33px; }
  .employer-cta { flex-direction: column; text-align: center; padding: 36px 28px; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 40px 0; }
  .hero { padding: 44px 0 64px; }
  .hero h1 { font-size: 27px; letter-spacing: -.3px; }
  .hero p.lead { font-size: 16px; }
  .section-head { flex-direction: row; align-items: center; }
  .section-head h2 { font-size: 21px; }
  .section-head .sub { display: none; }

  .search-bar { flex-direction: column; padding: 12px; gap: 4px; }
  .search-field + .search-field { border-left: none; border-top: 1px solid var(--line); }
  .search-bar .btn { width: 100%; margin-top: 6px; }

  .hero-stats { gap: 0; justify-content: space-between; width: 100%; }
  .hero-stats .num { font-size: 22px; }
  .hero-stats .lbl { font-size: 12px; }

  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .cat-card { padding: 18px 8px; }
  .cat-card .ic { width: 50px; height: 50px; font-size: 24px; }
  .cat-card .name { font-size: 13px; }
  .company-row { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .blog-grid { grid-template-columns: 1fr; }
  .job-grid, .job-grid.cols-2 { grid-template-columns: 1fr; }

  .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .foot-bottom { flex-direction: column; }

  /* Job row gọn lại trên mobile */
  .job-row { flex-wrap: wrap; }
  .job-row .job-logo { width: 46px; height: 46px; font-size: 16px; }
  .job-row .apply-col { flex-direction: row; width: 100%; align-items: center; justify-content: space-between;
    border-top: 1px dashed var(--line); padding-top: 12px; }
  .job-row .apply-col .btn { order: 2; }
  .job-row .deadline { order: 1; }

  .detail-main { padding: 20px; }
  .detail-hero { flex-direction: column; }
  .detail-quick { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 20px; }
}
@media (max-width: 380px) {
  .cat-grid, .company-row { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   BỔ SUNG CHO THEME (form ứng tuyển, nội dung the_content)
   ============================================================ */
.vl24g-input {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 11px;
  font-family: var(--font); font-size: 15px; color: var(--ink); margin-top: 6px;
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.vl24g-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,107,44,.15); }
textarea.vl24g-input { resize: vertical; }

/* Nội dung mô tả công việc (the_content) */
.job-description { line-height: 1.75; }
.job-description h2, .job-description h3 {
  font-size: 18px; margin: 22px 0 12px; padding-left: 12px; border-left: 4px solid var(--primary);
}
.job-description ul, .job-description ol { padding-left: 22px; margin: 10px 0; }
.job-description li { margin: 7px 0; }
.job-description p { margin: 10px 0; }
.job-description a { color: var(--secondary); }

@media (max-width: 600px) {
  #apply-form [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
}

/* Nút lưu tin */
.vl24g-save { cursor: pointer; user-select: none; transition: color .15s, transform .1s; }
.vl24g-save:hover { color: var(--primary); }
.vl24g-save:active { transform: scale(.9); }
.vl24g-save.is-saved { color: #E5551A; }
