/* =====================================================
   CAREERSDAILZA THEME — MAIN STYLESHEET v1.1
   Fixed: mobile layout, compact job cards, job detail
   ===================================================== */

:root {
  --primary:        #0f3460;
  --primary-hover:  #1a4a7a;
  --accent:         #00b894;
  --accent-hover:   #00a07e;
  --accent-light:   #e8faf6;
  --danger:         #e74c3c;
  --warning:        #f59e0b;
  --info:           #3b82f6;
  --bg:             #f4f6f9;
  --bg-white:       #ffffff;
  --text:           #111827;
  --text-muted:     #6b7280;
  --text-light:     #9ca3af;
  --border:         #e5e7eb;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.06);
  --shadow:         0 4px 14px rgba(0,0,0,.09);
  --shadow-lg:      0 8px 28px rgba(0,0,0,.12);
  --radius-sm:      4px;
  --radius:         8px;
  --radius-lg:      12px;
  --radius-pill:    100px;
  --font-heading:   'Sora', sans-serif;
  --font-body:      'DM Sans', sans-serif;
  --nav-height:     60px;
  --max-width:      1140px;
  --gap:            16px;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a  { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); }

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.25; color: var(--text); }
h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h2 { font-size: clamp(1.2rem, 3vw, 1.75rem); }
h3 { font-size: 1.1rem; }
h4 { font-size: 1rem; }
p  { margin-bottom: .9rem; }
p:last-child { margin-bottom: 0; }

