/* ==========================================================================
   HIRENEST AUSTRALIA DESIGN SYSTEM
   Theme: Australian Navy, Marine Blue, Crisp Modern Typography
   ========================================================================== */

:root {
  --hn-navy: #0f172a;
  --hn-blue: #0284c7;
  --hn-blue-hover: #0369a1;
  --hn-accent: #2563eb;
  --hn-bg-light: #f8fafc;
  --hn-card-bg: #ffffff;
  --hn-border: #e2e8f0;
  --hn-text-primary: #0f172a;
  --hn-text-secondary: #475569;
  --hn-text-muted: #64748b;
  --hn-success: #10b981;
  --hn-success-bg: #ecfdf5;
  --hn-warning: #f59e0b;
  --hn-danger: #ef4444;
  --hn-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.hirenest-body {
  font-family: var(--hn-font);
  background-color: var(--hn-bg-light);
  color: var(--hn-text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* --- Header & Navigation --- */
.hn-navbar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--hn-border);
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.hn-navbar-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 66px;
  flex-wrap: nowrap;
}

.hn-logo-wrap {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.hn-navbar-logo {
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

/* Desktop primary navigation (centred between logo and actions) */
.hn-nav-links {
  display: none;
  align-items: center;
  gap: 0.15rem;
  margin: 0 auto;
  flex: 0 1 auto;
}

.hn-nav-link {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--hn-text-secondary);
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.hn-nav-link:hover,
.hn-nav-link.active {
  color: var(--hn-blue);
  background-color: #f0f9ff;
}

/* Right-side actions */
.hn-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
}

.hn-btn-employer {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hn-navy);
  background-color: #f1f5f9;
  border: 1px solid var(--hn-border);
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.hn-btn-employer:hover {
  background-color: #e2e8f0;
  border-color: #cbd5e1;
  color: var(--hn-navy);
}

/* Navbar-scoped sizing keeps the shared .hn-btn-primary / .hn-btn-outline
   definitions (used elsewhere on the site) untouched. */
.hn-nav-actions > .hn-btn-employer,
.hn-nav-actions > .hn-btn-outline,
.hn-nav-actions > .hn-btn-primary {
  display: none;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 0.9rem;
  font-size: 0.875rem;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.hn-nav-actions > .hn-btn-employer {
  gap: 0.4rem;
}

/* Mobile-first: the desktop navigation and the desktop action group are
   hidden until the desktop breakpoint. On mobile the hamburger is the ONLY
   header control. Using a compound selector keeps this rule independent of
   the individual .hn-nav-links / .hn-nav-actions display declarations. */
.hn-nav-links.hn-desktop-only,
.hn-nav-actions.hn-desktop-only {
  display: none;
}

.hn-mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--hn-border);
  background-color: #ffffff;
  color: var(--hn-navy);
  border-radius: 10px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.hn-mobile-toggle:hover,
.hn-mobile-toggle:focus-visible {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}

/* Shared buttons (unchanged) */
.hn-btn-primary {
  background-color: var(--hn-blue);
  border: 1px solid var(--hn-blue);
  color: #ffffff;
  font-weight: 600;
  padding: 0.5rem 1.15rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.hn-btn-primary:hover {
  background-color: var(--hn-blue-hover);
  border-color: var(--hn-blue-hover);
  color: #ffffff;
}

.hn-btn-outline {
  background-color: transparent;
  border: 1px solid var(--hn-border);
  color: var(--hn-text-primary);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.hn-btn-outline:hover {
  border-color: var(--hn-blue);
  color: var(--hn-blue);
  background-color: #f0f9ff;
}

/* Footer brand */
.hn-footer-logo-wrap {
  display: inline-block;
  background-color: #ffffff;
  padding: 6px 14px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.hn-footer-logo-wrap:hover {
  transform: translateY(-1px);
}

.hn-footer-logo {
  height: 34px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

/* Desktop: show full navigation at >= 992px */
@media (min-width: 992px) {
  .hn-nav-links {
    display: flex;
  }
  .hn-nav-links.hn-desktop-only,
  .hn-nav-actions.hn-desktop-only {
    display: flex;
  }
  .hn-nav-actions > .hn-btn-employer,
  .hn-nav-actions > .hn-btn-outline,
  .hn-nav-actions > .hn-btn-primary {
    display: inline-flex;
  }
  .hn-mobile-toggle {
    display: none;
  }
}

/* Compact sizing on smaller laptops so the desktop nav never overflows ~1024px */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hn-navbar-logo {
    height: 36px;
  }
  .hn-nav-link {
    font-size: 0.82rem;
    padding: 0.5rem 0.45rem;
  }
  .hn-nav-actions {
    gap: 0.35rem;
  }
  .hn-nav-actions > .hn-btn-employer,
  .hn-nav-actions > .hn-btn-outline,
  .hn-nav-actions > .hn-btn-primary {
    font-size: 0.8rem;
    padding: 0 0.65rem;
  }
}

/* Some rows use g-5 / g-lg-5 (3rem gutter). Below the xl breakpoint the
   container is full-width with only 0.75rem padding, so the row's -1.5rem
   negative margin overflows the viewport by 12px on each side. Cap the
   horizontal gutter here; the full 3rem gutter returns at >= 1200px where the
   container is centred with room to spare. */
@media (max-width: 1199.98px) {
  .row.g-5,
  .row.g-lg-5 {
    --bs-gutter-x: 1.5rem;
  }
}

/* Phones: keep the bar short and the logo well scaled */
@media (max-width: 575.98px) {
  .hn-navbar-inner {
    min-height: 60px;
    gap: 0.5rem;
  }
  .hn-navbar-logo {
    height: 36px;
    max-width: 150px;
  }
}

/* --- Mobile Navigation Drawer --- */
.hn-mobile-menu {
  width: min(88vw, 360px);
  max-width: 100%;
  border-left: 1px solid var(--hn-border);
}

.hn-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--hn-border);
}

.hn-mobile-logo {
  height: 34px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

.hn-mobile-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--hn-border);
  background-color: #ffffff;
  color: var(--hn-navy);
  border-radius: 10px;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.hn-mobile-close:hover,
.hn-mobile-close:focus-visible {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}

.hn-mobile-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem 1.25rem 1.5rem;
}

.hn-mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hn-mobile-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  min-height: 44px;
  padding: 0.85rem 0.75rem;
  border-radius: 10px;
  color: var(--hn-text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.hn-mobile-link i {
  width: 1.25rem;
  flex: 0 0 auto;
  text-align: center;
  font-size: 1.1rem;
  color: var(--hn-blue);
}

.hn-mobile-link:hover,
.hn-mobile-link:focus-visible,
.hn-mobile-link.active {
  background-color: #f0f9ff;
  color: var(--hn-blue);
}

.hn-mobile-link-employer {
  margin-top: 0.35rem;
  background-color: #f8fafc;
  border: 1px solid var(--hn-border);
}

.hn-mobile-link-employer i {
  color: var(--hn-navy);
}

.hn-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hn-border);
}

.hn-mobile-actions .hn-btn-primary,
.hn-mobile-actions .hn-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  padding: 0 1rem;
  font-size: 0.95rem;
}

