/* =========================================================================
   Jobsite — theme stylesheet
   ========================================================================= */

/* ── Tokens ────────────────────────────────────────────────────────────────── */
:root {
  --brand:       #e8312a;   /* primary red – adjust to taste */
  --brand-dark:  #c0211b;
  --blue:        #1a73e8;
  --navy:        #0f2a5e;
  --text:        #1a1a2e;
  --muted:       #6b7280;
  --border:      #e5e7eb;
  --surface:     #fff;
  --bg:          #f4f5f7;
  --radius:      8px;
  --radius-lg:   12px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.14);
  --transition:  .18s ease;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html  { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body  {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem; line-height: 1.65; color: var(--text); background: #fff;
}
img   { max-width: 100%; height: auto; display: block; }
a     { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding: 0; list-style: none; }
h1,h2,h3,h4,h5,h6 { line-height: 1.25; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h3 { font-size: 1.1rem; }
h4 { font-size: .95rem; }
p  { margin-bottom: 1rem; }

/* ── Layout ────────────────────────────────────────────────────────────────── */
.container {
  width: 100%; max-width: 1240px;
  margin-inline: auto;
  padding-inline: 24px;
}

.wpjm-container {
  display: grid; gap: 32px;
  padding-block: 40px 56px;
}
.layout-sidebar-right { grid-template-columns: 1fr 288px; }
.layout-sidebar-right .sidebar   { order: 2; }
.layout-sidebar-right .content-area { order: 1; }

.single-job-container,
.single-resume-container,
.single-company-container {
  display: grid; grid-template-columns: 1fr 300px;
  gap: 32px; padding-block: 40px 56px;
}
.single-job-sidebar,
.single-resume-sidebar { align-self: start; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: .6rem 1.25rem; border-radius: var(--radius);
  font-size: .875rem; font-weight: 600; cursor: pointer;
  border: 2px solid transparent; transition: var(--transition);
  text-decoration: none; white-space: nowrap; line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-outline  { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover  { background: var(--brand); color: #fff; }
.btn-ghost    { background: transparent; color: var(--muted); border-color: var(--border); }
.btn-ghost:hover    { border-color: #aaa; color: var(--text); }
.btn-white    { background: #fff; color: var(--navy); border-color: #fff; font-weight: 700; }
.btn-white:hover    { background: #f0f4ff; color: var(--navy); }
.btn-sm  { padding: .4rem .9rem;  font-size: .8rem; }
.btn-lg  { padding: .75rem 2rem;  font-size: 1rem; }

/* ── Header ────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: #fff; border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }
.site-header.is-hidden    { transform: translateY(-100%); }

.header-inner {
  display: flex; align-items: center; gap: 20px;
  height: 68px;
}

/* Logo */
.site-logo-link {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; flex-shrink: 0;
}
.site-logo-img  { max-height: 40px; width: auto; }
.site-logo-text {
  font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em;
  color: var(--text); background: linear-gradient(135deg, var(--brand), #ff6b35);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Nav */
.primary-nav { flex: 1; }
.nav-menu {
  display: flex; align-items: center; gap: 2px;
}
.nav-menu li a {
  display: block; padding: .5rem .9rem; border-radius: 6px;
  font-size: .9rem; font-weight: 500; color: var(--text);
  transition: background var(--transition), color var(--transition);
}
.nav-menu li a:hover,
.nav-menu li.current-menu-item > a {
  background: #fef2f0; color: var(--brand); text-decoration: none;
}
/* Dropdowns */
.nav-menu li { position: relative; }
.nav-menu .sub-menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-md); min-width: 200px; padding: 6px 0; z-index: 300;
}
.nav-menu li:hover > .sub-menu { display: block; }
.nav-menu .sub-menu li a { border-radius: 0; padding: .55rem 1.1rem; }

/* Actions */
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Mobile toggle */
.mobile-nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; flex-direction: column; gap: 5px; margin-left: auto;
}
.mobile-nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform .2s, opacity .2s;
}
.mobile-nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed; top: 0; right: -300px; width: 280px; height: 100vh;
  background: #fff; border-left: 1px solid var(--border);
  z-index: 400; padding: 72px 24px 24px; overflow-y: auto;
  transition: right .25s ease; box-shadow: var(--shadow-lg);
}
.mobile-nav.is-open { right: 0; }
.mobile-nav-menu li a {
  display: block; padding: .75rem 0;
  border-bottom: 1px solid var(--bg); color: var(--text); font-weight: 500;
}
.mobile-nav-actions { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.mobile-nav-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 350;
}
.mobile-nav-overlay.is-visible { display: block; }

/* ── Title bar ─────────────────────────────────────────────────────────────── */
#titlebar {
  background: linear-gradient(120deg, var(--navy) 0%, #1e3a7a 100%);
  color: #fff; padding: 36px 0;
}
#titlebar.has-photo-bg {
  background-size: cover; background-position: center; position: relative;
}
#titlebar.has-photo-bg::before {
  content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.5);
}
#titlebar.has-photo-bg .container { position: relative; }
.titlebar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.titlebar-title  { font-size: clamp(1.4rem, 3vw, 2rem); color: #fff; margin: 0; }
.jobs-count      { font-size: .9rem; color: rgba(255,255,255,.75); }
.jobs-count strong { color: #fff; }

/* ── Job card (WPJM content-job_listing.php) ───────────────────────────────── */
.jobs-list { display: flex; flex-direction: column; gap: 10px; }

.job-card {
  display: grid; grid-template-columns: 56px 1fr auto;
  gap: 16px; align-items: start;
  padding: 18px 20px;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none; color: inherit;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.job-card:hover {
  box-shadow: var(--shadow-md); border-color: var(--brand);
  transform: translateY(-1px); text-decoration: none;
}
.is-featured .job-card { border-color: #f59e0b; background: #fffbeb; }

.job-card__logo img {
  width: 52px; height: 52px; object-fit: contain;
  border: 1px solid var(--border); border-radius: 10px; background: #fff;
}
.job-card__title   { font-size: .975rem; font-weight: 700; margin: 0 0 2px; color: var(--text); }
.job-card__company { font-size: .82rem; color: var(--muted); display: block; margin-bottom: 8px; }
.job-card__meta    { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.job-card__location { font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.job-card__date     { font-size: .75rem; color: #bbb; margin-left: auto; }
.job-card__type {
  font-size: .7rem; font-weight: 700; padding: 3px 9px;
  border-radius: 20px; background: #fef2f0; color: var(--brand);
  letter-spacing: .02em;
}
.job-card__badge {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; background: #f59e0b; color: #7c2d12;
  padding: 4px 9px; border-radius: 20px; white-space: nowrap; align-self: start; flex-shrink: 0;
}

/* WPJM default selectors mapped to job-card styles (fallback) */
.job_listing a {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 14px;
  padding: 16px 18px; background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); text-decoration: none; color: inherit;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.job_listing a:hover { box-shadow: var(--shadow-md); border-color: var(--brand); text-decoration: none; }
.job_listing .company_logo img { width: 48px; height: 48px; object-fit: contain; border: 1px solid var(--border); border-radius: 8px; }
.job_listing h3 { font-size: .95rem; font-weight: 700; margin: 0 0 3px; color: var(--text); }
.job_listing .company  { font-size: .82rem; color: var(--muted); }
.job_listing .location { font-size: .8rem; color: var(--muted); }
.job_listing ul.meta, .job_listing .meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; }
.job_listing ul.meta li { font-size: .72rem; padding: 2px 8px; background: #fef2f0; color: var(--brand); border-radius: 20px; font-weight: 600; }
.job_listing ul.meta li.date { background: var(--bg); color: var(--muted); }

/* Jobs search bar */
.jobs-search-bar { margin-bottom: 20px; }
.job-keyword-search { display: flex; }
.keyword-field {
  display: flex; flex: 1;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: #fff;
  transition: border-color var(--transition);
}
.keyword-field:focus-within { border-color: var(--blue); }
.keyword-field input[type="text"] {
  flex: 1; border: none; padding: .65rem .9rem; font-size: .9rem; outline: none;
}
.keyword-field button {
  background: var(--brand); color: #fff; border: none;
  padding: .65rem 1.1rem; cursor: pointer; transition: background var(--transition);
}
.keyword-field button:hover { background: var(--brand-dark); }

/* WPJM filter form */
.job_filters { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 24px; }
.job_filters input[type="text"],
.job_filters select { width: 100%; padding: .55rem .8rem; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: .875rem; }

/* ── Single job ────────────────────────────────────────────────────────────── */
.job-company-header {
  display: grid; grid-template-columns: 88px 1fr;
  gap: 20px; align-items: start;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; margin-bottom: 24px;
}
.company-logo-wrap img {
  width: 80px; height: 80px; object-fit: contain;
  border: 1px solid var(--border); border-radius: 12px;
}
.job-title   { font-size: 1.5rem; margin: 0 0 4px; }
.job-company { color: var(--muted); font-size: 1rem; display: block; margin-bottom: 12px; }
.job-meta-list {
  display: flex; flex-wrap: wrap; gap: 14px;
  padding: 0; list-style: none; margin: 0;
}
.job-meta-list li { font-size: .875rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.job-type-label { background: #fef2f0; color: var(--brand); padding: 3px 10px; border-radius: 20px; font-size: .75rem; font-weight: 700; }

.job-description {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; margin-bottom: 24px;
}
.apply-area { margin-bottom: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

/* WPJM job overview */
.job_summary, .job_overview {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px;
}
.job_overview dl { margin: 0; }
.job_overview dt { font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 14px; }
.job_overview dt:first-child { margin-top: 0; }
.job_overview dd { margin: 2px 0 0; color: var(--text); }

/* ── Resumes ───────────────────────────────────────────────────────────────── */
.resume_listings { display: flex; flex-direction: column; gap: 10px; }
.resume a {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center;
  padding: 16px 18px; background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); text-decoration: none; color: inherit;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.resume a:hover { box-shadow: var(--shadow-md); border-color: var(--blue); text-decoration: none; }
.resume .candidate-photo img { width: 48px; height: 48px; object-fit: cover; border-radius: 50%; border: 2px solid var(--border); }
.resume h3 { font-size: .95rem; font-weight: 700; margin: 0 0 3px; }
.resume .location { font-size: .82rem; color: var(--muted); }

.candidate-header {
  display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: start;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; margin-bottom: 24px;
}
.candidate-header img { width: 88px; height: 88px; object-fit: cover; border-radius: 50%; border: 3px solid var(--border); }
.candidate-name   { font-size: 1.4rem; margin: 0 0 4px; }
.candidate-location { font-size: .875rem; color: var(--muted); }

/* ── Company cards ─────────────────────────────────────────────────────────── */
.company-listings { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.company-card {
  display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start;
  padding: 20px; background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); text-decoration: none; color: inherit;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.company-card:hover { box-shadow: var(--shadow-md); border-color: var(--blue); text-decoration: none; }
.company-card__logo img { width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--border); border-radius: 10px; }
.company-card__name    { font-size: 1rem; font-weight: 700; margin: 0 0 4px; }
.company-card__tagline { font-size: .82rem; color: var(--muted); margin: 0 0 6px; }
.company-card__jobs    { font-size: .78rem; color: var(--brand); font-weight: 600; }

/* ── Dashboard ─────────────────────────────────────────────────────────────── */
.dashboard-container {
  display: grid; grid-template-columns: 250px 1fr;
  gap: 32px; padding-block: 40px 56px; align-items: start;
}
.dashboard-sidebar {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  position: sticky; top: 80px;
}
.dashboard-nav-menu li a {
  display: block; padding: .6rem .8rem; border-radius: var(--radius);
  color: var(--text); font-size: .9rem; font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.dashboard-nav-menu li a:hover,
.dashboard-nav-menu li.current-menu-item a { background: #fef2f0; color: var(--brand); text-decoration: none; }
.dashboard-cta    { display: block; margin-top: 16px; text-align: center; }
.dashboard-logout { display: block; margin-top: 16px; color: var(--muted); font-size: .85rem; text-align: center; }
.dashboard-logout:hover { color: var(--brand); text-decoration: none; }
.dashboard-section { margin-bottom: 40px; }
.dashboard-section > h2 { font-size: 1.15rem; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }

/* WPJM dashboard table */
.job-manager-jobs { width: 100%; border-collapse: collapse; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.job-manager-jobs th { background: var(--bg); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.job-manager-jobs td { padding: 13px 16px; border-bottom: 1px solid var(--bg); font-size: .9rem; vertical-align: middle; }
.job-manager-jobs tr:last-child td { border-bottom: none; }

/* ── Auth ──────────────────────────────────────────────────────────────────── */
.auth-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-block: 48px; }
.auth-col { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 36px; }
.auth-col h2 { margin-bottom: 24px; }
.login-form p, .register-form p { margin-bottom: 18px; }
.login-form label, .register-form label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.login-form input[type="text"],
.login-form input[type="password"],
.login-form input[type="email"],
.register-form input[type="text"],
.register-form input[type="email"],
.register-form select,
#loginform input[type="text"],
#loginform input[type="password"] {
  width: 100%; padding: .65rem .9rem; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: .95rem;
  transition: border-color var(--transition);
}
.login-form input:focus,
.register-form input:focus,
#loginform input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(26,115,232,.1); }
.auth-submit input[type="submit"],
#loginform .button-primary {
  width: 100%; padding: .7rem; background: var(--brand); color: #fff;
  border: none; border-radius: var(--radius); font-size: 1rem;
  font-weight: 700; cursor: pointer; transition: background var(--transition);
}
.auth-submit input[type="submit"]:hover,
#loginform .button-primary:hover { background: var(--brand-dark); }
.auth-forgot, .auth-links { font-size: .85rem; margin-top: 14px; }

/* ── Notices ───────────────────────────────────────────────────────────────── */
.notice, .notification {
  padding: 12px 18px; border-radius: var(--radius);
  border-left: 4px solid; margin-bottom: 18px; font-size: .9rem;
}
.notice-error, .notification.error { background: #fef2f2; border-color: #ef4444; color: #7f1d1d; }
.notice-success, .notification.success { background: #f0fdf4; border-color: #22c55e; color: #14532d; }
.notice-info, .notification.info { background: #eff6ff; border-color: #3b82f6; color: #1e3a5f; }

/* ── Widgets / Sidebar ─────────────────────────────────────────────────────── */
.sidebar { align-self: start; }
.widget { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px; }
.widget-title { font-size: .9rem; font-weight: 700; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.widget ul li { padding: 5px 0; border-bottom: 1px solid var(--bg); font-size: .875rem; }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--text); }
.widget ul li a:hover { color: var(--brand); text-decoration: none; }

/* ── Pagination ────────────────────────────────────────────────────────────── */
.job-manager-pagination, .pagination { text-align: center; margin: 28px 0; }
.job-manager-pagination ul, .pagination ul { display: inline-flex; gap: 4px; }
.job-manager-pagination a, .job-manager-pagination span,
.pagination a, .pagination span {
  display: inline-block; padding: .45rem .85rem;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: .875rem; color: var(--text); transition: var(--transition);
}
.job-manager-pagination a:hover, .pagination a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.job-manager-pagination .current, .pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Loading */
.job-manager-loading { text-align: center; padding: 40px; color: var(--muted); }

/* Select2 */
.select2-container { width: 100% !important; }
.select2-selection { border: 1.5px solid var(--border) !important; border-radius: var(--radius) !important; min-height: 40px !important; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.site-footer { background: #111827; color: rgba(255,255,255,.7); margin-top: 64px; padding: 56px 0 28px; }
.footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 36px; margin-bottom: 40px; }
.footer-widget-col h4 { color: #fff; font-size: .8rem; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .08em; }
.footer-widget-col ul li { padding: 4px 0; }
.footer-widget-col ul li a { color: rgba(255,255,255,.6); font-size: .875rem; transition: color var(--transition); }
.footer-widget-col ul li a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; display: flex; justify-content: center; }
.copyright { font-size: .82rem; color: rgba(255,255,255,.4); }
.copyright a { color: rgba(255,255,255,.6); }

/* ── Homepage ──────────────────────────────────────────────────────────────── */

/* Hero */
.hp-hero {
  background: linear-gradient(135deg, #0b1f42 0%, #1a4080 50%, #1a73e8 100%);
  padding: 96px 0 88px; text-align: center;
  position: relative; overflow: hidden;
}
.hp-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(255,255,255,.05) 0%, transparent 70%);
  pointer-events: none;
}

.hp-hero__inner { position: relative; }

.hp-hero__heading {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800; color: #fff; margin: 0 0 14px;
  letter-spacing: -.03em;
  text-shadow: 0 2px 20px rgba(0,0,0,.2);
}
.hp-hero__sub { font-size: 1.15rem; color: rgba(255,255,255,.78); margin: 0 0 36px; }

/* Search bar */
.hp-search { max-width: 820px; margin: 0 auto 28px; }
.hp-search__fields {
  display: grid; grid-template-columns: 1fr 1fr auto;
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.hp-search__field {
  display: flex; align-items: center; padding: 0 18px;
  border-right: 1px solid var(--border);
}
.hp-search__icon { color: var(--muted); font-size: .9rem; flex-shrink: 0; margin-right: 10px; }
.hp-search__field input {
  flex: 1; border: none; padding: 18px 0; font-size: .95rem; outline: none;
  background: transparent; width: 100%;
}
.hp-search__btn {
  background: var(--brand); color: #fff; border: none;
  padding: 0 32px; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: background var(--transition);
  white-space: nowrap; letter-spacing: .01em;
}
.hp-search__btn:hover { background: var(--brand-dark); }

/* Popular tags */
.hp-hero__popular {
  font-size: .85rem; color: rgba(255,255,255,.65);
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap;
}
.hp-hero__tag {
  display: inline-block; padding: 4px 14px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px; color: rgba(255,255,255,.9); font-size: .8rem;
  transition: background var(--transition); text-decoration: none;
}
.hp-hero__tag:hover { background: rgba(255,255,255,.22); text-decoration: none; color: #fff; }

/* Stats bar */
.hp-stats { background: #fff; border-bottom: 1px solid var(--border); padding: 22px 0; }
.hp-stats__list {
  display: flex; justify-content: center; gap: 56px; flex-wrap: wrap;
}
.hp-stats__item { text-align: center; }
.hp-stats__num   { display: block; font-size: 1.75rem; font-weight: 800; color: var(--brand); line-height: 1; margin-bottom: 2px; }
.hp-stats__label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }

/* Section header */
.hp-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.hp-section-title  { margin: 0; }
.hp-section-link   { font-size: .875rem; color: var(--brand); font-weight: 600; }
.hp-section-link:hover { text-decoration: underline; }

/* Categories grid */
.hp-categories { padding: 72px 0; background: var(--bg); }
.hp-categories__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
  gap: 14px;
}
.hp-categories__card {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 28px 16px;
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); text-decoration: none; color: var(--text);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.hp-categories__card:hover {
  box-shadow: 0 6px 24px rgba(232,49,42,.12); border-color: var(--brand);
  transform: translateY(-3px); text-decoration: none;
}
.hp-categories__icon {
  width: 52px; height: 52px; background: #fef2f0; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; font-size: 1.25rem; color: var(--brand);
  transition: background var(--transition), color var(--transition);
}
.hp-categories__card:hover .hp-categories__icon { background: var(--brand); color: #fff; }
.hp-categories__name  { font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
.hp-categories__count { font-size: .78rem; color: var(--muted); }

/* Featured jobs */
.hp-jobs { padding: 72px 0; }
.hp-jobs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 14px; margin-bottom: 36px;
}
.hp-jobs__card {
  display: grid; grid-template-columns: 54px 1fr auto;
  gap: 14px; align-items: start;
  padding: 18px 20px; background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); text-decoration: none; color: inherit;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  position: relative;
}
.hp-jobs__card:hover {
  box-shadow: var(--shadow-md); border-color: var(--brand);
  transform: translateY(-2px); text-decoration: none;
}
.is-featured .hp-jobs__card { border-color: #f59e0b; background: #fffbeb; }
.hp-jobs__logo img { width: 48px; height: 48px; object-fit: contain; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.hp-jobs__title   { font-size: .975rem; font-weight: 700; margin: 0 0 2px; color: var(--text); }
.hp-jobs__company { font-size: .82rem; color: var(--muted); display: block; margin-bottom: 8px; }
.hp-jobs__meta    { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hp-jobs__location { font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.hp-jobs__type {
  font-size: .7rem; font-weight: 700; padding: 3px 9px;
  border-radius: 20px; background: #fef2f0; color: var(--brand);
}
.hp-jobs__badge {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; background: #f59e0b; color: #7c2d12;
  padding: 4px 9px; border-radius: 20px; white-space: nowrap;
  align-self: start; flex-shrink: 0;
}
.hp-jobs__cta  { text-align: center; }
.hp-empty      { text-align: center; color: var(--muted); padding: 40px 0; }

/* Employer / Candidate split CTA */
.hp-cta-split { display: grid; grid-template-columns: 1fr 1fr; }
.hp-cta-split__col         { padding: 80px 48px; }
.hp-cta-split__col--employer  { background: #0b1f42; }
.hp-cta-split__col--candidate { background: var(--brand); }
.hp-cta-split__inner { max-width: 420px; margin: 0 auto; }
.hp-cta-split__eyebrow { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.55); margin-bottom: 12px; }
.hp-cta-split__col h2 { color: #fff; font-size: 1.9rem; margin: 0 0 12px; }
.hp-cta-split__col p  { color: rgba(255,255,255,.72); margin: 0 0 28px; font-size: .975rem; }

/* ── Misc ──────────────────────────────────────────────────────────────────── */
.entry-content { line-height: 1.75; }
.entry-content h2, .entry-content h3 { margin: 1.5rem 0 .5rem; }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; list-style: disc; margin-bottom: 1rem; }
.entry-content li { margin-bottom: .3rem; }

/* Content area for pages / blog */
.content-area { background: var(--surface); }
article.content-area { padding: 40px 0; }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media ( max-width: 1024px ) {
  .layout-sidebar-right,
  .single-job-container,
  .single-resume-container,
  .single-company-container { grid-template-columns: 1fr; }
  .layout-sidebar-right .sidebar { order: 2; }
  .dashboard-container { grid-template-columns: 1fr; }
  .dashboard-sidebar   { position: static; }
  .hp-cta-split   { grid-template-columns: 1fr; }
  .hp-jobs__grid  { grid-template-columns: 1fr; }
  .company-listings { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

@media ( max-width: 768px ) {
  .primary-nav    { display: none; }
  .header-actions { display: none; }
  .mobile-nav-toggle { display: flex; }
  .auth-columns   { grid-template-columns: 1fr; }
  .hp-hero        { padding: 60px 0 52px; }
  .hp-search__fields { grid-template-columns: 1fr; border-radius: var(--radius-lg); }
  .hp-search__field  { border-right: none; border-bottom: 1px solid var(--border); }
  .hp-search__btn    { padding: 16px; }
  .hp-stats__list    { gap: 28px; }
  .hp-categories__grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .hp-cta-split__col   { padding: 52px 28px; }
  .titlebar-inner      { flex-direction: column; align-items: flex-start; }
  .job-company-header  { grid-template-columns: 60px 1fr; }
  .candidate-header    { grid-template-columns: 72px 1fr; }
  .job_filters .search_jobs { grid-template-columns: 1fr; }
  .company-listings { grid-template-columns: 1fr; }
}

@media ( max-width: 480px ) {
  .container { padding-inline: 16px; }
  .job-card, .job_listing a { grid-template-columns: 44px 1fr; }
  .job-card > :last-child { display: none; }
  .hp-categories__grid { grid-template-columns: repeat(2, 1fr); }
}
