/*
 * صفحه مدیران (.ex-*) و صفحه کاتالوگ‌ها و مدارک عمومی (.ct-*)
 * اجزای مشترک (سرتیتر، دکمه‌ها، برچسب‌ها و حالت خالی) در module.css
 */

/* ================================================================ مدیران */
.ex-photo{position:relative;display:block;overflow:hidden;border-radius:50%;background:linear-gradient(150deg,#e5efea,#cfe0d6)}
.ex-photo img{width:100%;height:100%;object-fit:cover;object-position:top}
.ex-initial{display:grid;place-items:center;width:100%;height:100%;font-size:38px;font-weight:800;color:var(--brand)}

/* مدیر ارشد */
.ex-lead{display:grid;grid-template-columns:300px minmax(0,1fr);gap:40px;align-items:center;margin-bottom:46px;padding:30px;border:1px solid #dbe6df;border-radius:28px;background:radial-gradient(circle at 15% 50%,#e5efea,transparent 55%),#fff}
[dir=rtl] .ex-lead{background:radial-gradient(circle at 85% 50%,#e5efea,transparent 55%),#fff}
.ex-lead-photo{position:relative;display:block;aspect-ratio:4/5;overflow:hidden;border-radius:24px;background:linear-gradient(150deg,var(--brand-deep),var(--brand));box-shadow:0 24px 46px #094b5530}
.ex-lead-photo:after{content:'';position:absolute;inset:auto 0 0;height:40%;background:linear-gradient(0deg,#022f3666,transparent)}
.ex-lead-photo img{width:100%;height:100%;object-fit:cover;object-position:top}
.ex-lead-photo .ex-initial{color:#fff;font-size:80px}
.ex-lead-copy h2{margin:12px 0 4px;font-size:clamp(24px,2.6vw,32px);line-height:1.6;color:#164c55}
.ex-lead-bio{display:-webkit-box;max-width:680px;margin:14px 0 22px;overflow:hidden;-webkit-line-clamp:5;-webkit-box-orient:vertical;font-size:14px;line-height:2.2;white-space:pre-line;color:#566e6c}
.ex-unit{margin:0;font-size:13px;color:#71878a}

/* شبکه مدیران */
.ex-section{margin-bottom:44px}
.ex-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:18px}
.ex-card-btn{display:flex;flex-direction:column;align-items:center;gap:4px;width:100%;height:100%;padding:24px 16px 18px;border:1px solid #dbe6df;border-radius:22px;background:#fff;color:inherit;font:inherit;text-align:center;cursor:pointer;transition:transform .25s,box-shadow .25s,border-color .25s}
.ex-card-btn:hover{transform:translateY(-4px);border-color:#a9c4b8;box-shadow:0 16px 34px #094b5514}
.ex-card-btn .ex-photo{width:120px;height:120px;margin-bottom:12px;box-shadow:0 0 0 5px #fff,0 0 0 6px #d9c38b}
.ex-card-btn strong{font-size:15px;line-height:1.8;color:#1d464d}
.ex-position{font-size:13px;color:var(--brand)}
.ex-card-btn small{font-size:11px;color:#7f948f}
.ex-more{margin-top:10px;padding:4px 12px;border-radius:999px;background:#eef5f1;font-size:11px;font-weight:600;color:var(--brand)}
.ex-more i{font-style:normal;color:#7d6630}
.ex-more i:before{content:'';display:inline-block;width:4px;height:4px;margin-inline:6px;border-radius:50%;background:currentColor;vertical-align:middle}

/* مدیران سابق */
.ex-former{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px;margin:0;padding:0;list-style:none}
.ex-former button{display:flex;align-items:center;gap:12px;width:100%;padding:10px 14px;border:1px solid #e3ece7;border-radius:16px;background:#f9fbfa;color:inherit;font:inherit;text-align:start;cursor:pointer;transition:background .2s}
.ex-former button:hover{background:#eef5f1}
.ex-photo.is-small{flex:none;width:48px;height:48px;filter:grayscale(.6)}
.ex-photo.is-small .ex-initial{font-size:18px}
.ex-former span>strong{display:block;font-size:13px;color:#2f4d52}
.ex-former span>small{font-size:11px;color:#7f948f}

/* شرایط استفاده از عکس‌ها */
.ex-notice{display:flex;gap:18px;align-items:flex-start;padding:22px 24px;border:1px dashed #c9b07a;border-radius:20px;background:#fbf8ef}
.ex-notice>svg{flex:none;width:34px;height:34px;fill:none;stroke:#9a7b33;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.ex-notice h2{font-size:15px;color:#7d6630}
.ex-notice p{margin:6px 0 10px;font-size:13px;line-height:2.1;white-space:pre-line;color:#5f5a48}
.ex-notice a{font-size:13px;font-weight:700;color:var(--brand)}

/* پنجره بیوگرافی و عکس‌ها */
.ex-dialog{position:fixed;width:min(760px,calc(100% - 28px));max-height:calc(100dvh - 40px);padding:0;overflow:auto;border:0;border-radius:24px;background:#fff;color:#354f54;box-shadow:0 30px 80px #022f3655}
.ex-dialog::backdrop{background:#022f36b3;backdrop-filter:blur(3px)}
.ex-dialog[open]{animation:ex-in .3s ease}
.ex-close{position:absolute;top:14px;inset-inline-end:14px;z-index:2;display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:50%;background:#eef5f1;color:var(--brand);font-size:24px;line-height:1;cursor:pointer}
.ex-close:hover{background:#dde9e3}
.ex-dialog-head{display:flex;align-items:center;gap:20px;padding:28px 28px 20px;padding-inline-end:70px;background:linear-gradient(160deg,#f1f7f4,#fff)}
.ex-dialog-head .ex-photo{flex:none;width:110px;height:110px;box-shadow:0 0 0 4px #fff,0 0 0 5px #d9c38b}
.ex-dialog-head h2{font-size:22px;line-height:1.7;color:#164c55}
.ex-dialog-head .ex-position{margin:0}
.ex-bio,.ex-photos{padding:6px 28px 22px}
.ex-bio h3,.ex-photos h3{margin-bottom:10px;font-size:14px;color:var(--brand)}
.ex-photos h3 small{font-size:11px;font-weight:400;color:#7f948f}
.ex-bio p{margin:0;font-size:14px;line-height:2.2;white-space:pre-line;color:#40565a}
.ex-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.ex-photo-grid figure{margin:0}
.ex-photo-grid .ar-shot{display:block;width:100%;aspect-ratio:4/5;padding:0;overflow:hidden;border:0;border-radius:14px;background:#eef5f1;cursor:zoom-in}
.ex-photo-grid .ar-shot img{width:100%;height:100%;object-fit:cover;object-position:top;transition:transform .4s}
.ex-photo-grid .ar-shot:hover img{transform:scale(1.05)}
.ex-photo-grid figcaption{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px;margin-top:6px;font-size:11px;color:#7f948f}
.ex-download{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:8px;background:#eef5f1;color:var(--brand);font-weight:700}
.ex-download:hover{background:var(--brand);color:#fff}
.ex-download svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* ================================================================ کاتالوگ‌ها */
.ct-feature{display:grid;grid-template-columns:240px minmax(0,1fr);gap:40px;align-items:center;margin-bottom:44px;padding:34px;border-radius:28px;background:linear-gradient(135deg,var(--brand-deep),var(--brand) 65%,#0f7480);color:#fff;overflow:hidden;position:relative;isolation:isolate}
.ct-feature:after{content:'';position:absolute;inset-inline-end:-90px;top:-90px;z-index:-1;width:300px;height:300px;border-radius:50%;border:40px solid #ffffff0f}
.ct-book{position:relative;display:flex;aspect-ratio:3/4;filter:drop-shadow(0 24px 30px #0006);transform:perspective(900px) rotateY(-14deg);transition:transform .5s}
[dir=ltr] .ct-book{transform:perspective(900px) rotateY(14deg)}
.ct-feature:hover .ct-book{transform:perspective(900px) rotateY(0)}
.ct-book-spine{flex:none;width:16px;border-radius:4px 0 0 4px;background:linear-gradient(90deg,#8a6f2f,#c9b07a)}
[dir=rtl] .ct-book-spine{order:2;border-radius:0 4px 4px 0}
.ct-book-cover{position:relative;flex:1;display:flex;flex-direction:column;justify-content:flex-end;gap:6px;padding:22px;border-radius:0 8px 8px 0;background:linear-gradient(160deg,#fff,#eaf2ee);color:var(--brand)}
[dir=rtl] .ct-book-cover{border-radius:8px 0 0 8px}
.ct-book-cover:before{content:'';position:absolute;inset-inline:22px;top:22px;height:44%;border-radius:8px;background:repeating-linear-gradient(135deg,#075b6912 0 8px,transparent 8px 16px),linear-gradient(160deg,#075b6922,#c9b07a33)}
.ct-book-cover b{font-size:22px;line-height:1.5}
.ct-book-cover small{font-size:11px;color:#7d6630}
.ct-feature-copy h2{margin:12px 0 10px;font-size:clamp(22px,2.4vw,30px);line-height:1.6;color:#fff}
.ct-feature .md-badge{background:#c9b07a;color:#3d2f0c}
.ct-feature .md-btn{border-color:#fff;background:#fff;color:var(--brand)}
.ct-feature .md-btn:hover{background:#eef5f1}
.ct-meta{display:flex;flex-wrap:wrap;gap:6px 18px;margin:0 0 22px;padding:0;list-style:none;font-size:12px;color:#cfe6e2}

.ct-group{margin-bottom:36px}
.ct-group h2 small{font-size:12px;font-weight:400;color:#8a9d97}
.ct-docs{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}
.ct-doc{display:flex;align-items:center;gap:14px;padding:16px;border:1px solid #d1e2d7;border-radius:16px;background:#fff;transition:border-color .2s,transform .2s,box-shadow .2s}
.ct-doc:hover{border-color:#83aca0;transform:translateY(-2px);box-shadow:0 12px 26px #094b5512}
.ct-doc-ico{display:grid;place-items:center;flex:none;width:54px;height:60px;border-radius:10px 10px 10px 2px;background:#f4f8f6;border:1px solid #d1e2d7;border-bottom:3px solid #baa56e;font:700 11px Arial,sans-serif;color:var(--brand)}
.ct-d-certificate .ct-doc-ico{border-bottom-color:#3f6fb3}
.ct-d-msds .ct-doc-ico{border-bottom-color:#c0572b}
.ct-doc-copy{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
.ct-doc-copy strong{font-size:14px;line-height:1.8;color:#1d464d;overflow-wrap:anywhere}
.ct-doc-copy small{display:flex;flex-wrap:wrap;gap:2px 10px;font-size:11px;color:#7f948f}
.ct-doc-get{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:12px;background:var(--brand);color:#fff}
.ct-doc-get svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ct-cta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:18px;margin-top:20px;padding:26px 28px;border:1px solid #dbe6df;border-radius:22px;background:linear-gradient(120deg,#f3f8f5,#fbf8ef)}
.ct-cta h2{font-size:18px;color:var(--brand)}
.ct-cta p{margin:6px 0 0;font-size:13px;line-height:2;color:#5c7472}
.ct-cta-actions{display:flex;flex-wrap:wrap;gap:10px}

@keyframes ex-in{from{opacity:0;transform:translateY(16px) scale(.98)}to{opacity:1;transform:none}}

@media(max-width:860px){
  .ex-lead,.ct-feature{grid-template-columns:1fr;gap:24px;padding:22px}
  .ex-lead-photo{max-width:280px}
  .ct-book{width:200px}
}
@media(max-width:560px){
  .ex-dialog-head{flex-direction:column;text-align:center;padding:24px 20px 16px}
  .ex-bio,.ex-photos{padding:6px 20px 20px}
  .ex-grid{grid-template-columns:repeat(2,1fr);gap:12px}
  .ex-card-btn .ex-photo{width:88px;height:88px}
}
@media(prefers-reduced-motion:reduce){
  .ex-card-btn,.ct-doc,.ct-book,.ex-photo-grid .ar-shot img{transition:none}
  .ex-card-btn:hover,.ct-doc:hover{transform:none}
  .ex-dialog[open]{animation:none}
}