.hn-mobile-employer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem;
  color: var(--hn-text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
}

.hn-mobile-employer-link:hover {
  color: var(--hn-blue);
}

/* Keyboard focus states for the header */
.hn-nav-link:focus-visible,
.hn-mobile-link:focus-visible,
.hn-mobile-employer-link:focus-visible,
.hn-nav-actions > .hn-btn-employer:focus-visible,
.hn-nav-actions > .hn-btn-outline:focus-visible,
.hn-nav-actions > .hn-btn-primary:focus-visible,
.hn-mobile-toggle:focus-visible,
.hn-mobile-close:focus-visible {
  outline: 2px solid var(--hn-blue);
  outline-offset: 2px;
}

/* --- Role-aware account menu (signed-in users) --- */
.hn-account {
  position: relative;
  display: none;
}

.hn-account-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 40px;
  padding: 0 0.75rem 0 0.5rem;
  background-color: #ffffff;
  border: 1px solid var(--hn-border);
  border-radius: 999px;
  color: var(--hn-navy);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.hn-account-toggle:hover,
.hn-account-toggle:focus-visible {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}

.hn-account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--hn-blue);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.hn-account-name {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hn-account-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
}

.hn-account-dot-warning { background-color: #f59e0b; }
.hn-account-dot-danger { background-color: #dc2626; }

.hn-account-menu {
  min-width: 250px;
  border: 1px solid var(--hn-border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
  padding: 0.4rem;
}

.hn-account-menu-head {
  padding: 0.5rem 0.75rem 0.35rem;
}

.hn-account-item {
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--hn-text-primary);
  padding: 0.5rem 0.75rem;
}

.hn-account-item:hover,
.hn-account-item:focus {
  background-color: #f0f9ff;
  color: var(--hn-blue);
}

.hn-account-logout { color: #dc2626; }

.hn-account-logout:hover,
.hn-account-logout:focus {
  background-color: #fef2f2;
  color: #b91c1c;
}

@media (min-width: 992px) {
  .hn-account { display: block; }
}

/* Mobile role-aware status + logout */
.hn-mobile-status {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
}

.hn-mobile-status-warning {
  background-color: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.hn-mobile-status-danger {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.hn-mobile-logout {
  text-decoration: none;
}

/* --- Hero Section (Candidate) --- */
.hn-hero-section {
  position: relative;
  background-image: 
    linear-gradient(
      90deg, 
      rgba(15, 23, 42, 0.90) 0%, 
      rgba(15, 23, 42, 0.78) 42%, 
      rgba(15, 23, 42, 0.40) 72%, 
      rgba(15, 23, 42, 0.20) 100%
    ),
    url('../images/candidate-hero.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 5.5rem 0 5rem 0;
  min-height: 600px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--hn-border);
}

.hn-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  margin-bottom: 1.25rem;
}

.hn-hero-title {
  font-size: clamp(2.5rem, 4.2vw, 3.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hn-hero-title .hn-title-accent {
  color: #38bdf8;
  display: block;
}

.hn-hero-subtitle {
  font-size: 1.12rem;
  color: #cbd5e1;
  line-height: 1.65;
  max-width: 620px;
  margin-bottom: 1.75rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* --- Search Controls --- */
.hn-search-card {
  background: #ffffff;
  padding: 0.85rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.3), 0 0 1px rgba(0, 0, 0, 0.1);
  max-width: 100%;
}
  border-radius: 16px;
  border: 1px solid var(--hn-border);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  max-width: 960px;
  margin: 0 auto;
}

.hn-search-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.hn-search-icon {
  position: absolute;
  left: 1rem;
  color: var(--hn-text-muted);
  font-size: 1.1rem;
  pointer-events: none;
}

.hn-search-input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.8rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--hn-text-primary);
  background-color: #f8fafc;
  transition: all 0.2s ease;
}

.hn-search-input:focus {
  background-color: #ffffff;
  border-color: var(--hn-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.hn-search-btn {
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  border-radius: 10px;
}

.hn-search-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.hn-chip-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: #cbd5e1;
}

.hn-chip {
  font-size: 0.82rem;
  font-weight: 500;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.hn-chip:hover {
  background-color: rgba(255, 255, 255, 0.28);
  border-color: #38bdf8;
  color: #38bdf8;
}

/* --- Classification & Category Cards --- */
.hn-category-card {
  background: #ffffff;
  border: 1px solid var(--hn-border);
  border-radius: 12px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--hn-text-primary);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.2s ease;
}

.hn-category-card:hover {
  border-color: var(--hn-blue);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.hn-category-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: #f0f9ff;
  color: var(--hn-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 0.85rem;
}

.hn-category-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--hn-navy);
  margin-bottom: 0.25rem;
}

.hn-category-count {
  font-size: 0.82rem;
  color: var(--hn-text-muted);
}

/* --- Top Australian Cities Cards --- */
.hn-city-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  height: 220px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hn-city-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.15);
}

.hn-city-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hn-city-card:hover .hn-city-img {
  transform: scale(1.06);
}

.hn-city-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: #ffffff;
}

