/* ============================================================================
   ch-114 · صفحهٔ «آزمون‌ها» (‎/exams/‎)
   (۱) ‎#categories‎: درِ «آزمون‌های مهارت‌محور» منو و برگهٔ موبایل به این‌جا می‌آید؛ زیر سربرگ چسبان نمی‌رود.
   (۲) سه بخش بعد از دسته‌بندی‌ها (_exam_hub_sections.html): هر باکس یک قاب رنگی تخت (همان رنگ درِ منو: آبی بین‌المللی،
       طلایی رقابتی، فیروزه‌ای ماک) و فهرستی کوتاه از موارد واقعی. بی گرادیان و بی سایه، فقط رنگ و فاصله.
   ============================================================================ */
#categories{scroll-margin-top:88px}

.xh{display:grid;gap:20px;margin:64px 0 12px}
.xh-sec{
  --xh-c:#86a8ff;
  --xh-soft:rgba(134,168,255,.16);
  /* display:grid; */
  grid-template-columns:minmax(250px,310px) minmax(0,1fr);
  border:1px solid var(--sk-line,rgba(26,28,31,.10));
  border-radius:22px;
  background:var(--sk-surface,#fff);
  overflow:hidden;
  scroll-margin-top:88px
  }
.xh-sec--competition{--xh-c:#ffc218;--xh-soft:rgba(255,194,24,.18)}
.xh-sec--mock{--xh-c:#2dd4bf;--xh-soft:rgba(45,212,191,.16)}

.xh-lead{--lx-cut:var(--xh-c);display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:24px 24px 22px;background:var(--xh-c);color:#181a1d}
.xh-ic{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:rgba(24,26,29,.10);color:#181a1d}
.xh-ic svg{width:24px;height:24px}
.xh-lead h2{margin:6px 0 0;font-size:20px;font-weight:900;line-height:1.5;color:#181a1d}
.xh-lead p{margin:0 0 6px;font-size:13px;line-height:2;color:rgba(24,26,29,.78)}
.xh .xh-btn{margin-top:auto;display:inline-flex;align-items:center;gap:8px;padding:9px 16px;border-radius:999px;background:#181a1d;color:#fff!important;
  font-size:13px;font-weight:800;line-height:1.6;text-decoration:none;transition:background-color .16s ease}
.xh .xh-btn .n{display:inline-grid;place-items:center;min-width:24px;height:22px;padding:0 7px;border-radius:999px;background:rgba(255,255,255,.16);font-size:11.5px}
.xh .xh-btn:hover{background:#2a2c31;color:#fff!important}
.xh .xh-btn:focus-visible{outline:2px solid #181a1d;outline-offset:3px}

.xh-list{list-style:none;margin:0;padding:10px 12px;display:flex;flex-direction:column;justify-content:center;display: none;}
.xh-list li+li{border-top:1px solid var(--sk-line,rgba(26,28,31,.10))}
.xh .xh-row{display:flex;align-items:center;gap:14px;padding:12px 10px;border-radius:14px;color:var(--sk-ink,#1a1c1f);text-decoration:none;transition:background-color .14s ease}
.xh .xh-row:hover{background:var(--sk-surface-2,#f4f3ef)}
.xh-row:focus-visible{outline:2px solid var(--sk-ink,#1a1c1f);outline-offset:-2px}
.xh-thumb{flex:none;width:78px;height:52px;border-radius:10px;overflow:hidden;background:var(--xh-soft)}
.xh-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.xh-date{flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;width:56px;height:56px;border-radius:14px;
  background:var(--xh-soft);color:var(--sk-ink,#1a1c1f);line-height:1.2}
.xh-date b{font-size:19px;font-weight:900}
.xh-date small{font-size:11px;font-weight:700;color:var(--sk-ink-soft,rgba(26,28,31,.62))}
.xh-date[data-live]{background:var(--xh-c)}
.xh-t{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}
.xh-t b{font-size:14.5px;font-weight:800;line-height:1.6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.xh-t small{font-size:12px;font-weight:500;line-height:1.6;color:var(--sk-ink-soft,rgba(26,28,31,.62));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.xh-live{font-style:normal;font-weight:800;color:var(--sk-ink,#1a1c1f)}
.xh-go{flex:none;display:grid;place-items:center;color:var(--sk-ink-faint,rgba(26,28,31,.40));transition:transform .16s ease,color .16s ease}
.xh-go svg{width:16px;height:16px}
.xh-row:hover .xh-go{color:var(--sk-ink,#1a1c1f);transform:translateX(-3px)}
.xh-empty{align-self:center;margin:0;padding:24px 28px;font-size:13.5px;line-height:2.1;color:var(--sk-ink-soft,rgba(26,28,31,.62));display: none;}

[data-theme="dark"] .xh-sec{border-color:rgba(255,255,255,.10)}

@media (max-width:820px){
  .xh{margin-top:44px;gap:16px}
  .xh-sec{grid-template-columns:1fr;border-radius:20px}
  .xh-lead{padding:20px 18px 18px}
  .xh-lead h2{font-size:18px}
  .xh-list{padding:6px 8px}
  .xh .xh-row{gap:12px;padding:11px 8px}
  .xh-thumb{width:66px;height:44px}
  .xh-date{width:50px;height:50px}
  .xh-empty{padding:18px 18px 20px}
}
@media (prefers-reduced-motion:reduce){.xh-row,.xh-go,.xh-btn{transition:none}.xh-row:hover .xh-go{transform:none}}
