/* ================================================================
   TIMVIEC — UI matching timviec.com.vn
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700;800&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --primary:        #29a9e0;
  --primary-dark:   #1e8cbd;
  --primary-light:  #e8f3fc;
  --accent:         #ff6600;
  --accent-dark:    #e05500;
  --teal:           #29a9e0;
  --teal-dark:      #1e8cbd;
  --navy:           #1e8cbd;
  --navy-dark:      #122b50;
  --success:        #28a745;
  --danger:         #dc3545;
  --warning:        #ff9800;
  --info:           #29a9e0;
  --text-primary:   #212529;
  --text-secondary: #6c757d;
  --text-muted:     #9ca3af;
  --bg:             #f5f7fa;
  --bg-white:       #ffffff;
  --border:         #e2e8f0;
  --shadow:         0 1px 4px rgba(0,0,0,.08);
  --shadow-md:      0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:      0 8px 32px rgba(0,0,0,.14);
  --radius:         6px;
  --radius-sm:      4px;
  --radius-lg:      10px;
  --header-h:       60px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
ul { list-style: none; padding: 0; margin: 0; }

/* ── Container ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── Page wrapper: áp dụng cho tất cả trang public sau header ── */
/* Header sticky=60px, thêm padding để không bị che */
.page-content {
  padding-top: 28px;
  padding-bottom: 48px;
  min-height: calc(100vh - var(--header-h) - 120px);
}
/* Breadcrumb / back navigation */
.page-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}
.page-nav a {
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  padding: 6px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #fff;
  transition: all .15s;
}
.page-nav a:hover { border-color: var(--primary); background: var(--primary-light); }
.page-nav span { color: var(--text-muted); }

/* ── Upload Zone (dùng cho profile avatar/logo) ── */
.upload-zone {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 16px; background: #f8fafc; border: 2px dashed #cbd5e1;
  border-radius: 12px; cursor: pointer; transition: border .2s, background .2s;
}
.upload-zone:hover { border-color: var(--primary); background: #eff9ff; }
.preview-thumb {
  width: 80px; height: 80px; border-radius: 12px; object-fit: cover;
  border: 2px solid #e2e8f0; flex-shrink: 0;
}
.preview-initials {
  width: 80px; height: 80px; border-radius: 12px;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 900; flex-shrink: 0;
}
/* ── Sticky Save Bar ── */
.sticky-save {
  position: sticky; bottom: 0; background: #fff;
  border-top: 2px solid var(--primary); padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; z-index: 50; margin-top: 24px;
  box-shadow: 0 -4px 16px rgba(0,0,0,.08);
}

/* ── User Avatar (luôn tròn đều, không bị kéo dãn) ── */
.user-avatar {
  width: 38px; height: 38px;
  min-width: 38px; min-height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
  flex-shrink: 0; align-self: flex-start;
  background: var(--primary); color: #fff;
  overflow: hidden; user-select: none;
}
.user-avatar.sm { width:30px;height:30px;min-width:30px;min-height:30px;font-size:12px; }
.user-avatar.lg { width:52px;height:52px;min-width:52px;min-height:52px;font-size:22px; }
.user-avatar img { width:100%;height:100%;object-fit:cover;border-radius:50%; }

/* ═══════════════════════════════════════════════════════════
   HEADER / NAVBAR
═══════════════════════════════════════════════════════════ */
.site-header {
  background: linear-gradient(135deg, #1e8cbd 0%, #29a9e0 60%, #29a9e0 100%);
  height: var(--header-h);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  overflow: visible;
}
.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -1px;
  color: #fff;
  white-space: nowrap;
  padding-right: 20px;
  border-right: 1px solid rgba(255,255,255,.25);
  margin-right: 16px;
  text-decoration: none;
}
.logo span { color: #ffd700; font-style: italic; }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0;
  flex: 1;
}
.nav-links > .nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: visible;
}
.nav-links > .nav-item > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  height: 100%;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .2s;
}
.nav-links > .nav-item > a:hover,
.nav-links > .nav-item > a.active {
  background: rgba(255,255,255,.15);
}
.nav-links > .nav-item > a .caret {
  font-size: 10px;
  opacity: .8;
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 210px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
  z-index: 999;
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 9px 16px;
  font-size: 13.5px;
  color: var(--text-primary);
  transition: background .15s, color .15s;
}
.nav-dropdown a:hover {
  background: var(--bg);
  color: var(--primary);
}
.nav-separator {
  border-left: 1px solid rgba(255,255,255,.25);
  height: 30px;
  margin: 0 4px;
}