/* =====================================================
   CONTAINER — full-width on mobile, constrained on desktop
   ===================================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: .9rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-primary  { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-accent   { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); color: #fff; }
.btn-outline  { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 13px 28px; font-size: .975rem; }
.btn-sm { padding: 6px 14px; font-size: .8rem; }

/* =====================================================
   HEADER / NAV
   ===================================================== */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
}
.nav-inner { display: flex; align-items: center; gap: 24px; width: 100%; }
.site-logo { flex-shrink: 0; display: flex; align-items: center; gap: 8px; text-decoration: none; }
.site-logo-text { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 800; color: var(--primary); }
.site-logo-text span { color: var(--accent); }
.primary-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.primary-nav a { font-size: .875rem; font-weight: 600; color: var(--text); padding: 7px 12px; border-radius: var(--radius); transition: background .15s, color .15s; }
.primary-nav a:hover, .primary-nav a.current-menu-item { background: var(--bg); color: var(--primary); }
.nav-search { flex: 1; max-width: 320px; position: relative; margin-left: auto; }
.nav-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.nav-search input { width: 100%; padding: 8px 14px 8px 36px; border: 1.5px solid var(--border); border-radius: var(--radius-pill); font-size: .85rem; font-family: var(--font-body); background: var(--bg); color: var(--text); transition: border-color .2s; }
.nav-search input:focus { outline: none; border-color: var(--primary); background: #fff; }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; padding: 4px; margin-left: auto; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }
.mobile-nav { display: none; position: fixed; inset: var(--nav-height) 0 0 0; background: var(--bg-white); z-index: 999; overflow-y: auto; padding: 12px 16px 40px; border-top: 1px solid var(--border); flex-direction: column; gap: 2px; }
.mobile-nav.is-open { display: flex; }
.mobile-nav a { padding: 11px 14px; border-radius: var(--radius); font-size: .975rem; font-weight: 600; color: var(--text); display: block; }
.mobile-nav a:hover { background: var(--bg); color: var(--primary); }

/* =====================================================
   HERO (FRONT PAGE)
   ===================================================== */
.hero { background: linear-gradient(135deg, var(--primary) 0%, #1a4a7a 60%, #0f3460 100%); color: #fff; padding: 56px 0 64px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-inner { position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-pill); padding: 5px 14px; font-size: .78rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: rgba(255,255,255,.9); margin-bottom: 16px; }
.hero h1 { color: #fff; font-size: clamp(1.8rem, 5vw, 2.9rem); margin-bottom: 12px; line-height: 1.15; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: rgba(255,255,255,.8); font-size: 1rem; max-width: 480px; margin: 0 auto 28px; }
.hero-search { max-width: 660px; margin: 0 auto; background: var(--bg-white); border-radius: var(--radius-lg); display: flex; align-items: center; box-shadow: var(--shadow-lg); overflow: hidden; padding: 5px; gap: 0; }
.hero-search-field { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-right: 1px solid var(--border); }
.hero-search-field:last-of-type { border-right: none; }
.hero-search-field svg { color: var(--text-muted); flex-shrink: 0; }
.hero-search-field input { flex: 1; border: none; background: none; font-size: .925rem; font-family: var(--font-body); color: var(--text); padding: 9px 0; outline: none; }
.hero-search-field input::placeholder { color: var(--text-muted); }
.hero-search-btn { flex-shrink: 0; background: var(--accent); color: #fff; border: none; border-radius: var(--radius); padding: 11px 22px; font-size: .925rem; font-weight: 700; font-family: var(--font-body); display: flex; align-items: center; gap: 6px; transition: background .2s; }
.hero-search-btn:hover { background: var(--accent-hover); }
.hero-stats { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.hero-stat { color: rgba(255,255,255,.8); font-size: .85rem; }
.hero-stat strong { color: #fff; display: block; font-size: 1.2rem; font-family: var(--font-heading); }

/* =====================================================
   SECTION LAYOUTS
   ===================================================== */
.section { padding: 40px 0; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }
.section-title { font-size: 1.3rem; }
.section-title span { color: var(--accent); }
.section-link { font-size: .875rem; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.section-link:hover { color: var(--accent); }

/* =====================================================
   PILLS
   ===================================================== */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: var(--radius-pill); font-size: .73rem; font-weight: 600; border: 1.5px solid transparent; white-space: nowrap; }
.pill-type     { background: #e8f0fe; color: #1a56db; border-color: #c7d8fd; }
.pill-location { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.pill-salary   { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.pill-category { background: #f3e8ff; color: #6b21a8; border-color: #e9d5ff; }
.pill-deadline { background: #fff1f2; color: #9f1239; border-color: #fecdd3; }
.pill-featured { background: var(--accent); color: #fff; }

/* =====================================================
   JOB CARDS — Compact horizontal list style
   ===================================================== */
.jobs-grid { display: flex; flex-direction: column; gap: 0; border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-white); }

.job-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  transition: background .15s;
  position: relative;
  text-decoration: none;
}
.job-card:last-child { border-bottom: none; }
.job-card:hover { background: #fafbff; }

/* Company logo — small square left */
.job-card-logo {
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 800;
  color: var(--primary);
}
.job-card-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }

/* Content right of logo */
.job-card-body { flex: 1; min-width: 0; }

.job-card-title {
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .15s;
}
.job-card:hover .job-card-title { color: var(--primary); }

.job-card-company {
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-card-meta { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }

/* Expired badge */
.job-expired-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--danger);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}
.job-card--expired { opacity: .65; }

/* =====================================================
   SINGLE JOB PAGE — Indeed-inspired layout
   ===================================================== */

/* Desktop wrapper: 2-column */
.single-job-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px 60px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: flex-start;
}

/* Main column */
.job-main { min-width: 0; }

/* ---- Job Header ---- */
.job-header-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px 18px;
  margin-bottom: 12px;
}
.job-header-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.job-logo {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--bg);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--primary);
}
.job-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.job-header-info { flex: 1; }
.job-header-info h1 { font-size: clamp(1.25rem, 3vw, 1.75rem); margin-bottom: 5px; color: var(--text); }
.job-company-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--primary);
}
.job-company-link:hover { color: var(--accent); }

/* Pills row below title (header) */
.job-header-pills { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---- Job Details Section (Indeed-style) ---- */
.job-details-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 12px;
}
.job-section-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* Indeed-style detail rows */
.job-details-list { display: flex; flex-direction: column; gap: 0; }
.job-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.job-detail-row:last-child { border-bottom: none; padding-bottom: 0; }
.jd-icon {
  width: 36px;
  height: 36px;
  background: var(--bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}
.jd-label { font-size: .73rem; color: var(--text-muted); margin-bottom: 2px; font-weight: 500; }
.jd-value { font-size: .925rem; font-weight: 700; color: var(--text); }
.jd-sub   { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }

/* ---- Job Description ---- */
.job-description-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  margin-bottom: 12px;
}
.entry-content { font-size: .95rem; line-height: 1.75; color: var(--text); }
.entry-content h2 { font-size: 1.15rem; margin: 22px 0 10px; }
.entry-content h3 { font-size: 1rem; margin: 18px 0 8px; }
.entry-content ul { list-style: disc; padding-left: 20px; margin-bottom: 14px; }
.entry-content ol { list-style: decimal; padding-left: 20px; margin-bottom: 14px; }
.entry-content li { margin-bottom: 5px; }
.entry-content strong { font-weight: 700; }
.entry-content a { color: var(--primary); }
.entry-content a:hover { text-decoration: underline; }

/* ---- Expired Notice ---- */
.job-expired-notice {
  background: #fff5f5;
  border: 1.5px solid #fecaca;
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: #7f1d1d;
  font-size: .9rem;
}
.job-expired-notice svg { color: var(--danger); flex-shrink: 0; }

/* ---- Company Profile ---- */
.company-profile-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 12px;
}
.company-profile-header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.company-profile-logo {
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--bg);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary);
}
.company-profile-logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.company-profile-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 2px; }
.company-profile-jobs { font-size: .8rem; color: var(--text-muted); }
.company-more-jobs { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.company-job-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: var(--bg);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: .875rem;
  color: var(--text);
  transition: background .15s;
}
.company-job-row:hover { background: #e8f0fe; color: var(--primary); }
.company-job-row-title { font-weight: 600; }
.company-job-row-meta { font-size: .75rem; color: var(--text-muted); margin-top: 1px; }
.view-all-company-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius);
  margin-top: 12px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.view-all-company-btn:hover { background: var(--primary); color: #fff; }

/* ---- Desktop Sidebar ---- */
.job-sidebar { display: flex; flex-direction: column; gap: 12px; }
.sidebar-apply-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  position: sticky;
  top: calc(var(--nav-height) + 12px);
}
.sidebar-apply-card .btn { width: 100%; justify-content: center; font-size: .975rem; padding: 13px; }
.sidebar-deadline-note { text-align: center; font-size: .775rem; color: var(--text-muted); margin-top: 9px; }
.sidebar-share { background: var(--bg-white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 16px; }
.sidebar-share-title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 10px; }
.share-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.share-btn { flex: 1; min-width: calc(50% - 3px); text-align: center; padding: 7px 10px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: .78rem; font-weight: 600; color: var(--text); transition: all .15s; cursor: pointer; background: none; font-family: var(--font-body); }
.share-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ---- Mobile Fixed Apply Bar ---- */
.job-apply-mobile {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 16px 14px;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  z-index: 500;
  box-shadow: 0 -4px 16px rgba(0,0,0,.08);
}
.job-apply-mobile .btn {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 15px;
  border-radius: var(--radius);
}
.mobile-apply-spacer { display: none; height: 72px; }

