/* ===================================================
   Meefire — Main Stylesheet
   Aesthetic: Modern Editorial / Deep Navy + Teal
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700;800&family=Sarabun:wght@300;400;500;600&display=swap');

/* ---------------------------------------------------
   CSS Variables
   --------------------------------------------------- */
:root {
  --navy:       #0B1628;
  --navy-light: #162040;
  --navy-mid:   #1E2D50;
  --teal:       #00C49A;
  --teal-light: #00E5B3;
  --teal-dim:   rgba(0, 196, 154, 0.15);
  --amber:      #F4A544;
  --cream:      #F7F4EE;
  --white:      #FFFFFF;
  --gray-50:    #F9FAFB;
  --gray-100:   #F0F1F3;
  --gray-200:   #E2E4EA;
  --gray-400:   #9BA3B8;
  --gray-600:   #5A6484;
  --gray-800:   #2D3556;
  --danger:     #EF4444;
  --success:    #10B981;
  --warning:    #F59E0B;
  --info:       #3B82F6;

  --font-head: 'Kanit', sans-serif;
  --font-body: 'Sarabun', sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-sm:  0 1px 3px rgba(11,22,40,.08);
  --shadow-md:  0 4px 16px rgba(11,22,40,.12);
  --shadow-lg:  0 8px 32px rgba(11,22,40,.16);
  --shadow-teal: 0 4px 24px rgba(0,196,154,.25);

  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------------------------------------------------
   Reset & Base
   --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }

/* ---------------------------------------------------
   Typography
   --------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  line-height: 1.25;
  color: var(--navy);
}

.text-teal   { color: var(--teal); }
.text-muted  { color: var(--gray-400); }
.text-small  { font-size: 0.85rem; }
.text-center { text-align: center; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

/* ---------------------------------------------------
   Layout
   --------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content { flex: 1; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---------------------------------------------------
   Navbar
   --------------------------------------------------- */
.navbar {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.navbar-brand {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.5px;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  display: inline-block;
  box-shadow: 0 0 10px var(--teal);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.navbar-links a {
  color: rgba(255,255,255,.7);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--white);
  background: rgba(255,255,255,.08);
}

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

.navbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 0.9rem;
}

.navbar-user span {
  color: var(--teal);
  font-weight: 600;
}

/* ---------------------------------------------------
   Buttons
   --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--teal);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-teal);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.3);
}

.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--gray-200);
}

.btn-outline-dark:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
}

.btn-danger {
  background: #FEE2E2;
  color: var(--danger);
}

.btn-danger:hover { background: #FCA5A5; }

.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------------------------------------------------
   Hero Section
   --------------------------------------------------- */
.hero {
  background: var(--navy);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 20% 50%, rgba(0,196,154,.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 80% 30%, rgba(244,165,68,.06) 0%, transparent 50%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--gray-50);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,196,154,.12);
  border: 1px solid rgba(0,196,154,.3);
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1.15;
}

.hero h1 .highlight {
  color: var(--teal);
}

.hero-sub {
  color: rgba(255,255,255,.6);
  font-size: 1.05rem;
  margin-bottom: 36px;
}

/* Search Bar */
.search-bar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 8px;
  display: flex;
  gap: 8px;
  box-shadow: var(--shadow-lg);
  max-width: 680px;
  margin: 0 auto 32px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  padding: 0 16px;
}

.search-field svg {
  color: var(--gray-400);
  flex-shrink: 0;
}

.search-field input {
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gray-800);
  width: 100%;
  background: transparent;
}

.search-field input::placeholder { color: var(--gray-400); }

.search-divider {
  width: 1px;
  background: var(--gray-200);
  align-self: stretch;
  margin: 8px 0;
}

.search-bar .btn { border-radius: var(--radius-md); }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.hero-stat {
  text-align: center;
}

.hero-stat-num {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
}

.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,.5);
}

/* ---------------------------------------------------
   Section Headers
   --------------------------------------------------- */
.section {
  padding: 60px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.section-title span { color: var(--teal); }

/* ---------------------------------------------------
   Category Cards
   --------------------------------------------------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.category-card:hover {
  border-color: var(--teal);
  background: var(--teal-dim);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.category-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.category-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
}

.category-count {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 2px;
}

/* ---------------------------------------------------
   Job Cards
   --------------------------------------------------- */
.job-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.job-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.job-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.company-logo-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  font-family: var(--font-head);
  flex-shrink: 0;
  overflow: hidden;
}

.company-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.job-card-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.3;
}

.job-card-title a:hover { color: var(--teal); }

.job-company {
  font-size: 0.85rem;
  color: var(--gray-600);
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
}

.tag-type     { background: #EEF2FF; color: #4F46E5; }
.tag-remote   { background: #ECFDF5; color: #059669; }
.tag-location { background: var(--gray-100); color: var(--gray-600); }
.tag-category { background: rgba(0,196,154,.1); color: #00857A; }

.job-salary {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--teal);
}

.job-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
}

.job-time {
  font-size: 0.78rem;
  color: var(--gray-400);
}

/* Jobs Grid / List */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* ---------------------------------------------------
   Sidebar Filters
   --------------------------------------------------- */
.jobs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

.filter-panel {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 24px;
  position: sticky;
  top: 80px;
}

.filter-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-400);
  margin-bottom: 10px;
}

.filter-group select,
.filter-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--gray-800);
  background: var(--white);
  outline: none;
  transition: var(--transition);
}

.filter-group select:focus,
.filter-group input:focus {
  border-color: var(--teal);
}