/* Nav right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
  margin-left: auto;
}
.nav-right .nav-link-white {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 0 12px;
  height: 100%;
  display: flex;
  align-items: center;
  transition: background .2s;
}
.nav-right .nav-link-white:hover { background: rgba(255,255,255,.15); }

.btn-employer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  height: 100%;
  color: #fff;
  border-left: 1px solid rgba(255,255,255,.25);
  transition: background .2s;
}
.btn-employer:hover { background: rgba(255,255,255,.15); }
.btn-employer .emp-label { font-size: 10px; opacity: .8; display: block; line-height: 1; }
.btn-employer .emp-name  { font-size: 13px; font-weight: 700; display: block; line-height: 1; }
.btn-employer .emp-icon  { font-size: 20px; }

/* User menu */
.user-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  height: 100%;
  padding: 0 14px;
  border-left: 1px solid rgba(255,255,255,.25);
}
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.25);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.user-name { color: #fff; font-size: 14px; font-weight: 600; }
.user-dropdown {
  position: absolute; top: 100%; right: 0;
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); min-width: 210px;
  padding: 8px; padding-top: 12px;
  display: block; z-index: 200;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.user-menu:hover .user-dropdown {
  opacity: 1; visibility: visible;
  pointer-events: auto; transform: translateY(0);
}
.user-dropdown a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text-primary); transition: background .15s;
}
.user-dropdown a:hover { background: var(--bg); color: var(--primary); }
.user-dropdown .divider { height: 1px; background: var(--border); margin: 6px 0; }

/* Notif bell */
.notif-bell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  margin-right: 4px;
}
.notif-bell .badge-count {
  position: absolute;
  top: 4px; right: 4px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}
/* Admin badge */
.badge-admin {
  background: var(--warning);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 6px;
}

/* ═══════════════════════════════════════════════════════════
   HOMEPAGE HERO / BANNER
═══════════════════════════════════════════════════════════ */
.home-banner-wrap {
  position: relative;
  background: linear-gradient(135deg, #1e8cbd 0%, #29a9e0 60%, #29a9e0 100%);
  min-height: 260px;
  overflow: hidden;
}
.home-banner-wrap img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
.banner-placeholder {
  width: 100%;
  height: 260px;
  background: linear-gradient(135deg, #1e8cbd 0%, #29a9e0 50%, #29a9e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.4);
  font-size: 36px;
}

/* ── Search Form (overlaps banner bottom) ──────────────────── */
.tv-search {
  position: relative;
  margin-top: -56px;
  z-index: 10;
  padding-bottom: 20px;
}
.search-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 16px;
}
.search-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  flex-wrap: nowrap;
}
.search-field {
  flex: 1;
  min-width: 0;
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  display: flex;
  align-items: center;
}
.search-field i {
  position: absolute;
  left: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  pointer-events: none;
}
.search-field input,
.search-field select {
  width: 100%;
  padding: 10px 10px 10px 34px;
  border: none;
  outline: none;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--text-primary);
  background: transparent;
  border-radius: var(--radius);
}
.search-field select { cursor: pointer; }
.search-field select option { color: var(--text-primary); }
.btn-search-main {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: background .2s, transform .1s;
}
.btn-search-main:hover { background: var(--accent-dark); transform: scale(1.02); }
.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.search-tags a {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all .15s;
}
.search-tags a:hover, .search-tags a.active {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

/* ── Category Icon Grid ────────────────────────────────────── */
.cat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.cat-item {
  flex: 0 0 12.5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 4px;
  text-align: center;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background .15s;
  text-decoration: none;
}
.cat-item:hover { background: var(--bg); }
.cat-item img { width: 40px; height: 40px; margin-bottom: 6px; }
.cat-item .cat-icon-svg {
  width: 40px; height: 40px; margin-bottom: 6px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--primary);
}
.cat-item .cat-count {
  font-size: 15px;
  font-weight: 700;
  color: var(--teal);
  line-height: 1.2;
}
.cat-item .cat-unit {
  font-size: 11px;
  color: var(--text-muted);
}
.cat-item .cat-name {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 3px;
  line-height: 1.3;
}

/* ═══════════════════════════════════════════════════════════
   SECTIONS
═══════════════════════════════════════════════════════════ */
.tv-section { padding: 20px 0; }
.tv-section + .tv-section { padding-top: 0; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-light);
}
.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}
.section-title .icon-fire {
  width: 28px; height: 28px;
  background: #fff7ed;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.section-viewmore {
  font-size: 14px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color .15s;
}
.section-viewmore:hover { color: var(--primary-dark); }

