/* ===== صفحه اختصاصی اعضای تیم مهندسی ===== */
:root{
  --green-900:#0c3b23; --green-700:#14532d; --green-600:#17663a; --green-100:#e8f1ea;
  --gold:#c9a227; --gold-2:#e3c36a; --gold-dark:#a17f14;
  --cream:#f8f6ef; --paper:#ffffff; --ink:#22302a; --muted:#6b7a72; --line:#e6e3d8;
  --radius:18px;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:"Vazirmatn",Tahoma,sans-serif;background:linear-gradient(180deg,var(--cream),#fffdf7 55%,var(--cream));color:var(--ink);line-height:1.9;overflow-x:hidden;min-height:100vh;display:flex;flex-direction:column}
::selection{background:var(--gold);color:#1c1405}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.container{width:min(1020px,92%);margin-inline:auto}

/* ===== سرصفحه ===== */
.phead{position:relative;background:radial-gradient(900px 460px at 85% -12%,rgba(201,162,39,.2),transparent 62%),linear-gradient(160deg,#0c3b23 0%,#14532d 58%,#17663a 100%);color:#f2f4ec;padding:28px 0 52px;overflow:hidden}
.phead::before{content:"";position:absolute;inset:0;background-image:url("img/pattern.png");background-size:400px 400px;filter:invert(1);opacity:.6;pointer-events:none}
.phead .container{position:relative;z-index:1}
.back{display:inline-flex;align-items:center;gap:8px;font-size:.8rem;font-weight:700;color:#cfe0d4;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:8px 15px;transition:background .25s,color .25s}
.back:hover{background:rgba(255,255,255,.16);color:#fff}
.back svg{width:15px;height:15px;flex:0 0 15px;color:var(--gold-2)}
.phead-grid{display:grid;grid-template-columns:196px minmax(0,1fr);gap:26px;align-items:center;margin-top:26px}
.pphoto{position:relative;margin:0;aspect-ratio:4/5;border-radius:16px;overflow:hidden;border:3px solid var(--gold-2);background:linear-gradient(135deg,#eef4ee,#e0ebe3);box-shadow:0 30px 60px -34px rgba(0,0,0,.6)}
.pphoto img{position:absolute;inset:0;z-index:1;width:100%;height:100%;object-fit:cover}
.pphoto .ph{height:100%;display:grid;place-content:center;justify-items:center;gap:8px;text-align:center;padding:14px;color:var(--muted);font-size:.7rem;line-height:1.9;word-break:break-all}
.pphoto .ph svg{width:26px;height:26px;color:var(--green-600)}
.pkicker{color:var(--gold-2);font-weight:800;font-size:.8rem;letter-spacing:.04em;margin-bottom:8px}
.phead h1{font-size:clamp(1.6rem,3.4vw,2.3rem);font-weight:900;color:#fff;line-height:1.5}
/* گزینه خدمت در حرم مطهر رضوی — تنها برای اعضای دارای این خصوصیت فعال میشود (حذف صفت hidden) */
.pshrine{display:inline-flex;align-items:center;gap:8px;margin-top:14px;font-size:.76rem;font-weight:800;color:#1c1405;background:linear-gradient(135deg,var(--gold-2),var(--gold));border-radius:999px;padding:7px 14px;line-height:1.6}
.pshrine svg{width:15px;height:15px;flex:0 0 15px}
.pshrine img{height:30px;width:auto;flex:0 0 auto;filter:drop-shadow(0 1px 2px rgba(0,0,0,.32))}
.pshrine[hidden]{display:none}

/* ===== بدنه صفحه ===== */
main{flex:1;padding:42px 0 62px}
.pcard{background:var(--paper);border:3px solid var(--green-900);border-radius:var(--radius);padding:24px 26px;box-shadow:0 22px 48px -40px rgba(12,59,35,.5);margin-bottom:16px}
.pcard[hidden]{display:none}
.pcard h2{display:flex;align-items:center;gap:10px;font-size:1.05rem;font-weight:900;color:var(--green-900);line-height:1.7;padding-bottom:12px;margin-bottom:14px;border-bottom:1px dashed rgba(161,127,20,.45)}
.pcard h2 svg{width:20px;height:20px;flex:0 0 20px;color:var(--gold-dark)}
.pcard p{font-size:.92rem;line-height:2.05;color:#33443c}
.plist{list-style:none;display:grid;gap:8px}
.plist li{display:flex;gap:9px;font-size:.9rem;line-height:2;color:#33443c}
.plist li::before{content:"◆";flex:0 0 auto;color:var(--gold);font-size:.6rem;line-height:3}
.ph-txt{color:#bdb7a8;font-weight:700}
.pback{display:inline-flex;align-items:center;gap:9px;margin-top:8px;padding:12px 20px;border-radius:12px;background:linear-gradient(135deg,var(--green-700),var(--green-600));border:2px solid var(--green-900);color:#fff;font-weight:800;font-size:.84rem;transition:background .28s,border-color .28s,color .28s}
.pback:hover{background:linear-gradient(135deg,#f8f1da,#efe0b4);border-color:var(--gold);color:var(--gold-dark)}
.pback svg{width:16px;height:16px;flex:0 0 16px}

/* ===== باکس جامع اطلاعات و سوابق ===== */
.pcard-full{padding:26px 28px}
/* ردیف مدرک و پایهٔ پروانه (کارت طلایی) */
.pgrade{font-size:.94rem;font-weight:800;color:var(--green-900);line-height:2;background:linear-gradient(135deg,#f8f1da,#efe0b4);border:1px solid rgba(161,127,20,.35);border-radius:12px;padding:12px 16px;margin-bottom:20px}
/* زیرعنوان داخل باکس جامع، مثل «سوابق فنی و اجرایی» */
.psub{display:flex;align-items:center;gap:12px;font-size:.95rem;font-weight:900;color:var(--green-900);line-height:1.9;margin-bottom:12px}
.psub::after{content:"";flex:1;height:0;border-top:1px dashed rgba(161,127,20,.5)}
.pcard-full .plist{gap:10px}
/* فاصلهٔ بخش‌های پیاپی در باکس جامع (هنگامی که چند زیرعنوان در یک باکس می‌آید) */
.pcard-full .plist + .psub{margin-top:22px}
/* فهرست فرعی داخل یک ردیف، مثل فهرست پروژه‌های یک سابقه */
.plist-sub{gap:7px;margin-top:8px;padding-inline-start:18px}
.plist-sub li::before{content:"◇";color:var(--gold-dark)}

/* ===== footer ===== */
footer.site{background:var(--green-900);color:#a9c0b1;padding:32px 0 26px;text-align:center;position:relative;overflow:hidden}
footer.site::before{content:"";position:absolute;inset:0;background-image:url("img/pattern.png");background-size:400px 400px;filter:invert(1);opacity:.65;pointer-events:none}
footer.site .container{position:relative}
footer.site .star{color:var(--gold-2);font-size:1.2rem;margin-bottom:8px}
footer.site b{color:#fff;display:block;font-size:.92rem}

@media(max-width:760px){
  .phead{padding:22px 0 38px}
  .phead-grid{grid-template-columns:134px minmax(0,1fr);gap:18px}
  .pcard{padding:20px 18px}
}
@media(max-width:460px){
  .phead-grid{grid-template-columns:104px minmax(0,1fr);gap:14px}
  .phead h1{font-size:1.25rem}
}
