/* ============ CAREERS — فرصت‌های شغلی ============ */

/* ---- مزایا ---- */
.perks{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.perk{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:26px;
  transition:transform .22s,box-shadow .22s,border-color .22s}
.perk:hover{transform:translateY(-4px);box-shadow:var(--sh-sm);border-color:var(--line-2)}
.perk .ic{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;
  background:var(--cyan-50);margin-bottom:16px}
.perk .ic svg{width:20px;height:20px;stroke:var(--petrol);fill:none;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round}
.perk h3{font-size:16.5px;line-height:1.5;margin-bottom:8px}
.perk p{color:var(--muted);font-size:14.5px;line-height:1.9}

/* ---- فیلتر دپارتمان ---- */
.jfilter{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:26px}
.jfilter button{font-family:var(--font-fa);font-size:14.5px;font-weight:600;
  padding:10px 19px;border-radius:999px;border:1px solid var(--line-2);background:#fff;
  color:var(--muted);cursor:pointer;transition:all .2s}
.jfilter button:hover{border-color:var(--cyan);color:var(--petrol-900);transform:translateY(-2px)}
.jfilter button[aria-pressed="true"]{background:var(--cyan-50);border-color:var(--cyan);
  color:var(--cyan-ink);font-weight:700}
.jfilter .jcount{margin-inline-start:auto;font-size:13px;color:var(--muted-2)}

/* ---- کارت شغل (details/summary — بدون JS هم باز می‌شود) ---- */
.jobs{display:flex;flex-direction:column;gap:14px}
.job{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);
  overflow:hidden;transition:border-color .2s,box-shadow .2s}
.job[open]{border-color:var(--cyan-300);box-shadow:var(--sh-sm)}
.job[hidden]{display:none}
.job > summary{list-style:none;cursor:pointer;padding:22px 26px;
  display:grid;grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:"t g" "m g";gap:9px 18px;align-items:center}
.job > summary > h3{grid-area:t}
.job > summary > .jmeta{grid-area:m}
.job > summary > .jtoggle{grid-area:g;align-self:center}
.job > summary::-webkit-details-marker{display:none}
.job > summary:hover{background:var(--wash)}
.job > summary:focus-visible{outline:3px solid var(--cyan);outline-offset:-3px}
.job h3{font-size:18px;line-height:1.5;margin:0}
.job .jmeta{display:flex;flex-wrap:wrap;gap:7px 9px;align-items:center}
.job .jm{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:600;
  color:var(--muted);background:var(--wash-2);border-radius:7px;padding:4px 10px}
.job .jm svg{width:13px;height:13px;stroke:currentColor;fill:none;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round}
.job .jm.dep{background:var(--cyan-50);color:var(--cyan-ink)}
.job .jtoggle{display:inline-flex;align-items:center;gap:8px;font-size:13.5px;font-weight:700;
  color:var(--cyan-ink);white-space:nowrap}
.job .jtoggle svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2.3;
  stroke-linecap:round;stroke-linejoin:round;transition:transform .25s}
.job[open] .jtoggle svg{transform:rotate(180deg)}
.job[open] .jtoggle .lbl-open{display:none}
.job:not([open]) .jtoggle .lbl-close{display:none}

.jbody{padding:0 26px 26px;border-top:1px solid var(--line);margin-top:2px;padding-top:22px}
.jbody p{color:var(--muted);font-size:15.5px;line-height:2;text-align:justify}
.jcols{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin-top:22px}
.jcols h4{font-size:13.5px;font-weight:800;color:var(--petrol-900);margin-bottom:12px}
.jcols ul{margin:0;padding-inline-start:20px;display:flex;flex-direction:column;gap:8px}
.jcols li{font-size:14.5px;line-height:1.9;color:var(--muted)}
.jcols li::marker{color:var(--cyan)}
.jbody .japply{margin-top:24px;padding-top:20px;border-top:1px solid var(--line);
  display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.jbody .japply .note{font-size:13px;color:var(--muted-2)}

.jempty{display:none;padding:48px 0;text-align:center;color:var(--muted)}
.jempty.on{display:block}

/* ---- مسیر استخدام ---- */
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;counter-reset:st}
.step{position:relative;padding-top:14px}
.step::before{counter-increment:st;content:counter(st);
  position:absolute;top:0;inset-inline-start:0;
  width:30px;height:30px;border-radius:50%;display:grid;place-items:center;
  font-family:var(--font-en);font-size:13px;font-weight:700;
  background:var(--petrol);color:#fff}
.step .bar{height:2px;background:var(--line);margin:0 0 22px;
  margin-inline-start:38px;margin-top:14px}
.step:last-child .bar{background:linear-gradient(270deg,transparent,var(--line))}
.step h3{font-size:16px;line-height:1.5;margin-bottom:8px}
.step p{color:var(--muted);font-size:14px;line-height:1.9}

/* ---- فرم رزومه ---- */
.cvform{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);
  padding:clamp(26px,3vw,40px);box-shadow:var(--sh-sm)}
