/* =============================================
   DESIGN TOKENS (from Figma)
   ============================================= */
:root {
  --primary:            #036ae5;
  --primary-hover:      #0352b5;
  --color-dark-1:       #101624;
  --color-dark-2:       #18191c;
  --color-dark-3:       #0e315a;
  --color-gray-1:       #565c69;
  --color-gray-2:       #7e8494;
  --color-gray-3:       #bdc0ce;
  --color-gray-4:       #e5e7ef;
  --color-gray-5:       #f6f7fc;
  --positive:           #47bd5f;
  --positive-light:     #e6f7e4;
  --nav-active-bg:      #d3def3;
  --nav-active-color:   #172b8a;
  --nav-inactive-color: #3e4878;
  --white:              #ffffff;
  --font-family:        'Be Vietnam Pro', sans-serif;

  /* layout */
  --side-padding: clamp(16px, 6.94vw, 100px);
  --header-h:     60px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-family);
  background: #eef0f6;
  color: var(--color-dark-1);
}

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

/* =============================================
   WRAPPER
   ============================================= */
.career-screen {
  width: 100%;
  min-height: 100vh;
  background: var(--white);
  overflow-x: hidden;
  padding-top: var(--header-h); /* Offset for fixed header */
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px; /* 16px padding for tablet/mobile as per Figma 744px */
}

@media (min-width: 1280px) {
  .container {
    padding: 0;
  }
}

/* =============================================
   HEADER
   ============================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  gap: 16px;
}



/* Logo */
.header-logo { flex-shrink: 0; display: flex; align-items: center; }
.header-logo img {
  width: clamp(80px, 7.57vw, 109px);
  height: auto;
  max-height: 40px;
  object-fit: contain;
  display: block;
}

/* ─── Desktop primary nav (centered absolutely) ─── */
.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2.22vw, 32px);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-item {
  font-size: clamp(12px, 0.97vw, 14px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--nav-inactive-color);
  opacity: 0.4;
  padding: 7px clamp(10px, 1.39vw, 20px);
  border-radius: 20px;
  white-space: nowrap;
  transition: background .2s, opacity .2s;
}

.nav-item.active {
  background: var(--nav-active-bg);
  color: var(--nav-active-color);
  font-weight: 700;
  opacity: 1;
}

.nav-item:not(.active):hover {
  background: #eef1fa;
  opacity: 0.75;
}

/* ─── Header right actions ─── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Contact Me button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 10px clamp(12px, 1.11vw, 16px);
  border-radius: 44px;
  font-weight: 600;
  font-size: clamp(12px, 0.97vw, 14px);
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  box-shadow:
    0 1px 2px rgba(8,8,8,.2),
    0 4px 4px rgba(8,8,8,.08),
    inset 0 1px 1px rgba(255,255,255,.2),
    inset 0 6px 12px rgba(255,255,255,.12);
  transition: background .2s, transform .15s;
}
.btn-primary:hover  { background: var(--primary-hover); }
.btn-primary:active { transform: scale(.97); }

/* ─── Hamburger (hidden on desktop) ─── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 20px;
  height: 20px;
  border: none;
  background: transparent;
  padding: 4px;
  border-radius: 8px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-dark-1);
  transform-origin: center;
  transition: transform .25s, opacity .25s, width .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Mobile nav drawer ─── */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 190;
  opacity: 0;
  transition: opacity .25s;
}
.mobile-nav-overlay.open { opacity: 1; }

.mobile-nav {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100dvh;
  background: var(--white);
  z-index: 195;
  padding: calc(var(--header-h) + 16px) 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: -4px 0 24px rgba(0,0,0,.12);
  transition: right .28s cubic-bezier(.4,0,.2,1);
}
.mobile-nav.open { right: 0; }

.mobile-nav-item {
  font-size: 15px;
  font-weight: 600;
  color: var(--nav-inactive-color);
  padding: 10px 16px;
  border-radius: 10px;
  opacity: 0.55;
  transition: background .2s, opacity .2s;
}
.mobile-nav-item.active { background: var(--nav-active-bg); color: var(--nav-active-color); opacity: 1; }
.mobile-nav-item:hover   { background: #f0f3fc; opacity: .8; }

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 202px;
  background: url('assets/Hero Section.svg') center/cover no-repeat;
  display: flex;
  align-items: center;
}