/* ═══════════════════════════════════════════════════════════
   JOB CARDS
═══════════════════════════════════════════════════════════ */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.job-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 14px;
  position: relative;
  transition: box-shadow .2s, transform .2s, border-color .2s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
}
.job-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--primary);
}
.job-card-top {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.company-logo {
  width: 60px; height: 60px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  object-fit: contain;
  flex-shrink: 0;
  background: #f8f9fa;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: #fff;
}
.job-info { flex: 1; min-width: 0; }
.job-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.job-title:hover { color: var(--primary); }
.job-company {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.job-salary {
  font-size: 13px;
  font-weight: 700;
  color: var(--success);
}
.job-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.job-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}
.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.job-tag {
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--bg);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.job-tag.tag-fulltime { background: #e8f5e9; color: #2e7d32; border-color: #c8e6c9; }
.job-tag.tag-parttime { background: #fff3e0; color: #e65100; border-color: #ffe0b2; }
.job-tag.tag-remote   { background: #e3f2fd; color: #1565c0; border-color: #bbdefb; }

/* Badges */
.badge-hot {
  position: absolute;
  top: 10px; right: 10px;
  background: linear-gradient(135deg, #ff4c0d, #fc9502);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: .5px;
}
.badge-vip {
  position: absolute;
  top: 10px; right: 10px;
  background: linear-gradient(135deg, #7b2ff7, #c945e0);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
}
.badge-urgent {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  color: #e53935;
  background: #ffebee;
  padding: 2px 7px;
  border-radius: 10px;
}

.card-footer-job {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.job-time { font-size: 12px; color: var(--text-muted); }
.btn-apply-sm {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background .2s;
}
.btn-apply-sm:hover { background: var(--primary-dark); }

/* ── Job card variant: VIP (highlighted) ──────────────────── */
.job-card.vip-card {
  border-color: #c945e0;
  background: linear-gradient(135deg, #fdf4ff, #fff);
}

/* ═══════════════════════════════════════════════════════════
   TABS (ngành nghề tabs)
═══════════════════════════════════════════════════════════ */
.tv-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}
.tv-tab {
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius) var(--radius) 0 0;
  border: 1px solid transparent;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all .15s;
}
.tv-tab:hover { color: var(--primary); background: var(--primary-light); }
.tv-tab.active {
  color: var(--primary);
  background: #fff;
  border-color: var(--border) var(--border) #fff;
  border-bottom-color: #fff;
}

/* ── Job list (2-col) ── */
.jobs-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.job-list-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  transition: box-shadow .15s, border-color .15s;
  position: relative;
}
.job-list-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.job-list-logo {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  object-fit: contain;
  background: #f8f9fa;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: #fff;
}
.job-list-info { flex: 1; min-width: 0; }
.job-list-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.job-list-title:hover { color: var(--primary); }
.job-list-company { font-size: 12px; color: var(--text-secondary); }
.job-list-salary { font-size: 12px; font-weight: 700; color: var(--success); }
.job-list-loc { font-size: 11.5px; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════
   BLOG / CẨM NANG
═══════════════════════════════════════════════════════════ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.blog-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--primary-light);
  display: block;
}
.blog-body { padding: 14px; }
.blog-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  margin-bottom: 6px;
}
.blog-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-title:hover { color: var(--primary); }
.blog-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-time { font-size: 12px; color: var(--text-muted); margin-top: 8px; }

/* ═══════════════════════════════════════════════════════════
   LOCATION CHIPS
═══════════════════════════════════════════════════════════ */
.location-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0;
}
.location-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all .15s;
  cursor: pointer;
}
.location-chip:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.location-chip .count {
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
}
.location-chip:hover .count { color: rgba(255,255,255,.8); }

/* ═══════════════════════════════════════════════════════════
   EMPLOYER CTA BANNER
═══════════════════════════════════════════════════════════ */
.employer-cta {
  background: linear-gradient(135deg, #1e8cbd 0%, #29a9e0 100%);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 24px 0;
}
.employer-cta h3 { font-size: 22px; font-weight: 800; color: #fff; }
.employer-cta p { font-size: 14px; color: rgba(255,255,255,.8); margin-top: 6px; }
.btn-employer-cta {
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 24px;
  white-space: nowrap;
  transition: background .2s, transform .1s;
}
.btn-employer-cta:hover { background: var(--accent-dark); transform: scale(1.03); }

/* ═══════════════════════════════════════════════════════════
   STATS ROW
═══════════════════════════════════════════════════════════ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 20px 0;
}
.stat-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}
.stat-num { font-size: 26px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.site-footer {
  background: #0d2137;
  color: rgba(255,255,255,.75);
  padding: 48px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .logo { padding-right: 0; border-right: none; margin-right: 0; font-size: 24px; }
.footer-brand .logo span { color: #ffd700; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 10px; line-height: 1.7; }
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  transition: color .15s;
}
.footer-col ul li a:hover { color: #fff; }
.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: 15px;
  transition: background .15s, color .15s;
}
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  font-size: 12px;
  color: rgba(255,255,255,.4);
  flex-wrap: wrap;
  gap: 8px;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent  { background: var(--accent);  color: #fff; }
.btn-accent:hover  { background: var(--accent-dark); }
.btn-teal    { background: var(--teal);    color: #fff; }
.btn-teal:hover    { background: var(--teal-dark); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,.15); }
.btn-danger  { background: var(--danger);  color: #fff; }
.btn-danger:hover  { background: #b91c1c; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #15803d; }
.btn-secondary { background: #6c757d; color: #fff; }
.btn-secondary:hover { background: #5a6268; }

/* ═══════════════════════════════════════════════════════════
   DASHBOARD LAYOUTS
═══════════════════════════════════════════════════════════ */
/* Seeker / Employer dashboard */
.dash-layout {
  display: flex;
  min-height: calc(100vh - var(--header-h));
}
.dash-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 20px 0;
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.dash-sidebar .sidebar-logo {
  padding: 0 20px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.dash-sidebar .sidebar-logo a {
  font-size: 20px;
  font-weight: 900;
  color: var(--navy);
}
.dash-sidebar .sidebar-logo a span { color: var(--accent); font-style: italic; }
.dash-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all .15s;
  border-left: 3px solid transparent;
}
.dash-sidebar nav a:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-left-color: var(--primary);
}
.dash-sidebar nav a.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  border-left-color: var(--primary);
}
.dash-sidebar .sidebar-section {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 14px 20px 6px;
}
.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .15s;
  border-left: 3px solid transparent;
}
.sidebar-logout:hover { color: var(--danger); background: rgba(220,38,38,.08); border-left-color: var(--danger); }