/* ---- Related Jobs ---- */
.related-jobs-section { padding: 0 16px 40px; max-width: var(--max-width); margin: 0 auto; }

/* =====================================================
   COMPANY SINGLE
   ===================================================== */
.company-single-wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 16px 60px; }
.company-header-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 14px;
}
.company-header-logo {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  background: var(--bg);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--primary);
}
.company-header-logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.company-header-info h1 { font-size: clamp(1.3rem, 3vw, 1.75rem); margin-bottom: 6px; }
.company-jobs-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent-light);
  color: var(--accent);
  border: 1.5px solid #a7f3d0;
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: .8rem;
  font-weight: 700;
  margin-top: 8px;
}
.company-content-card, .company-jobs-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  margin-bottom: 14px;
}
.company-jobs-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.company-jobs-header h2 { font-size: 1.1rem; margin: 0; }
.job-count-badge { background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: var(--radius-pill); }

/* =====================================================
   ARCHIVE PAGES
   ===================================================== */
.archive-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px 60px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  align-items: flex-start;
}
.archive-filters {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  position: sticky;
  top: calc(var(--nav-height) + 12px);
}
.filter-section { margin-bottom: 18px; }
.filter-section:last-child { margin-bottom: 0; }
.filter-title { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 8px; }
.filter-list { display: flex; flex-direction: column; gap: 1px; }
.filter-option { display: flex; align-items: center; gap: 6px; padding: 7px 8px; border-radius: var(--radius); cursor: pointer; font-size: .85rem; font-weight: 500; color: var(--text); transition: background .12s; text-decoration: none; justify-content: space-between; }
.filter-option:hover { background: var(--bg); }
.filter-option.active { background: #e8f0fe; color: var(--primary); font-weight: 700; }
.filter-count { background: var(--border); color: var(--text-muted); font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: var(--radius-pill); }
.filter-option.active .filter-count { background: #c7d8fd; color: var(--primary); }
.filter-toggle-btn { display: none; align-items: center; gap: 8px; background: var(--bg-white); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 9px 14px; font-size: .85rem; font-weight: 600; font-family: var(--font-body); color: var(--text); cursor: pointer; margin-bottom: 10px; }
.archive-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.archive-title { font-size: 1rem; color: var(--text-muted); }
.archive-title strong { color: var(--text); }

/* =====================================================
   COMPANY CARDS
   ===================================================== */
.companies-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.company-card { background: var(--bg-white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 18px 14px; text-align: center; transition: border-color .2s, box-shadow .2s, transform .15s; display: block; text-decoration: none; }
.company-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.company-card-logo { width: 60px; height: 60px; margin: 0 auto 12px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg); overflow: hidden; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 800; font-size: 1.3rem; color: var(--primary); }
.company-card-logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.company-card-name { font-family: var(--font-heading); font-size: .9rem; font-weight: 700; color: var(--text); margin-bottom: 4px; display: block; }
.company-card-jobs { font-size: .78rem; color: var(--text-muted); }
.company-card-jobs strong { color: var(--accent); }

/* =====================================================
   BLOG / POST CARDS
   ===================================================== */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.post-card { background: var(--bg-white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .2s, transform .15s; display: flex; flex-direction: column; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--bg); }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover .post-card-thumb img { transform: scale(1.04); }
.post-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.post-card-category { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); margin-bottom: 6px; }
.post-card-title { font-family: var(--font-heading); font-size: .975rem; font-weight: 700; color: var(--text); margin-bottom: 8px; display: block; line-height: 1.35; }
.post-card-title:hover { color: var(--primary); }
.post-card-excerpt { font-size: .85rem; color: var(--text-muted); flex: 1; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-meta { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 12px; margin-top: auto; }
.post-meta-dot { color: var(--border); }

/* =====================================================
   SINGLE POST
   ===================================================== */
.single-post-wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 16px 60px; display: grid; grid-template-columns: 1fr 280px; gap: 20px; align-items: flex-start; }
.single-post-main { background: var(--bg-white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.single-post-thumb { aspect-ratio: 16/9; overflow: hidden; }
.single-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.single-post-body { padding: 24px 22px; }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--text-muted); margin-bottom: 12px; flex-wrap: wrap; }
.post-meta-category { background: var(--bg); color: var(--primary); font-weight: 700; font-size: .73rem; text-transform: uppercase; letter-spacing: .05em; padding: 3px 10px; border-radius: var(--radius-pill); }
.post-tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.post-tag { display: inline-block; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 4px 12px; font-size: .78rem; font-weight: 600; color: var(--text-muted); transition: background .15s, color .15s; }
.post-tag:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.post-sidebar { display: flex; flex-direction: column; gap: 12px; }
.sidebar-widget { background: var(--bg-white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 16px; }
.sidebar-widget-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.recent-post-item { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--border); }
.recent-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.recent-post-thumb { width: 50px; height: 50px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; background: var(--bg); }
.recent-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-post-title { font-size: .82rem; font-weight: 600; color: var(--text); line-height: 1.35; display: block; }
.recent-post-title:hover { color: var(--primary); }
.recent-post-date { font-size: .74rem; color: var(--text-muted); margin-top: 3px; }

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 28px; flex-wrap: wrap; }
.pagination a, .pagination span { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius); font-size: .875rem; font-weight: 600; border: 1.5px solid var(--border); color: var(--text); background: var(--bg-white); transition: all .15s; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .dots { border-color: transparent; background: none; }