.hero-section .container {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  height: 202px;
}

/* Recruiter intro */
.recruiter-intro {
  display: flex;
  align-items: flex-start;
  gap: clamp(10px, 1.11vw, 16px);
  width: 100%;
  max-width: 560px;
  flex-shrink: 0;
  z-index: 10;
  position: relative;
}

.employers-logo {
  width:  94px;
  height: 94px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

.employers-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.recruiter-info {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 0.9vw, 13px);
  flex: 1;
}

.recruiter-info-top { display: flex; flex-direction: column; gap: 8px; }

.recruiter-name {
  font-size: clamp(18px, 1.81vw, 26px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-dark-3);
  letter-spacing: -0.5px;
}

.recruiter-desc {
  font-size: clamp(12px, 0.97vw, 14px);
  line-height: 1.5;
  color: var(--color-dark-3);
}

.recruiter-desc strong { font-weight: 700; }

/* Social links */
.social-links { display: flex; align-items: center; gap: clamp(10px, 1.11vw, 16px); flex-wrap: wrap; }

.social-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.social-icon:hover {
  transform: translateY(-2px);
}
.social-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Hero Visual – hidden, background SVG contains the illustration */
.hero-visual { display: none; }

/* =============================================
   JOBS SECTION
   ============================================= */
.jobs-section {
  width: 100%;
  background: var(--white);
  position: relative;
  z-index: 10;
  padding: 30px 0 80px;
}

.jobs-section .container {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

/* Mobile filter toggle button (hidden on desktop) */
.filter-toggle-btn {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--color-gray-4);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark-1);
  margin-bottom: 16px;
  width: 100%;
  justify-content: center;
}

/* =============================================
   FILTER SIDEBAR
   ============================================= */
.filter-sidebar {
  width: clamp(220px, 19.86vw, 286px);
  flex-shrink: 0;
  border: 1px solid var(--color-gray-4);
  border-radius: 8px;
  padding: 16px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: flex-start;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

/* Sidebar header (only shown on mobile) */
.sidebar-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-gray-4);
}

.sidebar-close {
  width: 28px; height: 28px;
  border: none;
  background: var(--color-gray-5);
  border-radius: 6px;
  font-size: 14px;
  color: var(--color-gray-1);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Search input */
.search-input-wrap {
  width: 100%;
  height: 46px;
  border: 1px solid var(--color-gray-3);
  border-radius: 64px;
  background: var(--white);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  transition: border-color .2s;
}
.search-input-wrap:focus-within { border-color: var(--primary); }

.search-icon-wrap { width: 22px; height: 22px; flex-shrink: 0; }
.search-icon-wrap img { width: 100%; height: 100%; object-fit: contain; }

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--color-dark-1);
  background: transparent;
}
.search-input::placeholder { color: var(--color-gray-3); }

/* Divider */
.filter-divider { width: 100%; height: 1px; background: var(--color-gray-4); flex-shrink: 0; }

/* Filter group */
.filter-group { display: flex; flex-direction: column; gap: 12px; }

.filter-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-dark-1);
}

/* Dropdown */
.dropdown {
  width: 100%;
  height: 40px;
  background: var(--color-gray-5);
  border: 1px solid var(--color-gray-4);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 8px;
  transition: border-color .2s;
}
.dropdown:hover { border-color: var(--color-gray-3); }

.dropdown-text { font-size: 14px; color: var(--color-dark-1); }
.chevron-icon  { width: 16px; height: 16px; flex-shrink: 0; }

/* Dropdown options list */
.dropdown        { position: relative; }
.filter-modal-dropdown { position: relative; }

.dropdown-options {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--color-gray-4);
  border-radius: 8px;
  z-index: 50;
  box-shadow: 0 4px 16px rgba(0,0,0,.10);
  overflow: hidden;
}
.dropdown-options.open { display: block; }

