/* JobPortal design system — bold, colourful, animated. Still plain CSS,
   still one small file: no framework, one webfont, everything else is
   gradients/shapes/keyframes so pages stay fast. */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,600&family=Noto+Sans+Tamil:wght@400;600;700;800&display=swap');

:root {
  --ink: #150f3c;
  --ink-muted: #5c5977;
  --ink-faint: #918dae;
  --surface: #ffffff;
  --surface-alt: #f6f4fd;
  --surface-tint: #efebff;
  --border: #e6e2f7;

  --primary: #002f7f;
  --primary-dark: #00205b;
  --primary-tint: #e6eefc;

  /* Secondary Brand Color: vibrant golden-orange from the logo's "Velai" and star */
  --secondary: #fe7800;
  --secondary-dark: #e06900;
  --secondary-light: #ff9124;
  --secondary-tint: #fff5eb;
  --secondary-gradient: linear-gradient(135deg, #ff8c00 0%, #fe6500 100%);
  --shadow-secondary: 0 4px 14px rgba(254, 120, 0, 0.42);

  --accent: #fe7800;
  --accent-dark: #e06900;
  --accent-tint: #fff5eb;
  --cyan: #17b6d4;
  --purple: #8b5cf6;
  --yellow: #ffc93c;

  --success: #1c9a6c;
  --success-tint: #e6f7f0;
  --warning: #c9820a;
  --danger: #e0435a;
  --danger-tint: #fdecec;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(21, 15, 60, 0.05), 0 2px 8px rgba(21, 15, 60, 0.05);
  --shadow: 0 4px 16px rgba(21, 15, 60, 0.08), 0 1px 3px rgba(21, 15, 60, 0.06);
  --shadow-lg: 0 20px 48px rgba(21, 15, 60, 0.16), 0 4px 12px rgba(21, 15, 60, 0.08);
  --shadow-primary: 0 10px 24px rgba(0, 47, 127, 0.28);
  --shadow-secondary: 0 4px 14px rgba(254, 120, 0, 0.42);
  --shadow-accent: 0 10px 24px rgba(254, 120, 0, 0.32);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--surface-alt);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

/* ---- Custom scrollbar ---- */
html {
  scrollbar-width: thin;
  scrollbar-color: #c3c3f5 var(--surface-alt);
}

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

::-webkit-scrollbar-track {
  background: var(--surface-alt);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #c3c3f5, #a9e0ec);
  border-radius: 999px;
  border: 2.5px solid var(--surface-alt);
  transition: background 200ms ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary-tint), #cdeef5);
}

.container {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 40px);
}

.container-wide {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: clamp(20px, 3.5vw, 64px) !important;
  padding-right: clamp(20px, 3.5vw, 64px) !important;
  box-sizing: border-box !important;
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: var(--primary);
  color: #fff;
}

/* ---- Scroll reveal ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 640ms var(--ease), transform 640ms var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-group]>* {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms var(--ease), transform 560ms var(--ease);
}

[data-reveal-group].is-visible>* {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-group].is-visible>*:nth-child(1) {
  transition-delay: 0ms;
}

[data-reveal-group].is-visible>*:nth-child(2) {
  transition-delay: 70ms;
}

[data-reveal-group].is-visible>*:nth-child(3) {
  transition-delay: 140ms;
}

[data-reveal-group].is-visible>*:nth-child(4) {
  transition-delay: 210ms;
}

[data-reveal-group].is-visible>*:nth-child(5) {
  transition-delay: 280ms;
}

[data-reveal-group].is-visible>*:nth-child(6) {
  transition-delay: 350ms;
}

[data-reveal-group].is-visible>*:nth-child(n+7) {
  transition-delay: 400ms;
}

/* ---- Header / nav ---- */
.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 2px 20px rgba(21, 15, 60, 0.06);
  transition: box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

.site-header.is-scrolled {
  border-color: var(--border);
  box-shadow: 0 4px 24px rgba(21, 15, 60, 0.1);
  background: rgba(255, 255, 255, 0.96);
}

.site-header .container {
  max-width: none;
  margin: 0;
  padding-left: max(24px, 5vw);
  padding-right: max(24px, 5vw);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.28rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex: none;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-primary);
  transition: transform 260ms var(--ease-spring);
}

.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.06);
}

.brand-mark svg {
  width: 18px;
  height: 18px;
}

.brand-logo {
  display: block;
  height: 75px;
  width: auto;
}

/* Laptop widths (1366 and similar) get a smaller header/logo than the big
   marketing-hero sizing used on wider desktop screens; --header-h keeps the
   hero/auth-split "fill remaining viewport" calcs in sync with whichever
   tier is active. */
:root {
  --header-h: 87px;
}

@media (min-width: 861px) and (max-width: 1366px) {
  :root {
    --header-h: 63px;
  }

  .header-row {
    height: 62px;
  }

  .brand-logo {
    height: 46px;
  }
}

/* Profile is a dense utility page, not the marketing hero — keep it compact
   at every width (not just the 1366 laptop tier) so the card always fits
   without scrolling and doesn't grow oversized on large monitors. */
.profile-page .field input,
.profile-page .field select,
.profile-page .field textarea {
  padding: 9px 12px;
  font-size: 0.88rem;
}

.profile-page .field label {
  font-size: 0.8rem;
  margin-bottom: 5px;
}

.profile-page .field {
  margin-bottom: 13px;
}

.profile-tabs-card {
  padding: 6px 20px 20px;
}

.profile-tab-btn {
  padding: 11px 14px;
  font-size: 0.85rem;
}

@media (max-width: 560px) {
  .brand-logo {
    height: 46px;
  }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
  font-size: 0.94rem;
}

.main-nav a:not(.btn):not(.btn-ghost) {
  color: var(--ink-muted);
  position: relative;
  padding: 6px 0;
}

.main-nav a:not(.btn):not(.btn-ghost):hover {
  color: var(--ink);
}

.main-nav a:not(.btn):not(.btn-ghost)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: right 220ms var(--ease);
}

.main-nav a:not(.btn):not(.btn-ghost):hover::after,
.main-nav a.is-active::after {
  right: 0;
}

