:root{
  --bg: #FAF7F0;
  --navy: #141140;
  --navy-soft: #221D57;
  --ink: #201C3A;
  --gold: #C49418;
  --gold-soft: #E7C878;
  --gold-tint: #F3E6C4;
  --sage: #5C6B47;
  --line: #E1D9C6;
  --paper: #FFFDF8;
  --max: 1180px;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--bg);
  color:var(--ink);
  font-family:'Vazirmatn', sans-serif;
  font-weight:400;
  line-height:1.85;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
.wrap{max-width:var(--max); margin:0 auto; padding:0 28px;}
.eyebrow{
  font-size:13px; letter-spacing:.5px; font-weight:600; color:var(--gold);
  display:inline-flex; align-items:center; gap:10px;
}
.eyebrow::before{content:""; width:22px; height:1px; background:var(--gold);}
.eyebrow.on-dark{color:var(--gold-soft);}

/* ---------- Header ---------- */
header{
  position:sticky; top:0; z-index:50;
  background:rgba(250,247,240,.94);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.nav-row{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}
.brand{display:flex; align-items:center; gap:12px;}
.brand img{width:42px; height:42px;}
.brand-text{display:flex; flex-direction:column; line-height:1.3;}
.brand-text b{font-size:20px; font-weight:800; color:var(--navy);}
nav.links{display:flex; align-items:center; gap:26px; font-size:14.5px; font-weight:500;}
nav.links > a{position:relative; color:var(--ink); opacity:.82; transition:opacity .2s;}
nav.links > a:hover{opacity:1;}
nav.links > a::after{
  content:""; position:absolute; right:0; bottom:-6px; width:0; height:2px;
  background:var(--gold); transition:width .25s;
}
nav.links > a:hover::after, nav.links > a.active::after{width:100%;}
nav.links > a.active{opacity:1;}

.has-dropdown{position:relative;}
.dropdown{
  position:absolute; top:calc(100% + 16px); right:-14px; min-width:210px;
  background:var(--paper); border:1px solid var(--line); border-radius:4px;
  box-shadow:0 14px 32px rgba(20,17,64,.1); padding:8px;
  opacity:0; visibility:hidden; transform:translateY(6px);
  transition:all .2s;
}
.has-dropdown:hover .dropdown{opacity:1; visibility:visible; transform:translateY(0);}
.dropdown a{display:block; padding:10px 14px; font-size:13.8px; border-radius:3px; opacity:.85;}
.dropdown a:hover{background:var(--gold-tint); opacity:1;}

.nav-cta{
  background:var(--navy); color:#fff; font-size:13.5px; font-weight:600;
  padding:10px 20px; border-radius:3px; transition:background .2s; white-space:nowrap;
}
.nav-cta:hover{background:var(--gold); color:var(--navy);}
.cta-mobile-link{display:none;}
.menu-btn{display:none; background:none; border:0; cursor:pointer; color:var(--navy); padding:6px; flex:none;}

/* ---------- Page hero (inner pages) ---------- */
.page-hero{
  background:var(--navy); color:#fff; padding:64px 0 56px; position:relative; overflow:hidden;
}
.page-hero .wrap{position:relative; z-index:2;}
.page-hero h1{font-size:clamp(28px,3.6vw,42px); font-weight:800; margin-top:14px;}
.page-hero p{color:#C7C3DC; margin-top:14px; max-width:560px; font-size:15px;}
.page-hero-motif{position:absolute; inset:0; opacity:.35;}
.crumbs{font-size:12.5px; color:#9A96C4; margin-top:22px; display:flex; gap:8px; align-items:center;}
.crumbs a{opacity:.9;} .crumbs a:hover{color:var(--gold-soft);}

/* ---------- Sub-nav (tabs) for pages with subsections ---------- */
.subnav{
  position:sticky; top:71px; z-index:40; background:var(--paper);
  border-bottom:1px solid var(--line);
}
.subnav .wrap{display:flex; gap:8px; overflow-x:auto;}
.subnav a{
  padding:16px 6px; font-size:14px; font-weight:600; color:#7A759A; white-space:nowrap;
  border-bottom:2px solid transparent; margin-left:26px;
}
.subnav a:hover{color:var(--navy);}
.subnav a.active{color:var(--navy); border-color:var(--gold);}

/* ---------- Section heading ---------- */
.section{padding:96px 0;}
.section.tight{padding:72px 0;}
.section-head{max-width:640px; margin-bottom:56px;}
.section-head h2{
  font-size:clamp(26px,3vw,36px); font-weight:800; color:var(--navy);
  margin-top:14px; line-height:1.5;
}
.section-head p{color:#5B5670; font-size:15.5px; margin-top:14px;}
.section-head.center{margin-left:auto; margin-right:auto; text-align:center;}

.prose{max-width:760px; font-size:15.5px; color:#3C3856; line-height:2.1;}
.prose p + p{margin-top:18px;}
.prose h3{color:var(--navy); font-size:19px; font-weight:700; margin:36px 0 12px;}

/* ---------- Mission quote strip ---------- */
.quote-strip{padding:64px 0; text-align:center; border-bottom:1px solid var(--line);}
.quote-strip .rule{width:60px; height:2px; background:var(--gold); margin:0 auto 30px;}
.quote-strip p{
  font-family:'Noto Naskh Arabic', serif; font-weight:600;
  font-size:clamp(19px,2.4vw,25px); line-height:2.1; color:var(--navy);
  max-width:820px; margin:0 auto;
}

/* ---------- Cards / grids ---------- */
.grid-4{display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line);}
.grid-3{display:grid; grid-template-columns:repeat(3,1fr); gap:24px;}
.grid-2{display:grid; grid-template-columns:1fr 1fr; gap:24px;}
.card{background:var(--paper); padding:34px 28px; transition:background .25s;}
.card:hover{background:var(--gold-tint);}
.card .icon{width:36px; height:36px; margin-bottom:20px; color:var(--sage);}
.card h3{font-size:16.5px; font-weight:700; color:var(--navy); margin-bottom:10px;}
.card p{font-size:13.8px; color:#5B5670;}

.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:14px 26px; border-radius:3px; font-size:14.5px; font-weight:600;
  transition:all .2s; cursor:pointer; border:1px solid transparent;
}
.btn-gold{background:var(--gold); color:var(--navy);}
.btn-gold:hover{background:var(--gold-soft);}
.btn-outline{border-color:rgba(255,255,255,.35); color:#fff;}
.btn-outline:hover{border-color:#fff; background:rgba(255,255,255,.06);}
.btn-outline-navy{border-color:var(--navy); color:var(--navy);}
.btn-outline-navy:hover{background:var(--navy); color:#fff;}

/* ---------- Timeline (تاریخچه) ---------- */
.timeline{max-width:760px; position:relative; padding-right:26px; border-right:2px solid var(--line);}
.timeline-item{position:relative; padding-bottom:44px;}
.timeline-item:last-child{padding-bottom:0;}
.timeline-item::before{
  content:""; position:absolute; right:-33px; top:4px; width:12px; height:12px;
  border-radius:50%; background:var(--gold); border:3px solid var(--paper); box-shadow:0 0 0 1px var(--gold);
}
.timeline-item .tag{font-size:12.5px; font-weight:700; color:var(--gold); margin-bottom:6px; display:block;}
.timeline-item h4{font-size:16.5px; font-weight:700; color:var(--navy); margin-bottom:8px;}
.timeline-item p{font-size:14px; color:#5B5670;}

/* ---------- Board grid (هیئت امنا/مدیره) ---------- */
.board-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px;}
.board-card{
  background:var(--paper); border:1px solid var(--line); border-radius:4px; padding:26px;
  text-align:center;
}
.board-avatar{
  width:74px; height:74px; border-radius:50%; margin:0 auto 16px;
  background:linear-gradient(145deg,var(--navy),var(--navy-soft));
  display:flex; align-items:center; justify-content:center; color:var(--gold-soft); font-weight:800; font-size:20px;
}
.board-card h4{font-size:15.5px; font-weight:700; color:var(--navy); margin-bottom:4px;}
.board-card span{font-size:12.5px; color:var(--sage); font-weight:600;}
.board-card p{font-size:13px; color:#5B5670; margin-top:10px;}
.org-structure{display:grid; grid-template-columns:repeat(auto-fit, minmax(180px, 1fr)); gap:14px; margin-top:16px;}
.org-node{background:var(--gold-tint); border:2px solid transparent; border-radius:4px; padding:22px; text-align:center; cursor:pointer; font-family:inherit; transition:all .2s;}
.org-node:hover{background:#EEDFB0;}
.org-node.active{background:var(--navy); border-color:var(--gold);}
.org-node h4{color:var(--navy); font-size:14.5px; font-weight:700; margin-bottom:6px;}
.org-node p{font-size:12.5px; color:#5B5670;}
.org-node.active h4{color:#fff;}
.org-node.active p{color:#C7C3DC;}
.hoiat-subtabs{
  grid-template-columns:repeat(auto-fit, minmax(140px, 1fr));
  padding-right:20px; border-right:2px solid var(--line); gap:10px;
}
.hoiat-subtabs .org-node{padding:14px 16px;}
.hoiat-subtabs .org-node h4{font-size:12.5px;}
.hoiat-subtabs .org-node p{display:none;}

/* ---------- Documents list (شفافیت) ---------- */
.doc-list{border:1px solid var(--line); border-radius:4px; overflow:hidden;}
.doc-row{
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  padding:20px 24px; background:var(--paper); border-bottom:1px solid var(--line);
}
.doc-row:last-child{border-bottom:0;}
.doc-row .meta{display:flex; align-items:center; gap:16px;}
.doc-row .icon{width:34px; height:34px; color:var(--gold); flex:none;}
.doc-row h4{font-size:15px; font-weight:700; color:var(--navy);}
.doc-row span{font-size:12.5px; color:#8A85A6;}
.doc-status{font-size:11.5px; font-weight:700; padding:5px 12px; border-radius:20px; background:var(--gold-tint); color:var(--navy); white-space:nowrap;}

/* ---------- News (اخبار) ---------- */
.news-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px;}
.news-card{border:1px solid var(--line); border-radius:4px; overflow:hidden; background:var(--paper);}
.news-thumb{
  aspect-ratio:16/10; background:linear-gradient(135deg,var(--navy),var(--navy-soft));
  display:flex; align-items:center; justify-content:center; color:rgba(255,255,255,.25);
}
.news-body{padding:22px;}
.news-date{font-size:12px; color:var(--sage); font-weight:600; margin-bottom:8px;}
.news-body h4{font-size:15.5px; font-weight:700; color:var(--navy); margin-bottom:8px; line-height:1.7;}
.news-body p{font-size:13.5px; color:#5B5670;}

/* ---------- Cooperate (همکاری) ---------- */
.coop-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px;}
.coop-card{
  background:var(--paper); border:1px solid var(--line); border-radius:4px; padding:34px 28px;
  display:flex; flex-direction:column; gap:14px;
}
.coop-card .icon{width:40px; height:40px; color:var(--gold);}
.coop-card h3{font-size:17px; font-weight:700; color:var(--navy);}
.coop-card p{font-size:14px; color:#5B5670; flex:1;}

/* ---------- Contact ---------- */
.contact-grid{display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:start;}
.contact-info .item{display:flex; gap:16px; margin-bottom:26px;}
.contact-info .icon{width:22px; height:22px; color:var(--gold); flex:none; margin-top:3px;}
.contact-info h4{font-size:14.5px; font-weight:700; color:var(--navy); margin-bottom:4px;}
.contact-info p{font-size:14px; color:#5B5670;}
.form{display:flex; flex-direction:column; gap:16px;}
.form label{font-size:13.5px; font-weight:600; color:var(--navy); margin-bottom:6px; display:block;}
.form input, .form textarea{
  width:100%; border:1px solid var(--line); background:var(--paper); border-radius:3px;
  padding:13px 14px; font-family:inherit; font-size:14px; color:var(--ink);
}
.form input:focus, .form textarea:focus{outline:2px solid var(--gold); outline-offset:1px; border-color:var(--gold);}
.form textarea{min-height:130px; resize:vertical;}

/* ---------- Transparency band (reused on home) ---------- */
.transparency{
  display:grid; grid-template-columns:1fr auto; gap:32px; align-items:center;
  background:var(--gold-tint); border-radius:4px; padding:40px 40px;
}
.transparency h3{font-size:19px; font-weight:800; color:var(--navy); margin-bottom:8px;}
.transparency p{font-size:14.5px; color:#5B5670;}

/* ---------- CTA band ---------- */
.cta-band{
  background:var(--navy); color:#fff; text-align:center; padding:96px 0;
  position:relative; overflow:hidden;
}
.cta-band h2{font-size:clamp(26px,3.4vw,38px); font-weight:800; margin-bottom:18px;}
.cta-band p{color:#C7C3DC; max-width:520px; margin:0 auto 34px; font-size:15.5px;}

/* ---------- Footer ---------- */
footer{background:#100E33; color:#B9B5D0; padding:70px 0 30px; font-size:13.8px;}
.foot-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:36px; padding-bottom:46px; border-bottom:1px solid rgba(255,255,255,.08);}
.foot-brand img{width:40px; margin-bottom:16px;}
.foot-brand p{max-width:260px; line-height:1.9; color:#9A96B8;}
.foot-col h4{color:#fff; font-size:13.5px; margin-bottom:16px; font-weight:700;}
.foot-col a{display:block; margin-bottom:11px; color:#B9B5D0; opacity:.85;}
.foot-col a:hover{opacity:1; color:var(--gold-soft);}
.foot-bottom{
  display:flex; justify-content:space-between; align-items:center;
  padding-top:26px; font-size:12.5px; color:#847FA4; flex-wrap:wrap; gap:12px;
}
.foot-bottom .legal-note{color:#6B678C; font-size:11.5px;}

/* ---------- Responsive ---------- */
@media (max-width:900px){
  .nav-row{gap:10px;}
  .brand-text b{font-size:16px;}
  nav.links{display:none;}
  .nav-cta{display:none;}
  .cta-mobile-link{display:block;}
  nav.links.mobile-open{
    display:flex; flex-direction:column; gap:0; position:absolute; top:100%; right:0; left:0;
    background:var(--paper); border-bottom:1px solid var(--line); padding:8px 28px 18px;
  }
  nav.links.mobile-open > a{padding:13px 0; border-bottom:1px solid var(--line);}
  nav.links.mobile-open .dropdown{
    position:static; opacity:1; visibility:visible; transform:none; box-shadow:none;
    border:0; padding:0 0 0 14px; display:none;
  }
  nav.links.mobile-open .has-dropdown:hover .dropdown{display:block;}
  header{position:relative;}
  .menu-btn{display:block;}
  .grid-4{grid-template-columns:1fr 1fr;}
  .grid-3, .board-grid, .news-grid, .coop-grid{grid-template-columns:1fr;}
  .grid-2, .contact-grid{grid-template-columns:1fr;}
  .foot-grid{grid-template-columns:1fr 1fr;}
  .transparency{grid-template-columns:1fr; text-align:center;}
  .org-structure{grid-template-columns:1fr;}
  .subnav{top:65px;}
}
@media (max-width:560px){
  .grid-4{grid-template-columns:1fr;}
  .foot-grid{grid-template-columns:1fr;}
  .section{padding:64px 0;}
  .section.tight{padding:52px 0;}
}

/* ---------- نقشه‌ی سلولی همیاری ---------- */
.hoiat-cellmap-wrap{max-width:640px; margin:0 auto;}
.hoiat-cellmap-stats{display:flex; justify-content:center; gap:36px; margin-bottom:20px; text-align:center;}
.hoiat-cellmap-stats b{display:block; font-size:22px; font-weight:800; color:var(--navy);}
.hoiat-cellmap-stats span{font-size:12.5px; color:#8A85A6;}
.hoiat-cellmap-canvas{
  width:100%; height:auto; aspect-ratio:1/1; display:block;
  border:1px solid var(--line); border-radius:4px; background:var(--paper);
  image-rendering:pixelated;
}
.hoiat-cellmap-legend{display:flex; gap:20px; justify-content:center; margin-top:16px; flex-wrap:wrap; font-size:12.5px; color:#5B5670;}
.hoiat-cellmap-legend .dot{display:inline-block; width:10px; height:10px; border-radius:2px; margin-left:6px; vertical-align:middle;}
.dot-normal{background:#F3E6C4;}
.dot-special{background:#E1D9C6;}
.dot-funded{background:var(--gold);}

/* لنگر فرم مشارکت — جبران ارتفاع هدر چسبان هنگام پرش مستقیم */
#participate{scroll-margin-top:100px;}

/* ---------- ردیف تمیز شبکه‌های اجتماعی (تعداد باز) ---------- */
.social-pills{display:flex; flex-wrap:wrap; gap:9px;}
.social-pill{
  display:inline-flex; align-items:center; font-size:12.5px; font-weight:600;
  padding:7px 15px; border-radius:20px; border:1px solid var(--line);
  color:var(--navy); background:var(--paper); transition:all .2s;
}
.social-pill:hover{background:var(--navy); color:#fff; border-color:var(--navy);}
footer .social-pills{gap:6px;}
footer .social-pill{
  padding:5px 13px; font-size:12px; border-color:rgba(255,255,255,.15);
  color:#B9B5D0; background:rgba(255,255,255,.04);
}
footer .social-pill:hover{background:var(--gold); color:var(--navy); border-color:var(--gold);}

/* ---------- بخش «ما را دنبال کنید» در فوتر — شبکه‌ی فشرده به‌جای لیست بلند ---------- */
.foot-social{padding:32px 0; border-bottom:1px solid rgba(255,255,255,.08);}
.foot-social h4{color:#fff; font-size:13.5px; margin-bottom:16px; font-weight:700;}
.foot-social-grid{
  display:grid; grid-template-columns:repeat(3, minmax(110px, 150px)); gap:9px;
}
.foot-social-grid .social-pill{text-align:center; justify-content:center;}
@media (max-width:640px){
  .foot-social-grid{grid-template-columns:repeat(2, 1fr); max-width:320px;}
}
