/*
Theme Name: AvailJob - Job Portal
Theme URI: https://availjob.com
Author: AvailJob
Description: A complete job posting portal with company profiles, job listings, and user/company registration.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: availjob
Tags: job-portal, jobs, careers, employment, company-profile
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --clr-bg:          #F7F8FA;
  --clr-surface:     #FFFFFF;
  --clr-primary:     #1A3C5E;
  --clr-accent:      #F05A28;
  --clr-accent-lt:   #FFF0EB;
  --clr-text:        #1C2B3A;
  --clr-muted:       #6B7A8D;
  --clr-border:      #E2E8EF;
  --clr-success:     #1DB87A;
  --clr-warn:        #F5A623;
  --clr-danger:      #E03E3E;

  --ff-display:      'Sora', sans-serif;
  --ff-body:         'Inter', sans-serif;

  --radius-sm:       6px;
  --radius-md:       12px;
  --radius-lg:       20px;
  --shadow-sm:       0 1px 4px rgba(26,60,94,.07);
  --shadow-md:       0 4px 20px rgba(26,60,94,.10);
  --shadow-lg:       0 12px 40px rgba(26,60,94,.14);

  --container:       1200px;
  --header-h:        72px;
}

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

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  color: var(--clr-primary);
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p  { margin-bottom: 1rem; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.flex    { display: flex; align-items: center; gap: 12px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
  white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: var(--clr-accent);
  color: #fff;
  border-color: var(--clr-accent);
}
.btn-primary:hover {
  background: #d44d20;
  border-color: #d44d20;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(240,90,40,.35);
}
.btn-outline {
  background: transparent;
  color: var(--clr-primary);
  border-color: var(--clr-border);
}
.btn-outline:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  background: rgba(26,60,94,.04);
}
.btn-ghost {
  background: transparent;
  color: var(--clr-muted);
  border-color: transparent;
  padding-inline: 12px;
}
.btn-ghost:hover { color: var(--clr-primary); background: var(--clr-bg); }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-sm { padding: 7px 14px; font-size: .85rem; }

/* ============================================================
   HEADER & NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border);
  height: var(--header-h);
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.site-logo {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--clr-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-logo span { color: var(--clr-accent); }
.site-logo svg { width: 32px; height: 32px; }

.primary-nav { display: flex; align-items: center; gap: 4px; }
.primary-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--clr-text);
  font-size: .95rem;
  transition: all .2s;
}
.primary-nav a:hover,
.primary-nav a.current { background: var(--clr-accent-lt); color: var(--clr-accent); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-primary);
  border-radius: 2px;
  transition: all .3s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--clr-primary) 0%, #0e2340 100%);
  padding: 80px 0 90px;
  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-content { position: relative; text-align: center; max-width: 780px; margin: 0 auto; }
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero p { color: rgba(255,255,255,.75); font-size: 1.15rem; margin-bottom: 40px; }

.hero-search {
  background: var(--clr-surface);
  border-radius: var(--radius-md);
  padding: 8px;
  display: flex;
  gap: 8px;
  box-shadow: var(--shadow-lg);
  max-width: 700px;
  margin: 0 auto 32px;
}
.hero-search input,
.hero-search select {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: 1rem;
  background: transparent;
  color: var(--clr-text);
  min-width: 0;
}
.hero-search select { border-left: 1px solid var(--clr-border); }
.hero-search .btn { flex-shrink: 0; }

.hero-stats { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.hero-stats span { color: rgba(255,255,255,.65); font-size: .9rem; }
.hero-stats strong { color: #fff; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section { padding: 64px 0; }
.section-alt { background: var(--clr-surface); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header p { color: var(--clr-muted); max-width: 560px; margin-inline: auto; }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 8px;
}

/* ============================================================
   JOB CARDS
   ============================================================ */
.job-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all .25s;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.job-card:hover {
  border-color: var(--clr-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.job-card.featured { border-color: var(--clr-accent); background: linear-gradient(135deg, #fff 0%, #fff8f5 100%); }
.job-card.featured::before {
  content: 'Featured';
  position: absolute;
  top: -1px;
  right: 20px;
  background: var(--clr-accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 0 0 6px 6px;
}

.job-card-top { display: flex; gap: 14px; align-items: flex-start; }
.company-logo {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-border);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--clr-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-weight: 700;
  color: var(--clr-primary);
  font-size: 1.1rem;
}
.job-title { font-size: 1.05rem; font-weight: 700; color: var(--clr-primary); line-height: 1.3; }
.job-company { color: var(--clr-muted); font-size: .9rem; margin-top: 2px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.job-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 500;
  background: var(--clr-bg);
  color: var(--clr-muted);
  border: 1px solid var(--clr-border);
}
.job-tag.type-full  { background: #EBF8F2; color: #1DB87A; border-color: #c3eedd; }
.job-tag.type-part  { background: #FFF4E5; color: #F5A623; border-color: #fce0a4; }
.job-tag.type-remote{ background: #EEF1FE; color: #5468FF; border-color: #c9cffd; }
.job-tag.type-contract{ background: #FFF0EB; color: var(--clr-accent); border-color: #fac9b5; }
.job-salary { font-weight: 700; color: var(--clr-primary); font-size: .95rem; }
.job-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--clr-border); }
.job-posted { font-size: .82rem; color: var(--clr-muted); }

/* ============================================================
   COMPANY CARDS
   ============================================================ */
.company-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  transition: all .25s;
}
.company-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--clr-accent); }
.company-card .logo-wrap {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  margin: 0 auto 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-bg);
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--clr-primary);
}
.company-card h3 { font-size: 1rem; margin-bottom: 4px; }
.company-card .industry { color: var(--clr-muted); font-size: .85rem; margin-bottom: 12px; }
.company-card .open-jobs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: var(--clr-accent-lt);
  color: var(--clr-accent);
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 600;
}