.main-nav a.is-active {
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-links a svg {
  flex: none;
  opacity: 0.8;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-ghost {
  border: 1.5px solid var(--border);
  color: var(--ink) !important;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 700;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.btn-ghost:hover {
  border-color: var(--primary);
  background: var(--primary-tint);
  transform: translateY(-1px);
}

.site-header .btn-ghost {
  border-color: var(--primary);
  color: var(--primary) !important;
}

.site-header .btn-ghost:hover {
  border-color: var(--primary-dark);
  background: var(--primary-tint);
}

.credit-chip {
  background: linear-gradient(135deg, var(--primary-tint), #e4f8fb);
  color: var(--primary-dark);
  padding: 5px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
  border: 1px solid var(--primary-tint);
}

.nav-toggle {
  display: none;
}

@media (max-width: 860px) {
  :root {
    --header-h: 69px;
  }

  .header-row {
    height: 68px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: var(--surface);
  }

  .main-nav {
    position: fixed;
    inset: 68px 16px auto 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    gap: 14px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 200ms var(--ease), transform 200ms var(--ease);
  }

  .main-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links,
  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  .main-nav a:not(.btn):not(.btn-ghost)::after {
    display: none;
  }
}

/* ---- Layout basics ---- */
main {
  min-height: 60vh;
  overflow-x: clip;
}

.section {
  padding-top: 64px;
  padding-bottom: 64px;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  line-height: 1.12;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 6px;
}

h3 {
  font-weight: 700;
}

.muted {
  color: var(--ink-muted);
}

.faint {
  color: var(--ink-faint);
  font-size: 0.85rem;
}

/* ---- Tamil bilingual labels ---- */
:lang(ta),
.ta {
  font-family: "Noto Sans Tamil", "Plus Jakarta Sans", sans-serif;
}

.ta {
  display: inline-block;
  font-size: 0.76em;
  font-weight: 600;
  color: #022c78;
  margin-left: 6px;
}

.ta-block {
  display: block;
  font-size: 0.7em;
  font-weight: 600;
  color: #022c78;
  margin-top: 2px;
}

h1 .ta-lead,
.hero-tamil {
  display: block;
  font-size: 0.42em;
  font-weight: 700;
  color: #022c78;
  margin-top: 8px;
  letter-spacing: 0;
}

.eyebrow .ta {
  color: inherit;
  opacity: 0.85;
  margin-left: 4px;
}

.btn .ta,
.btn-ghost .ta,
.btn-secondary .ta,
.btn-accent .ta {
  color: inherit;
  opacity: 0.85;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--primary-dark);
  background: var(--primary-tint);
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.8s ease infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.35);
    opacity: 0.6;
  }
}

.text-gradient {
  background: linear-gradient(100deg, var(--primary) 10%, var(--accent) 60%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head {
  max-width: 620px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-head h2 {
  margin-bottom: 10px;
}

.squiggle {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  color: var(--accent);
  animation: squiggleSpin 3.2s ease-in-out infinite;
}

@keyframes squiggleSpin {

  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(18deg) scale(1.15);
  }
}

/* ---- Buttons / forms ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 180ms var(--ease-spring), box-shadow 220ms ease, background 180ms ease;
  box-shadow: var(--shadow-primary);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  background: var(--primary-dark);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(91, 79, 233, 0.34);
}

.btn:active {
  transform: translateY(0) scale(0.97);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.32) 48%, rgba(255, 255, 255, 0.32) 52%, transparent 70%);
  background-size: 220% 100%;
  background-position: 120% 0;
  transition: background-position 550ms var(--ease);
}

.btn:hover::after {
  background-position: -20% 0;
}

.btn-secondary::after {
  background: linear-gradient(115deg, transparent 30%, rgba(91, 79, 233, 0.1) 48%, rgba(91, 79, 233, 0.1) 52%, transparent 70%);
  background-size: 220% 100%;
  background-position: 120% 0;
}

.btn-secondary:hover::after {
  background-position: -20% 0;
}

.btn-accent {
  background: var(--accent);
  box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
  background: var(--accent-dark);
  box-shadow: 0 14px 30px rgba(255, 92, 57, 0.38);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--border);
  box-shadow: none;
}

.btn-secondary:hover {
  background: var(--surface-alt);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-danger {
  background: var(--danger);
  box-shadow: 0 10px 24px rgba(224, 67, 90, 0.28);
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.86rem;
  margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-tint);
}

.field-hint {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-top: 5px;
}

.field-error {
  font-size: 0.82rem;
  color: var(--danger);
  margin-top: 5px;
  font-weight: 600;
}

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

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 960px) {
  .form-row-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 580px) {
  .form-row-3 {
    grid-template-columns: 1fr;
  }
}

.form-row-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 990px) {
  .form-row-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .form-row-4 {
    grid-template-columns: 1fr;
  }
}

.field-group-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  margin: 20px 0 10px;
}

.field-locked {
  background: var(--surface-alt);
  color: var(--ink-muted);
  cursor: not-allowed;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 26px;
}

.alert {
  padding: 13px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.alert-error {
  background: var(--danger-tint);
  color: var(--danger);
}

.alert-success {
  background: var(--success-tint);
  color: var(--success);
}

/* ---- Job cards ---- */
.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.job-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 260ms var(--ease), box-shadow 260ms ease, border-color 260ms ease;
}

.job-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--cyan), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--ease);
}

.job-card:hover {
  transform: translateY(-6px) perspective(700px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.job-card:hover::before {
  transform: scaleX(1);
}

.job-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.job-avatar {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  transition: transform 320ms var(--ease);
}

.job-card:hover .job-avatar {
  transform: scale(1.1) rotate(-4deg);
}

.job-card h3 {
  margin: 0 0 4px;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.job-card .company {
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

.chip {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  background: var(--surface-alt);
  color: var(--ink-muted);
  border: 1px solid var(--border);
}

.chip-primary {
  background: var(--primary-tint);
  color: var(--primary-dark);
  border-color: transparent;
}

.chip-accent {
  background: var(--accent-tint);
  color: var(--accent-dark);
  border-color: transparent;
}

.chip-new {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-accent);
  animation: pop 400ms var(--ease-spring);
}

@keyframes pop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ---- Filters (inline bar, still used by narrow contexts) ---- */
.filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.filter-bar .field {
  margin: 0;
  flex: 1;
  min-width: 170px;
}

/* ---- Jobs listing: sidebar filter layout ---- */
.jobs-page-top {
  padding-top: 24px;
}

.jobs-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 900px) {
  .jobs-layout {
    grid-template-columns: 1fr;
  }
}

.jobs-title-card {
  background: linear-gradient(120deg, var(--surface-tint), var(--surface) 70%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin-bottom: 20px;
}

.jobs-title-card .eyebrow {
  margin-bottom: 10px;
}

.jobs-title-card h1 {
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  margin: 0 0 6px;
}

.jobs-title-card p.muted {
  margin: 0;
}

.profile-page {
  max-width: 1680px;
  padding: 24px 32px 0;
}

.profile-page h1 {
  font-size: 1.7rem;
}

.profile-tabs-card {
  padding: 8px 28px 28px;
}

.profile-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin: 0 -28px 24px;
  padding: 0 28px;
  flex-wrap: wrap;
}

.profile-tab-btn {
  padding: 14px 18px;
  border: none;
  background: none;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color 140ms ease, border-color 140ms ease;
}

.profile-tab-btn:hover {
  color: var(--ink);
}

.profile-tab-btn.is-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.resume-download-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.resume-upload-fallback {
  margin-top: 20px;
  color: var(--ink-muted);
}

.resume-upload-fallback summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
}

.form-row-5 {
  grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1300px) {
  .form-row-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .form-row-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .form-row-5 {
    grid-template-columns: 1fr;
  }
}

.span-2 {
  grid-column: span 2;
}

@media (max-width: 900px) {
  .span-2 {
    grid-column: span 1;
  }
}

.filter-sidebar {
  position: sticky;
  top: 90px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 900px) {
  .filter-sidebar {
    position: static;
  }
}

.filter-sidebar h2 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.filter-group {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.filter-group:first-of-type {
  padding-top: 16px;
}

.filter-group:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.filter-group h4 {
  margin: 0 0 12px;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

.range-wrap {
  padding: 4px 2px 0;
}

.range-value {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 0.82rem;
  color: #fff;
  background: var(--primary);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.range-wrap input[type="range"] {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-tint));
  outline: none;
}

.range-wrap input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--primary);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 160ms var(--ease-spring);
}