.hn-city-name {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.15rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.hn-city-badge {
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border-radius: 20px;
  padding: 0.2rem 0.65rem;
  display: inline-block;
  width: fit-content;
}

/* --- Job Cards --- */
.hn-job-card {
  background: #ffffff;
  border: 1px solid var(--hn-border);
  border-radius: 14px;
  padding: 1.35rem;
  margin-bottom: 1rem;
  text-decoration: none;
  display: block;
  transition: all 0.2s ease;
  position: relative;
}

.hn-job-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.hn-job-card-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--hn-navy);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.hn-job-card-company {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--hn-blue);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.hn-job-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
}

.hn-meta-item {
  color: var(--hn-text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.hn-salary-tag {
  background-color: var(--hn-success-bg);
  color: #065f46;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.82rem;
  border: 1px solid #a7f3d0;
}

.hn-badge-tag {
  background-color: #f1f5f9;
  color: var(--hn-text-secondary);
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
}

.hn-job-desc-snippet {
  font-size: 0.9rem;
  color: var(--hn-text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.hn-job-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--hn-text-muted);
}

.hn-save-btn {
  background: transparent;
  border: none;
  color: var(--hn-text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  transition: color 0.15s ease;
}

.hn-save-btn:hover {
  color: var(--hn-danger);
}

.hn-save-btn.saved {
  color: var(--hn-danger);
}

/* --- Filter Panel --- */
.hn-filter-card {
  background: #ffffff;
  border: 1px solid var(--hn-border);
  border-radius: 14px;
  padding: 1.25rem;
}

.hn-filter-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hn-navy);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--hn-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hn-filter-section {
  margin-bottom: 1.25rem;
}

.hn-filter-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--hn-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.6rem;
}

.hn-form-check {
  margin-bottom: 0.4rem;
}

.hn-form-check-label {
  font-size: 0.88rem;
  color: var(--hn-text-secondary);
  font-weight: 500;
  cursor: pointer;
}

/* --- Details Page --- */
.hn-detail-header-card {
  background: #ffffff;
  border: 1px solid var(--hn-border);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.hn-detail-body-card {
  background: #ffffff;
  border: 1px solid var(--hn-border);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.hn-detail-sidebar-card {
  background: #ffffff;
  border: 1px solid var(--hn-border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* --- Auth Cards --- */
.hn-auth-wrapper {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
}

.hn-auth-card {
  background: #ffffff;
  border: 1px solid var(--hn-border);
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.hn-auth-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--hn-navy);
  margin-bottom: 0.35rem;
}

.hn-auth-subtitle {
  font-size: 0.92rem;
  color: var(--hn-text-secondary);
  margin-bottom: 1.75rem;
}

.hn-form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--hn-navy);
  margin-bottom: 0.4rem;
}

.hn-form-control {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--hn-border);
  font-size: 0.95rem;
}

.hn-form-control:focus {
  border-color: var(--hn-blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* --- Employer Landing --- */
.hn-employer-hero {
  position: relative;
  background-image: 
    linear-gradient(
      90deg, 
      rgba(15, 23, 42, 0.90) 0%, 
      rgba(15, 23, 42, 0.80) 42%, 
      rgba(15, 23, 42, 0.40) 72%, 
      rgba(15, 23, 42, 0.20) 100%
    ),
    url('../images/employer-hero.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 5.5rem 0 5rem 0;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hn-employer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hn-employer-hero-title {
  font-size: clamp(2.5rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hn-employer-hero-title .hn-title-accent {
  color: #38bdf8;
  display: block;
}

.hn-employer-hero-subtitle {
  font-size: 1.12rem;
  color: #cbd5e1;
  line-height: 1.65;
  max-width: 580px;
  margin-bottom: 2rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hn-btn-employer-primary {
  background-color: var(--hn-blue);
  border: 1px solid var(--hn-blue);
  color: #ffffff !important;
  font-weight: 700;
  padding: 0.85rem 1.65rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.hn-btn-employer-primary:hover {
  background-color: var(--hn-blue-hover);
  border-color: var(--hn-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.5);
  color: #ffffff !important;
}

.hn-btn-employer-secondary {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: #ffffff !important;
  font-weight: 700;
  padding: 0.85rem 1.65rem;
  border-radius: 12px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.hn-btn-employer-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
  transform: translateY(-2px);
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hn-employer-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: #e2e8f0;
}

/* Floating Recruiter Workspace Card */
.hn-recruiter-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hn-recruiter-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.hn-recruiter-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.hn-active-match-badge {
  background-color: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hn-live-dot {
  width: 7px;
  height: 7px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.hn-match-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.85rem;
  transition: all 0.2s ease;
}

.hn-match-item:hover {
  background: #f0f9ff;
  border-color: #bae6fd;
}

.hn-match-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--hn-navy);
}

.hn-match-candidate {
  font-size: 0.78rem;
  color: var(--hn-text-secondary);
  margin-top: 0.2rem;
}

.hn-match-progress-wrap {
  height: 6px;
  background-color: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 0.55rem;
}

.hn-match-progress-bar {
  height: 100%;
  border-radius: 10px;
  transition: width 0.6s ease;
}

/* Stat Cards */
.hn-stat-card {
  background: #ffffff;
  border: 1px solid var(--hn-border);
  border-radius: 16px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
  transition: all 0.25s ease;
}

.hn-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  border-color: #cbd5e1;
}

.hn-stat-number {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--hn-blue);
  line-height: 1.1;
  margin-bottom: 0.35rem;
  letter-spacing: -0.5px;
}

.hn-stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--hn-text-secondary);
  line-height: 1.3;
}

/* --- Footer --- */
.hn-footer {
  background-color: var(--hn-navy);
  color: #cbd5e1;
  padding: 4rem 0 2rem 0;
  margin-top: auto;
  border-top: 1px solid #1e293b;
}

.hn-footer-heading {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.15rem;
  letter-spacing: 0.5px;
}

.hn-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hn-footer-links li {
  margin-bottom: 0.6rem;
}

.hn-footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.15s ease;
}

.hn-footer-links a:hover {
  color: #38bdf8;
}

.hn-footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1.5rem;
  margin-top: 2.5rem;
  font-size: 0.82rem;
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .hn-hero-section {
    background-image: 
      linear-gradient(
        180deg, 
        rgba(15, 23, 42, 0.92) 0%, 
        rgba(15, 23, 42, 0.82) 50%, 
        rgba(15, 23, 42, 0.72) 100%
      ),
      url('../images/candidate-hero.webp');
    background-position: center center;
    padding: 4rem 0 3.5rem 0;
    min-height: auto;
  }
  .hn-hero-title {
    font-size: 2.35rem;
  }
  .hn-employer-hero {
    background-image: 
      linear-gradient(
        180deg, 
        rgba(15, 23, 42, 0.90) 0%, 
        rgba(15, 23, 42, 0.80) 50%, 
        rgba(15, 23, 42, 0.70) 100%
      ),
      url('../images/employer-hero.jpg');
    background-position: center center;
    padding: 4rem 0 3.5rem 0;
    min-height: auto;
  }
  .hn-employer-hero-title {
    font-size: 2.35rem;
  }
  .hn-recruiter-card {
    margin-top: 1rem;
  }
}

@media (max-width: 576px) {
  .hn-hero-title {
    font-size: 2rem;
  }
  .hn-employer-hero-title {
    font-size: 2rem;
  }
  .hn-search-card {
    padding: 0.65rem;
  }
  .hn-recruiter-card {
    padding: 1.15rem;
  }
  .hn-btn-employer-primary,
  .hn-btn-employer-secondary {
    width: 100%;
  }
}

/* ==========================================================================
   CANDIDATE AUTH MODAL & SEEK-INSPIRED ONBOARDING WIZARD STYLES
   ========================================================================== */
.hn-auth-modal-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background-color: #ffffff;
}