/* ============================================================
   CATEGORIES
   ============================================================ */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.category-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}
.category-card:hover { border-color: var(--clr-accent); background: var(--clr-accent-lt); }
.category-card:hover .cat-icon { background: var(--clr-accent); color: #fff; }
.cat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--clr-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 1.4rem;
  transition: all .2s;
  color: var(--clr-primary);
}
.category-card h4 { font-size: .9rem; font-weight: 600; color: var(--clr-text); margin-bottom: 2px; }
.category-card small { color: var(--clr-muted); font-size: .78rem; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; position: relative; }
.step-item { text-align: center; }
.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--clr-accent);
  color: #fff;
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(240,90,40,.3);
}
.step-item h4 { margin-bottom: 8px; }
.step-item p { color: var(--clr-muted); font-size: .9rem; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: 6px;
}
.form-group label span { color: var(--clr-accent); }
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--clr-text);
  background: var(--clr-surface);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(240,90,40,.12);
}
.form-control::placeholder { color: var(--clr-muted); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B7A8D' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: .8rem; color: var(--clr-muted); margin-top: 4px; }
.form-error { font-size: .8rem; color: var(--clr-danger); margin-top: 4px; display: none; }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: linear-gradient(160deg, #f0f4f9 0%, #e8f0fa 100%);
}
.auth-box {
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 520px;
  padding: 48px 44px;
}
.auth-box h2 { margin-bottom: 8px; }
.auth-box .auth-sub { color: var(--clr-muted); margin-bottom: 32px; font-size: .95rem; }
.auth-tabs {
  display: flex;
  background: var(--clr-bg);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 28px;
}
.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  font-size: .9rem;
  color: var(--clr-muted);
  transition: all .2s;
  border: none;
  background: transparent;
}
.auth-tab.active { background: var(--clr-surface); color: var(--clr-primary); box-shadow: var(--shadow-sm); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--clr-muted); font-size: .85rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--clr-border); }
.auth-footer { text-align: center; margin-top: 20px; font-size: .9rem; color: var(--clr-muted); }
.register-type-select {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}
.reg-type-btn {
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: none;
}
.reg-type-btn .icon { font-size: 2rem; margin-bottom: 8px; display: block; }
.reg-type-btn h4 { font-size: .95rem; color: var(--clr-primary); margin-bottom: 2px; }
.reg-type-btn p { font-size: .78rem; color: var(--clr-muted); }
.reg-type-btn:hover, .reg-type-btn.selected { border-color: var(--clr-accent); background: var(--clr-accent-lt); }

/* ============================================================
   DASHBOARD
   ============================================================ */
.dashboard-layout { display: grid; grid-template-columns: 260px 1fr; gap: 0; min-height: calc(100vh - var(--header-h)); }
.sidebar {
  background: var(--clr-primary);
  padding: 32px 0;
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.sidebar-brand { padding: 0 24px 24px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 20px; }
.sidebar-brand .user-info h4 { color: #fff; font-size: .95rem; }
.sidebar-brand .user-info span { color: rgba(255,255,255,.55); font-size: .82rem; }
.sidebar-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 24px;
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  font-weight: 500;
  transition: all .2s;
}
.sidebar-nav a:hover, .sidebar-nav a.active { color: #fff; background: rgba(255,255,255,.1); }
.sidebar-nav a.active { border-left: 3px solid var(--clr-accent); padding-left: 21px; }
.sidebar-nav .nav-section {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  padding: 20px 24px 6px;
}
.dashboard-main { padding: 36px 40px; background: var(--clr-bg); }
.dashboard-header { margin-bottom: 32px; }
.dashboard-header h1 { font-size: 1.75rem; }
.dashboard-header p { color: var(--clr-muted); }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-bottom: 36px; }
.stat-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 22px;
}
.stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.stat-card .stat-value { font-size: 1.8rem; font-weight: 800; font-family: var(--ff-display); color: var(--clr-primary); }
.stat-card .stat-label { color: var(--clr-muted); font-size: .85rem; }

/* ============================================================
   JOB DETAIL PAGE
   ============================================================ */
