/* =====================================================================
   صفحه‌های «اشتغال در …» — افزوده بر country.css (+ life.css برای .sheet)
   ===================================================================== */

/* نامه‌ی پیشنهاد کار شناور در قهرمان */
.l-offer {
  right: 0; bottom: 3%; width: 250px; border-radius: 4px; overflow: hidden; color: #111;
  transform: translateZ(140px) rotate(-7deg);
  box-shadow: 0 2px 2px rgba(0,0,0,.1), calc(var(--mx) * -26px) calc(30px + var(--my) * -20px) 40px -18px rgba(0,0,0,.5);
  direction: ltr; text-align: left;
}
.of__top { display: flex; justify-content: space-between; padding: 10px 14px; background: #111; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.of__body { padding: 14px 16px 16px; }
.of__row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed rgba(43,41,39,.25); font-size: 10px; letter-spacing: .08em; color: #777; }
.of__row b { color: #111; font-size: 11.5px; letter-spacing: .04em; }
.of__lines { margin: 10px 0 6px; height: 34px; background: repeating-linear-gradient(180deg, rgba(43,41,39,.35) 0 1.4px, transparent 1.4px 9px); width: 92%; }
.of__sign { display: flex; align-items: flex-end; justify-content: space-between; }
.of__sign svg { width: 110px; height: 34px; }
.of__sign svg path { fill: none; stroke: #111; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.of__sign span { font-size: 9px; font-weight: 700; letter-spacing: .14em; padding: 3px 6px; border: 1.6px solid #111; border-radius: 3px; transform: rotate(-8deg); }

/* ---------- دسته‌کارت مسیرهای ویزای کاری (سه‌بعدی، ورق زدن کارت رو) ---------- */
.deck { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 50px; align-items: center; }
.deck__stack { position: relative; height: 380px; perspective: 1400px; transform-style: preserve-3d; touch-action: pan-y; }
.dcard {
  position: absolute; inset: 0; padding: 30px 30px 26px; border-radius: 10px; box-sizing: border-box;
  box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 26px 40px -26px rgba(0,0,0,.5);
  transform-origin: 50% 100%;
  transition: transform .75s cubic-bezier(.2, .85, .25, 1.05), opacity .5s ease, filter .5s ease;
  cursor: grab; user-select: none;
}
.dcard.is-drag { transition: none; cursor: grabbing; }
.dcard__num { position: absolute; left: 24px; top: 16px; font-size: 64px; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1.3px rgba(17,17,17,.2); }
.dcard small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: #8a8884; direction: ltr; text-align: right; }
.dcard h3 { margin: 4px 0 12px; font-size: 22px; font-weight: 700; color: #111; }
.dcard p { margin: 0 0 12px; font-size: 14.5px; line-height: 2; color: #3f3d3a; text-align: justify; text-align-last: right; }
.deck__ui { display: flex; align-items: center; gap: 16px; margin-top: 26px; }
.deck__count { min-width: 66px; text-align: center; font-size: 15px; font-weight: 500; color: #6b6967; font-variant-numeric: tabular-nums; }
.deck__hint { margin: 14px 0 0; font-size: 13px; color: #8a8884; }

/* ---------- تخته‌ی یادداشت: حوزه‌های پرتقاضا ---------- */
.board {
  position: relative; padding: 46px 40px 50px; border-radius: 10px;
  background: #ecebe7;
  background-image: radial-gradient(rgba(43,41,39,.10) 1px, transparent 1.4px);
  background-size: 14px 14px;
  box-shadow: inset 0 0 0 10px #1b1b1b, inset 0 0 0 11px #000, 0 30px 40px -30px rgba(0,0,0,.55);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px;
}
.note-card {
  position: relative; padding: 30px 18px 22px; min-height: 170px; box-sizing: border-box;
  box-shadow: 0 2px 2px rgba(0,0,0,.08), 0 14px 18px -12px rgba(0,0,0,.35);
  transform-origin: 50% 8px; transform: rotate(var(--r, 0deg));
  opacity: 0; translate: 0 -40px;
  transition: opacity .5s ease, translate .9s cubic-bezier(.3, 1.6, .5, 1);
  transition-delay: var(--d, 0s);
}
.note-card.is-in { opacity: 1; translate: 0 0; }
.note-card:hover { animation: sway 1.4s ease-in-out; }
@keyframes sway { 0%, 100% { transform: rotate(var(--r, 0deg)); } 25% { transform: rotate(calc(var(--r, 0deg) + 7deg)); } 60% { transform: rotate(calc(var(--r, 0deg) - 4deg)); } }
.note-card::before { /* سنجاق */
  content: ""; position: absolute; left: 50%; top: 6px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #6a6a6a, #111 60%); box-shadow: 0 3px 4px rgba(0,0,0,.35);
}
.note-card b { display: block; margin-bottom: 8px; font-size: 17px; color: #111; text-align: center; }
.note-card span { display: block; font-size: 13.5px; line-height: 1.95; color: #4a4845; text-align: center; }

/* ---------- رزومه‌ی حاشیه‌نویسی‌شده ---------- */
.cvx { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 56px; align-items: center; }
.cv3d { perspective: 1300px; }
.cvpaper {
  --px: 0; --py: 0;
  position: relative; aspect-ratio: 210 / 297; padding: 8% 9%; border-radius: 3px; box-sizing: border-box;
  transform-style: preserve-3d;
  transform: rotateY(calc(-14deg + var(--px) * 8deg)) rotateX(calc(4deg + var(--py) * -6deg));
  box-shadow: 0 1px 1px rgba(0,0,0,.08), calc(var(--px) * -20px) 34px 48px -30px rgba(0,0,0,.55);
  transition: transform .4s ease;
}
.cv__head { display: flex; align-items: center; gap: 12px; margin-bottom: 9%; }
.cv__ph { width: 22%; aspect-ratio: 1; border-radius: 50%; border: 1.6px solid #2b2927; flex: none; }
.cv__name { flex: 1; }
.cv__name i { display: block; height: 12px; width: 70%; background: #2b2927; border-radius: 2px; margin-bottom: 8px; }
.cv__name em { display: block; height: 6px; width: 45%; background: rgba(43,41,39,.4); border-radius: 2px; }
.cv__sec { margin-bottom: 8%; }
.cv__sec i { display: block; height: 7px; width: 34%; background: #2b2927; border-radius: 2px; margin-bottom: 8px; }
.cv__sec em { display: block; height: 4px; background: rgba(43,41,39,.28); border-radius: 2px; margin-bottom: 6px; }
.cv__sec em:nth-child(3) { width: 88%; } .cv__sec em:nth-child(4) { width: 74%; }
.cvm {
  position: absolute; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: #111; color: #fff; font-size: 14px; font-weight: 700;
  box-shadow: 0 8px 14px -6px rgba(0,0,0,.5), 0 0 0 4px #fff;
  transform: translateZ(60px) scale(0); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); transition-delay: var(--d, 0s);
}
.cvx.is-in .cvm { transform: translateZ(60px) scale(1); }
.tips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.tips li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 6px; box-shadow: 0 1px 1px rgba(0,0,0,.07), 0 12px 22px -18px rgba(0,0,0,.35);
  opacity: 0; transform: translateX(-24px); transition: opacity .5s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.cvx.is-in .tips li { opacity: 1; transform: none; }
.tips b { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #111; color: #fff; font-size: 13px; }
.tips span { font-size: 15px; line-height: 1.9; color: #2b2927; }

@media (max-width: 980px) {
  .deck { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 40px 26px 44px; }
  .cvx { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .cv3d { max-width: 360px; width: 100%; margin: 0 auto; }
}
@media (max-width: 560px) {
  .l-offer { width: 190px; right: -1%; bottom: 1%; }
  .of__body { padding: 10px 12px 12px; }
  .of__row { font-size: 8.5px; } .of__row b { font-size: 10px; }
  .of__sign svg { width: 80px; }
  .deck__stack { height: 470px; }
  .dcard { padding: 24px 20px 20px; }
  .dcard h3 { font-size: 19px; }
  .board { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .cvpaper { transform: rotateY(calc(-8deg + var(--px) * 6deg)) rotateX(3deg); }
}
@media (prefers-reduced-motion: reduce) {
  .dcard, .note-card, .cvm, .tips li { transition: none; animation: none !important; }
  .note-card { opacity: 1; translate: 0 0; }
  .cvm { transform: translateZ(60px) scale(1); }
  .tips li { opacity: 1; transform: none; }
}

/* کارت در حال پرواز نباید صفحه را جابه‌جا کند */
#routes { overflow-x: clip; }
/* بخش‌های رزومه کل برگه را پر کنند */
.cvpaper { display: flex; flex-direction: column; }
.cv__sec { flex: 1; margin-bottom: 0; display: flex; flex-direction: column; justify-content: center; }
