:root{
  --navy:#0a1830; --navy2:#122a52; --navy3:#1a3a6e;
  /* Primary accent is ASTRA's own brand green, sampled from the real logo mark
     (#21b760) — not a generic SaaS blue. Named --blue-* for backward
     compatibility with the rest of this file; every button/link/focus-ring
     in the portal runs off these three tokens, so this one change re-themes
     the whole site to the real brand color. */
  --blue:#1f9e56; --blue-dark:#167a42; --blue-light:#e9f8ef;
  --lime:#b7d551;
  --green:#1f9e56; --green-bg:#e9f8ef; --amber:#b45309; --amber-bg:#fef3c7; --red:#b91c1c; --red-bg:#fef2f2;
  --ink:#0f1b2d; --body:#3d4a5c; --muted:#6b7688; --faint:#98a2b3;
  --bg:#f6f8fb; --card:#ffffff; --border:#e6eaf0; --border-soft:#eef1f6;
  --radius-lg:18px; --radius-md:12px; --radius-sm:8px;
  --shadow-sm:0 1px 2px rgba(15,27,45,.05), 0 1px 3px rgba(15,27,45,.06);
  --shadow-md:0 4px 14px rgba(15,27,45,.08);
  --shadow-lg:0 20px 45px rgba(10,24,48,.16);
  --container:1180px;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important;}
}
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  line-height:1.55; -webkit-font-smoothing:antialiased;
}
.wrap{max-width:var(--container); margin:0 auto; padding:0 24px;}
a{color:var(--blue); text-decoration:none;}
a:hover{text-decoration:underline;}
h1,h2,h3{font-weight:700; letter-spacing:-.01em; color:var(--ink); margin:0;}
::selection{background:var(--blue-light); color:var(--navy);}

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header{
  position:fixed; top:0; left:0; right:0; width:100%; z-index:40;
  background:rgba(8,26,16,.97); backdrop-filter:blur(6px);
  border-bottom:1px solid rgba(255,255,255,.06);
  transition:background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
/* Header is fixed (out of flow), so every page pushes its content down by
   the header's real height; the job-list page instead gives that space to
   the hero itself so the hero artwork runs right up under the header. */
#app{padding-top:var(--header-h, 88px);}
body.home-page #app{padding-top:0;}
/* On the job-list page the header sits directly over the hero artwork, so
   it starts fully transparent and picks up the solid navy only once the
   person scrolls past the hero — everywhere else it stays solid. */
body.home-page .site-header:not(.scrolled){
  background:transparent; border-bottom-color:transparent; backdrop-filter:none;
}
/* Three-column layout — Careers/Home on the left, the brand mark centered
   over the page the way it sits in the reference art, Job Opportunities +
   auth on the right — rather than a single left-aligned lockup. */
.header-inner{display:grid; grid-template-columns:1fr auto 1fr; align-items:center; column-gap:16px; height:88px;}
.brand{display:flex; align-items:center; gap:12px; text-decoration:none;}
.brand:hover{text-decoration:none;}
.brand-center{grid-column:2; justify-self:center;}
.brand-mark{display:flex; flex-shrink:0;}
.brand-text{display:flex; flex-direction:column; line-height:1.1;}
.brand-name{font-weight:800; font-size:19px; letter-spacing:.04em; color:#fff;}
.brand-sub{font-size:11px; color:rgba(255,255,255,.55); text-transform:uppercase; letter-spacing:.16em; margin-top:2px;}
/* Logo now ships pre-cut with white text and a transparent background, so
   it sits directly on the header/hero artwork — no white chip behind it. */
.brand-logo-img{height:54px; width:auto; display:block;}
.brand-sub-standalone{
  font-size:11px; color:rgba(255,255,255,.55); text-transform:uppercase;
  letter-spacing:.16em; font-weight:600;
}
.header-left{display:flex; align-items:center; gap:28px; grid-column:1; justify-self:start;}
.header-right{display:flex; align-items:center; gap:18px; grid-column:3; justify-self:end;}
.nav-static{display:flex; align-items:center; gap:10px;}
.nav-static a{
  color:rgba(255,255,255,.85); font-size:14px; font-weight:600; text-decoration:none;
  padding:9px 16px; border:1px solid rgba(255,255,255,.2); border-radius:8px; transition:.15s;
}
.nav-static a:hover{color:#fff; background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.35);}
.nav-static-right{padding-right:18px; border-right:1px solid rgba(255,255,255,.14);}
.nav-auth{display:flex; gap:12px; align-items:center;}
.nav-auth a{color:rgba(255,255,255,.85); font-size:14px; font-weight:500; text-decoration:none; padding:9px 6px;}
.nav-auth a:hover{color:#fff;}
.nav-auth button{
  font-family:inherit; color:rgba(255,255,255,.85); font-size:14px; font-weight:500;
  background:transparent; border:1px solid rgba(255,255,255,.22); border-radius:8px;
  padding:9px 16px; cursor:pointer; transition:.15s;
}
.nav-auth button:hover{background:rgba(255,255,255,.08); color:#fff;}
/* Gradient picks up the hero artwork's own glow (dark green rising to the
   bright lime horizon-light) instead of the flat corporate green used
   elsewhere, so the header's one call-to-action visually belongs to the
   image behind it. */
.nav-auth .btn-primary{
  background:linear-gradient(135deg, #1f9e56 0%, #3ddb84 100%);
  color:#fff !important; font-weight:600; border-radius:8px;
  padding:10px 20px; box-shadow:0 2px 14px rgba(61,219,132,.45); transition:.2s;
}
.nav-auth .btn-primary:hover{
  background:linear-gradient(135deg, #1b8a4b 0%, #30c975 100%);
  box-shadow:0 4px 18px rgba(61,219,132,.55); text-decoration:none;
}

/* ── Hero ───────────────────────────────────────────────────────────────
   Background is the client's own reference artwork (crane + Riyadh skyline
   over a blueprint grid), used as-is rather than redrawn, with the site's
   real header cropped out so our actual nav sits on top instead of a
   duplicate. One slow-drifting glow is the single deliberate motion
   moment on the page — everything else stays still. */
.hero{
  background:
    url("assets/hero-bg.jpg") bottom center / cover no-repeat,
    #05130c;
  padding:calc(var(--header-h, 88px) + 76px) 0 110px; position:relative; overflow:hidden;
}
.hero::after{
  content:""; position:absolute; width:620px; height:620px; border-radius:50%;
  right:-180px; top:-220px; pointer-events:none; z-index:0;
  background:radial-gradient(circle, rgba(61,219,132,.20) 0%, transparent 70%);
  animation:hero-drift 16s ease-in-out infinite;
}
@keyframes hero-drift{
  0%,100%{transform:translate(0,0) scale(1);}
  50%{transform:translate(-40px,30px) scale(1.08);}
}
.hero-inner{position:relative; text-align:center; max-width:760px; margin:0 auto;}
.hero-reveal{animation:hero-rise .7s cubic-bezier(.2,.7,.3,1) both;}
.hero-reveal.d2{animation-delay:.08s;}
.hero-reveal.d3{animation-delay:.16s;}
.hero-reveal.d4{animation-delay:.24s;}
@keyframes hero-rise{from{opacity:0; transform:translateY(14px);} to{opacity:1; transform:translateY(0);}}
.hero-eyebrow{
  display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:600;
  color:#bcf0d2; letter-spacing:.01em;
  background:rgba(33,183,96,.14); border:1px solid rgba(33,183,96,.3);
  padding:7px 16px; border-radius:999px; margin-bottom:22px;
}
.hero-eyebrow::before{content:""; width:6px; height:6px; border-radius:50%; background:#3ddb84; flex-shrink:0;}
.hero h1{font-size:44px; line-height:1.15; color:#fff; letter-spacing:-.02em;}
.hero p.lead{color:rgba(255,255,255,.72); font-size:17px; max-width:560px; margin:16px auto 76px; font-weight:400;}
.hero-stats{display:flex; justify-content:center; gap:36px; margin-top:34px; flex-wrap:wrap;}
.hero-stat{color:#fff; text-align:center;}
.hero-stat-num{font-size:26px; font-weight:800; display:block;}
.hero-stat-label{font-size:12.5px; color:rgba(255,255,255,.55); letter-spacing:.04em;}

/* ── Search / filter bar (overlaps hero) ───────────────────────────── */
.search-bar{
  background:#fff; border-radius:var(--radius-lg); box-shadow:var(--shadow-lg);
  padding:14px; margin:-58px auto 0; max-width:920px; position:relative; z-index:10;
  display:flex; gap:10px; flex-wrap:wrap; align-items:center;
}
.search-field{flex:2 1 260px; display:flex; align-items:center; gap:10px; padding:6px 14px;}
.search-field svg{flex-shrink:0; color:var(--faint);}
.search-field input{border:none; outline:none; font-size:15px; font-family:inherit; width:100%; color:var(--ink); background:transparent;}
.search-divider{width:1px; align-self:stretch; background:var(--border-soft); margin:6px 0;}
.search-select{flex:1 1 160px; padding:6px 4px;}
.search-select select{
  width:100%; border:none; outline:none; font-size:14px; font-family:inherit; color:var(--body);
  background:transparent; cursor:pointer; padding:6px;
}
.search-bar .btn{flex:0 0 auto; padding:14px 26px;}

/* ── Layout sections ────────────────────────────────────────────────── */
.section{padding:48px 0;}
.section-head{display:flex; justify-content:space-between; align-items:baseline; margin-bottom:22px; flex-wrap:wrap; gap:10px; border-bottom:1px solid var(--border); padding-bottom:14px;}
.section-head h2{font-size:22px; font-weight:800; letter-spacing:-.01em; color:var(--navy);}
.section-head .count{color:var(--muted); font-size:13.5px;}
#app{min-height:50vh;}
#app > *{animation:page-in .35s cubic-bezier(.2,.7,.3,1) both;}
@keyframes page-in{from{opacity:0; transform:translateY(8px);} to{opacity:1; transform:translateY(0);}}
.page-pad{padding:56px 0 80px;}
h1.page-title{font-size:30px; margin-bottom:6px;}
p.lead{color:var(--muted); margin:0 0 30px; font-size:15.5px;}

/* ── Job cards ──────────────────────────────────────────────────────── */
.job-grid{display:grid; grid-template-columns:repeat(auto-fill, minmax(300px,1fr)); gap:16px; align-items:stretch;}
.job-card{
  display:flex; flex-direction:column; background:var(--card); border:1px solid var(--border);
  border-top:3px solid var(--navy); border-radius:var(--radius-sm); padding:18px 20px 16px;
  box-shadow:var(--shadow-sm); cursor:pointer; height:100%;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  text-decoration:none; color:inherit;
}
.job-card:hover{box-shadow:var(--shadow-md); transform:translateY(-2px); border-color:#d6e0f5; border-top-color:var(--blue); text-decoration:none;}
.job-card-top{display:flex; justify-content:flex-end; align-items:flex-start; gap:10px; margin-bottom:10px; min-height:20px;}
.pill{
  display:inline-flex; align-items:center; gap:5px; font-size:10.5px; font-weight:700;
  padding:4px 10px; border-radius:999px; text-transform:uppercase; letter-spacing:.05em;
}
.pill-new{background:var(--green-bg); color:var(--green);}
.pill-replacement{background:var(--amber-bg); color:var(--amber);}
.pill-default{background:#eef1f6; color:var(--navy2);}
.job-posted{font-size:12px; color:var(--faint); white-space:nowrap; font-weight:500;}
.job-title{
  font-size:16px; font-weight:700; margin:0 0 8px; color:var(--ink); line-height:1.35;
  letter-spacing:-.005em; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.job-meta-row{display:flex; flex-wrap:wrap; gap:14px; margin-bottom:10px;}
.job-meta-item{
  display:flex; align-items:flex-start; gap:6px; font-size:12px; color:var(--muted); font-weight:500;
  max-width:100%;
}
.job-meta-item span{
  display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden;
  text-transform:uppercase; letter-spacing:.02em; font-size:11.5px;
}
.job-meta-item svg{flex-shrink:0; color:var(--faint); margin-top:1px;}
.job-teaser{
  font-size:13.5px; color:var(--body); margin:0 0 14px; flex:1; line-height:1.5;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.job-card-cta{
  display:inline-flex; align-items:center; gap:6px; font-size:13.5px; font-weight:600; color:var(--navy2);
  margin-top:auto; padding-top:12px; border-top:1px solid var(--border-soft);
}
.job-card:hover .job-card-cta{color:var(--blue);}
.job-card:hover .job-card-cta{gap:9px;}
.job-card-cta svg{transition:transform .18s ease;}
.job-card:hover .job-card-cta svg{transform:translateX(2px);}

/* skeleton loading state */
.skeleton-grid{display:grid; grid-template-columns:repeat(auto-fill, minmax(320px,1fr)); gap:20px;}
.skeleton-card{background:var(--card); border:1px solid var(--border); border-radius:var(--radius-md); padding:26px; height:188px;}
.skel-line{background:linear-gradient(90deg,#eef1f6 25%,#f7f9fb 37%,#eef1f6 63%); background-size:400% 100%; animation:shimmer 1.4s infinite; border-radius:6px;}
@keyframes shimmer{0%{background-position:100% 0;}100%{background-position:0 0;}}
.skel-pill{width:70px; height:20px; border-radius:999px; margin-bottom:16px;}
.skel-title{width:80%; height:20px; margin-bottom:12px;}
.skel-text{width:100%; height:13px; margin-bottom:8px;}
.skel-text.short{width:60%;}

.empty-state{text-align:center; padding:60px 24px; background:var(--card); border:1px solid var(--border); border-radius:var(--radius-md);}
.empty-state svg{color:var(--faint); margin-bottom:14px;}
.empty-state p{color:var(--muted); font-size:15px; margin:0;}

/* ── Generic content card (login/register/detail/etc.) ───────────────── */
.card{background:var(--card); border:1px solid var(--border); border-radius:var(--radius-md); padding:30px; margin-bottom:18px; box-shadow:var(--shadow-sm);}
.card h2{font-size:18px; margin:0 0 14px;}
.form-shell{max-width:440px; margin:0 auto;}
.form-shell .card{padding:34px;}

form{display:flex; flex-direction:column; gap:16px;}
label{font-size:13px; font-weight:600; color:var(--ink); margin-bottom:6px; display:block;}
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], textarea, select{
  width:100%; padding:12px 14px; border:1px solid var(--border); border-radius:var(--radius-sm);
  font-size:14.5px; font-family:inherit; color:var(--ink); background:#fff; transition:.15s;
}
input::placeholder{color:var(--faint);}
input:focus, textarea:focus, select:focus{outline:none; border-color:var(--blue); box-shadow:0 0 0 3px rgba(31,158,86,.12);}
.field{display:flex; flex-direction:column;}
.field small{color:var(--faint); font-size:12px; margin-top:5px;}
.checkbox-field{flex-direction:row; align-items:flex-start; gap:10px; font-size:13.5px; color:var(--muted);}
.checkbox-field input{width:auto; margin-top:3px; accent-color:var(--blue);}

button.btn{
  background:var(--blue); color:#fff; border:none; border-radius:var(--radius-sm);
  padding:13px 22px; font-size:14.5px; font-weight:600; cursor:pointer; font-family:inherit;
  transition:.15s; box-shadow:0 2px 8px rgba(31,158,86,.28);
}
button.btn:hover{background:var(--blue-dark); box-shadow:0 4px 12px rgba(31,158,86,.32);}
button.btn:active{transform:scale(.98);}
button.btn:disabled{opacity:.55; cursor:not-allowed; box-shadow:none; transform:none;}
button.btn-outline{background:#fff; color:var(--blue); border:1px solid var(--blue); box-shadow:none;}
button.btn-outline:hover{background:var(--blue-light);}
.file-input{border:1.5px dashed var(--border); border-radius:var(--radius-sm); padding:16px; font-size:13.5px; color:var(--muted); background:#fafbfd;}

.msg{padding:13px 16px; border-radius:var(--radius-sm); font-size:14px; margin-bottom:18px; display:flex; align-items:flex-start; gap:10px;}
.msg-error{background:var(--red-bg); color:var(--red); border:1px solid #fecaca;}
.msg-success{background:var(--green-bg); color:var(--green); border:1px solid #bbf7d0;}
.msg-info{background:var(--blue-light); color:var(--blue); border:1px solid #bfdbfe;}

.status-badge{display:inline-block; font-size:12px; font-weight:700; padding:5px 13px; border-radius:999px;}
.status-Application-Received, .status-Under-Review{background:#e0f2fe; color:#075985;}
.status-Shortlisted-for-Review{background:var(--amber-bg); color:var(--amber);}
.status-Interview-Scheduled, .status-Interview-Completed{background:#fae8ff; color:#86198f;}
.status-Offer-in-Progress, .status-Offer-Extended{background:var(--green-bg); color:var(--green);}
.status-Hired{background:var(--navy); color:#fff;}
.status-Not-Selected-at-This-Time{background:#f1f5f9; color:var(--muted);}

.app-row{display:flex; justify-content:space-between; align-items:center; padding:16px 0; border-bottom:1px solid var(--border-soft);}
.app-row:last-child{border-bottom:none;}

.privacy-section{margin-bottom:22px;}
.privacy-section h3{font-size:15px; margin:0 0 7px; color:var(--navy);}
.privacy-section p{font-size:14.5px; color:var(--body); margin:0;}

.loading{color:var(--muted); font-size:14px;}
.back-link{display:inline-flex; align-items:center; gap:6px; margin-bottom:20px; font-size:14px; font-weight:500; color:var(--muted);}
.back-link:hover{color:var(--blue);}

.detail-hero{background:var(--card); border:1px solid var(--border); border-radius:var(--radius-md); padding:32px; margin-bottom:22px;}
.detail-hero h1{font-size:26px; margin-bottom:8px;}
.detail-meta{display:flex; flex-wrap:wrap; gap:18px; margin-top:16px; padding-top:18px; border-top:1px solid var(--border-soft);}
.detail-meta .job-meta-item{font-size:14px;}
.key-facts{display:grid; grid-template-columns:repeat(auto-fill, minmax(180px,1fr)); gap:14px; margin-top:10px;}
.key-fact{background:var(--bg); border:1px solid var(--border-soft); border-radius:var(--radius-sm); padding:14px 16px;}
.key-fact-label{font-size:11.5px; text-transform:uppercase; letter-spacing:.05em; color:var(--faint); font-weight:600;}
.key-fact-value{font-size:14.5px; color:var(--ink); font-weight:600; margin-top:3px;}

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer{background:#081a10; padding:36px 0; margin-top:40px;}
.footer-inner{display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px;}
.footer-brand{display:flex; align-items:center; gap:12px;}
.footer-tagline{color:rgba(255,255,255,.4); font-size:13px;}
.footer-links{color:rgba(255,255,255,.5); font-size:13px; display:flex; align-items:center; gap:10px;}
.footer-links a{color:rgba(255,255,255,.7);}
.footer-links a:hover{color:#fff;}
.footer-dot{color:rgba(255,255,255,.3);}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 860px){
  .hero h1{font-size:33px;}
  .search-bar{flex-direction:column; align-items:stretch; margin-top:-40px;}
  .search-field, .search-select{flex:1 1 auto;}
  .search-divider{display:none;}
  .search-bar .btn{width:100%;}
}
@media (max-width: 600px){
  /* The 3-column grid has no room to breathe this narrow, so stack instead:
     centered logo on its own row, then the left and right nav groups each
     on a full-width row below it. */
  .header-inner{display:flex; flex-direction:column; align-items:stretch; height:auto; padding-top:12px; padding-bottom:12px; row-gap:10px;}
  .brand-center{order:-1; align-self:center;}
  .header-left{width:100%; justify-content:space-between;}
  .header-right{width:100%; justify-content:space-between;}
  .nav-static{gap:10px;}
  .nav-static a{font-size:12.5px; padding:7px 11px;}
  .nav-static-right{padding-right:0; border-right:none;}
  .brand-sub{display:none;}
  .nav-auth a{display:none;}
  .nav-auth .btn-primary, .nav-auth button{padding:8px 14px; font-size:13px;}
  .hero{padding:calc(var(--header-h, 88px) + 24px) 0 90px;}
  .hero h1{font-size:27px;}
  .hero p.lead{font-size:15px;}
  .hero-stats{gap:22px;}
  .section{padding:40px 0;}
  .job-grid{grid-template-columns:1fr;}
  .footer-inner{flex-direction:column; align-items:flex-start;}
}