.range-wrap input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.range-wrap input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--primary);
  cursor: pointer;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--ink-faint);
  font-weight: 600;
  margin-top: 8px;
}

.option-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--ink-muted);
  font-weight: 600;
  transition: color 140ms ease;
}

.option-row:hover {
  color: var(--ink);
}

.option-row input {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  flex: none;
}

.option-row .opt-count {
  margin-left: auto;
  color: var(--ink-faint);
  font-weight: 700;
  font-size: 0.78rem;
}

.option-row input:checked~span {
  color: var(--ink);
  font-weight: 700;
}

@media (min-width: 861px) and (max-width: 1366px) {
  .jobs-page-top {
    padding-top: 8px;
  }

  .jobs-layout {
    grid-template-columns: 268px 1fr;
    gap: 20px;
  }

  .filter-sidebar {
    padding: 14px 16px;
    top: 64px;
  }

  .filter-sidebar h2 {
    font-size: 0.98rem;
    margin-bottom: 0;
  }

  .filter-sidebar .field {
    margin-bottom: 0;
  }

  .filter-sidebar .field input,
  .filter-sidebar .field select {
    padding: 7px 10px;
    font-size: 0.82rem;
  }

  .filter-group {
    padding: 8px 0;
  }

  .filter-group:first-of-type {
    padding-top: 6px;
  }

  .filter-group h4 {
    margin: 0 0 5px;
    font-size: 0.78rem;
  }

  .option-row {
    padding: 3px 0;
    font-size: 0.82rem;
  }

  .range-value {
    margin-bottom: 5px;
  }

  .range-labels {
    margin-top: 4px;
  }

  .jobs-title-card {
    padding: 12px 20px;
    margin-bottom: 10px;
  }

  .jobs-title-card .eyebrow {
    margin-bottom: 5px;
    padding: 4px 12px 4px 7px;
    font-size: 0.76rem;
  }

  .jobs-title-card h1 {
    font-size: 1.3rem;
    margin-bottom: 2px;
  }

  .jobs-title-card p.muted {
    font-size: 0.83rem;
  }
}

/* ---- Job rows (list-style cards used on the jobs listing page) ---- */
.job-row-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.job-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  color: inherit;
  transition: transform 220ms var(--ease), box-shadow 220ms ease, border-color 220ms ease;
}

.job-row:hover {
  transform: translateY(-3px) translateX(2px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  color: inherit;
}

.job-row-list .job-row {
  animation: rowIn 460ms var(--ease) both;
}

@keyframes rowIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.job-row-list .job-row:nth-child(1) {
  animation-delay: 0ms;
}

.job-row-list .job-row:nth-child(2) {
  animation-delay: 45ms;
}

.job-row-list .job-row:nth-child(3) {
  animation-delay: 90ms;
}

.job-row-list .job-row:nth-child(4) {
  animation-delay: 135ms;
}

.job-row-list .job-row:nth-child(5) {
  animation-delay: 180ms;
}

.job-row-list .job-row:nth-child(6) {
  animation-delay: 225ms;
}

.job-row-list .job-row:nth-child(n+7) {
  animation-delay: 260ms;
}

.job-row .row-icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
}

.job-row .row-body {
  flex: 1;
  min-width: 0;
}

.job-row h3 {
  margin: 0 0 2px;
  font-size: 1.04rem;
}

.job-row .company {
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 0.88rem;
}

.row-meta {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 6px 28px;
  margin-top: 12px;
}

@media (max-width: 560px) {
  .row-meta {
    grid-template-columns: 1fr;
  }
}

.row-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--ink-muted);
  font-weight: 600;
}

.row-meta-item .rm-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-alt);
  display: grid;
  place-items: center;
  flex: none;
  color: var(--ink-faint);
}

.row-chevron {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-faint);
  background: var(--surface-alt);
  transition: transform 220ms var(--ease), background 220ms ease, color 220ms ease;
}

.job-row:hover .row-chevron {
  background: var(--primary);
  color: #fff;
  transform: translateX(3px);
}

@media (max-width: 640px) {
  .row-chevron {
    display: none;
  }
}

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

#job-list.is-loading {
  opacity: 0.45;
  filter: grayscale(0.2);
  pointer-events: none;
  transition: opacity 180ms ease, filter 180ms ease;
}

/* ---- SEO link block (jobs by location / popular categories) ---- */
.seo-block {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.seo-block h2 {
  text-align: center;
  margin-bottom: 22px;
  font-size: 1.25rem;
}

.seo-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 24px;
  max-width: 980px;
  margin: 0 auto;
}