.hn-modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 10;
  padding: 0.5rem;
}

.hn-auth-icon-badge {
  width: 54px;
  height: 54px;
  background-color: #e0f2fe;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.hn-success-badge {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
}

.hn-btn-social-auth {
  background-color: #ffffff;
  border: 1.5px solid #e2e8f0;
  color: #1e293b;
  border-radius: 12px;
  font-size: 0.96rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.hn-btn-social-auth:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.hn-btn-apple {
  background-color: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.hn-btn-apple:hover {
  background-color: #1e293b;
  border-color: #1e293b;
  color: #ffffff;
}

.hn-auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 0.5rem 0;
  color: #94a3b8;
  font-size: 0.85rem;
}

.hn-auth-divider::before,
.hn-auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.hn-auth-divider span {
  padding: 0 0.75rem;
}

.hn-otp-input {
  width: 46px;
  height: 54px;
  border-radius: 12px;
  border: 2px solid #cbd5e1;
  transition: border-color 0.2s ease;
}

.hn-otp-input:focus {
  border-color: var(--hn-blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.hn-choice-card {
  transition: all 0.2s ease;
  background-color: #ffffff;
}

.hn-choice-card:hover {
  border-color: var(--hn-blue) !important;
  background-color: #f0f9ff;
}

.hn-choice-card:has(input:checked) {
  border-color: var(--hn-blue) !important;
  background-color: #f0f9ff;
  box-shadow: 0 0 0 1px var(--hn-blue);
}

.cursor-pointer {
  cursor: pointer;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hover-primary:hover {
  color: var(--hn-blue) !important;
}

/* ==========================================================================
   MOBILE RESPONSIVE OPTIMIZATION — Android + iOS
   --------------------------------------------------------------------------
   Appended after the base design system so these rules win on small screens.
   Desktop / laptop layouts (>= 992px) are intentionally left unchanged.
   ========================================================================== */

/* 1. Global viewport, overflow & media safety ------------------------------- */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.hirenest-body {
  /* Prevent horizontal overflow site-wide. `clip` does not create a scroll
     container, so the sticky navbar keeps working; `hidden` is the fallback. */
  overflow-x: hidden;
  overflow-x: clip;
  overflow-wrap: break-word;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Low-specificity element rules so component classes (e.g. .hn-city-img,
   .hn-navbar-logo) keep full control of their own dimensions. */
img,
svg,
video {
  max-width: 100%;
  height: auto;
}

/* iOS / Android notch, rounded corners & home-indicator safe areas */
.hn-navbar-inner {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.hn-footer {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.hn-mobile-header {
  padding-left: calc(1.25rem + env(safe-area-inset-left));
  padding-right: calc(1.25rem + env(safe-area-inset-right));
}

.hn-mobile-body {
  padding-left: calc(1.25rem + env(safe-area-inset-left));
  padding-right: calc(1.25rem + env(safe-area-inset-right));
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
}

/* 2. Touch-friendly controls ------------------------------------------------ */
.hn-mobile-toggle,
.hn-mobile-close {
  width: 44px;
  height: 44px;
}

/* 3. Tablets & phones (<= 991px) ------------------------------------------- */
@media (max-width: 991.98px) {
  .hn-hero-section,
  .hn-employer-hero {
    min-height: auto;
  }

  .hn-recruiter-card {
    margin-top: 0.5rem;
  }

  /* Comfortable tap targets for every non-compact button */
  body.hirenest-body .btn:not(.btn-sm):not(.btn-link) {
    min-height: 44px;
  }
  body.hirenest-body .btn-sm {
    min-height: 36px;
  }
}

/* 4. Phones (<= 767px) ------------------------------------------------------ */
@media (max-width: 767.98px) {
  /* Inputs must be >= 16px to stop iOS Safari auto-zooming on focus */
  body.hirenest-body input,
  body.hirenest-body select,
  body.hirenest-body textarea,
  .hn-form-control,
  .hn-search-input {
    font-size: 16px;
  }

  .hn-btn-primary,
  .hn-btn-outline,
  .hn-search-btn {
    min-height: 44px;
  }

  .hn-form-control {
    min-height: 46px;
  }

  /* Hero copy wraps instead of overflowing */
  .hn-hero-badge,
  .hn-employer-badge {
    flex-wrap: wrap;
    white-space: normal;
    max-width: 100%;
    line-height: 1.35;
  }

  .hn-hero-subtitle,
  .hn-employer-hero-subtitle {
    font-size: 1.02rem;
    line-height: 1.6;
  }

  /* Cards */
  .hn-category-card {
    padding: 1.1rem;
  }

  .hn-job-card {
    padding: 1.15rem;
  }

  .hn-job-card-title {
    font-size: 1.06rem;
  }

  .hn-job-meta-row {
    gap: 0.5rem;
    font-size: 0.82rem;
  }

  .hn-job-footer {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .hn-job-footer > div {
    width: 100%;
  }

  .hn-job-footer > div .btn {
    flex: 1 1 0;
  }

  /* Detail pages */
  .hn-detail-header-card,
  .hn-detail-body-card {
    padding: 1.25rem;
  }

  .hn-detail-sidebar-card {
    padding: 1.15rem;
  }

  .hn-detail-header-card .d-flex.justify-content-between.align-items-start {
    flex-wrap: wrap;
  }

  /* Auth pages */
  .hn-auth-wrapper {
    padding: 1.5rem 1rem;
    min-height: auto;
  }

  .hn-auth-card {
    padding: 1.5rem 1.25rem;
  }

  .hn-auth-title {
    font-size: 1.45rem;
  }

  /* Onboarding wizard */
  .hn-onboarding-head {
    padding: 1.25rem 1.25rem 1rem;
  }

  .hn-onboarding-body {
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .hn-upload-zone {
    padding: 1.1rem;
  }

  /* Footer */
  .hn-footer {
    padding-top: 2.75rem;
    padding-bottom: 1.75rem;
  }

  .hn-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
  }

  /* Tables scroll inside their wrapper instead of breaking the page */
  .table-responsive {
    -webkit-overflow-scrolling: touch;
  }
}

/* 5. Small phones (<= 575px, incl. 320 / 360 / 375 / 390 / 414) ------------- */
@media (max-width: 575.98px) {
  .hn-navbar-inner {
    min-height: 56px;
    gap: 0.5rem;
  }

  .hn-navbar-logo {
    height: 34px;
    max-width: 140px;
  }

  .hn-mobile-logo {
    height: 30px;
    max-width: 140px;
  }

  .hn-hero-section {
    padding: 3rem 0 2.75rem 0;
  }

  .hn-employer-hero {
    padding: 3rem 0 2.75rem 0;
  }

  .hn-hero-title,
  .hn-employer-hero-title {
    font-size: 1.9rem;
    letter-spacing: -0.02em;
  }

  .hn-search-card {
    padding: 0.6rem;
    border-radius: 14px;
  }

  .hn-search-btn {
    padding: 0.8rem 1rem;
    font-size: 0.98rem;
  }

  .hn-chip {
    font-size: 0.78rem;
    padding: 0.3rem 0.7rem;
  }

  .hn-chip-label {
    width: 100%;
  }

  .hn-city-card {
    height: 190px;
  }

  .hn-city-name {
    font-size: 1.2rem;
  }

  .hn-recruiter-card {
    padding: 1.1rem;
  }

  .hn-stat-card {
    padding: 1.35rem 1rem;
  }

  .hn-employer-trust-item {
    font-size: 0.84rem;
  }
}

/* 6. Very small phones (<= 360px, e.g. 320px) ------------------------------- */
@media (max-width: 360px) {
  .hn-navbar-logo {
    height: 30px;
    max-width: 118px;
  }

  .hn-hero-title,
  .hn-employer-hero-title {
    font-size: 1.7rem;
  }

  .hn-hero-badge,
  .hn-employer-badge {
    font-size: 0.76rem;
    padding: 0.35rem 0.7rem;
  }

  .hn-city-card {
    height: 170px;
  }

  .hn-category-card,
  .hn-job-card {
    padding: 1rem;
  }

  .hn-btn-employer-primary,
  .hn-btn-employer-secondary {
    padding: 0.75rem 1rem;
    font-size: 0.92rem;
  }
}

/* 7. Landscape phones (short viewports) ------------------------------------ */
@media (max-height: 480px) and (orientation: landscape) {
  .hn-hero-section,
  .hn-employer-hero {
    padding: 2rem 0 2rem 0;
  }

  .hn-hero-title,
  .hn-employer-hero-title {
    font-size: 1.8rem;
  }
}