.dropdown-option {
  padding: 10px 12px;
  font-size: 14px;
  color: var(--color-dark-1);
  cursor: pointer;
  transition: background .15s;
}
.dropdown-option:hover  { background: var(--color-gray-5); }
.dropdown-option.active { color: var(--primary); font-weight: 600; }

/* Checkbox list */
.checkbox-list { display: flex; flex-direction: column; gap: 10px; }

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--color-dark-1);
  cursor: pointer;
  user-select: none;
  padding: 2px 0;
}

.checkbox-item input[type="checkbox"] { display: none; }

.checkbox-custom {
  width: 20px; height: 20px;
  border: 1.5px solid var(--color-gray-3);
  border-radius: 6px;
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: background .15s, border-color .15s;
}
.checkbox-item input:checked + .checkbox-custom {
  background: var(--primary);
  border-color: var(--primary);
}
.checkbox-item input:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  left: 6px; top: 3px;
  width: 5px; height: 9px;
  border: 2px solid var(--white);
  border-top: none; border-left: none;
  transform: rotate(45deg);
}

/* =============================================
   MOBILE FILTER BAR (hidden by default, shown on mobile)
   ============================================= */
.mobile-filter-bar {
  display: none;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.filter-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--color-gray-4);
  border: none;
  border-radius: 24px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-dark-1);
  width: 100%;
}
.filter-search-btn:hover { background: #d1d4e0; }

/* =============================================
   JOBS GRID
   ============================================= */
.jobs-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 1.67vw, 24px);
  align-content: start;
  min-width: 0;
}

/* =============================================
   JOB CARD
   ============================================= */
.job-card {
  background: var(--white);
  border: 1px solid var(--color-gray-4);
  border-radius: 8px;
  padding: clamp(16px, 1.67vw, 24px);
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.39vw, 20px);
  min-height: 160px;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  transition: box-shadow .2s, transform .2s;
}

.job-card:hover {
  box-shadow: 0 8px 28px rgba(3,106,229,.09);
  transform: translateY(-2px);
}