@media (max-width: 760px) {
  .seo-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

.seo-cols a {
  display: block;
  padding: 6px 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 140ms ease, transform 140ms ease;
}

.seo-cols a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

.seo-cols a.is-hidden {
  display: none;
}

.seo-more {
  display: block;
  margin: 18px auto 0;
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.seo-more svg {
  transition: transform 200ms ease;
}

.seo-more.is-open svg {
  transform: rotate(180deg);
}

.seo-section+.seo-section {
  margin-top: 36px;
}

/* ---- Job detail page ---- */
.job-detail-head {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: clip;
  padding: 34px 32px;
  background: radial-gradient(700px 260px at 90% -20%, var(--surface-tint), transparent 65%), var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 26px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.job-detail-head .job-avatar {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  font-size: 1.3rem;
}

.job-detail-head .jd-title {
  flex: 1;
  min-width: 220px;
}

.job-detail-head h1 {
  margin-bottom: 6px;
}

.job-detail-head .jd-company {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink-muted);
}

.job-detail-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 860px) {
  .job-detail-layout {
    grid-template-columns: 1fr;
  }
}

.apply-col {
  position: sticky;
  top: 90px;
}

@media (max-width: 860px) {
  .apply-col {
    position: static;
  }
}

.job-desc-body {
  white-space: pre-wrap;
  line-height: 1.7;
  color: var(--ink-muted);
}

.skill-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-chip-list .chip {
  animation: pop 320ms var(--ease-spring) both;
}

.skill-chip-list .chip:nth-child(1) {
  animation-delay: 0ms;
}

.skill-chip-list .chip:nth-child(2) {
  animation-delay: 40ms;
}

.skill-chip-list .chip:nth-child(3) {
  animation-delay: 80ms;
}

.skill-chip-list .chip:nth-child(4) {
  animation-delay: 120ms;
}

.skill-chip-list .chip:nth-child(5) {
  animation-delay: 160ms;
}

.skill-chip-list .chip:nth-child(n+6) {
  animation-delay: 200ms;
}

/* ---- Tables (vendor applicant lists) ---- */
table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

th {
  color: var(--ink-faint);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tbody tr {
  transition: background 140ms ease;
}

tbody tr:hover {
  background: var(--surface-alt);
}

.masked {
  color: var(--ink-faint);
  font-style: italic;
}

/* ---- htmx swap animation ---- */
.fade-in {
  animation: fadeIn 320ms var(--ease);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.flash {
  animation: flash 700ms ease;
}

@keyframes flash {
  0% {
    background: var(--primary-tint);
  }

  100% {
    background: transparent;
  }
}

.htmx-indicator {
  opacity: 0;
  transition: opacity 150ms ease;
}

.htmx-request .htmx-indicator {
  opacity: 1;
}

.htmx-request.htmx-indicator {
  opacity: 1;
}

.htmx-swapping {
  opacity: 0;
  transition: opacity 150ms ease-out;
}

.htmx-settling {
  opacity: 1;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: spin 700ms linear infinite;
}

.spinner-dark {
  border: 2px solid var(--primary-tint);
  border-top-color: var(--primary);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---- Alternating section bands ---- */
.band-white {
  background: var(--surface);
}

.band-tint {
  position: relative;
  overflow: clip;
  background: radial-gradient(900px 400px at 15% 0%, var(--surface-tint), transparent 60%), var(--surface-alt);
}

.band-ink {
  position: relative;
  overflow: clip;
  background: linear-gradient(150deg, #1b1440, var(--ink) 65%);
  color: #fff;
}

.band-ink .section-head h2,
.band-ink h2 {
  color: #fff;
}

.band-ink .section-head p,
.band-ink p.muted {
  color: rgba(255, 255, 255, 0.66);
}

/* Decorative floating orbs behind the alternating bands — purely visual, so
   they must never sit above interactive content (see the cta-band click bug). */
.band-tint::before,
.band-tint::after,
.band-ink::before,
.band-ink::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  animation: float 9s ease-in-out infinite;
}

.band-tint::before {
  width: 260px;
  height: 260px;
  background: var(--primary);
  top: -80px;
  right: 6%;
}

.band-tint::after {
  width: 200px;
  height: 200px;
  background: var(--accent);
  bottom: -60px;
  left: 4%;
  animation-delay: -4s;
}

.band-ink::before {
  width: 300px;
  height: 300px;
  background: #5b4fe9;
  top: -100px;
  left: -60px;
  opacity: 0.4;
}

.band-ink::after {
  width: 240px;
  height: 240px;
  background: #17b6d4;
  bottom: -80px;
  right: 4%;
  opacity: 0.3;
  animation-delay: -5s;
}

.band-tint>*,
.band-ink>* {
  position: relative;
  z-index: 1;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 860px) {
  .trust-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 240ms var(--ease), background 240ms ease, border-color 240ms ease;
}

.trust-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.trust-item .trust-icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  transition: transform 320ms var(--ease);
}

.trust-item:hover .trust-icon {
  transform: scale(1.12) rotate(-6deg);
}

.trust-item strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 2px;
}

.trust-item span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.84rem;
  line-height: 1.5;
}

/* ---- Hero (homepage) ---- */
.hero {
  --hero-blue: #2454d6;
  --hero-blue-dark: #022c78;
  --hero-blue-tint: #dce6ff;
  --logo-orange: #fe6201;
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 26px 0 44px;
  background: radial-gradient(1100px 520px at 78% -10%, var(--surface-tint), transparent 60%), var(--surface-alt);
}

@media (min-width: 1151px) {
  .hero {
    min-height: calc(100vh - var(--header-h));
  }
}

@media (max-width: 1150px) {
  .hero {
    min-height: 0;
    padding: 32px 0 44px;
  }
}

.hero .eyebrow {
  color: var(--hero-blue-dark);
  background: var(--hero-blue-tint);
}

.hero .ta-block {
  color: var(--hero-blue-dark);
}

.hero .text-gradient {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--logo-orange);
}

.hero .search-bar .sb-field svg {
  color: var(--hero-blue);
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 110px;
  z-index: 0;
  opacity: 0.9;
}

@media (max-width: 1150px) {
  .hero-wave {
    display: none;
  }
}

.hero-bubbles-mobile {
  display: none;
}

@media (max-width: 1150px) {
  .hero-bubbles-mobile {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
  }

  .hero-bubbles-mobile .hero-bubble {
    animation-duration: 8s;
    box-shadow: none;
    filter: blur(0.3px);
  }
}

.hero-signature {
  position: absolute;
  left: 53%;
  top: 62%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: auto;
  z-index: 1;
  filter: drop-shadow(0 3px 8px rgba(21, 15, 60, 0.2));
  opacity: 0;
  animation: signatureFadeIn 1100ms var(--ease) 500ms both;
}

@keyframes signatureFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (max-width: 1150px) {
  .hero-signature {
    display: none;
  }
}

.hero-inner {
  position: absolute;
  inset: 0;
  max-width: 1900px;
  margin: 0 auto;
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 1150px) {
  .hero-inner {
    display: none;
  }
}

.hero-bubbles {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bubble {
  position: absolute;
  border-radius: 50%;
  animation: bubbleFloat 5.5s ease-in-out infinite;
  box-shadow: 0 8px 18px rgba(21, 15, 60, 0.12);
}

@keyframes bubbleFloat {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-16px) scale(1.08);
  }
}