.job-detail-header {
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border);
  padding: 40px 0;
}
.job-detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; padding: 40px 0; }
.job-detail-main { background: var(--clr-surface); border: 1px solid var(--clr-border); border-radius: var(--radius-md); padding: 36px; }
.job-detail-sidebar {}
.apply-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 28px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
  margin-bottom: 20px;
}
.apply-card .salary-big { font-size: 1.6rem; font-weight: 800; font-family: var(--ff-display); color: var(--clr-primary); }
.apply-card .btn { width: 100%; justify-content: center; margin-bottom: 10px; }
.apply-card .job-detail-meta { margin: 16px 0; }
.job-detail-meta-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--clr-border); font-size: .9rem; }
.job-detail-meta-item:last-child { border-bottom: none; }
.job-detail-meta-item .meta-label { color: var(--clr-muted); min-width: 110px; }
.job-detail-meta-item .meta-value { color: var(--clr-text); font-weight: 500; }

/* ============================================================
   COMPANY PROFILE PAGE
   ============================================================ */
.company-hero {
  background: linear-gradient(135deg, var(--clr-primary) 0%, #0e2340 100%);
  padding: 52px 0;
  position: relative;
}
.company-hero-content { display: flex; gap: 24px; align-items: center; }
.company-hero-logo {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 3px solid rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--clr-primary);
  flex-shrink: 0;
}
.company-hero-info h1 { color: #fff; font-size: 1.8rem; margin-bottom: 4px; }
.company-hero-info .tagline { color: rgba(255,255,255,.7); font-size: 1rem; margin-bottom: 12px; }
.company-hero-stats { display: flex; gap: 24px; }
.company-hero-stats .stat { text-align: center; }
.company-hero-stats .stat .val { color: #fff; font-weight: 700; font-size: 1.1rem; font-family: var(--ff-display); }
.company-hero-stats .stat .lbl { color: rgba(255,255,255,.55); font-size: .78rem; }

/* ============================================================
   ALERTS & NOTICES
   ============================================================ */
.notice {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.notice-success { background: #f0fdf7; border: 1px solid #c3eedd; color: #0f6b41; }
.notice-warn    { background: #fffbec; border: 1px solid #fce0a4; color: #92620d; }
.notice-error   { background: #fff5f5; border: 1px solid #fecaca; color: #991b1b; }
.notice-info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 600;
}
.badge-success { background: #f0fdf7; color: #1DB87A; }
.badge-warn    { background: #fffbec; color: #F5A623; }
.badge-danger  { background: #fff5f5; color: var(--clr-danger); }
.badge-primary { background: var(--clr-accent-lt); color: var(--clr-accent); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; align-items: center; gap: 6px; justify-content: center; margin-top: 40px; }
.page-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--clr-border);
  background: var(--clr-surface);
  color: var(--clr-text);
  cursor: pointer;
  font-size: .9rem;
  font-weight: 500;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-btn:hover { border-color: var(--clr-accent); color: var(--clr-accent); }
.page-btn.active { background: var(--clr-accent); border-color: var(--clr-accent); color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--clr-primary);
  color: rgba(255,255,255,.7);
  padding: 64px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-about .site-logo { color: #fff; margin-bottom: 14px; font-size: 1.4rem; }
.footer-about p { font-size: .9rem; line-height: 1.7; }
.footer-col h5 { color: #fff; font-size: .9rem; font-weight: 700; margin-bottom: 16px; letter-spacing: .03em; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: rgba(255,255,255,.6); font-size: .88rem; transition: color .2s; }
.footer-col ul a:hover { color: var(--clr-accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .85rem;
}
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .9rem;
  transition: background .2s;
}
.social-links a:hover { background: var(--clr-accent); color: #fff; }

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform .3s;
}
.modal-overlay.open .modal { transform: none; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--clr-muted); padding: 4px; line-height: 1; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-muted  { color: var(--clr-muted); }
.text-accent { color: var(--clr-accent); }
.text-primary{ color: var(--clr-primary); }
.text-center { text-align: center; }
.text-sm     { font-size: .875rem; }
.font-bold   { font-weight: 700; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.gap-2 { gap: 16px; }
.w-full { width: 100%; }
.divider { height: 1px; background: var(--clr-border); margin: 24px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--clr-surface);
  padding: 24px;
  transform: translateX(100%);
  transition: transform .3s;
  overflow-y: auto;
}
.mobile-menu.open { display: block; transform: none; }
.mobile-menu nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--clr-border); font-size: 1.05rem; font-weight: 500; color: var(--clr-text); }
.mobile-menu .close-menu { float: right; background: none; border: none; font-size: 1.8rem; cursor: pointer; color: var(--clr-muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-layout { grid-template-columns: 220px 1fr; }
  .job-detail-layout { grid-template-columns: 1fr; }
  .apply-card { position: static; }
}
@media (max-width: 768px) {
  .primary-nav { display: none; }
  .hamburger { display: flex; }
  .header-actions .btn:not(.btn-primary) { display: none; }
  .hero-search { flex-direction: column; }
  .hero-search select { border-left: none; border-top: 1px solid var(--clr-border); }
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .dashboard-main { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .auth-box { padding: 32px 24px; }
  .company-hero-content { flex-direction: column; text-align: center; }
  .company-hero-stats { justify-content: center; }
}
@media (max-width: 480px) {
  .hero { padding: 48px 0 56px; }
  .section { padding: 44px 0; }
  .register-type-select { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