/* =====================================================
   BREADCRUMB
   ===================================================== */
.breadcrumb { padding: 10px 0; border-bottom: 1px solid var(--border); background: var(--bg-white); }
.breadcrumb-inner { display: flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--text-muted); flex-wrap: wrap; }
.breadcrumb-inner a { color: var(--text-muted); }
.breadcrumb-inner a:hover { color: var(--primary); }
.breadcrumb-inner .sep { color: var(--border); }
.breadcrumb-inner .current { color: var(--text); font-weight: 600; }

/* =====================================================
   TAXONOMY BANNER
   ===================================================== */
.taxonomy-banner { background: var(--primary); color: #fff; padding: 32px 0; }
.taxonomy-banner h1 { color: #fff; font-size: clamp(1.3rem, 3.5vw, 1.9rem); margin-bottom: 6px; }
.taxonomy-banner p { color: rgba(255,255,255,.75); font-size: .9rem; margin-bottom: 0; }
.taxonomy-banner .term-count { display: inline-block; background: rgba(255,255,255,.15); border-radius: var(--radius-pill); padding: 3px 12px; font-size: .78rem; font-weight: 600; margin-top: 8px; }

/* =====================================================
   CATEGORIES ROW (Front page)
   ===================================================== */
.categories-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.category-chip { display: flex; align-items: center; gap: 6px; padding: 8px 14px; background: var(--bg-white); border: 1.5px solid var(--border); border-radius: var(--radius-pill); font-size: .82rem; font-weight: 600; color: var(--text); transition: all .2s; text-decoration: none; }
.category-chip:hover { border-color: var(--primary); background: #e8f0fe; color: var(--primary); }
.category-chip-count { background: var(--bg); border-radius: var(--radius-pill); padding: 1px 7px; font-size: .72rem; color: var(--text-muted); }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer { background: var(--primary); color: rgba(255,255,255,.8); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; padding: 48px 0 36px; }
.footer-tagline { font-size: .875rem; color: rgba(255,255,255,.65); margin-top: 10px; max-width: 260px; line-height: 1.6; }
.footer-col-title { font-family: var(--font-heading); font-size: .77rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 12px; }
.footer-nav { display: flex; flex-direction: column; gap: 7px; }
.footer-nav a { font-size: .85rem; color: rgba(255,255,255,.65); transition: color .15s; }
.footer-nav a:hover { color: #fff; }
.footer-social { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.footer-social-link { width: 34px; height: 34px; background: rgba(255,255,255,.1); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); transition: background .2s, color .2s; }
.footer-social-link:hover { background: var(--accent); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.5); margin: 0; }
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--accent); }

/* =====================================================
   PAGES / STATIC
   ===================================================== */
.page-layout { max-width: 800px; margin: 0 auto; padding: 28px 16px 60px; }
.page-header { background: var(--bg-white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 24px 22px 18px; margin-bottom: 16px; }
.page-header h1 { font-size: 1.7rem; }
.page-content { background: var(--bg-white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px; }
.page-content h2 { font-size: 1.2rem; margin: 24px 0 10px; }
.page-content h2:first-child { margin-top: 0; }
.page-content h3 { font-size: 1.05rem; margin: 18px 0 8px; }
.page-content ul { list-style: disc; padding-left: 20px; margin-bottom: 12px; }
.page-content ol { list-style: decimal; padding-left: 20px; margin-bottom: 12px; }
.page-content li { margin-bottom: 5px; font-size: .95rem; }
.page-content a { color: var(--primary); }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: .875rem; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.form-control { width: 100%; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: .9rem; font-family: var(--font-body); color: var(--text); background: var(--bg-white); transition: border-color .2s; }
.form-control:focus { outline: none; border-color: var(--primary); }
textarea.form-control { resize: vertical; min-height: 110px; }

/* =====================================================
   EMPTY STATES / 404
   ===================================================== */
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.empty-state svg { width: 52px; height: 52px; color: var(--border); margin: 0 auto 14px; display: block; }
.empty-state h3 { font-size: 1.1rem; color: var(--text); margin-bottom: 7px; }
.not-found { min-height: 55vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 48px 20px; }
.not-found-code { font-family: var(--font-heading); font-size: 7rem; font-weight: 800; color: var(--border); line-height: 1; margin-bottom: 14px; }
.not-found h2 { font-size: 1.6rem; margin-bottom: 10px; }
.not-found p { color: var(--text-muted); max-width: 380px; margin: 0 auto 24px; }

/* =====================================================
   SEARCH
   ===================================================== */
.search-layout { max-width: var(--max-width); margin: 0 auto; padding: 28px 16px 60px; }
.search-header { margin-bottom: 20px; }
.search-header h1 { font-size: 1.4rem; }
.search-header p { color: var(--text-muted); }

/* =====================================================
   BACK TO TOP / MISC
   ===================================================== */
@keyframes urgency-pulse {
  0%, 100% { background: #fff1f2; border-color: #fecdd3; }
  50% { background: #ffe4e6; border-color: var(--danger); }
}

.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* =====================================================
   RESPONSIVE — TABLET (≤1024px)
   ===================================================== */
@media (max-width: 1024px) {
  .single-job-wrap    { grid-template-columns: 1fr; padding: 0 12px 48px; }
  .job-sidebar        { display: none; }
  .archive-layout     { grid-template-columns: 1fr; padding: 0 12px 48px; }
  .archive-filters    { position: static; display: none; }
  .archive-filters.is-open { display: block; }
  .filter-toggle-btn  { display: flex; }
  .footer-grid        { grid-template-columns: 1fr 1fr; gap: 28px; }
  .single-post-wrap   { grid-template-columns: 1fr; padding: 0 12px 48px; }
  .post-sidebar       { order: -1; }
}

/* =====================================================
   RESPONSIVE — MOBILE (≤768px)
   Full-width everything
   ===================================================== */
@media (max-width: 768px) {

  /* Nav */
  .primary-nav, .nav-search, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .container { padding: 0 12px; }

  /* Hero compact */
  .hero { padding: 36px 0 44px; }
  .hero-search {
    flex-direction: column;
    padding: 10px;
    gap: 4px;
    border-radius: var(--radius-lg);
  }
  .hero-search-field { border-right: none; border-bottom: 1px solid var(--border); padding: 6px 10px; }
  .hero-search-field:last-of-type { border-bottom: none; }
  .hero-search-btn { width: 100%; justify-content: center; border-radius: var(--radius); padding: 13px; }
  .hero-stats { gap: 18px; }

  /* Sections */
  .section { padding: 28px 0; }

  /* Single Job: full-width, no side padding on cards */
  .single-job-wrap {
    display: block;
    padding: 0 0 80px; /* bottom space for fixed apply btn */
  }
  .job-header-card,
  .job-details-card,
  .job-description-card,
  .job-expired-notice,
  .company-profile-card,
  .related-jobs-section > * {
    border-radius: 0;
    border-left: none;
    border-right: none;
    margin-bottom: 8px;
  }
  .job-header-card { padding: 16px 14px 14px; }
  .job-description-card { padding: 18px 14px; }
  .job-details-card { padding: 16px 14px; }
  .company-profile-card { padding: 16px 14px; }
  .related-jobs-section { padding: 0; }

  /* Show fixed apply button on mobile */
  .job-apply-mobile  { display: block; }
  .mobile-apply-spacer { display: block; }

  /* Job logo smaller on mobile */
  .job-logo { width: 52px; height: 52px; }

  /* Company header */
  .company-single-wrap { padding: 0 0 48px; }
  .company-header-card {
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 18px 14px;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .company-header-logo { width: 70px; height: 70px; }
  .company-content-card, .company-jobs-card {
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 18px 14px;
  }

  /* Archive: no side padding on card group */
  .archive-layout { padding: 0 0 48px; }
  .jobs-grid { border-radius: 0; border-left: none; border-right: none; margin: 0; }
  .job-card { padding: 12px 14px; }

  /* Companies grid: 2-col on mobile */
  .companies-grid { grid-template-columns: 1fr 1fr; gap: 8px; }

  /* Post grid: single col */
  .posts-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 22px; padding: 36px 0 24px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }

  /* Page / static */
  .page-layout { padding: 0 0 48px; }
  .page-header {
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 18px 14px;
  }
  .page-content {
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 20px 14px;
  }

  /* Single post */
  .single-post-wrap { display: block; padding: 0 0 48px; }
  .single-post-main { border-radius: 0; border-left: none; border-right: none; }
  .single-post-body { padding: 18px 14px; }

  /* Breadcrumb */
  .breadcrumb { padding: 8px 0; }
  .breadcrumb-inner { padding: 0 14px; }

  /* Search layout */
  .search-layout { padding: 20px 14px 48px; }
}

/* =====================================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ===================================================== */
@media (max-width: 480px) {
  .job-card-title { font-size: .88rem; }
  .companies-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 1.6rem; }
  .not-found-code { font-size: 5rem; }
}

@media print {
  .site-header, .site-footer, .job-sidebar, .related-jobs-section, .company-profile-card { display: none; }
  .single-job-wrap { display: block; }
}
