
/* ===== cms.css ===== */

/* ============================================================
   نظام إدارة المقالات — طبقة النظام
   ------------------------------------------------------------
   تُحمَّل فوق ملفات تصميم الموقع (style.css · pages.css · extra.css)
   ولا تُعيد تعريف أي شيء موجود فيها. هنا فقط المكوّنات التي
   يحتاجها النظام ولا وجود لها في الموقع.
   ============================================================ */
/* ---------- 1. شريط الإدارة ---------- */
.hrm-ui .admin-bar{background:var(--navy-900);color:#CFE0EC;position:sticky;top:var(--header-h);z-index:55;box-shadow:0 1px 0 rgba(255,255,255,.06)}
.hrm-ui .admin-bar .container{display:flex;align-items:center;gap:14px;height:54px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
.hrm-ui .admin-bar .container::-webkit-scrollbar{display:none}
.hrm-ui .ab-brand{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:800;color:#fff;white-space:nowrap;flex:none}
.hrm-ui .ab-brand svg{color:var(--teal-400)}
.hrm-ui .ab-nav{display:flex;align-items:center;gap:3px;flex:none}
.hrm-ui .ab-nav a{display:inline-flex;align-items:center;gap:7px;padding:8px 13px;border-radius:9px;font-size:13px;color:#BCD2E2;white-space:nowrap;transition:.15s;position:relative}
.hrm-ui .ab-nav a:hover{background:rgba(255,255,255,.08);color:#fff}
.hrm-ui .ab-nav a.on{background:var(--teal);color:#fff}
.hrm-ui .ab-nav a svg{width:15px;height:15px}
.hrm-ui .ab-nav .dot{background:var(--gold);color:#1c1508;font-size:10.5px;font-weight:800;border-radius:99px;padding:1px 6px}
.hrm-ui .ab-sp{flex:1;min-width:8px}
.hrm-ui .admin-bar .btn{flex:none;height:34px;padding:0 13px;font-size:12.5px}
.hrm-ui .admin-bar .btn-outline{background:transparent;color:#CFE0EC;border-color:rgba(255,255,255,.26)}
.hrm-ui .admin-bar .btn-outline:hover{background:rgba(255,255,255,.12);color:#fff;border-color:#fff}
.hrm-ui .ab-more{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;color:#9FBBD0;flex:none;transition:.15s}
.hrm-ui .ab-more:hover{background:rgba(255,255,255,.1);color:#fff}
/* ---------- 2. شارات ---------- */
.hrm-ui .pill{display:inline-flex;align-items:center;gap:6px;padding:4px 11px;border-radius:999px;font-size:12px;font-weight:700;background:var(--bg-soft);color:var(--body);white-space:nowrap}
.hrm-ui .pill svg{width:14px;height:14px}
.hrm-ui .pill.navy{background:#E8EFF5;color:var(--navy)}
.hrm-ui .pill.teal{background:var(--teal-100);color:var(--teal-700)}
.hrm-ui .pill.gold{background:var(--gold-100);color:var(--gold-700)}
.hrm-ui .pill.ok{background:#E6F4EF;color:#1E7F63}
.hrm-ui .pill.warn{background:#FBF1E1;color:#B4741A}
.hrm-ui .pill.bad{background:#FBECEC;color:#B23B3B}
.hrm-ui .pill.plain{background:var(--bg-soft);color:var(--body)}
.hrm-ui .pill.sm{font-size:10.5px;padding:2px 8px}
/* ---------- 3. الكاتب ---------- */
.hrm-ui .au{display:inline-flex;align-items:center;gap:10px;min-width:0}
.hrm-ui .au-av{width:38px;height:38px;border-radius:50%;background:var(--navy);color:#fff;display:grid;place-items:center;font-size:13px;font-weight:800;flex:none}
.hrm-ui .au.sm .au-av{width:28px;height:28px;font-size:11px}
.hrm-ui .au-t{min-width:0}
.hrm-ui .au-t b{display:block;font-size:14px;color:var(--ink);font-weight:700;white-space:nowrap}
.hrm-ui .au.sm .au-t b{font-size:13px}
.hrm-ui .au-t small{display:block;font-size:11.5px;color:var(--muted);white-space:nowrap}
/* ---------- 4. الوسوم ---------- */
.hrm-ui .tagrow{display:flex;gap:7px;flex-wrap:wrap}
.hrm-ui .tag{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:600;color:var(--body);background:var(--bg-soft);border:1px solid var(--line-2);border-radius:999px;padding:4px 11px;transition:.15s}
.hrm-ui a.tag:hover{border-color:var(--teal);color:var(--teal-700);background:var(--teal-100)}
.hrm-ui .tag svg{width:12px;height:12px;color:var(--muted)}
.hrm-ui a.tag:hover svg{color:var(--teal)}
.hrm-ui .tag.on{background:var(--teal);border-color:var(--teal);color:#fff}
.hrm-ui .tag.on svg{color:#fff}
/* ---------- 5. بطاقات الإحصاء ---------- */
.hrm-ui .stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(178px,1fr));gap:14px}
.hrm-ui .stats > *{min-width:0}
.hrm-ui .stat{background:#fff;border:1px solid var(--line-2);border-radius:var(--radius-lg);padding:17px 19px;box-shadow:var(--shadow-sm);display:block;transition:.18s var(--ease-soft);border-top:3px solid var(--navy)}
.hrm-ui .stat:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg);border-color:var(--line)}
.hrm-ui .stat .ic{width:34px;height:34px;border-radius:10px;background:#E8EFF5;color:var(--navy);display:grid;place-items:center;margin-bottom:11px}
.hrm-ui .stat .ic svg{width:17px;height:17px}
.hrm-ui .stat b{display:block;font-size:26px;font-weight:800;color:var(--ink);line-height:1.2}
.hrm-ui .stat small{display:block;font-size:13px;color:var(--body);margin-top:2px}
.hrm-ui .stat em{display:block;font-style:normal;font-size:11.5px;color:var(--muted);margin-top:6px}
.hrm-ui .stat.ok{border-top-color:#1E7F63}
.hrm-ui .stat.ok .ic{background:#E6F4EF;color:#1E7F63}
.hrm-ui .stat.warn{border-top-color:var(--gold)}
.hrm-ui .stat.warn .ic{background:var(--gold-100);color:var(--gold-700)}
.hrm-ui .stat.bad{border-top-color:#B23B3B}
.hrm-ui .stat.bad .ic{background:#FBECEC;color:#B23B3B}
.hrm-ui .stat.teal{border-top-color:var(--teal)}
.hrm-ui .stat.teal .ic{background:var(--teal-100);color:var(--teal-700)}
/* ---------- 6. صناديق المحتوى ---------- */
.hrm-ui .box{background:#fff;border:1px solid var(--line-2);border-radius:var(--radius-lg);padding:22px 24px;box-shadow:var(--shadow-sm)}
.hrm-ui .box + .box{margin-top:16px}
.hrm-ui .sec-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.hrm-ui .sec-head h2{font-size:19px;font-weight:800;color:var(--ink);display:flex;align-items:center;gap:9px}
.hrm-ui .sec-head h2 svg{width:18px;height:18px;color:var(--teal)}
.hrm-ui .sec-head .sp{flex:1}
.hrm-ui .sec-head p{font-size:13.5px;color:var(--muted);width:100%;margin-top:-6px;line-height:1.85}
.hrm-ui .lede-sm{font-size:13.5px;color:var(--body);line-height:1.9;margin-bottom:16px;max-width:70ch}
.hrm-ui .divider{height:1px;background:var(--line-2);border:0;margin:0}
.hrm-ui .num{font-variant-numeric:tabular-nums}
.hrm-ui .mt8{margin-top:8px}
.hrm-ui .mt-12{margin-top:12px}
.hrm-ui .mt-16{margin-top:16px}
.hrm-ui .mt-24{margin-top:24px}
.hrm-ui .link-more{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:var(--teal-700)}
.hrm-ui .link-more:hover{text-decoration:underline}
.hrm-ui .link-more svg{width:14px;height:14px}
/* ---------- 7. ملاحظات ---------- */
.hrm-ui .note{display:flex;gap:10px;align-items:flex-start;border-radius:10px;padding:12px 14px;font-size:13px;line-height:1.85;background:var(--bg-soft);color:var(--body)}
.hrm-ui .note svg{width:15px;height:15px;margin-top:3px;flex:none;color:var(--muted)}
.hrm-ui .note.bad{background:#FBECEC;color:#8E3131}
.hrm-ui .note.bad svg{color:#B23B3B}
.hrm-ui .note.warn{background:var(--gold-100);color:#7A5A1F}
.hrm-ui .note.warn svg{color:var(--gold-700)}
.hrm-ui .note.ok{background:#E6F4EF;color:#19664F}
.hrm-ui .note.ok svg{color:#1E7F63}
.hrm-ui .note.info{background:#E8EFF5;color:#2A4C69}
.hrm-ui .note.info svg{color:var(--navy)}
.hrm-ui .note b{display:block;margin-bottom:2px}
/* ---------- 8. الحالة الفارغة ---------- */
.hrm-ui .empty{text-align:center;padding:56px 20px;color:var(--muted)}
.hrm-ui .empty > svg{width:48px;height:48px;color:var(--line);margin:0 auto 14px;display:block}
.hrm-ui .empty b{display:block;color:var(--ink);font-size:16px;margin-bottom:6px}
.hrm-ui .empty p{max-width:52ch;margin:0 auto;font-size:13.5px;line-height:1.9}
/* ---------- 9. الإشعارات ---------- */
.hrm-ui .toasts{position:fixed;bottom:26px;inset-inline-start:26px;z-index:200;display:flex;flex-direction:column;gap:10px;max-width:360px}
.hrm-ui .toast{display:flex;align-items:flex-start;gap:12px;background:#fff;border:1px solid var(--line);border-inline-start:4px solid var(--teal);border-radius:var(--radius);padding:14px 16px;box-shadow:var(--shadow-lg);animation:t-in .4s var(--ease-soft)}
.hrm-ui .toast.ok{border-inline-start-color:#1E7F63}
.hrm-ui .toast.warn{border-inline-start-color:var(--gold)}
.hrm-ui .toast.bad{border-inline-start-color:#B23B3B}
.hrm-ui .toast .ic{color:var(--teal);margin-top:1px}
.hrm-ui .toast.ok .ic{color:#1E7F63}
.hrm-ui .toast.warn .ic{color:var(--gold-700)}
.hrm-ui .toast.bad .ic{color:#B23B3B}
.hrm-ui .toast b{display:block;font-size:14px;color:var(--ink)}
.hrm-ui .toast small{font-size:13px;color:var(--body);line-height:1.7}
.hrm-ui .toast .x{margin-inline-start:auto;color:var(--muted)}
.hrm-ui .toast.out{animation:t-out .3s var(--ease-soft) forwards}
@keyframes t-in{from{opacity:0;transform:translateX(-24px)}to{opacity:1;transform:none}}
@keyframes t-out{to{opacity:0;transform:translateX(-24px)}}
/* ---------- 10. النوافذ ---------- */
.hrm-ui .modal{position:fixed;inset:0;z-index:150;display:none;place-items:center;padding:24px;background:rgba(6,23,38,.62);backdrop-filter:blur(3px)}
.hrm-ui .modal.open{display:grid;animation:m-fade .25s}
.hrm-ui .modal-in{background:#fff;border-radius:var(--radius-lg);max-width:560px;width:100%;max-height:88vh;overflow:auto;box-shadow:0 30px 80px rgba(0,0,0,.3);animation:m-zoom .3s var(--ease-soft)}
.hrm-ui .modal-in.sm{max-width:440px}
.hrm-ui .modal-in.lg{max-width:820px}
.hrm-ui .modal-hd{display:flex;align-items:center;gap:12px;padding:18px 22px;border-bottom:1px solid var(--line)}
.hrm-ui .modal-hd b{font-size:16px;color:var(--ink)}
.hrm-ui .modal-hd .mi{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:var(--bg-soft);color:var(--navy);flex:none}
.hrm-ui .modal-hd .mi.bad{background:#FBECEC;color:#B23B3B}
.hrm-ui .modal-hd .mi.warn{background:var(--gold-100);color:var(--gold-700)}
.hrm-ui .modal-hd .mi.ok{background:#E6F4EF;color:#1E7F63}
.hrm-ui .modal-hd .mi svg{width:17px;height:17px}
.hrm-ui .modal-hd .x{margin-inline-start:auto;color:var(--muted);width:32px;height:32px;border-radius:8px;display:grid;place-items:center}
.hrm-ui .modal-hd .x:hover{background:var(--bg-soft);color:var(--ink)}
.hrm-ui .modal-b{padding:22px}
.hrm-ui .modal-ft{display:flex;gap:10px;padding:16px 22px;border-top:1px solid var(--line);background:var(--bg-soft-2)}
.hrm-ui .modal-say{font-size:14.5px;color:var(--body);line-height:1.9;margin-bottom:14px}
.hrm-ui .modal-say b{color:var(--ink)}
@keyframes m-zoom{from{transform:scale(.94);opacity:0}to{transform:none;opacity:1}}
@keyframes m-fade{from{opacity:0}to{opacity:1}}
/* ---------- 11. الحقول (امتداد لنمط .ctrl في الموقع) ---------- */
.hrm-ui .f{margin-bottom:14px}
.hrm-ui .f > label{display:block;font-size:13px;font-weight:700;color:var(--ink);margin-bottom:7px}
.hrm-ui .f > label i{color:#D9534F;font-style:normal}
.hrm-ui .inp{width:100%;height:46px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:0 14px;font-size:14px;color:var(--ink);font-family:inherit;transition:.2s;outline:none}
.hrm-ui textarea.inp{height:auto;min-height:92px;padding:12px 14px;line-height:1.9;resize:vertical}
.hrm-ui select.inp{appearance:none;cursor:pointer;padding-inline-end:36px;
  background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238797A5' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:left 13px center;background-size:14px}
.hrm-ui .inp::placeholder{color:#A9B6C2}
.hrm-ui .inp:focus{border-color:var(--teal);box-shadow:0 0 0 3px rgba(15,142,153,.12)}
.hrm-ui .inp.bad{border-color:#C4553F}
.hrm-ui .f .hint{font-size:12px;color:var(--muted);margin-top:6px;display:flex;align-items:flex-start;gap:6px;line-height:1.75}
.hrm-ui .f .hint svg{width:13px;height:13px;margin-top:2px;flex:none}
.hrm-ui .f .err{font-size:12.5px;color:#C4553F;margin-top:6px;display:none}
.hrm-ui .f .err.on{display:block}
.hrm-ui .f2{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
.hrm-ui .f3{display:grid;grid-template-columns:repeat(3,1fr);gap:0 14px}
/* مفتاح تبديل */
.hrm-ui .switch{display:inline-flex;align-items:center;gap:10px;cursor:pointer}
.hrm-ui .switch input{position:absolute;opacity:0;width:0;height:0}
.hrm-ui .switch .track{width:44px;height:25px;border-radius:99px;background:var(--line);position:relative;transition:.2s;flex:none}
.hrm-ui .switch .track::after{content:"";position:absolute;top:3px;inset-inline-start:3px;width:19px;height:19px;border-radius:50%;background:#fff;transition:.2s;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.hrm-ui .switch input:checked + .track{background:var(--teal)}
.hrm-ui .switch input:checked + .track::after{inset-inline-start:22px}
.hrm-ui .swrow{display:flex;align-items:center;gap:16px;justify-content:space-between;padding:13px 0;border-bottom:1px solid var(--line-2);cursor:pointer}
.hrm-ui .swrow:last-of-type{border-bottom:0}
.hrm-ui .swrow b{display:block;font-size:14px;color:var(--ink)}
.hrm-ui .swrow small{display:block;font-size:12.5px;color:var(--muted);line-height:1.75;margin-top:3px}
.hrm-ui .swrow > span:first-child{flex:1;min-width:0}
/* ---------- 12. شريط الأدوات ---------- */
.hrm-ui .toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:16px}
.hrm-ui .tb-search{position:relative;flex:1;min-width:220px;max-width:400px}
.hrm-ui .tb-search input{width:100%;height:44px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:0 42px 0 38px;font-size:14px;color:var(--ink);outline:none;font-family:inherit;transition:.2s}
.hrm-ui .tb-search input:focus{border-color:var(--teal);box-shadow:0 0 0 3px rgba(15,142,153,.12)}
.hrm-ui .tb-search > svg{position:absolute;inset-inline-start:14px;top:50%;transform:translateY(-50%);width:17px;height:17px;color:var(--muted);pointer-events:none}
.hrm-ui .tb-search .clr{position:absolute;inset-inline-end:10px;top:50%;transform:translateY(-50%);width:24px;height:24px;border-radius:6px;display:none;place-items:center;color:var(--muted)}
.hrm-ui .tb-search.has .clr{display:grid}
.hrm-ui .tb-search .clr:hover{background:var(--bg-soft);color:var(--ink)}
.hrm-ui .tb-sel{height:44px;min-width:132px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:0 34px 0 14px;font-size:13.5px;color:var(--ink);font-family:inherit;cursor:pointer;outline:none;appearance:none;
  background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238797A5' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:left 13px center;background-size:14px}
.hrm-ui .tb-sel:focus{border-color:var(--teal)}
.hrm-ui .tb-sp{flex:1}
.hrm-ui .toolbar .btn{height:44px}
.hrm-ui .active-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:-6px 0 14px}
.hrm-ui .active-filters .lbl{font-size:12.5px;color:var(--muted)}
.hrm-ui .fchip{display:inline-flex;align-items:center;gap:6px;background:var(--teal-100);color:var(--teal-700);border-radius:999px;padding:4px 6px 4px 11px;font-size:12px;font-weight:700}
.hrm-ui .fchip button{width:18px;height:18px;border-radius:50%;display:grid;place-items:center;background:rgba(15,142,153,.16);color:var(--teal-700)}
.hrm-ui .fchip button:hover{background:var(--teal-700);color:#fff}
.hrm-ui .fchip svg{width:11px;height:11px}
/* ---------- 13. الجداول ---------- */
.hrm-ui .dtable-wrap{background:#fff;border:1px solid var(--line-2);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);overflow:hidden}
.hrm-ui .dtable-scroll{overflow-x:auto}
.hrm-ui table.dtable{width:100%;border-collapse:collapse;min-width:860px}
.hrm-ui table.dtable th, .hrm-ui table.dtable td{padding:13px 16px;text-align:right;vertical-align:middle}
.hrm-ui table.dtable thead th{font-size:12.5px;font-weight:700;color:var(--muted);background:var(--bg-soft);border-bottom:1px solid var(--line);white-space:nowrap;position:sticky;top:0;z-index:2}
.hrm-ui table.dtable th.sortable{cursor:pointer;user-select:none}
.hrm-ui table.dtable th.sortable span{display:inline-flex;align-items:center;gap:5px}
.hrm-ui table.dtable th.sortable svg{width:13px;height:13px;opacity:.5}
.hrm-ui table.dtable th.sortable:hover{color:var(--ink)}
.hrm-ui table.dtable th.sortable.on{color:var(--teal-700)}
.hrm-ui table.dtable th.sortable.on svg{opacity:1}
.hrm-ui table.dtable tbody tr{border-bottom:1px solid var(--line-2);transition:background .14s}
.hrm-ui table.dtable tbody tr:last-child{border-bottom:0}
.hrm-ui table.dtable tbody tr:hover{background:var(--bg-soft-2)}
.hrm-ui table.dtable tbody tr.picked{background:var(--teal-100)}
.hrm-ui table.dtable td{font-size:13.5px;color:var(--body)}
.hrm-ui table.dtable tbody td{white-space:nowrap}
.hrm-ui table.dtable tbody td.wrap, .hrm-ui table.dtable tbody td .empty, .hrm-ui table.dtable tbody td .empty *{white-space:normal}
.hrm-ui .c-pick{width:44px}
.hrm-ui .c-act{width:56px;text-align:center}
.hrm-ui .cell-sub{display:block;font-size:11.5px;color:var(--muted);margin-top:2px}
.hrm-ui .dtable .none{color:var(--line);font-size:13px}
.hrm-ui .ck{width:19px;height:19px;border-radius:5px;border:1.6px solid var(--line);background:#fff;display:grid;place-items:center;cursor:pointer;transition:.14s;color:#fff}
.hrm-ui .ck svg{width:12px;height:12px;opacity:0}
.hrm-ui .ck:hover{border-color:var(--teal)}
.hrm-ui .ck.on, .hrm-ui .ck.some{background:var(--teal);border-color:var(--teal)}
.hrm-ui .ck.on svg, .hrm-ui .ck.some svg{opacity:1}
/* ---------- 14. قائمة إجراءات الصف ---------- */
.hrm-ui .rowmenu{position:relative;display:inline-block}
.hrm-ui .mbtn{width:32px;height:32px;border-radius:8px;display:grid;place-items:center;color:var(--muted);transition:.14s}
.hrm-ui .mbtn:hover, .hrm-ui .rowmenu.open .mbtn{background:var(--bg-soft);color:var(--ink)}
.hrm-ui .mbtn svg{width:18px;height:18px}
.hrm-ui .mlist{position:absolute;top:calc(100% + 6px);inset-inline-end:0;min-width:230px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-lg);padding:6px;opacity:0;visibility:hidden;transform:translateY(-6px);transition:.16s var(--ease-soft);z-index:60}
.hrm-ui .rowmenu.open .mlist{opacity:1;visibility:visible;transform:none;position:fixed}
.hrm-ui .rowmenu.up .mlist{top:auto;bottom:calc(100% + 6px)}
.hrm-ui .mlist hr{border:0;border-top:1px solid var(--line-2);margin:5px 6px}
.hrm-ui .mi{width:100%;display:flex;align-items:center;gap:10px;padding:9px 11px;border-radius:8px;font-size:13.5px;color:var(--ink);text-align:right;transition:.13s;background:none}
.hrm-ui .mi svg{width:16px;height:16px;color:var(--muted);flex:none}
.hrm-ui .mi:hover:not(:disabled){background:var(--bg-soft)}
.hrm-ui .mi:disabled{opacity:.42;cursor:not-allowed}
.hrm-ui .mi.danger{color:#B23B3B}
.hrm-ui .mi.danger svg{color:#B23B3B}
.hrm-ui .mi.danger:hover:not(:disabled){background:#FBECEC}
.hrm-ui .mi.good{color:#1E7F63}
.hrm-ui .mi.good svg{color:#1E7F63}
/* ---------- 15. شريط التحديد الجماعي ---------- */
.hrm-ui .bulkbar{display:none;align-items:center;gap:12px;flex-wrap:wrap;background:var(--navy);color:#DCEAF3;border-radius:var(--radius);padding:11px 16px;margin-bottom:14px;animation:m-fade .26s}
.hrm-ui .bulkbar.on{display:flex}
.hrm-ui .bulkbar b{color:#fff;font-size:14px}
.hrm-ui .bulkbar .sp{flex:1}
.hrm-ui .bulkbar .btn{height:36px;padding:0 14px;font-size:13px}
.hrm-ui .bulkbar .btn-line{background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.2)}
.hrm-ui .bulkbar .btn-line:hover{background:rgba(255,255,255,.2)}
/* ---------- 16. الترقيم ---------- */
.hrm-ui .pgwrap{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:16px 4px 0}
.hrm-ui .pinfo{font-size:12.5px;color:var(--muted)}
.hrm-ui .pinfo b{color:var(--ink)}
.hrm-ui .pgwrap .pagination{margin:0;margin-inline-start:auto}
.hrm-ui .pagination a.off{opacity:.4;pointer-events:none}
.hrm-ui .pagination .dots{color:var(--muted);padding:0 4px}
/* ---------- 17. الأغلفة ---------- */
.hrm-ui .cov{display:block;position:relative;width:100%;aspect-ratio:16/9;border-radius:var(--radius);overflow:hidden;background:var(--navy-800) center/cover no-repeat;display:grid;place-items:center}
.hrm-ui .cov.tone-navy{background-image:linear-gradient(150deg,#2F6FA8,#123C63)}
.hrm-ui .cov.tone-teal{background-image:linear-gradient(150deg,#2AA6A0,#0C6E75)}
.hrm-ui .cov.tone-gold{background-image:linear-gradient(150deg,#E0B667,#A8842F)}
.hrm-ui .cov.tone-plain{background-image:linear-gradient(150deg,#8FA3B4,#5C7386)}
.hrm-ui .cov-photo{background-image:none}
.hrm-ui .cov-tone > svg{width:44px;height:44px;color:rgba(255,255,255,.62)}
.hrm-ui .cov-brand{background-image:linear-gradient(150deg,#F4F8FB,#E3EDF4);border:1px solid var(--line-2)}
.hrm-ui .cov-brand.tone-teal{background-image:linear-gradient(150deg,#EEF9F9,#D9EFF0)}
.hrm-ui .cov-brand.tone-gold{background-image:linear-gradient(150deg,#FBF4E6,#F1E3C5)}
.hrm-ui .cov-brand.tone-navy{background-image:linear-gradient(150deg,#EDF3F8,#DCE7F0)}
.hrm-ui .cov-brand .cov-logo{display:grid;place-items:center;width:62%;max-width:230px}
.hrm-ui .cov-brand .cov-logo img{width:100%;height:auto;object-fit:contain;filter:none}
.hrm-ui .cov-brand .cov-label{position:absolute;bottom:10px;inset-inline:12px;text-align:center;font-size:11.5px;font-weight:700;color:var(--navy);opacity:.72;line-height:1.6}
.hrm-ui .cov.mini{width:64px;aspect-ratio:4/3;border-radius:8px;flex:none}
.hrm-ui .cov.mini > svg{width:20px;height:20px}
.hrm-ui .cov.mini .cov-logo{width:74%}
.hrm-ui .cov.mini .cov-label{display:none}
.hrm-ui .cov.card{aspect-ratio:16/9}
/* ---------- 18. صفّ مقالة إداري ---------- */
.hrm-ui .arow{display:flex;align-items:center;gap:13px;padding:12px 0;border-bottom:1px solid var(--line-2)}
.hrm-ui .arow:last-child{border-bottom:0}
.hrm-ui .arow-cov{flex:none}
.hrm-ui .arow-b{flex:1;min-width:0}
.hrm-ui .arow-b b{display:block;font-size:14.5px;line-height:1.6}
.hrm-ui .arow-b b a{color:var(--ink)}
.hrm-ui .arow-b b a:hover{color:var(--teal-700)}
.hrm-ui .arow-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:6px}
.hrm-ui .arow-meta .m{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:var(--muted)}
.hrm-ui .arow-meta .m svg{width:13px;height:13px}
.hrm-ui .arow-ready{display:flex;align-items:center;gap:9px;flex:none}
.hrm-ui .arow-ready b{font-size:12.5px;color:var(--body);min-width:34px;text-align:left;direction:ltr}
.hrm-ui .mini-bar{width:74px;height:6px;border-radius:99px;background:var(--line-2);overflow:hidden;display:block}
.hrm-ui .mini-bar i{display:block;height:100%;border-radius:99px;background:var(--teal)}
.hrm-ui .mini-bar.gold i{background:var(--gold)}
.hrm-ui .mini-bar.red i{background:#C4553F}
/* ---------- 19. قائمة الجاهزية ---------- */
.hrm-ui .ready-list{display:grid;gap:2px}
.hrm-ui .ready-list li{display:flex;gap:10px;align-items:flex-start;padding:9px 0;border-bottom:1px solid var(--line-2)}
.hrm-ui .ready-list li:last-child{border-bottom:0}
.hrm-ui .ready-list .ic{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;flex:none;margin-top:1px}
.hrm-ui .ready-list li.ok .ic{background:#E6F4EF;color:#1E7F63}
.hrm-ui .ready-list li.no .ic{background:#FBECEC;color:#B23B3B}
.hrm-ui .ready-list b{display:block;font-size:13.5px;color:var(--ink)}
.hrm-ui .ready-list small{display:block;font-size:12px;color:var(--muted);line-height:1.7;margin-top:2px}
.hrm-ui .ready-list li.ok small{opacity:.75}
/* ---------- 20. زر العودة للأعلى ---------- */
.hrm-ui .totop{position:fixed;bottom:26px;inset-inline-end:26px;width:44px;height:44px;border-radius:50%;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow-lg);display:grid;place-items:center;color:var(--navy);z-index:80;opacity:0;visibility:hidden;transform:translateY(10px);transition:.24s var(--ease-soft)}
.hrm-ui .totop.on{opacity:1;visibility:visible;transform:none}
.hrm-ui .totop:hover{background:var(--navy);color:#fff;border-color:var(--navy)}
/* ---------- 21. شبكات ---------- */
.hrm-ui .g2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}
.hrm-ui .g3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}
.hrm-ui .g-side{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:22px;align-items:start}
.hrm-ui .sec-pad{padding:32px 0 72px}
/* زر ثانوي داخل البانر الداكن */
.hrm-ui .page-hero .btn-outline-white{background:rgba(255,255,255,.10);color:#fff;border:1px solid rgba(255,255,255,.34)}
.hrm-ui .page-hero .btn-outline-white:hover{background:rgba(255,255,255,.2);border-color:#fff}
.hrm-ui .page-hero .hero-acts{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}
.hrm-ui .page-hero .hero-stats{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}
.hrm-ui .page-hero .hero-stats span{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;color:#DCEAF3;background:rgba(255,255,255,.12);border-radius:999px;padding:6px 13px}
.hrm-ui .page-hero .hero-stats svg{width:15px;height:15px}
.hrm-ui .page-hero .hero-tags{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:14px}
.hrm-ui .page-hero .hero-tags .pill{background:rgba(255,255,255,.14);color:#DCEAF3;border:1px solid rgba(255,255,255,.18)}
.hrm-ui svg.i-sm{width:15px;height:15px}
.hrm-ui svg.i-lg{width:26px;height:26px}
@media (max-width:1080px){.hrm-ui .g-side{grid-template-columns:minmax(0,1fr)}
.hrm-ui .g3{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
@media (max-width:820px){.hrm-ui .g2, .hrm-ui .g3, .hrm-ui .f2, .hrm-ui .f3{grid-template-columns:minmax(0,1fr)}
.hrm-ui .toolbar .tb-search{flex:1 1 100%;max-width:none}
.hrm-ui .admin-bar{position:static}}
@media (max-width:620px){.hrm-ui .toasts{inset-inline:14px;bottom:14px;max-width:none}
.hrm-ui .box{padding:18px}
.hrm-ui .modal-ft{flex-wrap:wrap}
.hrm-ui .modal-ft .btn{flex:1}}
@media print{.hrm-ui .site-header, .hrm-ui .admin-bar, .hrm-ui .site-footer, .hrm-ui .totop, .hrm-ui .toasts, .hrm-ui .no-print{display:none!important}}
/* ===== زرّ الخطر (يستخدمه صندوق التأكيد في كل الصفحات) ===== */
.hrm-ui .btn-danger{background:#B84A38;color:#fff;border:1px solid #B84A38}
.hrm-ui .btn-danger:hover{background:#9E3E2E;border-color:#9E3E2E;color:#fff}
.hrm-ui .btn-danger svg{color:currentColor}
/* ===== عدّاد داخل تبويب ===== */
.hrm-ui .tab .tab-n{
  display:inline-grid;place-items:center;min-width:22px;height:20px;padding:0 6px;
  margin-inline-start:8px;border-radius:99px;background:var(--bg-soft-2);
  color:var(--muted);font-size:11.5px;font-weight:800;line-height:1
}
.hrm-ui .tab.on .tab-n{background:rgba(255,255,255,.22);color:#fff}
/* ===== مربّع تحديد ===== */
.hrm-ui .cb{
  width:26px;height:26px;border-radius:7px;display:grid;place-items:center;
  color:var(--muted);background:transparent;border:0;cursor:pointer;transition:.16s
}
.hrm-ui .cb:hover{background:var(--bg-soft-2);color:var(--ink)}
.hrm-ui .cb svg{width:19px;height:19px}
.hrm-ui .cb.on, .hrm-ui .cb.part{color:var(--teal)}
/* ===== شريحة مسح التصفية ===== */
.hrm-ui .f-chip.clear{border-style:dashed;color:var(--muted)}
.hrm-ui .f-chip.clear:hover{color:#B84A38;border-color:#B84A38}
.hrm-ui .f-chip svg{width:13px;height:13px;margin-inline-start:6px}
/* ===== قطع مشتركة بين صفحات الإدارة: أزرار أيقونية · شرائح · منتقي أيقونات ===== */
.hrm-ui .ib{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;border:0;background:transparent;color:var(--muted);cursor:pointer;transition:.15s}
.hrm-ui .ib svg{width:15px;height:15px}
.hrm-ui .ib:hover{background:#fff;color:var(--ink);box-shadow:var(--shadow-sm)}
.hrm-ui .ib.bad:hover{color:#B84A38}
.hrm-ui .ib[disabled]{opacity:.3;cursor:not-allowed}
.hrm-ui .ib[disabled]:hover{background:transparent;box-shadow:none;color:var(--muted)}
/* ---------- منتقي الأيقونات ---------- */
.hrm-ui .icpick{display:grid;grid-template-columns:repeat(6,1fr);gap:6px}
.hrm-ui .ip{aspect-ratio:1;border:1px solid var(--line-2);border-radius:9px;background:#fff;display:grid;place-items:center;cursor:pointer;color:var(--muted);transition:.15s}
.hrm-ui .ip svg{width:18px;height:18px}
.hrm-ui .ip:hover{border-color:var(--teal);color:var(--teal)}
.hrm-ui .ip.on{background:var(--teal);border-color:var(--teal);color:#fff}
/* شرائح مقسّمة */
.hrm-ui .seg{display:flex;gap:4px;background:var(--bg-soft);border-radius:10px;padding:4px;flex-wrap:wrap}
.hrm-ui .sg{flex:1;min-width:70px;height:34px;border:0;background:transparent;border-radius:7px;font-family:inherit;font-size:12.5px;font-weight:700;color:var(--muted);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px;transition:.16s}
.hrm-ui .sg:hover{color:var(--ink)}
.hrm-ui .sg.on{background:#fff;color:var(--ink);box-shadow:var(--shadow-sm)}
.hrm-ui .dot{width:11px;height:11px;border-radius:50%;display:inline-block;flex:none}
.hrm-ui .d-navy{background:var(--navy)}
.hrm-ui .d-teal{background:var(--teal)}
.hrm-ui .d-gold{background:var(--gold)}
.hrm-ui .d-plain{background:#8FA3B4}

/* ===== extra.css ===== */

/* ============================================================
   أنماط صفحتَي: الدورات التدريبية + المركز الإعلامي
   Hermas Institute — Courses & Media Center
   ============================================================ */
/* =========================================================
   صفحة الدورات التدريبية — Courses
   ========================================================= */
.hrm-ui .courses-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:30px 0 18px}
.hrm-ui .courses-toolbar h3{font-size:19px}
.hrm-ui .chips-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:26px}
.hrm-ui .chips-row .search-inline{position:relative;margin-inline-start:auto;width:320px;max-width:100%}
.hrm-ui .chips-row .search-inline input{
  width:100%;height:40px;border:1px solid var(--line);border-radius:9px;background:#fff;
  padding-inline-start:42px;padding-inline-end:16px;font-size:13.5px;outline:none;transition:.2s;
}
.hrm-ui .chips-row .search-inline input:focus{border-color:var(--teal);box-shadow:0 0 0 3px rgba(15,142,153,.12)}
.hrm-ui .chips-row .search-inline svg{position:absolute;inset-inline-start:14px;top:11px;width:17px;height:17px;color:var(--muted)}
.hrm-ui .course-lg{
  background:#fff;border:1px solid var(--line-2);border-radius:var(--radius);overflow:hidden;
  box-shadow:var(--shadow-sm);transition:.25s;display:flex;flex-direction:column;
}
.hrm-ui .course-lg:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.hrm-ui .course-lg .cover{
  height:158px;position:relative;display:flex;align-items:center;justify-content:center;
}
.hrm-ui .course-lg .cover::after{content:"";position:absolute;inset:0;background:rgba(6,22,38,.40)}
.hrm-ui .course-lg .cover > *{position:relative;z-index:2}
.hrm-ui .course-lg .tag-free, .hrm-ui .course-lg .tag-hot{
  position:absolute;top:10px;inset-inline-end:10px;z-index:3;
  color:#fff;font-size:11px;font-weight:700;padding:4px 10px;border-radius:5px;
}
.hrm-ui .course-lg .tag-free{background:var(--teal)}
.hrm-ui .course-lg .tag-hot{background:var(--gold)}
.hrm-ui .course-lg .cover-meta{
  position:absolute;top:10px;inset-inline-start:10px;z-index:3;display:flex;gap:7px;
}
.hrm-ui .course-lg .cover-meta span{
  background:rgba(0,0,0,.38);color:#fff;font-size:11px;padding:3px 9px;border-radius:5px;
}
.hrm-ui .course-lg .bd{padding:16px 18px 0;flex:1}
.hrm-ui .course-lg .cat{font-size:11.5px;color:var(--teal);font-weight:700;margin-bottom:7px;display:block}
.hrm-ui .course-lg h4{font-size:16px;margin-bottom:8px;line-height:1.6}
.hrm-ui .course-lg p{font-size:12.5px;color:var(--muted);line-height:1.9;margin-bottom:13px}
.hrm-ui .course-lg .trainer{display:flex;align-items:center;gap:9px;font-size:12.5px;color:var(--body);margin-bottom:13px}
.hrm-ui .course-lg .trainer .av{
  width:28px;height:28px;border-radius:50%;background:linear-gradient(140deg,#D8E2EA,#B9C8D6);
  display:flex;align-items:center;justify-content:center;color:#5D7285;flex-shrink:0;
}
.hrm-ui .course-lg .trainer .av svg{width:14px;height:14px}
.hrm-ui .course-lg .meta{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;color:var(--body);margin-bottom:14px}
.hrm-ui .course-lg .meta span{display:inline-flex;align-items:center;gap:5px}
.hrm-ui .course-lg .meta svg{width:13px;height:13px;color:var(--muted)}
.hrm-ui .course-lg .ft{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:12px 18px 16px;border-top:1px solid var(--line-2);
}
.hrm-ui .course-lg .ft .price{font-size:16px;font-weight:800;color:var(--ink)}
.hrm-ui .course-lg .ft .price.free{color:var(--teal)}
.hrm-ui .course-lg .ft .old{font-size:12px;color:var(--muted);text-decoration:line-through;margin-inline-start:7px;font-weight:500}
/* =========================================================
   المركز الإعلامي — Media Center
   ========================================================= */
.hrm-ui .tabs{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-start;margin-bottom:28px}
.hrm-ui .tab{
  height:44px;padding:0 24px;border-radius:10px;background:#fff;border:1px solid var(--line);
  display:inline-flex;align-items:center;gap:9px;
  font-size:14px;font-weight:700;color:var(--body);transition:.2s;
}
.hrm-ui .tab svg{width:16px;height:16px}
.hrm-ui .tab:hover{border-color:var(--teal);color:var(--teal)}
.hrm-ui .tab.on{background:var(--teal);border-color:var(--teal);color:#fff;box-shadow:0 4px 14px rgba(15,142,153,.25)}
.hrm-ui .tab-panel{display:none}
.hrm-ui .tab-panel.on{display:block}
.hrm-ui .featured-news{
  display:grid;grid-template-columns:1.05fr 1fr;gap:0;overflow:hidden;
  background:#fff;border:1px solid var(--line-2);border-radius:var(--radius-lg);
  box-shadow:var(--shadow);margin-bottom:34px;
}
.hrm-ui .featured-news .fn-media{
  min-height:320px;position:relative;display:flex;align-items:center;justify-content:center;
}
.hrm-ui .featured-news .fn-body{padding:34px 36px;display:flex;flex-direction:column;justify-content:center}
.hrm-ui .featured-news .pill{
  display:inline-flex;align-items:center;gap:7px;align-self:flex-start;
  background:var(--gold);color:#fff;font-size:11.5px;font-weight:700;
  padding:5px 12px;border-radius:6px;margin-bottom:14px;
}
.hrm-ui .featured-news h3{font-size:25px;line-height:1.55;margin-bottom:12px}
.hrm-ui .featured-news p{font-size:14px;line-height:2.05;color:var(--body);margin-bottom:18px}
.hrm-ui .featured-news .fn-meta{display:flex;gap:18px;font-size:12.5px;color:var(--muted);margin-bottom:22px}
.hrm-ui .featured-news .fn-meta span{display:inline-flex;align-items:center;gap:6px}
.hrm-ui .featured-news .fn-meta svg{width:14px;height:14px}
.hrm-ui .featured-news .btn{align-self:flex-start}
.hrm-ui .news-card{
  background:#fff;border:1px solid var(--line-2);border-radius:var(--radius);overflow:hidden;
  box-shadow:var(--shadow-sm);transition:.25s;display:flex;flex-direction:column;
}
.hrm-ui .news-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.hrm-ui .news-card .cover{height:170px;position:relative}
.hrm-ui .news-card .cover .cat{
  position:absolute;bottom:10px;inset-inline-start:10px;z-index:3;
  background:var(--teal);color:#fff;font-size:11.5px;font-weight:700;padding:4px 12px;border-radius:5px;
}
.hrm-ui .news-card .bd{padding:16px 18px 0;flex:1}
.hrm-ui .news-card h4{font-size:16px;margin-bottom:9px;line-height:1.6}
.hrm-ui .news-card p{font-size:13px;color:var(--muted);line-height:1.9}
.hrm-ui .news-card .ft{
  display:flex;align-items:center;justify-content:space-between;
  padding:12px 18px 15px;font-size:12.5px;color:var(--muted);
}
.hrm-ui .news-card .ft span{display:inline-flex;align-items:center;gap:6px}
.hrm-ui .news-card .ft svg{width:14px;height:14px}
.hrm-ui .news-card .ft a{color:var(--teal);font-weight:700}
/* الفعاليات */
.hrm-ui .event-row{
  display:flex;align-items:center;gap:22px;background:#fff;border:1px solid var(--line-2);
  border-radius:var(--radius);padding:18px 20px;box-shadow:var(--shadow-sm);margin-bottom:16px;transition:.22s;
}
.hrm-ui .event-row:hover{box-shadow:var(--shadow);transform:translateY(-2px)}
.hrm-ui .event-date{
  width:78px;height:82px;border-radius:12px;background:var(--navy);color:#fff;flex-shrink:0;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
}
.hrm-ui .event-date .d{font-size:26px;font-weight:800;line-height:1.1}
.hrm-ui .event-date .m{font-size:12px;opacity:.85}
.hrm-ui .event-row .info{flex:1;min-width:0}
.hrm-ui .event-row .badge{
  display:inline-block;background:var(--teal-100);color:var(--teal-700);
  font-size:11px;font-weight:700;padding:3px 10px;border-radius:5px;margin-bottom:8px;
}
.hrm-ui .event-row h4{font-size:16.5px;margin-bottom:8px}
.hrm-ui .event-row .em{display:flex;gap:18px;flex-wrap:wrap;font-size:12.5px;color:var(--muted)}
.hrm-ui .event-row .em span{display:inline-flex;align-items:center;gap:6px}
.hrm-ui .event-row .em svg{width:13px;height:13px}
/* معرض الصور */
.hrm-ui .gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.hrm-ui .gal-item{
  position:relative;height:210px;border-radius:var(--radius);overflow:hidden;
  display:flex;align-items:flex-end;transition:.25s;
}
.hrm-ui .gal-item:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.hrm-ui .gal-item .cap{
  position:relative;z-index:2;width:100%;padding:14px 16px;color:#fff;font-size:13.5px;font-weight:600;
  background:linear-gradient(to top,rgba(8,26,44,.85),transparent);
}
/* الفيديو */
.hrm-ui .video-card{
  background:#fff;border:1px solid var(--line-2);border-radius:var(--radius);overflow:hidden;
  box-shadow:var(--shadow-sm);transition:.25s;
}
.hrm-ui .video-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.hrm-ui .video-card .thumb{
  height:180px;position:relative;display:flex;align-items:center;justify-content:center;
}
.hrm-ui .video-card .thumb::after{content:"";position:absolute;inset:0;background:rgba(6,22,38,.35)}
.hrm-ui .video-card .thumb .play{
  width:54px;height:54px;border-radius:50%;background:rgba(255,255,255,.94);
  display:flex;align-items:center;justify-content:center;color:var(--teal);z-index:2;
}
.hrm-ui .video-card .thumb .play svg{width:19px;height:19px;margin-inline-start:3px}
.hrm-ui .video-card .thumb .dur{
  position:absolute;bottom:10px;inset-inline-start:10px;z-index:3;
  background:rgba(0,0,0,.62);color:#fff;font-size:11.5px;padding:3px 9px;border-radius:5px;
}
.hrm-ui .video-card .bd{padding:15px 18px 17px}
.hrm-ui .video-card h4{font-size:15.5px;margin-bottom:7px;line-height:1.6}
.hrm-ui .video-card p{font-size:12.5px;color:var(--muted)}
/* النشرة البريدية */
.hrm-ui .newsletter{
  background:linear-gradient(255deg,var(--navy) 0%,var(--teal-700) 100%);
  border-radius:var(--radius-lg);padding:34px 36px;color:#fff;
  display:flex;align-items:center;justify-content:space-between;gap:28px;
}
.hrm-ui .newsletter .txt{display:flex;align-items:center;gap:18px}
.hrm-ui .newsletter .ico{width:50px;height:50px;color:#fff;opacity:.95}
.hrm-ui .newsletter h3{color:#fff;font-size:22px;margin-bottom:6px}
.hrm-ui .newsletter p{font-size:13.5px;color:rgba(255,255,255,.86)}
.hrm-ui .newsletter form{display:flex;gap:10px;flex-shrink:0}
.hrm-ui .newsletter input{
  height:50px;width:290px;max-width:100%;border:0;border-radius:9px;background:#fff;
  padding:0 18px;font-size:14px;outline:none;color:var(--ink);
}
.hrm-ui .newsletter input::placeholder{color:#A9B6C2}
/* خلفيات تجريبية مكان الصور */
.hrm-ui .im-1{background:linear-gradient(150deg,#2F6FA8,#123C63)}
.hrm-ui .im-2{background:linear-gradient(150deg,#1B6C63,#0D3B38)}
.hrm-ui .im-3{background:linear-gradient(150deg,#5B3D8F,#33215C)}
.hrm-ui .im-4{background:linear-gradient(150deg,#C9A98A,#8C6B4F)}
.hrm-ui .im-5{background:linear-gradient(150deg,#1E3346,#0B1A26)}
.hrm-ui .im-6{background:linear-gradient(150deg,#8E6C2A,#5C4517)}
.hrm-ui .im-7{background:linear-gradient(150deg,#D9E2EA,#AEBFCD)}
.hrm-ui .im-8{background:linear-gradient(150deg,#17604A,#0A3227)}
.hrm-ui .im-9{background:linear-gradient(150deg,#153B5C,#0A2540)}
@media (max-width:1080px){.hrm-ui .featured-news{grid-template-columns:1fr}
.hrm-ui .featured-news .fn-media{min-height:230px}
.hrm-ui .gallery-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:820px){.hrm-ui .newsletter{flex-direction:column;text-align:center}
.hrm-ui .newsletter .txt{flex-direction:column}
.hrm-ui .newsletter form{width:100%;justify-content:center}
.hrm-ui .event-row{flex-direction:column;align-items:flex-start;text-align:right}
.hrm-ui .courses-toolbar{flex-direction:column;align-items:flex-start}
.hrm-ui .chips-row .search-inline{margin-inline-start:0;width:100%}}
@media (max-width:600px){.hrm-ui .gallery-grid{grid-template-columns:1fr}}
.hrm-ui #coursesGrid.list-view{grid-template-columns:1fr}
/* الترقيم (نفس نمط لوحة التحكم) */
.hrm-ui .pagination{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:32px;direction:ltr}
.hrm-ui .pagination a{
  min-width:38px;height:38px;padding:0 10px;border-radius:9px;background:#fff;border:1px solid var(--line);
  display:inline-flex;align-items:center;justify-content:center;
  font-size:13.5px;font-weight:600;color:var(--body);transition:.2s;
}
.hrm-ui .pagination a:hover{border-color:var(--teal);color:var(--teal)}
.hrm-ui .pagination a.on{background:var(--teal);border-color:var(--teal);color:#fff}
/* شرائح الفلترة (نفس نمط لوحة التحكم) */
.hrm-ui .f-chip{
  height:40px;padding:0 17px;border-radius:9px;background:#fff;border:1px solid var(--line);
  font-size:13px;font-weight:600;color:var(--body);transition:.2s;
}
.hrm-ui .f-chip:hover{border-color:var(--teal);color:var(--teal)}
.hrm-ui .f-chip.on{background:var(--teal);border-color:var(--teal);color:#fff}

/* ===== articles.css ===== */

/* ============================================================
   نظام إدارة المقالات — الصفحة العامة (articles.html)
   تعتمد على: style · pages · extra · cms · blocks
   ============================================================ */
/* المقالة الأبرز — امتداد لـ .featured-news في الموقع */
.hrm-ui .fn-art{margin-bottom:30px}
.hrm-ui .fn-art .fn-media{padding:0;overflow:hidden;display:block;min-height:270px}
.hrm-ui .fn-art .fn-media .cov{height:100%;aspect-ratio:auto;border-radius:0}
.hrm-ui .fn-art .fn-body .pill{align-self:flex-start;margin-bottom:14px}
.hrm-ui .fn-art h3 a{color:var(--ink)}
.hrm-ui .fn-art h3 a:hover{color:var(--teal-700)}
.hrm-ui .fn-art .fn-meta{flex-wrap:wrap;gap:10px 18px}
/* شريط التصنيفات */
.hrm-ui .chips-row .f-chip{display:inline-flex;align-items:center;gap:7px}
.hrm-ui .chips-row .f-chip svg{width:14px;height:14px}
.hrm-ui .chips-row .f-chip .num{font-size:11px;opacity:.7}
.hrm-ui .chips-row #sort{height:40px;min-width:150px}
.hrm-ui .chips-row .search-inline{margin-inline-start:0}
/* بطاقة المقالة — امتداد لـ .news-card */
.hrm-ui .art-card .cover-link{display:block;position:relative}
.hrm-ui .art-card .cov{border-radius:0;aspect-ratio:16/9}
.hrm-ui .art-card .cat{position:absolute;top:12px;inset-inline-end:12px;background:rgba(6,23,38,.72);color:#fff;font-size:11.5px;font-weight:700;padding:4px 11px;border-radius:999px;z-index:2}
.hrm-ui .art-card .pinned{position:absolute;top:12px;inset-inline-start:12px;background:var(--gold);color:#1c1508;font-size:11px;font-weight:800;padding:4px 10px;border-radius:999px;display:inline-flex;align-items:center;gap:5px;z-index:2}
.hrm-ui .art-card .pinned svg{width:12px;height:12px}
.hrm-ui .art-card h4 a{color:var(--ink)}
.hrm-ui .art-card h4 a:hover{color:var(--teal-700)}
.hrm-ui .art-card .ft span{white-space:nowrap}
.hrm-ui .art-card .ft{gap:12px;flex-wrap:wrap}
/* العمود الجانبي */
.hrm-ui #side{display:flex;flex-direction:column;gap:16px}
.hrm-ui #side .box + .box{margin-top:0}
.hrm-ui .toplist{list-style:none;counter-reset:t}
.hrm-ui .toplist li{display:flex;align-items:flex-start;gap:11px;padding:11px 0;border-bottom:1px solid var(--line-2)}
.hrm-ui .toplist li:last-child{border-bottom:0}
.hrm-ui .toplist .n{width:26px;height:26px;border-radius:8px;background:var(--bg-soft);color:var(--muted);display:grid;place-items:center;font-size:12.5px;font-weight:800;flex:none}
.hrm-ui .toplist li:first-child .n{background:var(--gold-100);color:var(--gold-700)}
.hrm-ui .toplist a{flex:1;font-size:13.5px;line-height:1.75;color:var(--ink);font-weight:600}
.hrm-ui .toplist a:hover{color:var(--teal-700)}
.hrm-ui .toplist small{font-size:11.5px;color:var(--muted);white-space:nowrap;padding-top:2px}
.hrm-ui .aurow{display:flex;align-items:center;gap:11px;padding:10px 8px;border-radius:10px;transition:.14s}
.hrm-ui .aurow:hover{background:var(--bg-soft)}
.hrm-ui .aurow.on{background:var(--teal-100)}
.hrm-ui .aurow > span:nth-child(2){flex:1;min-width:0}
.hrm-ui .aurow b{display:block;font-size:13.5px;color:var(--ink)}
.hrm-ui .aurow small{display:block;font-size:11.5px;color:var(--muted)}
.hrm-ui .aurow > b.num{color:var(--teal-700);font-size:14px}
.hrm-ui .side-cta{text-align:center;background:linear-gradient(160deg,#0E3453,#13506F);color:#fff;border:0}
.hrm-ui .side-cta .ic{width:44px;height:44px;border-radius:13px;background:rgba(255,255,255,.14);display:grid;place-items:center;margin:0 auto 12px}
.hrm-ui .side-cta .ic svg{width:21px;height:21px}
.hrm-ui .side-cta b{display:block;font-size:15.5px;margin-bottom:7px}
.hrm-ui .side-cta p{font-size:13px;color:#CFE2EE;line-height:1.9;margin-bottom:16px}
@media (max-width:900px){.hrm-ui .fn-art .fn-media{min-height:210px}}
@media (max-width:620px){.hrm-ui .chips-row #sort{width:100%}}
/* FIX: تبديل نتائج التصفية/الفرز كان فوريًا بلا أي انتقال — نفس حركة m-fade
   المستخدمة أصلًا في toast/modal، تُعاد عبر تبديل هذا الصنف من الجافاسكربت. */
.hrm-ui #grid.fade-repaint{animation:m-fade .28s var(--ease-soft, ease)}
