/*
Theme Name: JobHub
Theme URI: https://example.com/jobhub
Author: JobHub
Author URI: https://example.com
Description: JobHub is a clean, modern and professional WordPress jobs board theme, built for WP Job Manager. It ships with a hero job search, job categories, featured and latest job listings, a styled single job view, and a fully responsive mobile-first layout. Deep navy, white and a Canada red accent keep the board readable and trustworthy.
Version: 1.1.46
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jobhub
Tags: jobs, job-board, responsive, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   JobHub — style.css
   Palette: navy #1e3a5f / navy-dark #152a45 / Canada red #D80621
   ============================================================ */

:root {
  --navy: #1e3a5f;
  --navy-dark: #152a45;
  --navy-light: #2c4f7c;
  --accent: #D80621;
  --accent-dark: #A8001B;
  --accent-light: #FDECEF;
  --ink: #1f2937;
  --muted: #5b6b7f;
  --line: #e5e9ef;
  --bg: #f6f8fa;
  --card: #ffffff;
  --gold: #f59e0b;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 2px 10px rgba(21, 42, 69, 0.08);
  --shadow-lg: 0 8px 30px rgba(21, 42, 69, 0.12);
  --font: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Raleway", "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  line-height: 1.25;
  color: var(--navy-dark);
  font-family: var(--font-head);
  font-weight: 700;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

/* ---------- Article content lists: tick style (1.1.19) ---------- */
/* Reference: jobsandvisaguide.com — each bullet is a light-grey bar
   with a white check in a solid square. Navy square = our brand. */
.entry-content ul {
  padding: 0;
  margin: 0 0 1em;
}
.entry-content ul li {
  list-style: none;
  position: relative;
  display: block;
  padding: .4em .4em .4em .8em;
  margin: .5em 0 .5em 2.2em;
  background: rgba(232, 232, 232, 0.48);
  color: #444;
  text-decoration: none;
}
.entry-content ul li::before {
  content: "\2713";
  position: absolute;
  left: -2.5em;
  top: 50%;
  margin-top: -1em;
  height: 2em;
  width: 2em;
  line-height: 2em;
  text-align: center;
  color: #fff;
  background-color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { color: var(--accent-dark); text-decoration: underline; }

img { max-width: 100%; height: auto; }

ul, ol { margin: 0 0 1em 1.25em; padding: 0; }
li { margin-bottom: 0.3em; }

blockquote {
  margin: 0 0 1em;
  padding: 0.75em 1.25em;
  border-left: 4px solid var(--accent);
  background: var(--accent-light);
  color: var(--navy-dark);
}

code {
  padding: 0.15em 0.35em;
  background: #eef2f6;
  border-radius: 4px;
  font-size: 0.9em;
}

pre {
  padding: 1em;
  background: var(--navy-dark);
  color: #e8eef5;
  border-radius: var(--radius-sm);
  overflow: auto;
}

table { width: 100%; border-collapse: collapse; margin-bottom: 1em; }
th, td { padding: 0.6em 0.75em; border: 1px solid var(--line); text-align: left; }
th { background: #eef2f6; color: var(--navy-dark); }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.section { padding: 56px 0; }
.section-title { text-align: center; margin-bottom: 8px; }
.section-sub {
  text-align: center; color: var(--muted);
  max-width: 640px; margin: 0 auto 36px;
}

.button,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
  display: inline-block;
  padding: 0.7em 1.5em;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.button:hover, .button:focus,
input[type="submit"]:hover, input[type="submit"]:focus,
button[type="submit"]:hover, button[type="submit"]:focus {
  background: var(--accent-dark);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(216, 6, 33, 0.35);
}
.button-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.button-outline:hover, .button-outline:focus {
  background: var(--navy);
  color: #fff;
  box-shadow: none;
}
.button-navy { background: var(--navy); }
.button-navy:hover, .button-navy:focus { background: var(--navy-dark); box-shadow: 0 4px 14px rgba(30, 58, 95, 0.35); }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="url"], input[type="tel"],
input[type="number"], input[type="password"], input[type="search"],
select, textarea {
  width: 100%;
  padding: 0.65em 0.85em;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(216, 6, 33, 0.18);
}
label { display: block; font-weight: 600; color: var(--navy-dark); margin-bottom: 0.35em; }
textarea { min-height: 140px; resize: vertical; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 8px rgba(21, 42, 69, 0.06);
}
.site-header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}
.site-branding { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-branding a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-branding a:hover { text-decoration: none; }
.site-logo img { max-height: 44px; width: auto; display: block; }
.site-logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 9px;
  background: var(--navy); color: #fff;
  font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em;
}
.site-title {
  margin: 0; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em;
  color: var(--navy);
}
.site-title span { color: var(--accent); }
.site-description { margin: 0; font-size: 0.8rem; color: var(--muted); line-height: 1.2; }

.main-navigation { margin-left: auto; }
.main-navigation ul {
  display: flex; align-items: center; gap: 4px;
  margin: 0; padding: 0; list-style: none;
}
.main-navigation li { margin: 0; }
.main-navigation a {
  display: block; padding: 0.55em 0.7em;
  color: var(--navy-dark); font-weight: 600; font-size: 0.95rem;
  border-radius: var(--radius-sm); text-decoration: none;
  white-space: nowrap; /* 1.1.13: nav labels stay on one line */
}
.main-navigation a:hover, .main-navigation a:focus,
.main-navigation .current-menu-item > a {
  color: var(--accent-dark); background: var(--accent-light); text-decoration: none;
}
/* 1.1.35: Browse Jobs dropdown — desktop hover / keyboard focus. */
.main-navigation li { position: relative; }
.main-navigation .menu-item-has-children > a::after { content: " ▾"; font-size: 0.8em; }
.main-navigation .sub-menu {
  display: none; position: absolute; left: 0; top: 100%;
  min-width: 230px; flex-direction: column; align-items: stretch; gap: 2px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); padding: 6px; z-index: 200;
}
.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu { display: flex; }
.main-navigation .sub-menu a { white-space: normal; }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-actions .button { padding: 0.55em 1.15em; white-space: nowrap; }
/* 1.1.42: the CV button is mobile-only (desktop shows Post a Job instead);
   the mobile-only menu item is hidden on desktop. Both flip in the
   max-width: 899px block below. */