.cvform .fg3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.filefield{display:flex;flex-direction:column;gap:7px;margin-bottom:16px}
.filefield > label{font-size:13.5px;font-weight:700;color:var(--petrol-900)}
.filedrop{position:relative;display:flex;align-items:center;gap:14px;
  border:1.5px dashed var(--line-2);border-radius:14px;padding:18px 20px;
  background:var(--wash);cursor:pointer;transition:border-color .2s,background .2s}
.filedrop:hover,.filedrop.over{border-color:var(--cyan);background:var(--cyan-50)}
.filedrop input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer}
.filedrop .ic{flex:0 0 40px;width:40px;height:40px;border-radius:12px;display:grid;
  place-items:center;background:#fff;border:1px solid var(--line)}
.filedrop .ic svg{width:19px;height:19px;stroke:var(--cyan-ink);fill:none;stroke-width:1.9;
  stroke-linecap:round;stroke-linejoin:round}
.filedrop .tx b{display:block;font-size:14px;color:var(--petrol-900);margin-bottom:3px}
.filedrop .tx span{font-size:12.5px;color:var(--muted-2)}
.filedrop.has .tx b{color:var(--cyan-ink)}

/* معادل‌های محدودشده به .mdl در پوسته، برای این فرم */
.cvform .req{color:#C2410C}
.cvform .field textarea{min-height:88px}
.cvform .spin{display:none;width:15px;height:15px;border-radius:999px;
  border:2px solid rgba(255,255,255,.45);border-top-color:#fff;
  animation:mtgSpin .7s linear infinite}
.cvform.busy .spin{display:inline-block}
.cvform.busy .lbl{opacity:.7}
.cvform.busy #cvSubmit{pointer-events:none}

.cvform .sentbox{display:none;text-align:center;padding:50px 0}
.cvform.sent .cvlive{display:none}
.cvform.sent .sentbox{display:block}
.cvform .sentbox .ok{width:62px;height:62px;border-radius:999px;background:var(--cyan-50);
  display:grid;place-items:center;margin:0 auto 18px}
.cvform .sentbox .ok svg{width:28px;height:28px;stroke:var(--cyan-ink);stroke-width:2.5;fill:none}
.cvform .sentbox p{color:var(--muted);margin-top:10px;line-height:1.95;font-size:15px}

.cv-wrap{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);
  gap:clamp(30px,4vw,56px);align-items:start}
.cv-side h2{font-size:clamp(24px,3vw,34px);line-height:1.35}
.cv-side p{color:var(--muted);margin-top:16px;font-size:16.5px;line-height:2}
.cv-side .assur{margin-top:28px;display:flex;flex-direction:column;gap:13px}
.cv-side .assur .i{display:flex;gap:11px;align-items:flex-start;font-size:14.5px;
  line-height:1.85;color:var(--text)}
.cv-side .assur .i svg{width:19px;height:19px;flex:0 0 19px;margin-top:5px;
  stroke:var(--cyan-ink);fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

@media (max-width:1080px){
  .perks{grid-template-columns:1fr 1fr}
  .steps{grid-template-columns:1fr 1fr;gap:26px 18px}
  .cv-wrap{grid-template-columns:1fr;gap:32px}
  .cvform .fg3{grid-template-columns:1fr 1fr}
}
@media (max-width:720px){
  .perks,.steps,.jcols,.cvform .fg3{grid-template-columns:1fr}
  .job > summary{grid-template-columns:1fr;grid-template-areas:"t" "m" "g";gap:12px}
  .job > summary > .jtoggle{justify-self:start}
  .jfilter .jcount{width:100%;margin-inline-start:0;margin-top:4px}
}