.hero-bubbles-text {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: none;
}

@media (min-width: 1450px) {
  .hero-bubbles-text {
    display: block;
  }
}

.hero-visual {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 38%;
  aspect-ratio: 1 / 1;
  max-height: calc(100% - 44px);
  z-index: 2;
}

.hero-bleed-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  object-fit: cover;
  object-position: center 6%;
  -webkit-mask-image: linear-gradient(to right, transparent, transparent 18%, #000 42%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent, transparent 18%, #000 42%, #000 88%, transparent 100%);
}

.hero-badge-a {
  top: 14%;
  left: 8%;
  animation-delay: 0.2s;
}

.hero-badge-b {
  top: 4%;
  right: 8%;
  animation-delay: 0.7s;
}

.hero-badge-c {
  top: 46%;
  right: 2%;
  animation-delay: 1.2s;
}

.hero-badge-a .fc-icon,
.hero-badge-b .fc-icon,
.hero-badge-c .fc-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}

.hero-badge-a strong,
.hero-badge-b strong,
.hero-badge-c strong {
  font-size: 0.88rem;
  white-space: nowrap;
}

.hero-grid {
  position: relative;
  z-index: 1;
  max-width: none;
  margin: 0;
  padding-left: max(24px, 5vw);
  padding-right: 24px;
}

.hero-copy {
  max-width: 640px;
}

.hero h1 {
  font-size: clamp(1.9rem, 3.4vw, 3.7rem);
}

@media (min-width: 1450px) {
  .hero-copy {
    max-width: 760px;
  }
}

@media (min-width: 1800px) {
  .hero-copy {
    max-width: 950px;
  }
}

@media (min-width: 1450px) {
  .hero .eyebrow {
    font-size: 0.95rem;
    padding: 8px 18px 8px 10px;
    margin-bottom: 26px;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 3.4vw, 4.3rem);
    margin-bottom: 26px;
  }

  .hero .search-bar {
    max-width: 700px;
    padding: 10px;
  }

  .hero .search-bar input {
    font-size: 1.05rem;
  }

  .hero-stats {
    margin-top: 48px;
    gap: 30px;
  }

  .hero-stat span {
    font-size: 0.95rem;
  }

  .hero-copy p.faint {
    margin-top: 34px !important;
    font-size: 1.02rem;
  }
}

@media (min-width: 1800px) {
  .hero .eyebrow {
    font-size: 1.02rem;
    margin-bottom: 32px;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 3.4vw, 4.7rem);
    margin-bottom: 32px;
  }

  .hero .search-bar {
    max-width: 780px;
  }

  .hero-stats {
    margin-top: 56px;
    gap: 36px;
  }

  .hero-copy p.faint {
    margin-top: 42px !important;
  }
}

.hero-mobile-photo {
  display: none;
}

@media (max-width: 1150px) {
  .hero-mobile-photo {
    display: block;
    width: 100%;
    height: 200px;
    margin-top: 24px;
    object-fit: cover;
    object-position: center 10%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
  }
}

@media (max-width: 480px) {
  .hero-mobile-photo {
    height: 170px;
  }
}

.hero-copy>* {
  animation: heroIn 720ms var(--ease) both;
}

.hero-copy>*:nth-child(1) {
  animation-delay: 0ms;
}

.hero-copy>*:nth-child(2) {
  animation-delay: 90ms;
}

.hero-copy>*:nth-child(3) {
  animation-delay: 180ms;
}

.hero-copy>*:nth-child(4) {
  animation-delay: 270ms;
}

.hero-copy>*:nth-child(5) {
  animation-delay: 350ms;
}

.hero-copy>*:nth-child(6) {
  animation-delay: 430ms;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 1.12rem;
  color: var(--ink-muted);
  max-width: 500px;
  margin: 0 0 30px;
}

.search-bar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 620px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px;
  box-shadow: var(--shadow-lg);
}

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

.loc-typeahead-wrap,
.loc-dropdown-container {
  position: relative;
}

.loc-dropdown-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--ink-faint);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 180ms ease, transform 200ms ease;
  z-index: 2;
}

.loc-dropdown-toggle:hover {
  color: var(--primary);
}

.loc-dropdown-container.is-menu-open .loc-dropdown-toggle svg {
  transform: rotate(180deg);
}

.loc-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 290px;
  z-index: 1050;
  background: #ffffff;
  border: 1.5px solid #dce4ef;
  border-radius: 14px;
  box-shadow: 0 16px 38px -6px rgba(0, 47, 127, 0.18), 0 4px 14px rgba(21, 15, 60, 0.05);
  overflow: hidden;
  animation: dropdownIn 180ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.loc-dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px 6px;
  background: #f8fafc;
  border-bottom: 1px solid #edf2f7;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.loc-head-hint {
  font-size: 0.72rem;
  color: var(--ink-faint);
  text-transform: none;
  font-weight: 500;
}

.loc-dropdown-list {
  max-height: 270px;
  overflow-y: auto;
  padding: 6px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
}

.loc-dropdown-list::-webkit-scrollbar {
  width: 6px;
}
.loc-dropdown-list::-webkit-scrollbar-track {
  background: #f8fafc;
}
.loc-dropdown-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.loc-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 140ms ease, color 140ms ease;
  gap: 10px;
}

.loc-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.loc-item-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #f1f5f9;
  display: grid;
  place-items: center;
  color: #64748b;
  flex-shrink: 0;
  transition: all 140ms ease;
}

.loc-item-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.loc-item-ta {
  font-size: 0.78rem;
  color: #64748b;
  flex-shrink: 0;
  font-weight: 500;
}

.loc-dropdown-item:hover,
.loc-dropdown-item.is-active {
  background: #eef4fc;
}

.loc-dropdown-item:hover .loc-item-name,
.loc-dropdown-item.is-active .loc-item-name {
  color: var(--primary);
}

.loc-dropdown-item:hover .loc-item-icon,
.loc-dropdown-item.is-active .loc-item-icon {
  background: #dbeafe;
  color: var(--primary);
}

.loc-dropdown-item.loc-item-all {
  border-bottom: 1px solid #edf2f7;
  border-radius: 8px 8px 0 0;
  margin-bottom: 4px;
  padding-bottom: 10px;
}

.loc-dropdown-item.loc-item-all .loc-item-icon {
  background: #e0e7ff;
  color: #4338ca;
}