.header-actions .button.header-button-mobile { display: none; }
.menu-item-mobile-only { display: none; }
.menu-toggle {
  display: none;
  padding: 0.5em 0.7em;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff; color: var(--navy-dark);
  font-size: 1.1rem; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  color: #fff;
  padding: 72px 0 84px;
  text-align: center;
}
.hero h1 { color: #fff; font-size: 2.4rem; letter-spacing: -0.02em; margin-bottom: 0.35em; }
.hero h1 span { color: #FF8FA3; }
.hero p { color: #c9d6e6; font-size: 1.1rem; max-width: 640px; margin: 0 auto 28px; }
.hero-stats {
  display: flex; justify-content: center; gap: 36px; flex-wrap: wrap;
  margin-top: 28px; color: #c9d6e6; font-size: 0.9rem;
}
.hero-stats strong { display: block; font-size: 1.4rem; color: #fff; }

.job-search-form {
  display: grid; grid-template-columns: 1fr; gap: 10px;
  max-width: 860px; margin: 0 auto; padding: 12px;
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); text-align: left;
}
.job-search-form .field { display: flex; flex-direction: column; }
.job-search-form label { font-size: 0.8rem; color: var(--muted); margin-bottom: 2px; }
.job-search-form input, .job-search-form select { border: none; padding: 0.5em 0.6em; }
.job-search-form input:focus, .job-search-form select:focus { box-shadow: none; }
.job-search-form .submit { display: flex; align-items: flex-end; }
.job-search-form .submit .button { width: 100%; padding: 0.85em 1.4em; }

/* ---------- Categories ---------- */
.cat-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  list-style: none; margin: 0; padding: 0;
}
.cat-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.cat-card:hover, .cat-card:focus {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.cat-icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-light); color: var(--accent-dark);
}
.cat-icon svg { width: 24px; height: 24px; }
.cat-card:nth-child(3n+2) .cat-icon { background: #e0ecff; color: #1d4ed8; }
.cat-card:nth-child(3n) .cat-icon { background: #fef3c7; color: #b45309; }
.cat-name { font-weight: 700; color: var(--navy-dark); line-height: 1.3; }
.cat-count { font-size: 0.85rem; color: var(--muted); }

/* ---------- Job listings ---------- */
.job-list { list-style: none; margin: 0; padding: 0; }
.job-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; margin-bottom: 14px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.job-card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.job-logo {
  flex-shrink: 0; width: 56px; height: 56px;
  border: 1px solid var(--line); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: #f1f5f9; color: var(--navy);
  font-weight: 800; font-size: 1.2rem; overflow: hidden;
}
.job-logo img { width: 100%; height: 100%; object-fit: cover; }
.job-main { flex: 1; min-width: 0; }
.job-main h3 { margin: 0 0 2px; font-size: 1.15rem; }
.job-main h3 a { color: var(--navy-dark); text-decoration: none; }
.job-main h3 a:hover { color: var(--accent-dark); }
.job-company { color: var(--muted); font-size: 0.92rem; margin-bottom: 6px; }
.job-meta {
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  font-size: 0.86rem; color: var(--muted);
}
.job-meta span { display: inline-flex; align-items: center; gap: 5px; }
.job-type {
  display: inline-block; padding: 0.2em 0.7em;
  border-radius: 999px; font-size: 0.78rem; font-weight: 700;
  background: var(--accent-light); color: var(--accent-dark);
  text-transform: capitalize; white-space: nowrap;
}
.job-type.full-time { background: var(--accent-light); color: var(--accent-dark); }
.job-type.part-time { background: #e0ecff; color: #1d4ed8; }
.job-type.contract { background: #fef3c7; color: #92400e; }
.job-type.freelance { background: #ede9fe; color: #6d28d9; }
.job-type.internship { background: #fce7f3; color: #be185d; }
.job-type.temporary { background: #fee2e2; color: #b91c1c; }
.job-featured-badge {
  display: inline-block; margin-left: 8px; padding: 0.15em 0.6em;
  border-radius: 999px; background: var(--gold); color: #fff;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  vertical-align: middle;
}
.job-side { flex-shrink: 0; text-align: right; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.job-date { font-size: 0.82rem; color: var(--muted); white-space: nowrap; }

/* WP Job Manager plugin output */
.job_listings { margin: 0; }
.job_listings .job_filters {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.job_listings .job_filters .search_jobs { display: grid; gap: 10px; }
.job_listings .job_filters label { display: none; }
.job_listings .job_filters .showing_jobs { margin-top: 12px; color: var(--muted); font-size: 0.9rem; }
.job_listings .job_filters .showing_jobs a { font-weight: 600; }
.job_listings ul.job_listings { list-style: none; margin: 0; padding: 0; }
.job_listings li.job_listing,
.job_listings li.no_job_listings_found {
  list-style: none; margin: 0 0 14px; padding: 20px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.job_listings li.job_listing a { display: flex; gap: 16px; align-items: flex-start; text-decoration: none; color: inherit; }
.job_listings li.job_listing a:hover { text-decoration: none; }
.job_listings li.job_listing a:hover .position h3 { color: var(--accent-dark); }
.job_listings li.job_listing .job_listing-logo,
.job_listings li.job_listing .company_logo {
  flex-shrink: 0; width: 56px; height: 56px;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; background: #f1f5f9;
}
.job_listings li.job_listing .job_listing-logo img,
.job_listings li.job_listing .company_logo img { width: 100%; height: 100%; object-fit: cover; }
.job_listings li.job_listing .position { flex: 1; min-width: 0; }
.job_listings li.job_listing .position h3 { margin: 0 0 2px; font-size: 1.12rem; color: var(--navy-dark); }
.job_listings li.job_listing .company { display: block; color: var(--muted); font-size: 0.92rem; margin-bottom: 6px; }
.job_listings li.job_listing .location { display: block; color: var(--muted); font-size: 0.86rem; }
.job_listings li.job_listing .meta { flex-shrink: 0; text-align: right; list-style: none; margin: 0; padding: 0; }
.job_listings li.job_listing .meta li { margin: 0 0 6px; }
.job_listings li.job_listing .job-type,
.job_listings li.job_listing .job_listing-type { font-size: 0.78rem; }
.job_listings li.job_listing .date { font-size: 0.82rem; color: var(--muted); white-space: nowrap; }
.job_listings li.job_listing.job_position_featured { border-color: var(--gold); box-shadow: 0 2px 12px rgba(245, 158, 11, 0.18); }
.job_listings .load_more_jobs { text-align: center; margin-top: 8px; }

/* Job search / filter form (plugin) */
.job-manager-form fieldset,
.job_filters .job-manager-filter {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin: 0 0 20px; background: var(--card);
}
.job-manager-form fieldset legend { font-weight: 700; color: var(--navy-dark); padding: 0 8px; }
.job-manager-form .field { margin-bottom: 16px; }
.job-manager-form .field > label { display: block; margin-bottom: 6px; }
.job-manager-form .field .description { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.job-manager-form .account-sign-in { margin-bottom: 16px; }
.job-manager-form .job-manager-uploaded-files { margin: 8px 0 0; padding: 0; list-style: none; }

/* ---------- Single job ---------- */
.job-single-head {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px; margin-bottom: 24px;
}
.job-single-head .job-title-row { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.job-single-head .job-logo { width: 72px; height: 72px; font-size: 1.5rem; }
.job-single-head h1 { margin: 0 0 4px; font-size: 1.8rem; }
.job-single-head .job-company { font-size: 1rem; }
.job-single-layout { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.job-single-main {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px;
}
.job-single-main h2 { font-size: 1.3rem; margin-top: 1.4em; }
.job-single-main h2:first-child { margin-top: 0; }
.job-single-side { display: flex; flex-direction: column; gap: 16px; }
.job-apply-box, .job-company-box {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px;
}
.job-apply-box h3, .job-company-box h3 { margin-bottom: 12px; }
.job-apply-box .button { width: 100%; }
.job-apply-box .application_details { font-size: 0.9rem; color: var(--muted); }
.job-apply-box input[type="email"] { margin-bottom: 10px; }
.job-meta-list { list-style: none; margin: 0; padding: 0; font-size: 0.93rem; }
.job-meta-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); margin: 0; }
.job-meta-list li:last-child { border-bottom: none; }
.job-meta-list .label { color: var(--muted); }
.job-meta-list .value { font-weight: 600; color: var(--navy-dark); text-align: right; }
.job-expired-notice {
  padding: 14px 18px; margin-bottom: 20px;
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
  border-radius: var(--radius-sm); font-weight: 600;
}

/* ---------- How it works / CTA ---------- */
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.step-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px 22px; text-align: center;
}
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 1.2rem;
  margin-bottom: 14px;
}
.step-card:nth-child(2) .step-number { background: var(--accent); }
.step-card:nth-child(3) .step-number { background: var(--gold); }
.step-card h3 { margin-bottom: 6px; }
.step-card p { color: var(--muted); margin: 0; }

.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--accent) 130%);
  border-radius: var(--radius); color: #fff;
  padding: 44px 28px; text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #d7e5e2; max-width: 560px; margin: 0 auto 22px; }
.cta-band .button { background: #fff; color: var(--navy-dark); }
.cta-band .button:hover { background: #eef2f6; color: var(--navy-dark); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); }
.cta-band .button-outline { background: transparent; border-color: #fff; color: #fff; }
.cta-band .button-outline:hover { background: rgba(255, 255, 255, 0.14); }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Content (posts / pages) ---------- */
.site-main { padding: 40px 0 56px; }
.content-area { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.content-area > article { margin-bottom: 0; }
.entry-header { margin-bottom: 20px; }
.entry-title { margin-bottom: 6px; }
.entry-title a { color: var(--navy-dark); text-decoration: none; }
.entry-title a:hover { color: var(--accent-dark); }
.entry-meta { color: var(--muted); font-size: 0.88rem; margin-bottom: 16px; }
.entry-meta a { color: var(--muted); }
.post-thumbnail { margin-bottom: 20px; border-radius: var(--radius); overflow: hidden; }
.post-thumbnail img { display: block; width: 100%; }
.post-card { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.post-card:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.read-more { font-weight: 700; }
.page-title { margin-bottom: 8px; }
.archive-description { color: var(--muted); margin-bottom: 24px; }

/* Pagination */
.pagination { margin-top: 32px; text-align: center; }
.pagination .nav-links { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers {
  display: inline-block; min-width: 40px; padding: 0.5em 0.8em;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--navy-dark); font-weight: 600; text-decoration: none;
}
.pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent-dark); text-decoration: none; }
.pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Comments */
.comments-area { margin-top: 36px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .comment { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-author { font-weight: 700; color: var(--navy-dark); }
.comment-meta { font-size: 0.85rem; color: var(--muted); }
.comment-respond { margin-top: 24px; }
.comment-form label { display: block; }

/* Search / 404 */
.search-results-info, .error-404 { text-align: center; }
.error-404 .big-404 { font-size: 5rem; font-weight: 800; color: var(--navy); line-height: 1; margin: 0 0 10px; }
.no-results { text-align: center; padding: 40px 0; }

/* ---------- Sidebar ---------- */
.layout-sidebar { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
.widget {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px; margin-bottom: 24px;
}
.widget-title { font-size: 1.05rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 6px 0; border-bottom: 1px solid #f0f3f6; margin: 0; }
.widget li:last-child { border-bottom: none; }
.widget a { color: var(--navy-dark); }
.widget a:hover { color: var(--accent-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #c9d6e6; margin-top: 0; }
.footer-widgets { display: grid; grid-template-columns: 1fr; gap: 28px; padding: 48px 0 24px; }
.footer-widgets .widget {
  background: transparent; border: none; box-shadow: none; padding: 0; margin: 0;
}
.footer-widgets .widget-title { color: #fff; border-bottom-color: var(--accent); }
.footer-widgets a { color: #c9d6e6; }
.footer-widgets a:hover { color: #fff; }
.footer-widgets li { border-bottom-color: rgba(255, 255, 255, 0.1); }
.footer-brand .site-title { color: #fff; }
.footer-brand p { font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0; font-size: 0.88rem;
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  align-items: center; justify-content: space-between;
}
.footer-bottom a { color: #c9d6e6; }
.footer-menu ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-menu li { margin: 0; }

/* ---------- Breadcrumbs ---------- */
.jobhub-breadcrumbs { font-size: 0.88rem; color: var(--muted); margin-bottom: 18px; }
.jobhub-breadcrumbs a { color: var(--muted); }
.jobhub-breadcrumbs a:hover { color: var(--accent-dark); }

/* ---------- Jobs board filter (archive-job_listing.php) ---------- */
.jobhub-jobs-filter {
  display: grid; grid-template-columns: 1fr; gap: 10px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; margin-bottom: 20px;
}
.jobhub-jobs-filter .field { display: flex; flex-direction: column; }
.jobhub-jobs-filter label { font-size: 0.8rem; color: var(--muted); margin-bottom: 2px; }
.jobhub-jobs-filter .submit { display: flex; align-items: flex-end; }
.jobhub-jobs-filter .submit .button { width: 100%; }
.jobhub-results-count { font-size: 0.92rem; }

/* ---------- Author box + related posts + newsletter (single.php) ---------- */
.jobhub-author-box {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--accent-light);
  border: 1px solid #c9ece8; border-radius: var(--radius);
  padding: 22px; margin-top: 28px;
}
.jobhub-author-avatar img { border-radius: 50%; display: block; }
.jobhub-author-text h3 { margin-bottom: 4px; font-size: 1.1rem; }
.jobhub-author-text h3 a { color: var(--navy-dark); text-decoration: none; }
.jobhub-author-text h3 a:hover { color: var(--accent-dark); }
.jobhub-author-text p { margin: 0; font-size: 0.93rem; color: var(--ink); }
.jobhub-related { margin-top: 28px; }

.jobhub-newsletter {
  background: linear-gradient(135deg, var(--navy) 0%, var(--accent) 130%);
  border-radius: var(--radius); color: #fff;
  padding: 28px; margin-top: 28px; box-shadow: var(--shadow-lg);
}
.jobhub-newsletter h3 { color: #fff; margin-bottom: 6px; }
.jobhub-newsletter p { color: #d7e5e2; margin-bottom: 16px; }
.jobhub-newsletter form { display: flex; flex-wrap: wrap; gap: 10px; }
.jobhub-newsletter input[type="email"] { flex: 1; min-width: 220px; }

/* ---------- Footer columns ---------- */
.footer-col h3.widget-title { color: #fff; border-bottom-color: var(--accent); font-size: 1.05rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); margin: 0; }
.footer-col li:last-child { border-bottom: none; }
.footer-col a { color: #c9d6e6; }
.footer-col a:hover { color: #fff; }
.footer-widgets--extra { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 28px; }

/* ---------- Homepage post grids (front page) ---------- */
/* Cards show the post's featured image (jobhub-card 640x360) on top,
   falling back gracefully to text-only when a post has none. */
.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.post-grid-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.post-grid-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}
.post-grid-thumb {
  display: block;
  position: relative;
  margin: -22px -22px 16px;
}
.post-grid-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
/* 1.1.37: employer logo badge on job cards (real logos only). */
.post-grid-logo {
  position: absolute; top: 10px; left: 10px;
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 4px;
  background: #fff; border-radius: 10px;
  box-shadow: 0 2px 8px rgba(21, 42, 69, 0.18);
}
.post-grid-thumb .post-grid-logo img {
  width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain;
}
/* 1.1.37: Top employers hiring now (homepage). */
.top-employers-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  list-style: none; margin: 0; padding: 0;
}
.top-employer-card {
  display: flex; align-items: center; gap: 14px;
  height: 100%; box-sizing: border-box;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.top-employer-card:hover {
  transform: translateY(-2px); border-color: var(--accent);
  box-shadow: var(--shadow-lg); text-decoration: none;
}
.top-employer-logo {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; padding: 5px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
}
.top-employer-logo img { width: 100%; height: 100%; object-fit: contain; }
.top-employer-initials {
  background: var(--navy); color: #fff; border: 0;
  font-weight: 800; font-size: 1.15rem;
}
.top-employer-name { font-weight: 700; color: var(--navy-dark); }
.top-employer-latest {
  font-size: 0.85rem; color: var(--muted); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-grid-cat {
  display: inline-block;
  align-self: flex-start;
  padding: 0.2em 0.7em;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.post-grid-cat--advice {
  background: #e0ecff;
  color: #1d4ed8;
}
.post-grid-title {
  font-size: 1.08rem;
  margin-bottom: 4px;
}
.post-grid-title a {
  color: var(--navy-dark);
  text-decoration: none;
}
.post-grid-title a:hover {
  color: var(--accent-dark);
}
.post-grid-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.post-grid-excerpt {
  flex: 1;
  font-size: 0.93rem;
}
.post-grid-excerpt p {
  margin-bottom: 0;
}
.post-grid-more {
  margin-top: 12px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---------- Compact uniform grid cards (1.1.4) ----------
   Category pages use the narrower sidebar layout, so the same
   28-word excerpt wraps into more lines and the cards grow tall.
   Clamp the title (2 lines) and excerpt (3 lines) and reserve
   fixed space for the meta (up to 2 lines) so every card has the
   same height on every list page. Visual only — the full text
   stays in the HTML. No excerpt words are removed. */
.post-grid-title {
  line-height: 1.4;
  min-height: calc(1.08rem * 1.4 * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-grid-meta {
  line-height: 1.4;
  min-height: calc(0.85rem * 1.4 * 2);
}
.post-grid-excerpt {
  line-height: 1.55;
  min-height: calc(0.93rem * 1.55 * 3);
}
.post-grid-excerpt p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 640px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Three-field hero search: keywords + category + location + button. */
  .job-search-form.job-search-form--posts {
    grid-template-columns: 1.4fr 1fr 1fr auto;
    align-items: end;
  }
}

@media (min-width: 900px) {
  .post-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .job-search-form { grid-template-columns: 1.4fr 1fr 0.9fr auto; align-items: end; }
  .jobhub-jobs-filter { grid-template-columns: 1.4fr 1fr 1fr auto; align-items: end; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-widgets { grid-template-columns: repeat(2, 1fr); }
  .job_listings .job_filters .search_jobs { grid-template-columns: 1.4fr 1fr 0.9fr auto; align-items: end; }
}

@media (min-width: 900px) {
  h1 { font-size: 2.5rem; }
  .hero h1 { font-size: 3rem; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .job-single-layout { grid-template-columns: 1fr 320px; }
  .layout-sidebar { grid-template-columns: 1fr 320px; }
  .footer-widgets { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; }
}

@media (max-width: 899px) {
  .menu-toggle { display: inline-block; }
  .main-navigation {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); padding: 10px 20px 16px;
  }
  .main-navigation.toggled { display: block; }
  .main-navigation ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-navigation a { padding: 0.7em 0.6em; }
  /* 1.1.35: on mobile the dropdown children show as an indented list. */
  .main-navigation .sub-menu { display: flex; position: static; box-shadow: none; border: 0; padding: 0 0 0 18px; min-width: 0; }
  /* 1.1.37: top employers grid goes 2-up on mobile. */
  .top-employers-grid { grid-template-columns: repeat(2, 1fr); }
  .site-header-inner { position: relative; flex-wrap: wrap; gap: 14px; }
  .header-actions { margin-left: auto; }
  .header-actions .button { display: none; }
  /* 1.1.42: mobile header row shows the CV button (red area in the user's
     screenshot) — Post a Job moves to the hamburger menu, since both
     buttons can't fit in one row (logo 132 + hamburger 44 + button ~106
     already fills a 360px phone). Compact padding keeps it on one row
     down to 360px; narrower screens wrap it to a second row inside the
     sticky header. (Replaces the 1.1.41 post-job-mobile rule.) */
  .header-actions .button.header-button-mobile { display: inline-block; padding: 0.5em 1em; }
  .menu-item-mobile-only { display: block; }
  .job-card { flex-wrap: wrap; }
  .job-side { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
  .job_listings li.job_listing a { flex-wrap: wrap; }
  .job_listings li.job_listing .meta { width: 100%; text-align: left; display: flex; gap: 14px; flex-wrap: wrap; }
  .content-area { padding: 22px 18px; }
  .section { padding: 40px 0; }
  .hero { padding: 52px 0 64px; }
  .hero h1 { font-size: 2rem; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .job-apply-box, .menu-toggle { display: none; }
  body { background: #fff; }
  .content-area, .job-single-main { box-shadow: none; border: none; }
}

/* 1.1.16: job-post reading aids (at-a-glance, apply button, editorial note). */
.jobhub-glance { background: #f2f6fa; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 22px; }
.jobhub-glance h2 { margin: 0 0 10px; font-size: 1.05rem; }
.jobhub-glance dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.jobhub-glance-row { display: flex; gap: 8px; font-size: 0.95rem; }
.jobhub-glance-row dt { font-weight: 700; color: var(--navy-dark); white-space: nowrap; }
.jobhub-glance-row dd { margin: 0; }
.jobhub-apply { margin: 22px 0; text-align: center; }
.jobhub-apply-btn { font-size: 1.05rem; padding: 0.7em 1.6em; }
.jobhub-apply-note { font-size: 0.88rem; color: var(--muted); margin: 8px 0 0; }
.jobhub-editorial { margin-top: 28px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fbfaf7; font-size: 0.93rem; }
.jobhub-editorial h2 { margin: 0 0 6px; font-size: 1rem; }
.jobhub-editorial p { margin: 0; }
@media (max-width: 640px) { .jobhub-glance dl { grid-template-columns: 1fr; } }

/* 1.1.20: mobile article text 17px for readability (desktop stays 16px). */
@media (max-width: 640px) {
  .entry-content { font-size: 1.0625rem; line-height: 1.75; }
}

/* 1.1.29: Related Posts as image cards (YARPP custom template yarpp-template-cards.php). */
.jobhub-related { margin: 2.5rem 0 0; }
.jobhub-related-title { margin: 0 0 14px; }
.jobhub-related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.jobhub-related-card { display: block; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 4px rgba(30,58,95,.10); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.jobhub-related-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(30,58,95,.16); }
.jobhub-related-thumb { width: 100%; height: 130px; object-fit: cover; display: block; }
.jobhub-related-body { display: block; padding: 10px 12px 12px; }
.jobhub-related-card-title { display: block; font-family: var(--font-head); font-weight: 700; font-size: .95rem; line-height: 1.35; color: var(--navy); }
.jobhub-related-meta { display: block; font-size: .8rem; color: #64748b; margin-top: 5px; }
.jobhub-related-date { display: block; font-size: .8rem; color: var(--accent); margin-top: 2px; }
@media (max-width: 640px) { .jobhub-related-grid { grid-template-columns: 1fr; } }

/* ---------- Browse by location: city buttons (28 Nov 2026) ---------- */
.loc-cities { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; align-items: center; }
.loc-prov { font-weight: 700; color: var(--navy-dark); margin-right: 2px; }
.loc-btn { display: inline-block; padding: 6px 14px; border: 1px solid var(--accent); border-radius: 999px; background: #fff; color: var(--accent); font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: background 0.15s ease, color 0.15s ease; }
.loc-btn:hover, .loc-btn:focus { background: var(--accent); color: #fff; text-decoration: none; }

/* ---------- Popular Posts compact cards (28 Nov 2026, approved by user) ---------- */
.jobhub-popular-list { display: block; }
.jobhub-popular-card { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.jobhub-popular-card:hover, .jobhub-popular-card:focus { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-lg); text-decoration: none; }
.jobhub-popular-thumb { flex: 0 0 60px; display: block; }
.jobhub-popular-thumb img { display: block; width: 60px; height: 60px; border-radius: 8px; object-fit: cover; }
.jobhub-popular-text { flex: 1; min-width: 0; display: block; }
.jobhub-popular-title { display: block; font-weight: 700; color: var(--navy-dark); font-size: 0.85rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jobhub-popular-meta { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 3px; }
.jobhub-popular-date { display: block; font-size: 0.72rem; color: var(--accent); margin-top: 1px; }

/* ---------- Footer logo (28 Nov 2026): white-text variant on dark footer ---------- */
.footer-brand .site-logo img { max-width: 240px; height: auto; }

/* ---------- Social share buttons below posts (28 Nov 2026) ---------- */
.jobhub-share { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
.jobhub-share a { width: 40px; height: 40px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: transform 0.15s ease, opacity 0.15s ease; }
.jobhub-share a:hover, .jobhub-share a:focus { transform: translateY(-2px); opacity: 0.9; text-decoration: none; }
.jobhub-share a svg { width: 20px; height: 20px; display: block; }
.jobhub-share-facebook { background: #1877F2; }
.jobhub-share-x { background: #000; }
.jobhub-share-whatsapp { background: #25D366; }
.jobhub-share-linkedin { background: #0A66C2; }
.jobhub-share-pinterest { background: #E60023; }
.jobhub-share-mastodon { background: #6364FF; }
.jobhub-share-email { background: #6b7280; }