/* ---------------------------------------------------
   Forms
   --------------------------------------------------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.form-label .req { color: var(--danger); margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gray-800);
  background: var(--white);
  outline: none;
  transition: var(--transition);
  appearance: none;
}

.form-control:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,196,154,.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-top: 5px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Role tabs for register */
.role-tabs {
  display: flex;
  gap: 0;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 28px;
}

.role-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray-600);
}

.role-tab.active,
.role-tab input:checked + .role-tab {
  background: var(--navy);
  color: var(--white);
}

/* ---------------------------------------------------
   Auth Pages
   --------------------------------------------------- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  padding: 40px 20px;
  position: relative;
}

.auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 30% 50%, rgba(0,196,154,.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 75% 30%, rgba(244,165,68,.05) 0%, transparent 50%);
}

.auth-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 28px;
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
}

.auth-logo span { color: var(--teal); }

.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.auth-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.auth-sub {
  font-size: 0.88rem;
  color: var(--gray-400);
  margin-bottom: 24px;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.88rem;
  color: rgba(255,255,255,.6);
}

.auth-footer a { color: var(--teal); font-weight: 600; }

/* ---------------------------------------------------
   Dashboard
   --------------------------------------------------- */
.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
  padding: 32px 0;
}

.sidebar {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 8px;
  position: sticky;
  top: 80px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: var(--transition);
}

.sidebar-item:hover {
  background: var(--gray-50);
  color: var(--navy);
}

.sidebar-item.active {
  background: var(--teal-dim);
  color: var(--teal);
  font-weight: 600;
}

.sidebar-item svg { flex-shrink: 0; }

.dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Stat Cards */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.stat-card-label {
  font-size: 0.8rem;
  color: var(--gray-400);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.stat-card-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.stat-card-sub {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 4px;
}

/* Panel */
.panel {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.panel-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

/* Table */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  padding: 12px 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-400);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

td {
  padding: 14px 20px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-800);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gray-50); }

/* ---------------------------------------------------
   Badges
   --------------------------------------------------- */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.74rem;
  font-weight: 600;
}

.badge-pending   { background: #FEF3C7; color: #92400E; }
.badge-reviewing { background: #DBEAFE; color: #1E40AF; }
.badge-interview { background: #EDE9FE; color: #5B21B6; }
.badge-accepted  { background: #D1FAE5; color: #065F46; }
.badge-rejected  { background: #FEE2E2; color: #991B1B; }
.badge-active    { background: #D1FAE5; color: #065F46; }
.badge-closed    { background: var(--gray-100); color: var(--gray-600); }
.badge-draft     { background: #FEF3C7; color: #92400E; }

/* ---------------------------------------------------
   Job Detail Page
   --------------------------------------------------- */
.job-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
  padding: 40px 0;
}

.job-detail-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.job-detail-header {
  padding: 32px;
  border-bottom: 1px solid var(--gray-100);
}

.job-detail-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.job-detail-company {
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.job-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.job-detail-body {
  padding: 32px;
}

.job-detail-section {
  margin-bottom: 28px;
}

.job-detail-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--teal);
  display: inline-block;
}

.job-detail-section p,
.job-detail-section li {
  font-size: 0.93rem;
  color: var(--gray-600);
  line-height: 1.8;
}

.job-detail-section ul {
  list-style: disc;
  padding-left: 20px;
}

.apply-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.apply-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 24px;
}

.salary-display {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 4px;
}

.company-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 20px;
}

.company-card-logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  font-family: var(--font-head);
  color: var(--navy);
  margin-bottom: 12px;
  overflow: hidden;
}

/* ---------------------------------------------------
   Alerts / Flash Messages
   --------------------------------------------------- */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success { background: #D1FAE5; color: #065F46; border-left: 4px solid var(--success); }
.alert-error   { background: #FEE2E2; color: #991B1B; border-left: 4px solid var(--danger); }
.alert-info    { background: #DBEAFE; color: #1E40AF; border-left: 4px solid var(--info); }
.alert-warning { background: #FEF3C7; color: #92400E; border-left: 4px solid var(--warning); }

/* ---------------------------------------------------
   Pagination
   --------------------------------------------------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1.5px solid var(--gray-200);
  color: var(--gray-600);
  transition: var(--transition);
}

.pagination a:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.pagination .current {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--navy);
}

/* ---------------------------------------------------
   Empty State
   --------------------------------------------------- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-400);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-bottom: 8px;
}

/* ---------------------------------------------------
   Footer
   --------------------------------------------------- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.5);
  text-align: center;
  padding: 24px;
  font-size: 0.85rem;
  margin-top: auto;
}

.footer a { color: var(--teal); }

/* ---------------------------------------------------
   Utilities
   --------------------------------------------------- */
.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; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }

/* ---------------------------------------------------
   Responsive
   --------------------------------------------------- */
@media (max-width: 1024px) {
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .jobs-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .job-detail-layout { grid-template-columns: 1fr; }
  .apply-sidebar { position: static; }
  .dashboard-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero { padding: 60px 0 48px; }
  .search-bar { flex-direction: column; }
  .search-divider { width: 100%; height: 1px; margin: 0; }
  .hero-stats { gap: 20px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .jobs-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .navbar-links { display: none; }
  .section { padding: 40px 0; }
  .form-card { padding: 24px; }
  .auth-card { padding: 24px; }
}

/* ---------------------------------------------------
   Animations
   --------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.4s ease forwards; }

.job-card { animation: fadeIn 0.3s ease forwards; }
.job-card:nth-child(2) { animation-delay: 0.05s; }
.job-card:nth-child(3) { animation-delay: 0.1s; }
.job-card:nth-child(4) { animation-delay: 0.15s; }