.loc-dropdown-empty {
  padding: 18px 14px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

.search-bar .sb-field svg {
  flex: none;
  color: var(--ink-faint);
}

.search-bar input {
  border: none;
  padding: 4px 0;
  background: transparent;
}

.search-bar input:focus {
  box-shadow: none;
}

.search-bar .sb-divider {
  width: 1px;
  background: var(--border);
  margin: 6px 0;
}

.search-bar .btn {
  border-radius: 999px;
  padding: 12px 22px;
  flex: none;
}

@media (max-width: 560px) {
  .search-bar {
    flex-direction: column;
    border-radius: var(--radius);
  }

  .search-bar .sb-divider {
    display: none;
  }

  .search-bar .btn {
    width: 100%;
  }
}

.hero-stats {
  display: flex;
  gap: 22px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-stat-icon {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2454d6;
}

.hero-stat span {
  color: var(--ink-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-18px) scale(1.03);
  }
}

.float-card {
  position: absolute;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: float 6s ease-in-out infinite;
  border: 1px solid var(--border);
  pointer-events: auto;
}

/* ---- Page banner (secondary pages: jobs, terms, privacy) ---- */
.page-banner {
  --hero-blue: #2454d6;
  --hero-blue-dark: #022c78;
  --hero-blue-tint: #dce6ff;
  --logo-orange: #fe6201;
  position: relative;
  overflow: hidden;
  padding: 26px 0 34px;
  background: linear-gradient(120deg, #eef1ff 0%, #dfe8ff 55%, #ffe4d6 100%);
}

.page-banner .eyebrow {
  color: var(--hero-blue-dark);
  background: var(--hero-blue-tint);
}

.page-banner .ta-block {
  color: var(--hero-blue-dark);
}

.page-banner h1 {
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.page-banner p.muted {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.page-banner-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 40px;
  z-index: 0;
}

.page-banner-bubbles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-banner-bubbles .hero-bubble {
  opacity: 0.85;
}

@media (max-width: 640px) {
  .page-banner-bubbles {
    display: none;
  }
}

/* ---- Popular categories ---- */
.cat-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 6px 2px 14px;
  scrollbar-width: thin;
}

.cat-strip::-webkit-scrollbar {
  height: 6px;
}

.cat-strip::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.cat-card {
  flex: none;
  width: 168px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: left;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 220ms var(--ease-spring), box-shadow 220ms ease, border-color 220ms ease;
}

.cat-card:hover {
  transform: translateY(-5px) scale(1.02) perspective(700px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  color: var(--ink);
}

.cat-card .cat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: #fff;
  transition: transform 320ms var(--ease);
}

.cat-card:hover .cat-icon {
  transform: scale(1.12) rotate(-6deg);
}

.cat-card .cat-icon svg {
  width: 20px;
  height: 20px;
}

.cat-card strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 2px;
}

.cat-card span {
  color: var(--ink-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ---- How it works ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 780px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step-card {
  position: relative;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: 0 6px 22px rgba(0, 47, 127, 0.06);
  transition: transform 240ms var(--ease), box-shadow 240ms ease;
}

.step-card:hover {
  transform: translateY(-6px) perspective(700px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
  box-shadow: 0 16px 36px -6px rgba(0, 47, 127, 0.14), 0 4px 12px rgba(21, 15, 60, 0.04);
  border-color: #cbd5e1;
}

@media (min-width: 781px) {
  .step-card:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 46px;
    left: 100%;
    width: 24px;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--border) 0 6px, transparent 6px 10px);
    pointer-events: none;
  }
}

.step-num {
  position: absolute;
  top: 20px;
  right: 22px;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--surface-tint);
}

.step-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
  transition: transform 320ms var(--ease);
}

.step-icon svg {
  width: 24px;
  height: 24px;
}

.step-card:hover .step-icon {
  transform: scale(1.12) rotate(-6deg);
}

/* ---- CTA band ---- */
.cta-band {
  position: relative;
  overflow: clip;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #1b1440, var(--ink) 60%);
  color: #fff;
  padding: 48px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.5;
  pointer-events: none;
}

.cta-band::before {
  width: 220px;
  height: 220px;
  background: var(--primary);
  top: -90px;
  left: -60px;
}

.cta-band::after {
  width: 260px;
  height: 260px;
  background: var(--accent);
  bottom: -120px;
  right: -40px;
}

.cta-band h2 {
  color: #fff;
  position: relative;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.72);
  position: relative;
  margin: 0;
  max-width: 440px;
}

.cta-band .btn {
  position: relative;
  animation: ctaPulse 2.6s ease-in-out infinite;
}

.cta-band .btn:hover {
  animation-play-state: paused;
}

@keyframes ctaPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.28);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
}

.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 28px;
}

.pagination a,
.pagination span {
  padding: 9px 15px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.88rem;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.pagination a:hover {
  border-color: var(--primary);
  background: var(--primary-tint);
  text-decoration: none;
  transform: translateY(-1px);
}

.pagination .current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ---- Admin panel shell ---- */
.admin-body {
  background: var(--surface-alt);
}

.admin-shell {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  flex: none;
  width: 240px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  padding: 0 8px 22px;
}

.admin-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
}

.admin-nav-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.35);
  padding: 14px 12px 4px;
}

.admin-nav-label:first-child {
  padding-top: 0;
}

.admin-nav-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 140ms ease, color 140ms ease;
}

.admin-nav-list a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.admin-nav-list a.is-active {
  background: var(--primary);
  color: #fff;
}

.admin-sidebar-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-sidebar-foot a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0 8px;
}

.admin-sidebar-foot a:hover {
  color: #fff;
}

.admin-content {
  flex: 1;
  min-width: 0;
  padding: 28px 36px;
  max-width: 1720px;
}

.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1100px) {
  .admin-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .admin-shell {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    height: auto;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
  }

  .admin-brand {
    padding: 0 8px 0 0;
  }

  .admin-nav-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .admin-sidebar-foot {
    flex-direction: row;
    border-top: none;
    padding-top: 0;
    margin-left: auto;
  }

  .admin-content {
    padding: 28px 20px;
  }
}

/* ---- Auth pages (login/register split layout) ---- */
.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--header-h));
}

@media (max-width: 860px) {
  .auth-split {
    grid-template-columns: 1fr;
  }

  .auth-brand-panel {
    display: none;
  }
}

.auth-brand-panel {
  position: relative;
  overflow: clip;
  padding: 56px 48px;
  color: #fff;
  background: linear-gradient(150deg, #17348f, #2454d6 55%, #ff5c39 130%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-brand-panel::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: #2454d6;
  opacity: 0.35;
  filter: blur(10px);
  top: -100px;
  right: -80px;
  animation: float 8s ease-in-out infinite;
}

.auth-brand-panel::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.3;
  filter: blur(10px);
  bottom: -90px;
  left: -60px;
  animation: float 7s ease-in-out infinite;
  animation-delay: 0.5s;
}