.job-heading  { display: flex; flex-direction: column; gap: 8px; }
.job-title-row{ display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

.job-title {
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-dark-2);
}

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

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-outline  { border: 1px solid var(--color-gray-1); color: var(--color-gray-1); }
.badge-success  { background: var(--positive-light); color: var(--positive); }
.badge-warning  { background: #fff8e7; color: #f9b217; }

.salary-text   { font-size: 14px; color: var(--color-gray-2); white-space: nowrap; }

.job-company   { display: flex; align-items: center; gap: 12px; }

.company-logo  {
  width: 48px; height: 48px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 12px;
  background-image: linear-gradient(51.14deg, rgb(180,219,255) 49.84%, rgba(180,219,255,0) 150.9%);
}
.company-logo img { width: 22px; height: 30px; object-fit: contain; }

.company-info  { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.company-name  { font-size: 16px; color: var(--color-dark-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.company-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--color-gray-2);
}
.pin-icon { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }


/* =============================================
   FILTER MODAL (mobile popup)
   ============================================= */
.filter-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.filter-modal-overlay.open { display: flex; }

.filter-modal {
  background: var(--white);
  border-radius: 8px;
  border: 1px solid #e6e8ec;
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.16);
  width: 343px;
  max-width: 100%;
  max-height: 90dvh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.filter-modal-header {
  padding: 16px 9px 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.filter-modal-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: #101624;
  letter-spacing: -0.2px;
}

.filter-modal-close {
  width: 20px;
  height: 20px;
  border: none;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.filter-modal-body {
  padding: 0 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

.filter-modal-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-modal-label {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-dark-1);
}

.filter-modal-dropdown {
  width: 100%;
  height: 40px;
  background: var(--color-gray-5);
  border: 1px solid #e5e7ef;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
}

.filter-modal-footer {
  padding: 0 16px 16px;
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.filter-modal-btn {
  flex: 1;
  border: none;
  border-radius: 4px;
  padding: 10px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: background .2s;
}

.filter-modal-cancel {
  background: #e5e7ef;
  color: #101624;
}
.filter-modal-cancel:hover { background: #d1d4e0; }

.filter-modal-submit {
  background: var(--primary);
  color: var(--white);
}
.filter-modal-submit:hover { background: var(--primary-hover); }

/* ===================================================
   RESPONSIVE: TABLET  ≤ 1024px
   =================================================== */
@media (max-width: 1024px) {
  /* header */
  .header { padding: 0 20px; }

  /* show mobile nav overlay in DOM */
  .mobile-nav-overlay { display: block; pointer-events: none; }
  .mobile-nav-overlay.open { pointer-events: auto; }

  /* hero */
  .hero-section {
    min-height: 136px;
    height: 136px;
    background: url('assets/Hero Section - Tablet.svg') center/cover no-repeat;
    padding: 0;
  }

  .hero-section .container {
    min-height: 136px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .recruiter-name { font-size: 16px; }
  .recruiter-desc { font-size: 12px; line-height: 1.3; }

  .social-links { gap: 10px; }
  .social-icon { width: 22px; height: 22px; border-radius: 8px; }

  /* jobs */
  .jobs-section { padding-left: 20px; padding-right: 20px; }

  /* sidebar: sticky on tablet at smaller width */
  .filter-sidebar { width: 173px; }
}

@media (max-width: 743px) {
  /* hide desktop nav, show hamburger */
  .primary-nav { display: none; }
  .hamburger   { display: flex; }
}

/* ===================================================
   RESPONSIVE: MOBILE  ≤ 740px
   =================================================== */
@media (max-width: 740px) {

  /* Header: hamburger left, logo hidden, Contact Me right */
  .header { height: 56px; padding: 10px 16px; }
  :root   { --header-h: 56px; }
  .header-logo { display: none; }
  .btn-primary { display: flex; padding: 6px 10px; font-size: 12px; }

  /* Hero: gradient background (not SVG) */
  .hero-section {
    height: auto;
    min-height: auto;
    background:
      linear-gradient(48.32deg, rgba(3, 106, 229, 0) 57.23%, rgba(3, 106, 229, 0.7) 109.74%),
      linear-gradient(164.28deg, rgb(172, 193, 247) 0%, rgb(255, 255, 255) 88.59%);
    padding: 18px 0;
  }
  .hero-section .container {
    height: auto;
    min-height: unset;
  }

  .recruiter-intro { max-width: 100%; }
  .hero-visual { display: none; }

  /* Jobs section */
  .jobs-section { padding: 19px 0 32px; }
  .jobs-section .container {
    flex-direction: column;
    gap: 19px;
    align-items: stretch;
  }

  /* Show mobile filter bar */
  .mobile-filter-bar { display: flex; }

  /* Sidebar becomes a slide-in panel */
  .filter-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(320px, 90vw);
    height: 100dvh;
    border-radius: 0;
    border: none;
    box-shadow: 4px 0 24px rgba(0,0,0,.14);
    z-index: 210;
    overflow-y: auto;
    transform: translateX(-110%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    padding-top: 16px;
  }
  .filter-sidebar.open { transform: translateX(0); }
  .sidebar-header { display: flex; }

  /* Grid: single column */
  .jobs-grid { grid-template-columns: 1fr; margin-top: 0; gap: 16px; }

  /* Cards */
  .job-card { min-height: auto; height: auto; padding: 16px; gap: 20px; }
  .job-title { font-size: 16px; white-space: normal; }
  .company-name { font-size: 14px; white-space: normal; }
}

/* ===================================================
   RESPONSIVE: SMALL MOBILE  ≤ 480px  (375px target)
   =================================================== */
@media (max-width: 480px) {
  /* Hero: exact Figma 375px specs */
  .employers-logo { width: 64px; height: 64px; }
  .recruiter-name { font-size: 16px; }
  .social-links { gap: 10px; }
  .social-icon  { width: 24px; height: 24px; border-radius: 8px; }

  .filter-sidebar { width: min(300px, 95vw); }
  .salary-text { font-size: 14px; }
}

/* ===================================================
   RESPONSIVE: WIDE SCREENS  ≥ 1440px
   =================================================== */
@media (min-width: 1440px) {
  :root { --side-padding: 100px; }
}