.dash-main {
  flex: 1;
  min-width: 0;
  padding: 28px 32px;
  background: var(--bg);
}
.dash-page-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
}

/* Admin layout */
.admin-layout {
  display: flex;
  min-height: calc(100vh - var(--header-h));
}
.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #1e8cbd 0%, #29a9e0 100%);
  padding: 20px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  box-shadow: 2px 0 12px rgba(0,0,0,.1);
}
.admin-sidebar .sidebar-logo {
  padding: 0 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.2);
  margin-bottom: 12px;
}
.admin-sidebar .sidebar-logo a {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
}
.admin-sidebar .sidebar-logo a span { color: #ffd700; font-style: italic; }
.admin-sidebar .sidebar-logo .subtitle,
.admin-sidebar .logo-sub {
  font-size: 11px;
  color: rgba(255,255,255,.65);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.admin-sidebar .sidebar-section,
.admin-sidebar .nav-section-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 14px 20px 6px;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 13.5px;
  color: rgba(255,255,255,.85);
  transition: all .15s;
  border-left: 3px solid transparent;
}
.sidebar-nav a:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
}
.sidebar-nav a.active {
  background: rgba(255,255,255,.2);
  color: #fff;
  font-weight: 600;
  border-left-color: #ffd700;
}
.sidebar-badge {
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
  margin-left: auto;
}
.sidebar-bottom {
  padding: 16px 20px;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,.2);
}
.sidebar-logout {
  display: block;
  padding: 10px 20px;
  color: rgba(255,255,255,.7);
  font-size: 13.5px;
  transition: all .15s;
}
.sidebar-logout:hover {
  color: #fff;
  background: rgba(255,255,255,.1);
}
.admin-main {
  flex: 1;
  min-width: 0;
  padding: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

/* ── Admin topbar ── */
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  gap: 16px;
}
.admin-topbar input[type="text"] {
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  width: 220px;
  outline: none;
}
.admin-topbar input[type="text"]:focus {
  border-color: var(--primary);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.topbar-username { font-size: 13px; font-weight: 700; }
.topbar-role { font-size: 11px; color: var(--text-secondary); }

/* ── Admin content area (inside admin-main, below topbar) ── */
.admin-content {
  padding: 28px 32px;
  flex: 1;
}
/* Backward compat: pages without .admin-content wrap */
.admin-main > h1:not(.admin-content h1),
.admin-main > .card:not(.admin-content .card),
.admin-main > .alert:not(.admin-content .alert),
.admin-main > .breadcrumb:not(.admin-content .breadcrumb),
.admin-main > table:not(.admin-content table),
.admin-main > form:not(.admin-content form),
.admin-main > p:not(.admin-content p) {
  margin-left: 32px;
  margin-right: 32px;
}
.admin-main > h1:first-of-type {
  margin-top: 28px;
}

/* ═══════════════════════════════════════════════════════════
   CARDS / BOXES
═══════════════════════════════════════════════════════════ */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.card-header {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-secondary);
}
.empty-state h3 { font-size: 18px; margin-bottom: 8px; }