.auth-brand-panel>* {
  position: relative;
}

.auth-brand-panel .brand {
  color: #fff;
  margin-bottom: 40px;
}

.auth-brand-panel h2 {
  font-size: 1.7rem;
  margin-bottom: 14px;
  max-width: 380px;
}

.auth-brand-panel p.muted {
  color: rgba(255, 255, 255, 0.68);
  max-width: 380px;
  margin-bottom: 32px;
}

.auth-points {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 380px;
}

.auth-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.auth-point .ap-icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  color: #fff;
}

.auth-point strong {
  display: block;
  font-size: 0.94rem;
}

.auth-point span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
}

.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: var(--surface-alt);
}

.auth-form-card {
  width: 100%;
  max-width: 420px;
}

.auth-form-card h1 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.auth-form-card .muted {
  margin-bottom: 24px;
}

.auth-mobile-brand {
  display: none;
}

@media (max-width: 860px) {
  .auth-mobile-brand {
    display: inline-flex;
    margin-bottom: 20px;
  }
}

.oauth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--ink-faint);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.oauth-divider::before,
.oauth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.google-btn-slot {
  display: flex;
  justify-content: center;
}

.google-btn-slot>div {
  width: 100% !important;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.stat-card strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat-card span {
  color: var(--ink-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---- Legal pages (terms, privacy) ---- */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-content .legal-intro {
  font-size: 1.05rem;
  color: var(--ink-muted);
  margin-bottom: 32px;
}

.legal-content h2 {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.legal-content h2:first-of-type {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.legal-content p {
  color: var(--ink-muted);
  margin: 0 0 14px;
}

.legal-content ul {
  margin: 0 0 14px;
  padding-left: 22px;
  color: var(--ink-muted);
}

.legal-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.legal-content strong {
  color: var(--ink);
}

.legal-content a {
  font-weight: 600;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.65);
  padding: 48px 0 26px;
  margin-top: 64px;
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
}

.footer-brand .brand-mark {
  box-shadow: none;
}

.footer-tagline {
  max-width: 320px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.86rem;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.footer-links a:hover {
  color: #fff;
}

.footer-links a .ta,
.footer-tagline .ta-block {
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding-top: 22px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.82rem;
}

.footer-legal-links {
  display: flex;
  gap: 16px;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.55);
}

.footer-legal-links a:hover {
  color: #fff;
}

/* ---- Latest Job Openings (Modern Section matching theme) ---- */
.latest-openings-section {
  padding: 40px 0 54px;
  background: #f1f5fa;
  background: linear-gradient(180deg, #edf3fa 0%, #f7f9fc 100%);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
}

.openings-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 16px;
}

.openings-header h2 {
  font-size: clamp(1.8rem, 2.6vw, 2.2rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.025em;
  margin: 0 0 4px;
}

.openings-header p {
  color: var(--primary);
  font-size: 0.96rem;
  font-weight: 500;
  margin: 0;
  opacity: 0.95;
}

/* Category Filter Pills (No counts, per user spec) */
.openings-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 0 10px;
}

.pill-btn {
  background: #ffffff;
  border: 1.5px solid var(--border);
  color: var(--ink-muted);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 220ms var(--ease);
  box-shadow: 0 2px 6px rgba(21, 15, 60, 0.03);
  outline: none;
  user-select: none;
}

.pill-btn:hover {
  border-color: #b0c4de;
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 47, 127, 0.08);
}

.pill-btn.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 47, 127, 0.35);
  transform: translateY(-1px);
}

/* Section Container Expansion — Maximize screen real estate, eliminate blank gutters */
.latest-openings-section .container,
.latest-openings-container {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(20px, 3.5vw, 64px) !important;
  padding-right: clamp(20px, 3.5vw, 64px) !important;
  box-sizing: border-box !important;
}

/* Openings Grid & Cards — 4 Cards Per Row on Desktop using all available width */
.openings-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 26px);
  width: 100%;
}

