@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;700;800;900&display=swap');
:root{--ink:#162033;--muted:#667085;--paper:#fff;--soft:#f4f7fb;--line:#dfe6f2;--brand:#243b8f;--brand2:#0f766e;--shadow:0 18px 45px rgba(22,32,51,.10);--font:'Vazirmatn','Vazir',Tahoma,Arial,sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;text-size-adjust:100%}body{margin:0;min-height:100vh;overflow-x:hidden;font-family:var(--font);color:var(--ink);line-height:1.85;background:radial-gradient(circle at 95% 0%,rgba(36,59,143,.16),transparent 34%),radial-gradient(circle at 0% 10%,rgba(15,118,110,.12),transparent 28%),var(--soft)}a{color:inherit}
.container{width:min(1220px,calc(100% - 36px));margin:auto;padding:32px 0 76px}.topbar{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-bottom:14px}.site-nav{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-inline-start:auto}.site-nav a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;border:1px solid var(--line);background:rgba(255,255,255,.92);color:var(--brand);border-radius:999px;padding:8px 13px;text-decoration:none;font-size:12.5px;font-weight:900;box-shadow:0 8px 20px rgba(22,32,51,.055)}.site-nav a:hover{border-color:rgba(36,59,143,.34);background:#fff}
.hero{position:relative;overflow:hidden;border-radius:34px;padding:38px;background:linear-gradient(135deg,#111827 0%,#243b8f 50%,#0f766e 100%);color:#fff;box-shadow:var(--shadow);margin-bottom:20px;isolation:isolate}.hero:before{content:"";position:absolute;width:310px;height:310px;border-radius:50%;background:rgba(255,255,255,.10);left:-115px;top:-125px}.hero:after{content:"";position:absolute;width:220px;height:220px;border-radius:50%;background:rgba(255,255,255,.09);right:80px;bottom:-105px}.hero-inner{position:relative;z-index:2;display:grid;grid-template-columns:1.2fr .8fr;gap:24px;align-items:center}.badge{display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.13);border-radius:999px;padding:7px 15px;font-size:13px;margin-bottom:13px;backdrop-filter:blur(9px);font-weight:800}.hero h1{font-size:36px;line-height:1.35;white-space:nowrap;letter-spacing:0;margin:0 0 10px;overflow-wrap:anywhere}.hero p{margin:0;color:rgba(255,255,255,.86);font-size:15px;max-width:770px;font-weight:500;text-align:justify;text-align-last:right}.meta-card{background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.22);border-radius:24px;padding:22px;backdrop-filter:blur(10px)}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.stat{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);border-radius:18px;padding:14px}.stat b{display:block;font-size:24px}.stat span{font-size:12px;color:rgba(255,255,255,.80)}
.guide-panel{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:18px 0}.guide-box{display:flex;flex-direction:column;justify-content:center;min-height:112px;background:#fff;border:1px solid rgba(203,213,225,.86);border-radius:22px;padding:18px;box-shadow:0 16px 42px rgba(22,32,51,.075)}.guide-box b{display:block;margin-bottom:5px}.guide-box p{margin:0;color:var(--muted);font-size:13px;font-weight:500;line-height:1.9}
.index-tools{background:#fff;border:1px solid rgba(203,213,225,.86);border-radius:24px;padding:16px;display:flex;flex-direction:column;align-items:stretch;gap:12px;margin-bottom:18px;box-shadow:0 16px 42px rgba(22,32,51,.075)}.search-input{width:100%;min-width:0;height:50px;border:1px solid var(--line);border-radius:15px;background:#fbfcff;color:var(--ink);font-family:inherit;font-size:15px;padding:12px 14px;transition:.2s}.search-input:focus{outline:0;border-color:var(--brand);background:#fff;box-shadow:0 0 0 4px rgba(36,59,143,.10)}.filter-tabs{width:100%;display:flex;flex-wrap:wrap;gap:8px;align-items:center}.filter-btn{border:1px solid var(--line);background:#fbfcff;color:#334155;border-radius:999px;min-height:42px;padding:10px 13px;font-family:inherit;font-weight:900;cursor:pointer}.filter-btn.active{background:var(--brand);color:#fff;border-color:var(--brand)}
.category-list{display:grid;gap:24px}.category-section{scroll-margin-top:18px}.category-section[hidden],.form-card[hidden]{display:none!important}.category-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;padding:0 2px}.category-header h2{font-size:20px;line-height:1.5;margin:0;color:#162033;overflow-wrap:anywhere}.category-count{font-size:12px;font-weight:900;color:var(--brand);background:#eef2ff;border:1px solid var(--line);border-radius:999px;padding:6px 10px;white-space:nowrap}.cards-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(285px,1fr));gap:16px;align-items:stretch}.form-card{position:relative;display:flex;flex-direction:column;gap:12px;text-decoration:none;background:#fff;border:1px solid rgba(203,213,225,.86);border-radius:24px;padding:20px;box-shadow:0 16px 42px rgba(22,32,51,.075);transition:.22s;min-height:0}.form-card:hover{transform:translateY(-4px);box-shadow:0 24px 50px rgba(22,32,51,.10);border-color:rgba(36,59,143,.35)}.card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.card-icon{width:46px;height:46px;border-radius:16px;background:linear-gradient(135deg,rgba(36,59,143,.12),rgba(15,118,110,.12));display:grid;place-items:center;font-size:22px}.card-cat{font-size:11px;font-weight:900;color:var(--brand);background:#eef2ff;border-radius:999px;padding:5px 9px;white-space:nowrap}.form-card h2{font-size:18px;line-height:1.55;margin:0;overflow-wrap:anywhere}.form-card p{font-size:13px;color:var(--muted);margin:0;flex:1;font-weight:500;line-height:1.9}.card-meta{display:flex;flex-wrap:wrap;gap:8px}.pill{font-size:11px;font-weight:900;color:#475569;background:#f5f7fb;border:1px solid var(--line);border-radius:999px;padding:5px 8px}.card-action{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding-top:12px;color:var(--brand);font-weight:900}.footer{text-align:center;color:var(--muted);font-size:12px;margin-top:24px}
@media(min-width:1280px){.container{width:min(1260px,calc(100% - 56px))}.hero{padding:42px}.cards-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:980px){.hero-inner,.guide-panel,.stats-grid{grid-template-columns:1fr}.hero{padding:28px 22px}.cards-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero h1{font-size:30px;white-space:normal}}
@media(max-width:699px){body{line-height:1.8;background:linear-gradient(180deg,#eef6fb 0%,#f7f9fd 44%,#eef4f8 100%)}.container{width:calc(100% - 20px);padding:14px 0 82px}.topbar{display:grid;gap:8px;margin-bottom:10px}.site-nav{width:100%;justify-content:center;margin-inline-start:0}.site-nav a{flex:1 1 140px;border-radius:15px;min-height:42px}.hero{border-radius:24px;padding:24px 18px;margin-bottom:14px}.hero:before{width:210px;height:210px;left:-92px;top:-96px}.hero:after{width:160px;height:160px;right:auto;left:12px;bottom:-84px}.hero-inner{gap:18px}.badge{font-size:12px;padding:6px 12px;margin-bottom:10px}.hero h1{font-size:24px;line-height:1.5;white-space:normal}.hero p{font-size:14px;line-height:2}.meta-card{padding:12px;border-radius:20px}.stats-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.stat{padding:10px 8px;text-align:center}.stat b{font-size:20px}.stat span{font-size:11px}.guide-panel{gap:10px;margin:12px 0}.guide-box{border-radius:18px;padding:15px 14px}.guide-box p{font-size:12.5px}.index-tools{border-radius:20px;padding:12px;gap:10px;margin-bottom:14px}.search-input{height:48px;font-size:15px}.filter-tabs{flex-wrap:nowrap;overflow-x:auto;gap:7px;padding-bottom:3px;scrollbar-width:none}.filter-tabs::-webkit-scrollbar{display:none}.filter-btn{flex:0 0 auto;min-height:42px;padding:9px 12px;font-size:12px}.category-list{gap:18px}.category-header{align-items:flex-end}.category-header h2{font-size:18px}.category-count{font-size:11px}.cards-grid{grid-template-columns:1fr;gap:12px}.form-card{border-radius:19px;padding:16px;gap:10px}.form-card:hover{transform:none}.card-icon{width:42px;height:42px;border-radius:14px}.form-card h2{font-size:16px;line-height:1.7}.form-card p{font-size:12.5px}.pill{font-size:10.8px}.card-action{padding-top:10px}}
@media(max-width:380px){.container{width:calc(100% - 14px)}.hero{padding:22px 14px}.hero h1{font-size:22px}.stats-grid{grid-template-columns:1fr}}
@media(hover:none){.form-card:hover{transform:none}.form-card{transition:border-color .18s ease,background-color .18s ease,box-shadow .18s ease}}

@media print{
  @page{size:A4;margin:12mm}
  html,body{background:#fff!important;color:#111827!important;font-size:11px!important;line-height:1.6!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  body{min-height:auto!important;overflow:visible!important}
  *{box-shadow:none!important;text-shadow:none!important}
  a{text-decoration:none!important;color:inherit!important}
  .container{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
  .topbar,.site-nav,.index-tools,.footer,.card-action{display:none!important}
  .hero{margin:0 0 7mm!important;padding:8mm 9mm!important;border-radius:0!important;background:#fff!important;color:#111827!important;border:1px solid #cbd5e1!important;border-top:4px solid #243b8f!important;overflow:hidden!important}
  .hero:before,.hero:after{display:none!important}
  .hero-inner{display:grid!important;grid-template-columns:1fr!important;gap:4mm!important}
  .badge{width:max-content!important;background:#eef2ff!important;border:1px solid #c7d2fe!important;color:#243b8f!important;padding:2mm 4mm!important;margin:0 0 3mm!important;border-radius:999px!important;backdrop-filter:none!important}
  .hero h1{font-size:20px!important;line-height:1.45!important;margin:0 0 2mm!important;color:#111827!important;white-space:normal!important}
  .hero p{font-size:11.5px!important;line-height:1.85!important;color:#374151!important;max-width:none!important;text-align:justify!important;text-align-last:right!important}
  .meta-card{background:#f8fafc!important;border:1px solid #dbe3ef!important;border-radius:8px!important;padding:4mm!important;backdrop-filter:none!important;color:#111827!important}
  .stats-grid{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:3mm!important}
  .stat{border:1px solid #dbe3ef!important;background:#fff!important;border-radius:8px!important;padding:4mm!important}
  .stat b{font-size:18px!important;color:#243b8f!important}
  .stat span{color:#4b5563!important}
  .guide-panel{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:3mm!important;margin:0 0 5mm!important}
  .guide-box{border:1px solid #dbe3ef!important;background:#fff!important;border-radius:8px!important;padding:4mm!important;min-height:auto!important;break-inside:avoid!important;page-break-inside:avoid!important}
  .guide-box p{font-size:10.8px!important;line-height:1.75!important;color:#4b5563!important}
  .category-list{display:grid!important;gap:5mm!important}
  .category-section{break-inside:auto!important;page-break-inside:auto!important;margin:0!important}
  .category-section[hidden],.form-card[hidden]{display:none!important}
  .category-header{margin:0 0 3mm!important;padding:0 0 2mm!important;border-bottom:1px solid #e5e7eb!important}
  .category-header h2{font-size:15px!important;line-height:1.5!important;color:#111827!important}
  .category-count{font-size:10px!important;background:#eef2ff!important;border:1px solid #c7d2fe!important;color:#243b8f!important;border-radius:999px!important;padding:1.5mm 3mm!important}
  .cards-grid{display:grid!important;grid-template-columns:repeat(2,1fr)!important;gap:3mm!important}
  .form-card{break-inside:avoid!important;page-break-inside:avoid!important;border:1px solid #dbe3ef!important;border-radius:7px!important;background:#fff!important;padding:4mm!important;min-height:auto!important}
  .card-head{gap:3mm!important}
  .card-icon{width:10mm!important;height:10mm!important;border-radius:6px!important;background:#eef6ff!important;font-size:16px!important}
  .card-cat{font-size:9.5px!important;background:#eef2ff!important;color:#243b8f!important;border:1px solid #dbe3ef!important}
  .form-card h2{font-size:12.5px!important;line-height:1.55!important;margin:0!important;color:#111827!important}
  .form-card p{font-size:10.3px!important;line-height:1.75!important;color:#4b5563!important;margin:0!important}
  .card-meta{gap:1.5mm!important}
  .pill{font-size:9px!important;border:1px solid #dbe3ef!important;background:#f8fafc!important;color:#475569!important;padding:1.2mm 2mm!important}
}