/* ── Stats cards ─── */
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-icon {
  width: 52px; height: 52px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.stat-icon.blue   { background: var(--primary-light); color: var(--primary); }
.stat-icon.green  { background: #e8f5e9; color: #388e3c; }
.stat-icon.orange { background: #fff3e0; color: #f57c00; }
.stat-icon.purple { background: #f3e5f5; color: #7b1fa2; }

/* ═══════════════════════════════════════════════════════════
   FORMS
═══════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 18px; }
.form-label { font-size: 13.5px; font-weight: 600; color: var(--text-primary); display: block; margin-bottom: 6px; }
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,111,197,.12);
}
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 4px; }

/* ─── Auth pages ─── */
.auth-wrap {
  min-height: 100vh;
  background: linear-gradient(135deg, #1e8cbd 0%, #29a9e0 60%, #29a9e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-card {
  background: #fff;
  border-radius: 14px;
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
}
.auth-logo {
  text-align: center;
  margin-bottom: 24px;
  font-size: 30px;
  font-weight: 900;
  color: var(--navy);
}
.auth-logo span { color: var(--accent); font-style: italic; }
.auth-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.auth-subtitle { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }
.auth-divider {
  text-align: center;
  margin: 16px 0;
  position: relative;
  color: var(--text-muted);
  font-size: 13px;
}
.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 1px;
  background: var(--border);
}
.auth-divider span {
  position: relative;
  background: #fff;
  padding: 0 12px;
}
.auth-footer { text-align: center; margin-top: 20px; font-size: 13.5px; color: var(--text-secondary); }
.auth-footer a { color: var(--primary); font-weight: 600; }

/* ─── Role tabs (auth register) ─── */
.role-tabs {
  display: flex;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.role-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-secondary);
  background: #fff;
  transition: all .2s;
  border: none;
}
.role-tab.active { background: var(--primary); color: #fff; }

/* ═══════════════════════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════════════════════ */
.text-primary   { color: var(--primary) !important; }
.text-accent    { color: var(--accent) !important; }
.text-teal      { color: var(--teal) !important; }
.text-success   { color: var(--success) !important; }
.text-danger    { color: var(--danger) !important; }
.text-muted     { color: var(--text-muted) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-white     { color: #fff !important; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.fw-700 { font-weight: 700; }
.fw-600 { font-weight: 600; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.flex-1 { flex: 1; }

/* ── Badges ─── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 700;
}
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: #e8f5e9; color: #388e3c; }
.badge-danger  { background: #ffebee; color: var(--danger); }
.badge-warning { background: #fff3e0; color: #e65100; }
.badge-info    { background: #e3f2fd; color: #1565c0; }
.badge-gray    { background: #f3f4f6; color: #4b5563; }

/* ── Status badges for tables ── */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

/* ── Table ─── */
.table-wrap { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.data-table th {
  background: var(--bg);
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tr:hover td { background: var(--bg); }
.data-table tr:last-child td { border-bottom: none; }

/* ── Pagination ── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 20px 0;
  flex-wrap: wrap;
}
.page-btn {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  transition: all .15s;
  cursor: pointer;
  text-decoration: none;
}
.page-btn:hover, .page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── Alert boxes ── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13.5px;
  margin-bottom: 16px;
  border-left: 4px solid;
}
.alert-success { background: #e8f5e9; color: #1b5e20; border-color: #4caf50; }
.alert-danger  { background: #ffebee; color: #b71c1c; border-color: #f44336; }
.alert-info    { background: #e3f2fd; color: #0d47a1; border-color: #2196f3; }
.alert-warning { background: #fff3e0; color: #e65100; border-color: #ff9800; }

/* ═══════════════════════════════════════════════════════════
   JOBS PAGE (list view)
═══════════════════════════════════════════════════════════ */
.jobs-page-layout {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  align-items: flex-start;
}
.jobs-filter-sidebar {
  width: 270px;
  flex-shrink: 0;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  position: sticky;
  top: calc(var(--header-h) + 12px);
}
.filter-section { margin-bottom: 20px; }
.filter-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 13.5px;
  cursor: pointer;
}
.filter-option input { cursor: pointer; accent-color: var(--primary); }
.jobs-main { flex: 1; min-width: 0; }
.jobs-result-count {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.jobs-result-count strong { color: var(--primary); }
.jobs-list-full {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.job-card-h {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  position: relative;
  transition: box-shadow .2s, border-color .2s;
}
.job-card-h:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.job-card-h .company-logo { width: 70px; height: 70px; flex-shrink: 0; }
.job-card-h-info { flex: 1; min-width: 0; }
.job-card-h-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   COMPANY / PROFILE PAGES
═══════════════════════════════════════════════════════════ */
.company-hero {
  background: linear-gradient(135deg, #1e8cbd, #29a9e0);
  padding: 40px 0;
  color: #fff;
}
.company-logo-lg {
  width: 100px; height: 100px;
  border-radius: 12px;
  border: 3px solid rgba(255,255,255,.3);
  object-fit: contain;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 900; color: #fff;
}
.profile-layout {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  align-items: flex-start;
}
.profile-sidebar { width: 300px; flex-shrink: 0; }
.profile-main    { flex: 1; min-width: 0; }

/* ═══════════════════════════════════════════════════════════
   BREADCRUMB
═══════════════════════════════════════════════════════════ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 12px 0;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .jobs-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .jobs-grid { grid-template-columns: 1fr; }
  .jobs-list { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .search-row { flex-direction: column; }
  .dash-sidebar { display: none; }
  .admin-sidebar { display: none; }
  .cat-item { flex: 0 0 25%; }
  .employer-cta { flex-direction: column; text-align: center; }
  .jobs-page-layout { flex-direction: column; }
  .jobs-filter-sidebar { width: 100%; position: static; }
}
@media (max-width: 480px) {
  .cat-item { flex: 0 0 33.33%; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .auth-card { padding: 24px 20px; }
}

/* ═══════════════════════════════════════════════════════════
   LEGACY CLASS ALIASES (backward compat for old pages)
═══════════════════════════════════════════════════════════ */

/* — jobs.php — */
.jobs-layout {
  display: flex;
  gap: 20px;
  padding: 8px 0 48px;
  align-items: flex-start;
}
.filter-sidebar {
  width: 270px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--header-h) + 12px);
}
.filter-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
}
.filter-group {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.filter-group:last-child { border-bottom: none; margin-bottom: 0; }
.filter-group h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
}
.btn-block { width: 100%; display: flex; justify-content: center; margin-bottom: 8px; }

/* Job card legacy inner elements */
.job-card-header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.job-title-area { flex: 1; min-width: 0; }
.company-name {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.job-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}
.job-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
}
.job-salary {
  font-size: 13px;
  font-weight: 700;
  color: var(--success);
}
.btn-apply {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  background: var(--primary);
  color: #fff;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  transition: background .2s;
  cursor: pointer;
}
.job-card:hover .btn-apply { background: var(--primary-dark); }

/* VIP ribbons */
.vip-ribbon {
  position: absolute;
  top: 10px; right: 10px;
  background: linear-gradient(135deg, #7b2ff7, #c945e0);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
}
.vip-pin, .vip-auto {
  border-color: #7b2ff7;
}

/* badge-secondary for old usage */
.badge-secondary { background: #f3f4f6; color: var(--text-secondary); }
.badge-vip { background: linear-gradient(135deg, #7b2ff7, #c945e0); color: #fff; }

/* — seeker/ employer/ admin dashboards — */
/* All dashboard pages include sidebar-*.php which uses dash-layout etc.
   These have their own CSS above. Just add missing helper classes: */

/* stat-cards (seeker dashboard old grid) */
.stat-cards {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.stat-card-value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
}
.stat-card-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.stat-card-icon.pending { background: #fff3e0; color: #e65100; }
.stat-card-icon.approved { background: #e8f5e9; color: #27ae60; }
.stat-card-icon.vip { background: #f3e5f5; color: #7b1fa2; }
.stat-card-icon.blue { background: var(--primary-light); color: var(--primary); }
.stat-card-icon.orange { background: #fff3e0; color: #f57c00; }
.stat-card-icon.green { background: #e8f5e9; color: #388e3c; }
.stat-card-icon.purple { background: #f3e5f5; color: #7b1fa2; }

/* Card title inside card-header */
.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

/* table-wrapper for old table styles */
.table-wrapper { overflow-x: auto; }
.table-wrapper table,
table:not(.data-table) {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.table-wrapper table th,
table:not(.data-table) th {
  background: var(--bg);
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.table-wrapper table td,
table:not(.data-table) td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table-wrapper table tr:hover td,
table:not(.data-table) tr:hover td { background: var(--bg); }

/* — Sidebar includes — */
/* sidebar-seeker.php / sidebar-employer.php may use .sidebar-nav, .sidebar-item etc. Covered by .dash-sidebar nav */

/* — Admin pages — */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 900px) {
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .jobs-layout { flex-direction: column; }
  .filter-sidebar { width: 100%; position: static; }
}
@media (max-width: 600px) {
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .stat-cards  { grid-template-columns: 1fr 1fr; }
}

/* — Misc old classes — */
.rounded { border-radius: var(--radius); }
.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.text-green { color: var(--success); }
.text-red   { color: var(--danger); }
.text-blue  { color: var(--primary); }
.text-orange { color: var(--accent); }

/* Header/footer style isolation — older pages that don't use includes/header.php
   may have their own <body> wrapper — ensure they still get base typography */
body { font-family: 'Be Vietnam Pro', sans-serif; font-size: 14px; }


/* ========================================================================
   MODERN DASHBOARD OVERRIDES 
   Transplants the admin sidebar styling into the employer/seeker sidebars
   ======================================================================== */
.dash-sidebar {
  background: linear-gradient(180deg, #1e8cbd 0%, #29a9e0 100%) !important;
  box-shadow: 2px 0 12px rgba(0,0,0,.1) !important;
  border-right: none !important;
  top: 0 !important;
  height: 100vh !important;
}
.dash-sidebar nav a {
  color: rgba(255,255,255,.85) !important;
}
.dash-sidebar nav a:hover {
  background: rgba(255,255,255,.15) !important;
  color: #fff !important;
}
.dash-sidebar nav a.active {
  background: rgba(255,255,255,.2) !important;
  color: #fff !important;
  font-weight: 600 !important;
  border-left-color: #ffd700 !important;
}
.dash-sidebar .sidebar-section {
  color: rgba(255,255,255,.5) !important;
}
.dash-sidebar .sidebar-logo {
  border-bottom: 1px solid rgba(255,255,255,.2) !important;
}
.dash-sidebar .sidebar-logout {
  color: rgba(255,255,255,.7) !important;
}
.dash-sidebar .sidebar-logout:hover {
  background: rgba(255,255,255,.1) !important;
  color: #fff !important;
}


/* TRUNG KHỚP PIXEL - TV HOME V2 */
.tv-home-v2 .bg-white-box { background: #ffffff; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.06); padding: 16px 20px; margin-bottom: 24px; }
.tv-home-v2 .tv-title-v2 { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #f1f3f5; padding-bottom: 15px; margin-bottom: 15px; }
.tv-home-v2 .tv-title-v2 h2 { font-size: 20px !important; font-weight: 700; color: #333; margin: 0; display: flex; align-items: center; }
.tv-home-v2 .tv-title-v2 h2 img.mr-2 { width: 24px; height: 24px; object-fit: contain; }
.tv-home-v2 .tv-title-v2 a { color: #555; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 4px; }

.job-card-v2 { background: #ffffff; border: 1px solid #eef1f5; border-radius: 4px; padding: 14px; display: flex; flex-direction: column; position: relative; transition: all 0.2s; height: 100%; box-shadow: 0 2px 6px rgba(0,0,0,0.02); }
.job-card-v2:hover { box-shadow: 0 6px 16px rgba(0,0,0,0.08); border-color: #d1d9e6; transform: translateY(-2px); }
.job-title-v2 { font-size: 14px; font-weight: 600; color: #555; line-height: 1.5; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; width: 100%; }
.job-title-v2:hover { color: #29a9e0; }
.job-title-v2 .text-gap { color: #e53935; font-style: italic; font-weight: 600; margin-right: 4px; }

.job-body-v2 { display: flex; align-items: center; width: 100%; margin-bottom: 12px; }
.job-logo-v2 { width: 44px; height: 44px; border: 1px solid #f1f3f5; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 12px; flex-shrink: 0; padding: 2px; overflow: hidden; }
.job-logo-v2.no-curve { border-radius: 4px; }
.job-logo-v2 img { max-width: 100%; max-height: 100%; object-fit: contain; }
.job-info-v2 { flex: 1; min-width: 0; }
.job-company-v2 { font-size: 12px; color: #777; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.job-meta-v2 { display: flex; align-items: center; font-size: 13px; color: #555; margin-bottom: 2px; }
.job-meta-v2 i { color: #29a9e0; width: 16px; margin-right: 4px; text-align: center; font-size: 13px; }

.job-footer-v2 { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px dashed #eef1f5; font-size: 12px; }
.job-footer-v2 .tag-item { color: #666; display: flex; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 65%; }
.job-footer-v2 .tag-item i { margin-right: 4px; color: #29a9e0; }
.job-footer-v2 .time-left { color: #888; display: flex; align-items: center; margin-left: auto; }
.job-footer-v2 .time-left i { margin-right: 4px; color: #29a9e0; }

.vip-ribbon-v2 { position: absolute; top: 0; left: 0; background: linear-gradient(135deg, #29a9e0, #1e8cbd); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 6px 0 8px 0; z-index: 2; display: flex; align-items: center; box-shadow: 1px 1px 4px rgba(0,0,0,0.2); }
.vip-ribbon-v2 i { margin-right: 2px; font-size: 9px; }

/* ================================================================
   TIMVIEC.COM.VN LEGACY CLASSES — Restored from original theme
   ================================================================ */

/* ── Outer section container ─────────────────────────────────── */
.tv-urgent {
    background: #fff;
    padding: 15px;
    margin-bottom: 0;
}
.tv-urgent.box_shadow,
.box_shadow {
    background: #fff;
    box-shadow: 0 1px 8px rgba(0,0,0,.08);
    border-radius: 4px;
    border: 1px solid #e8e8e8;
}
.owl-carousel-custom {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
}

/* ── Section title ───────────────────────────────────────────── */
.tv-title {
    padding: 0 0 12px 0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 12px;
}
.tv-title h2 {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin: 0;
    line-height: 1.4;
}
.box-title-viec-lam {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}
.pull-right {
    float: right;
}
.pull-right a {
    color: #666 !important;
    font-size: 14px;
    text-decoration: none;
}
.pull-right a:hover {
    color: #29a9e0 !important;
}

/* ── Job card: item-job-box ──────────────────────────────────── */
.item-job-box {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 9px 10px;
    position: relative;
    height: 100%;
    transition: box-shadow .2s, border-color .2s;
    overflow: hidden;
}
.item-job-box.item-hover-job:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    border-color: #29a9e0;
}
.item-job-box.vip-job-box {
    border-color: #ffd700;
    background: #fffef0;
}

/* VIP badge ribbon */
.bade-vip {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 28px 28px 0 0;
    border-color: #29a9e0 transparent transparent transparent;
}

/* Verified / trusted company lightning badge */
.box-huy-hieu-tia-set {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
}
.huy-hieu-tia-set-img {
    cursor: pointer;
}

/* Job title */
.field-job-title {
    margin-bottom: 7px;
    margin-top: 0;
    line-height: 1.3;
}
.field-job-title a.text-ellipsis,
.text-ellipsis {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.field-job-title a {
    color: #333 !important;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none !important;
}
.field-job-title a:hover {
    color: #29a9e0 !important;
}
.ntd-uy-tin-title {
    padding-left: 28px;
}

/* Logo thumbnail */
.field-thumbnail {
    position: absolute;
    left: 10px;
    top: 42px; /* sits below the title */
    width: 55px;
}
.field-thumbnail.mr-12 {
    margin-right: 12px;
}
.img-thumbnail-cover {
    width: 55px;
    height: 55px;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.img-thumbnail-cover.ntd-uy-tin {
    border-color: #29a9e0;
}
.img-thumbnail-cover img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Job info text block */
.job-info {
    min-height: 60px;
}
.job-info.pl-65 {
    padding-left: 65px;
}
.field-job-company {
    margin-bottom: 4px;
}
.field-job-company a {
    color: #888 !important;
    font-size: 13px;
    text-transform: uppercase;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none !important;
}
.field-job-company a:hover {
    color: #29a9e0 !important;
}
.job-info .salary,
.job-info .times {
    font-size: 13px;
    color: #444;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.job-info .salary i,
.job-info .times i {
    color: #29a9e0;
    font-size: 15px;
}

/* Card footer */
.item-job-box hr {
    border-color: #f0f0f0;
    margin: 5px 0;
}
.item-job-box > .d-flex.justify-content-between {
    font-size: 13px;
    color: #777;
}
.item-job-box > .d-flex .times {
    color: #777;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.item-job-box > .d-flex .times i {
    color: #29a9e0;
}

/* ── Row padding helpers ─────────────────────────────────────── */
.row-item-job.px-15 {
    padding-left: 0;
    padding-right: 0;
}
.row-item-job > div {
    padding: 6px 8px;
}

/* ── Carousel / pagination dots ─────────────────────────────── */
.slide-job .owl-dots {
    text-align: center;
    margin-top: 12px;
}
.slide-job .owl-dot span {
    background: #ccc;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin: 0 3px;
}
.slide-job .owl-dot.active span,
.slide-job .owl-dot:hover span {
    background: #29a9e0;
}

/* ── Section wrappers ────────────────────────────────────────── */
.tv-fast-jobs.tv-home-jobs {
    background: transparent;
}
.tv-fast-jobs.tv-home-jobs.has-row {
    padding: 0;
}
.box-viec-lam-tuyen-gap {
    background: transparent;
}

/* ── color helpers ───────────────────────────────────────────── */
.color-555 { color: #555 !important; }
.color-999 { color: #999 !important; }

/* ── VIP verified badge inline (icon-flash.webp + shield) ─────── */
.show_html_xac_minh[data-company_id] {
    display: flex;
    align-items: center;
    gap: 4px;
}