@media (max-width: 1300px) {
  .openings-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 992px) {
  .openings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .openings-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Card Container — Extended Width & Luxurious Spacing */
.opening-card {
  position: relative;
  background: #ffffff;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px 22px 20px;
  box-shadow: 0 4px 16px rgba(0, 47, 127, 0.05);
  display: flex !important;
  flex-direction: column;
  transition: transform 260ms var(--ease), box-shadow 260ms ease, border-color 260ms ease, opacity 260ms ease;
  overflow: hidden;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  opacity: 1 !important;
  visibility: visible !important;
}

.opening-card.is-hidden-category {
  display: none !important;
}

/* Top Accent Stripe */
.opening-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-accent, linear-gradient(90deg, var(--primary), #17b6d4));
  opacity: 0.95;
  transition: height 240ms ease, opacity 240ms ease;
  z-index: 1;
}

.opening-card:hover {
  transform: translateY(-6px);
  border-color: #93b4e6;
  box-shadow: 0 18px 36px -8px rgba(0, 47, 127, 0.18), 0 4px 12px rgba(21, 15, 60, 0.05);
}

.opening-card:hover::before {
  height: 5px;
  opacity: 1;
}

/* Card Theme Variations (Alternating Across Grid) */
.opening-card.theme-indigo { --card-accent: linear-gradient(90deg, #002f7f, #3b82f6); }
.opening-card.theme-emerald { --card-accent: linear-gradient(90deg, #059669, #10b981); }
.opening-card.theme-coral { --card-accent: linear-gradient(90deg, #ff5c39, #f59e0b); }
.opening-card.theme-violet { --card-accent: linear-gradient(90deg, #7c3aed, #a855f7); }
.opening-card.theme-blue { --card-accent: linear-gradient(90deg, #0284c7, #38bdf8); }
.opening-card.theme-amber { --card-accent: linear-gradient(90deg, #d97706, #fbbf24); }

/* Featured Card Special High-Visibility Secondary Styling */
.opening-card.is-featured-card {
  --card-accent: linear-gradient(90deg, #fe7800 0%, #ffaa00 100%);
  background: linear-gradient(180deg, #fffcf7 0%, #ffffff 45%);
  border-color: #fedcb0;
}

.opening-card.is-featured-card:hover {
  border-color: #fdbb60;
  box-shadow: 0 20px 42px -8px rgba(254, 120, 0, 0.22), 0 0 0 1px #fed39b;
}

/* Top Corner Featured Badge (Secondary Color: #fe7800 from Logo) */
.opening-featured-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #fe7800 !important;
  background: var(--secondary-gradient, linear-gradient(135deg, #ff8c00 0%, #fe6500 100%)) !important;
  color: #ffffff !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  padding: 5px 14px 5px 16px !important;
  border-bottom-left-radius: 14px !important;
  box-shadow: 0 4px 14px rgba(254, 120, 0, 0.42) !important;
  z-index: 5 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  line-height: 1 !important;
}

.opening-featured-badge svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Inline Featured Badge Pill */
.opening-featured-badge-pill {
  background: #fe7800 !important;
  background: var(--secondary-gradient, linear-gradient(135deg, #ff8c00 0%, #fe6500 100%)) !important;
  color: #ffffff !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  padding: 4px 10px !important;
  border-radius: 20px !important;
  box-shadow: 0 3px 10px rgba(254, 120, 0, 0.35) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  line-height: 1 !important;
}

/* Card Header: Avatar + Title + Bookmark */
.opening-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  position: relative;
}

.opening-avatar {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  border: 1.5px solid transparent;
  box-shadow: 0 3px 10px rgba(0, 47, 127, 0.08);
  transition: transform 240ms var(--ease);
}

.opening-card:hover .opening-avatar {
  transform: scale(1.06);
}

.opening-heading-block {
  flex: 1;
  min-width: 0;
  padding-right: 34px;
}

.opening-title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.32;
  letter-spacing: -0.015em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.opening-title a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease;
}

.opening-title a:hover {
  color: var(--primary);
}

.opening-company {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 5px;
}

.opening-company svg {
  flex-shrink: 0;
}

/* Bookmark Button */
.opening-bookmark-btn {
  position: absolute;
  top: 0;
  right: 0;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #94a3b8;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: all 200ms ease;
  z-index: 2;
}

.opening-bookmark-btn:hover {
  color: var(--accent);
  background: #fff7ed;
  border-color: #fed7aa;
  transform: scale(1.1);
}

.opening-bookmark-btn.is-bookmarked {
  color: var(--accent);
  background: #fff3ee;
  border-color: #ffccbc;
}

.opening-bookmark-btn.is-bookmarked svg {
  fill: var(--accent);
}

/* Meta tags row (Location, Salary, Exp) */
.opening-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.opening-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 7px;
  white-space: nowrap;
}

/* Location: soft sky blue */
.opening-meta-item.meta-location {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
}

.opening-meta-item.meta-location svg {
  color: #2563eb;
}

/* Salary: high-contrast emerald green */
.opening-meta-item.meta-salary {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.opening-meta-item.meta-salary svg {
  color: #059669;
}

/* Experience: soft violet */
.opening-meta-item.meta-experience {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.opening-meta-item.meta-experience svg {
  color: #7c3aed;
}

/* Badge tags (Job Type, Category, Skills) */
.opening-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.opening-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.01em;
  transition: all 160ms ease;
}

/* Job Type Tag */
.opening-tag.tag-type {
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
}
.opening-tag.tag-type-remote {
  background: #faf5ff;
  color: #6b21a8;
  border: 1px solid #e9d5ff;
}
.opening-tag.tag-type-part {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}
.opening-tag.tag-type-intern {
  background: #f0fdfa;
  color: #0f766e;
  border: 1px solid #99f6e4;
}
.opening-tag.tag-type-contract {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

/* Categories with rich color palettes */
.opening-tag.tag-cat-tech {
  background: #ecfeff;
  color: #0e7490;
  border: 1px solid #a5f3fc;
}
.opening-tag.tag-cat-sales {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}
.opening-tag.tag-cat-health {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}
.opening-tag.tag-cat-edu {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}
.opening-tag.tag-cat-mfg {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.opening-tag.tag-cat-fin {
  background: #fefce8;
  color: #854d0e;
  border: 1px solid #fef08a;
}
.opening-tag.tag-cat-creative {
  background: #fdf2f8;
  color: #a21caf;
  border: 1px solid #fbcfe8;
}
.opening-tag.tag-cat-default {
  background: #f0fdfa;
  color: #0d9488;
  border: 1px solid #99f6e4;
}

/* Skills chips */
.opening-tag.tag-skill {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}

/* Footer: Posted time on top + Actions row below */
.opening-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.opening-posted-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.opening-posted {
  font-size: 0.78rem;
  color: var(--ink-faint);
  font-weight: 500;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

/* Actions group in opening-footer: Equal 50/50 width buttons */
.opening-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

/* 1-Click WhatsApp Share Button */
.opening-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #25D366;
  color: #ffffff !important;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 180ms var(--ease);
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.25);
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
}

.opening-wa-btn:hover {
  background: #1eb954;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(37, 211, 102, 0.4);
}

.opening-wa-btn svg {
  flex-shrink: 0;
}

/* Primary Button in #002F7F */
.opening-apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--primary);
  color: #ffffff !important;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  transition: all 200ms var(--ease);
  box-shadow: 0 4px 12px rgba(0, 47, 127, 0.28);
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
}

.opening-apply-btn:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 18px rgba(0, 47, 127, 0.4);
  transform: translateY(-1px);
}

.opening-card.is-featured-card .opening-apply-btn {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 47, 127, 0.28);
}

.opening-card.is-featured-card .opening-apply-btn:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 18px rgba(0, 47, 127, 0.42);
}

.opening-apply-btn svg {
  transition: transform 200ms ease;
}

.opening-apply-btn:hover svg {
  transform: translateX(3px);
}

/* ---- Browse Jobs Top Filter Card & Chips ---- */
.browse-filter-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 22px 26px;
  margin-bottom: 28px;
  box-shadow: 0 4px 18px rgba(21, 15, 60, 0.04);
}

.browse-search-grid {
  display: grid;
  grid-template-columns: 2fr 1.6fr 1.2fr;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}

@media (max-width: 860px) {
  .browse-search-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.browse-chips-group {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: 12px;
  flex-wrap: wrap;
}

.browse-chips-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  min-width: 90px;
  flex-shrink: 0;
}

.browse-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.filter-chip {
  cursor: pointer;
  user-select: none;
  display: inline-block;
  margin: 0;
}

.filter-chip input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.filter-chip span {
  display: inline-block;
  padding: 7px 18px;
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: 999px;
  background: #ffffff;
  border: 1.5px solid var(--border);
  color: var(--ink-muted);
  transition: all 180ms var(--ease);
  box-shadow: 0 2px 5px rgba(21, 15, 60, 0.03);
}

.filter-chip:hover span {
  border-color: #c7bffd;
  color: var(--primary);
  transform: translateY(-1px);
}

.filter-chip input[type="radio"]:checked+span {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(91, 79, 233, 0.32);
  transform: translateY(-1px);
}

.results-bar-clean {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}