/* Balochistan Jobs v2 skin — "Makran dusk": warm sand, sea teal, sunset coral, saffron.
   Loaded after style.css; overrides tokens and restyles key blocks. */

:root{
  --bg:#F7F3EC; --surface:#FFFFFF; --surface-2:#F0E9DC; --fg:#0F2530; --muted:#5A6A70; --line:#E5DBC9;
  --accent:#E4572E; --accent-ink:#FFFFFF; --saffron:#E89A1E; --teal:#0E7C7B; --teal-soft:#DDF1EE;
  --plum:#5B2A86; --sea:#0B4F6C; --ok:#1F7A4D; --warn:#C8372D;
  --grad-sun:linear-gradient(135deg,#FF8A3D 0%,#E4572E 45%,#B3243A 100%);
  --grad-sea:linear-gradient(135deg,#14B8A6 0%,#0E7C7B 50%,#0B4F6C 100%);
  --shadow-1:0 1px 2px rgba(15,37,48,.06),0 4px 14px rgba(15,37,48,.06);
  --shadow-2:0 2px 4px rgba(15,37,48,.08),0 14px 34px rgba(15,37,48,.12);
  --r:16px;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --bg:#0A1820; --surface:#10232C; --surface-2:#173039; --fg:#EAF2F3; --muted:#9BB0B5; --line:#22404A;
  --accent:#FF7A50; --accent-ink:#1A0A05; --saffron:#F7B955; --teal:#4FC3B8; --teal-soft:#123A3C;
  --plum:#B58AE0; --sea:#7FC8E0; --ok:#6FC79A; --warn:#FF8A7A;
  --shadow-1:0 1px 2px rgba(0,0,0,.3),0 4px 14px rgba(0,0,0,.25);
  --shadow-2:0 2px 4px rgba(0,0,0,.35),0 14px 34px rgba(0,0,0,.4); color-scheme:dark }}
:root[data-theme="dark"]{
  --bg:#0A1820; --surface:#10232C; --surface-2:#173039; --fg:#EAF2F3; --muted:#9BB0B5; --line:#22404A;
  --accent:#FF7A50; --accent-ink:#1A0A05; --saffron:#F7B955; --teal:#4FC3B8; --teal-soft:#123A3C;
  --plum:#B58AE0; --sea:#7FC8E0; --ok:#6FC79A; --warn:#FF8A7A;
  --shadow-1:0 1px 2px rgba(0,0,0,.3),0 4px 14px rgba(0,0,0,.25);
  --shadow-2:0 2px 4px rgba(0,0,0,.35),0 14px 34px rgba(0,0,0,.4); color-scheme:dark }

body{background:var(--bg)}
.emo{font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;line-height:1}

/* ---------- header ---------- */
header.top{z-index:40;background:color-mix(in srgb,var(--surface) 86%,transparent);
  backdrop-filter:saturate(1.4) blur(12px);-webkit-backdrop-filter:saturate(1.4) blur(12px);border-bottom:1px solid var(--line)}
.navlinks a{border-radius:999px;font-weight:600;padding:8px 13px}
.navlinks a:hover{background:var(--teal-soft);color:var(--teal)}
.btn{border-radius:999px}
.btn.primary{background:var(--grad-sun);border:0;color:#fff;box-shadow:0 6px 18px rgba(228,87,46,.35)}
.btn.primary:hover{filter:brightness(1.07);transform:translateY(-1px)}
.btn.langtog{border-color:var(--line)}

/* ---------- hero with Balochistan scenes ---------- */
.hero-scene{position:relative;isolation:isolate;overflow:hidden;color:#fff;padding-block:64px 56px;min-height:560px;display:flex;align-items:center}
.hero-scene .wrap{position:relative;z-index:2;width:100%}
.scenes{position:absolute;inset:0;z-index:0}
.scene{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transform:scale(1.03)}
@keyframes bjScene{0%{opacity:0;transform:scale(1.04)}4%{opacity:1}20%{opacity:1}24%{opacity:0;transform:scale(1.12)}100%{opacity:0}}
.scene-cap{position:absolute;right:max(56px,calc(env(safe-area-inset-right,0px) + 40px));top:22px;white-space:nowrap;z-index:3;font-size:12.5px;font-weight:600;
  background:rgba(8,20,28,.55);backdrop-filter:blur(6px);padding:6px 12px;border-radius:999px;color:#fff}
.scene-cap [lang="ur"]{font-family:var(--urdu);font-size:13px}
.scene-shade{position:absolute;inset:0;z-index:1;background:
  linear-gradient(90deg,rgba(6,18,26,.86) 0%,rgba(6,18,26,.62) 45%,rgba(6,18,26,.18) 75%,rgba(6,18,26,.05) 100%),
  linear-gradient(0deg,rgba(6,18,26,.55) 0%,transparent 35%)}
@media (prefers-reduced-motion:reduce){.scene{animation:none!important}}
.hero-scene h1{color:#fff;text-shadow:0 2px 18px rgba(0,0,0,.35)}
.hero-scene h1 em{background:linear-gradient(90deg,#FFD27A,#FF8A3D);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero-scene .ur{color:#FFD27A}
.hero-scene p.lede,.hero-friendly.hero-scene .lede{color:#E3ECEE}
.hero-kicker{display:inline-flex;gap:6px;align-items:center;margin:14px 0 0;font-size:13.5px;font-weight:600;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);padding:6px 12px;border-radius:999px;color:#fff}
.hero-scene .search-big{border:0;border-radius:18px;box-shadow:0 18px 50px rgba(0,0,0,.35);background:var(--surface);color:var(--fg)}
.hero-scene .search-big button{background:var(--grad-sun);color:#fff;border-radius:0 18px 18px 0}
.hero-scene .trust li{color:#E3ECEE}
.hero-scene .trust .ico{color:#7FE0D0}
.hero-scene .cta-row .btn.cta{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.28);color:#fff;border-radius:16px;backdrop-filter:blur(6px)}
.hero-scene .cta-row .btn.cta small{color:#D2E2E5}
.hero-scene .cta-row .btn.cta:hover{background:rgba(255,255,255,.2)}
.hero-scene .ledger{background:rgba(255,255,255,.94);color:#0F2530;border:0;border-radius:20px;box-shadow:0 20px 50px rgba(0,0,0,.35)}
.hero-scene .ledger .ledger-row{color:#0F2530}
.hero-scene .ledger .e{color:#5A6A70}
:root[data-theme="dark"] .hero-scene .ledger{background:rgba(16,35,44,.92);color:#EAF2F3}
:root[data-theme="dark"] .hero-scene .ledger .ledger-row{color:#EAF2F3}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .hero-scene .ledger{background:rgba(16,35,44,.92);color:#EAF2F3}
  :root:not([data-theme="light"]) .hero-scene .ledger .ledger-row{color:#EAF2F3}}
.hero-scene .ngo-flash,.hero-scene .ngo-flash *{color:#fff}
@media (max-width:900px){.hero-scene{padding-block:40px 48px;min-height:0}
  .scene-shade{background:linear-gradient(180deg,rgba(6,18,26,.55) 0%,rgba(6,18,26,.82) 100%)}
  .hero-scene .search-big button{border-radius:0 0 18px 18px}}

/* ---------- stats ---------- */
.statbar{background:transparent;border:0;margin-top:-34px;position:relative;z-index:5}
.stat-grid{background:var(--surface);border-radius:20px;box-shadow:var(--shadow-2);padding:6px 10px}
.statbar .stat .emo{grid-row:span 2;font-size:26px;width:46px;height:46px;display:grid;place-items:center;border-radius:14px;background:var(--teal-soft)}
.statbar .stat:nth-child(2) .emo{background:#FDE7D8}.statbar .stat:nth-child(3) .emo{background:#FFF0CC}
.statbar .stat:nth-child(4) .emo{background:#E9E0F5}.statbar .stat:nth-child(5) .emo{background:#DDF1EE}
:root[data-theme="dark"] .statbar .stat .emo{background:var(--surface-2)!important}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .statbar .stat .emo{background:var(--surface-2)!important}}
.statbar .stat b{font-size:28px;background:var(--grad-sea);-webkit-background-clip:text;background-clip:text;color:transparent}
.statbar .stat{border-right-color:var(--line)}

/* ---------- section heads ---------- */
.sec-head h2{font-weight:800;letter-spacing:-.02em}
.sec-head .ur{font-family:var(--urdu);color:var(--teal);font-size:16px}

/* ---------- category tiles ---------- */
.cat{border:0!important;border-radius:var(--r);background:var(--surface);box-shadow:var(--shadow-1);transition:transform .18s,box-shadow .18s;position:relative;overflow:hidden}
.cat::after{content:"";position:absolute;inset:auto 0 0 0;height:4px;background:var(--grad-sea);opacity:.9}
.cat:nth-child(3n+2)::after{background:var(--grad-sun)}
.cat:nth-child(3n)::after{background:linear-gradient(90deg,#9D4EDD,#5B2A86)}
.cat:hover{transform:translateY(-3px);box-shadow:var(--shadow-2)}
.cat-ico.emo{font-size:26px;width:52px;height:52px;border-radius:16px;background:var(--teal-soft)}
.cat:nth-child(3n+2) .cat-ico.emo{background:#FDE7D8}
.cat:nth-child(3n) .cat-ico.emo{background:#EDE3F7}
:root[data-theme="dark"] .cat-ico.emo{background:var(--surface-2)!important}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .cat-ico.emo{background:var(--surface-2)!important}}
.cat small{color:var(--accent);font-weight:700}

/* ---------- match ---------- */
.match-wide{background:linear-gradient(135deg,var(--teal-soft),var(--surface));border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow-1)}
.match-ico.emo{font-size:28px;width:52px;height:52px;display:grid;place-items:center;border-radius:16px;background:var(--surface);box-shadow:var(--shadow-1)}

/* ---------- job cards ---------- */
.jobs{gap:12px}
.job{border:1px solid transparent;border-radius:var(--r);box-shadow:var(--shadow-1);transition:transform .16s,box-shadow .16s,border-color .16s;position:relative}
.job::before{content:"";position:absolute;left:0;top:14px;bottom:14px;width:4px;border-radius:0 4px 4px 0;background:var(--grad-sea)}
.job:hover{transform:translateY(-2px);box-shadow:var(--shadow-2);border-color:var(--line)}
.job.featured::before{background:var(--grad-sun)}
.job.featured{box-shadow:var(--shadow-1)}
.rail .filters{border-radius:var(--r);box-shadow:var(--shadow-1);border:0;background:var(--surface)}
.sort button[aria-pressed="true"]{background:var(--fg);color:var(--bg)}

/* ---------- discover Balochistan ---------- */
.discover{padding-block:44px 20px}
.disc-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.disc{position:relative;display:flex;align-items:flex-end;min-height:280px;border-radius:20px;overflow:hidden;background-size:cover;background-position:center;
  text-decoration:none;color:#fff;box-shadow:var(--shadow-2);transition:transform .25s}
.disc::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 30%,rgba(6,18,26,.88) 100%)}
.disc:hover{transform:translateY(-4px) scale(1.01)}
.disc-body{position:relative;padding:16px;display:flex;flex-direction:column;gap:2px}
.disc-body b{font-family:var(--display);font-size:19px;font-weight:800}
.disc-body .ur{font-family:var(--urdu);font-size:15px;color:#FFD27A;line-height:1.8}
.disc-body small{font-size:12.5px;color:#D2E2E5}
.disc-body em{font-style:normal;font-weight:700;font-size:13px;margin-top:8px;color:#7FE0D0}
@media (max-width:1000px){.disc-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:640px){.disc-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:8px}
  .disc{flex:0 0 72%;scroll-snap-align:start;min-height:240px}}

/* ---------- district chips ---------- */
.dchip{border:0;border-radius:14px;box-shadow:var(--shadow-1);transition:transform .15s}
.dchip:hover{transform:translateY(-2px);box-shadow:var(--shadow-2)}

/* ---------- guide ---------- */
.guide{background:linear-gradient(180deg,var(--surface),var(--bg));border:0}
.guide-steps li::before{background:var(--grad-sun);color:#fff;border-radius:12px}

/* ---------- footer ---------- */
.foot2{background:#08161E;color:#CFE0E3;position:relative;border-top:1px solid rgba(255,255,255,.06)}
.foot2::before{display:none}
.foot-hills{display:none;background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 70' preserveAspectRatio='none'%3E%3Cpath d='M0 70 L0 40 L120 18 L240 38 L380 6 L520 34 L660 14 L820 40 L980 10 L1140 36 L1300 16 L1460 38 L1600 22 L1600 70Z' fill='%230B2230'/%3E%3C/svg%3E") bottom/100% 100% no-repeat}
.foot-top{display:flex;justify-content:space-between;gap:28px;flex-wrap:wrap;padding-block:34px 10px!important;border-bottom:1px solid rgba(255,255,255,.1)}
.foot-brand{display:flex;flex-direction:column;gap:4px;max-width:44ch}
.foot-brand b{font-family:var(--display);font-size:22px;color:#fff}
.foot-brand .ur{font-family:var(--urdu);color:#FFD27A;font-size:16px;line-height:1.9}
.foot-brand small{color:#9FB8BE;font-size:13.5px}
.foot-quick{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-start}
.foot-quick a{color:#fff;text-decoration:none;font-weight:600;background:rgba(255,255,255,.08);padding:9px 14px;border-radius:999px}
.foot-quick a:hover{background:rgba(255,255,255,.16)}
.foot2 .wrap{color:#9FB8BE}
.foot2 a{color:#CFE0E3}
.foot2 .menu-list a{color:#CFE0E3}

/* ---------- motion ---------- */
@media (prefers-reduced-motion:reduce){.cat,.job,.disc,.dchip,.btn.primary{transition:none}.cat:hover,.job:hover,.disc:hover,.dchip:hover{transform:none}}
.disc-body .ur,.sec-head .ur{text-align:left;direction:rtl;unicode-bidi:plaintext}
.disc-body .ur{align-self:flex-start}
@media (min-width:901px){header.top{position:sticky;top:0}}
.foot-brand .ur{text-align:left;direction:rtl;unicode-bidi:plaintext;align-self:flex-start}
.hero-scene .ur{text-align:left;direction:rtl;unicode-bidi:plaintext}

/* ---------- performance: phones ---------- */
.more-jobs{display:flex;margin:6px auto 0;justify-content:center;background:var(--surface);border:1.5px solid var(--line);font-weight:700;padding:12px 22px}
.more-jobs:hover{border-color:var(--teal);color:var(--teal)}
@media (max-width:759px){
  .scene{animation:none!important;transform:none}
  .scenes .scene:first-child{opacity:1}
  .scene-cap{display:none}
  header.top,.hero-scene .cta-row .btn.cta,.scene-cap{backdrop-filter:none;-webkit-backdrop-filter:none}
  .job,.cat,.dchip,.disc{transition:none}
}
@media (max-width:759px){.scenes .scene:first-child{background-image:url("photos/makran-sunset-m.jpg")!important}}
/* Skip drawing sections below the fold until they scroll near */
.discover,.districts,.guide,#employers,.qual-block,.block:not(:first-of-type){content-visibility:auto;contain-intrinsic-size:auto 900px}

/* ---------- hero photos: smaller, sharper (desktop) ---------- */
.scene{transform:none}
@media (min-width:760px){
  .hero-scene{background:radial-gradient(circle at 15% 20%,#164A55 0,transparent 55%),linear-gradient(120deg,#0A1F28 0%,#0F2E38 55%,#13333D 100%)}
  .scenes{left:auto;right:0;bottom:auto;width:min(56%,760px);aspect-ratio:16/9;
    -webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 30%),linear-gradient(180deg,#000 55%,transparent 100%);
    -webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent 0%,#000 30%),linear-gradient(180deg,#000 55%,transparent 100%);mask-composite:intersect}
  .scene-shade{display:none}
  .scene-cap{right:20px;top:16px;bottom:auto}
}

/* ---------- compact "Closing soon" so the photos show (desktop) ---------- */
@media (min-width:901px){
  .hero-scene .ledger{width:100%;max-width:350px;justify-self:end;align-self:end;padding:12px 14px;border-radius:16px;margin-bottom:-8px}
  .hero-scene .ledger h3{font-size:13.5px}
  .hero-scene .ledger ol{margin-top:6px;gap:0}
  .hero-scene .ledger li:nth-child(n+5){display:none}
  .hero-scene .ledger-row{grid-template-columns:40px 1fr;gap:10px;padding:6px 4px}
  .hero-scene .ledger .days{font-size:12px;padding:5px 0}
  .hero-scene .ledger .t{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .hero-scene .ledger .e{font-size:11.5px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .hero-scene .ledger .ledger-row>span:last-child{min-width:0}
}

/* ---------- Beautiful Balochistan gallery ---------- */
.gallery{padding-block:28px 10px}
.gal-row{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 2px 14px;scrollbar-width:thin}
.gal{flex:0 0 220px;margin:0;position:relative;border-radius:18px;overflow:hidden;scroll-snap-align:start;box-shadow:var(--shadow-1);background:var(--surface-2)}
.gal img{display:block;width:100%;height:275px;object-fit:cover;transition:transform .4s}
.gal:hover img{transform:scale(1.04)}
.gal figcaption{position:absolute;inset:auto 0 0 0;padding:34px 12px 11px;background:linear-gradient(180deg,transparent,rgba(6,18,26,.88));color:#fff;display:flex;flex-direction:column;gap:1px}
.gal figcaption b{font-size:14.5px;font-weight:700}
.gal figcaption [lang="ur"]{font-family:var(--urdu);color:#FFD27A;font-size:13px;line-height:1.8;direction:rtl;align-self:flex-start}
.gal figcaption small{font-size:11.5px;color:#BFE3DE}
@media (max-width:640px){.gal{flex-basis:62%}.gal img{height:240px}}
@media (prefers-reduced-motion:reduce){.gal img{transition:none}}

/* ---------- Hiring now strip above hero ---------- */
.hiring-top{background:var(--surface);border-bottom:1px solid var(--line);padding-block:12px}
.ht-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.ht-head h2{font-size:15px;font-weight:800;margin:0;display:flex;align-items:center;gap:8px;text-transform:uppercase;letter-spacing:.06em}
.ht-head .ur{font-family:var(--urdu);font-size:14px;color:var(--teal);text-transform:none;letter-spacing:0}
.ht-dot{width:9px;height:9px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 25%,transparent);animation:htPulse 1.6s infinite}
@keyframes htPulse{50%{box-shadow:0 0 0 7px transparent}}
.ht-all{font-size:13px;font-weight:700;color:var(--accent);text-decoration:none;white-space:nowrap}
.ht-row{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:4px;scrollbar-width:thin}
.ht-row .emp-chip{flex:0 0 240px;scroll-snap-align:start;border-radius:12px;box-shadow:var(--shadow-1);border:0}
.ht-row .emp-chip:hover{box-shadow:var(--shadow-2)}
.ht-row .emp-chip>span:last-child{min-width:0}
@media (max-width:640px){.ht-row .emp-chip{flex-basis:200px}}
@media (prefers-reduced-motion:reduce){.ht-dot{animation:none}}

/* Private Jobs nav key */
.navlinks a.nav-pvt{background:#FFF1DE;color:#B35A00;font-weight:700;border:1px solid #F2A541}
.navlinks a.nav-pvt:hover{background:#E89A1E;color:#fff}
:root[data-theme="dark"] .navlinks a.nav-pvt{background:#3A2A12;color:#F7B955;border-color:#8A5A1A}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .navlinks a.nav-pvt{background:#3A2A12;color:#F7B955;border-color:#8A5A1A}}

/* UN & INGO */
.navlinks a.nav-un{background:#E3EEFB;color:#1F4E8C;font-weight:700;border:1px solid #6A9BD8}
.navlinks a.nav-un:hover{background:#2F6DB5;color:#fff}
:root[data-theme="dark"] .navlinks a.nav-un{background:#14273D;color:#9CC3F0;border-color:#2F5C8F}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .navlinks a.nav-un{background:#14273D;color:#9CC3F0;border-color:#2F5C8F}}
.un-block{background:linear-gradient(135deg,#EAF2FC,var(--surface));border-color:#BBD3F0}
.un-block .ngo-kicker{color:#1F4E8C}
.un-block .ngo-all{background:#2F6DB5;color:#fff;border-color:#2F6DB5}
:root[data-theme="dark"] .un-block{background:linear-gradient(135deg,#132538,var(--surface));border-color:#24496F}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .un-block{background:linear-gradient(135deg,#132538,var(--surface));border-color:#24496F}}
.navlinks{flex-wrap:nowrap;gap:6px}
.navlinks a{white-space:nowrap}
.navlinks a.hide-sm{display:none}
@media (max-width:1100px){.navlinks a.nav-iv{display:none}}
