
/* ===== السيرة الذاتية — النسخة المحدّثة ===== */
.cv-section h3,.cv-section h4{margin:0;text-wrap:balance}
.cv-section p{text-wrap:pretty}
.cv-panel{animation:cvxIn .45s var(--ease) both}
@keyframes cvxIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.cv-panel{animation:none}}

/* الخبرات */
.cvx-timeline{list-style:none;margin:0;padding:0 22px 0 0;position:relative;display:flex;flex-direction:column;gap:12px}
.cvx-timeline::before{content:"";position:absolute;right:6px;top:14px;bottom:14px;width:2px;border-radius:2px;background:linear-gradient(to bottom,var(--gold),var(--line) 30%,var(--line))}
.cvx-job{position:relative;padding:15px 18px;border-radius:18px;background:rgba(255,255,255,.7);border:1px solid rgba(14,58,68,.08);transition:transform .3s var(--ease),box-shadow .3s var(--ease),border-color .3s}
.cvx-job::before{content:"";position:absolute;right:-22px;top:22px;width:12px;height:12px;border-radius:50%;background:var(--cream-2);border:2px solid var(--gold);box-sizing:border-box}
.cvx-job:hover{transform:translateX(-3px);box-shadow:0 12px 30px rgba(14,58,68,.08);border-color:rgba(176,141,87,.35)}
.cvx-job.is-current{background:linear-gradient(135deg,rgba(14,58,68,.06),rgba(176,141,87,.08));border-color:rgba(176,141,87,.35)}
.cvx-job.is-current::before{background:var(--gold);box-shadow:0 0 0 5px rgba(176,141,87,.18)}
.cvx-job-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}
.cvx-job h3{font-size:16px;line-height:1.45;color:var(--text);font-weight:700}
.cvx-org{margin:2px 0 0;font-size:13.5px;color:var(--muted);line-height:1.6}
.cvx-desc{margin:9px 0 0;font-size:13.5px;line-height:1.8;color:var(--muted)}
.cvx-when{flex-shrink:0;display:inline-flex;align-items:center;gap:7px;font-size:12.5px;font-weight:700;color:var(--petrol);background:rgba(14,58,68,.06);padding:5px 12px;border-radius:999px;white-space:nowrap;font-variant-numeric:tabular-nums}
.is-current .cvx-when{background:var(--petrol);color:#fff}
.cvx-live{width:7px;height:7px;border-radius:50%;background:var(--gold-2);box-shadow:0 0 0 0 rgba(201,166,107,.7);animation:cvxPulse 2s infinite}
@keyframes cvxPulse{70%{box-shadow:0 0 0 7px rgba(201,166,107,0)}100%{box-shadow:0 0 0 0 rgba(201,166,107,0)}}

/* المؤهلات */
.cvx-credential{position:relative;overflow:hidden;display:flex;align-items:center;gap:16px;padding:18px 20px;border-radius:20px;background:linear-gradient(135deg,var(--petrol),var(--petrol-2));color:#fff;margin-bottom:14px}
.cvx-credential::after{content:"";position:absolute;inset-inline-start:-40px;bottom:-60px;width:180px;height:180px;border-radius:50%;border:1px solid rgba(201,166,107,.25);box-shadow:0 0 0 22px rgba(201,166,107,.05)}
.cvx-seal{flex-shrink:0;width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:var(--gold-2);color:var(--petrol);box-shadow:0 0 0 6px rgba(201,166,107,.18)}
.cvx-seal svg{width:26px;height:26px}
.cvx-kicker{display:inline-flex;align-items:center;gap:8px;font-size:12.5px;font-weight:700;color:var(--gold-2)}
.cvx-kicker b{font-size:11px;padding:1px 9px;border-radius:999px;border:1px solid rgba(201,166,107,.6)}
.cvx-credential h3{font-size:18px;line-height:1.5;margin-top:3px;color:#fff}
.cvx-credential p{margin:0;font-size:13.5px;color:rgba(255,255,255,.8)}
.cvx-degrees{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cvx-degree{padding:16px;border-radius:18px;background:rgba(255,255,255,.7);border:1px solid rgba(14,58,68,.08);transition:transform .3s var(--ease),border-color .3s}
.cvx-degree:hover{transform:translateY(-3px);border-color:rgba(176,141,87,.4)}
.cvx-degree h3{font-size:15px;line-height:1.55;color:var(--text);margin-top:8px}
.cvx-degree p{margin:4px 0 0;font-size:13px;color:var(--muted)}
.cvx-year{display:inline-block;font-size:12px;font-weight:700;color:var(--gold);letter-spacing:.3px;font-variant-numeric:tabular-nums}

/* الإنجازات */
.cvx-awards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cvx-award{display:flex;gap:13px;align-items:flex-start;padding:16px;border-radius:18px;background:rgba(255,255,255,.7);border:1px solid rgba(14,58,68,.08)}
.cvx-award.is-featured{grid-column:span 2;background:linear-gradient(135deg,rgba(176,141,87,.14),rgba(255,255,255,.7));border-color:rgba(176,141,87,.35)}
.cvx-ico{flex-shrink:0;width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:rgba(176,141,87,.14);color:var(--gold)}
.cvx-ico svg{width:22px;height:22px}
.cvx-award h3{font-size:15px;line-height:1.55;color:var(--text);margin-top:2px}
.cvx-award p{margin:3px 0 0;font-size:13px;line-height:1.7;color:var(--muted)}
.cvx-block{margin-top:16px}
.cvx-subhead{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:700;color:var(--petrol);margin:0 0 10px}
.cvx-subhead::after{content:"";flex:1;height:1px;background:var(--line)}
.cvx-books{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px}
.cvx-books li{display:flex;justify-content:space-between;align-items:baseline;gap:10px;padding:9px 0;border-bottom:1px dashed var(--line);font-size:13.5px;line-height:1.6;color:var(--text)}
.cvx-books em{font-style:normal;flex-shrink:0;font-size:12px;font-weight:700;color:var(--gold);font-variant-numeric:tabular-nums}
.cvx-footnote{margin:12px 0 0;padding:12px 14px;border-radius:14px;background:rgba(14,58,68,.05);font-size:13px;line-height:1.8;color:var(--muted)}

/* التطوير */
.cvx-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.cvx-two .cvx-block{margin-top:0}
.cvx-two .cvx-subhead:not(:first-child){margin-top:16px}
.cvx-certs{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}
.cvx-certs li{display:flex;flex-direction:column;padding:11px 14px;border-radius:14px;background:rgba(255,255,255,.7);border:1px solid rgba(14,58,68,.08);border-inline-start:3px solid var(--gold)}
.cvx-certs strong{font-size:14px;color:var(--text);line-height:1.5}
.cvx-certs span{font-size:12.5px;color:var(--soft);direction:ltr;text-align:right}
.cvx-ticks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.cvx-ticks li{position:relative;padding-inline-start:24px;font-size:13.5px;line-height:1.7;color:var(--muted)}
.cvx-ticks li::before{content:"";position:absolute;inset-inline-start:0;top:6px;width:15px;height:15px;border-radius:50%;background:rgba(176,141,87,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B08D57' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/10px no-repeat}
.cvx-notes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}
.cvx-note{margin:0;padding:14px 16px;border-radius:16px;font-size:13px;line-height:1.8;color:var(--muted);background:rgba(176,141,87,.1);border-inline-start:3px solid var(--gold)}
.cvx-note.is-ai{background:rgba(14,58,68,.06);border-inline-start-color:var(--petrol)}
.cvx-note b{display:block;font-size:13.5px;color:var(--text);margin-bottom:2px}

/* الوضع الداكن */
body.theme-dark .cvx-job,body.theme-dark .cvx-degree,body.theme-dark .cvx-award,body.theme-dark .cvx-certs li{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.08)}
body.theme-dark .cvx-job.is-current,body.theme-dark .cvx-award.is-featured{background:linear-gradient(135deg,rgba(201,166,107,.14),rgba(255,255,255,.03));border-color:rgba(201,166,107,.3)}
body.theme-dark .cvx-job::before{background:var(--petrol)}
body.theme-dark .cvx-job.is-current::before{background:var(--gold-2)}
body.theme-dark .cvx-job h3,body.theme-dark .cvx-degree h3,body.theme-dark .cvx-award h3,body.theme-dark .cvx-certs strong,body.theme-dark .cvx-books li,body.theme-dark .cvx-note b{color:#F3EEE4}
body.theme-dark .cvx-org,body.theme-dark .cvx-desc,body.theme-dark .cvx-degree p,body.theme-dark .cvx-award p,body.theme-dark .cvx-ticks li,body.theme-dark .cvx-note,body.theme-dark .cvx-footnote,body.theme-dark .cvx-certs span{color:var(--dark-soft)}
body.theme-dark .cvx-when{background:rgba(255,255,255,.08);color:#F3EEE4}
body.theme-dark .is-current .cvx-when{background:var(--gold-2);color:var(--petrol)}
body.theme-dark .cvx-subhead{color:var(--gold-2)}
body.theme-dark .cvx-subhead::after,body.theme-dark .cvx-books li{border-color:var(--line-dark)}
body.theme-dark .cvx-subhead::after{background:var(--line-dark)}
body.theme-dark .cvx-footnote,body.theme-dark .cvx-note.is-ai{background:rgba(255,255,255,.05)}
body.theme-dark .cvx-timeline::before{background:linear-gradient(to bottom,var(--gold-2),var(--line-dark) 30%,var(--line-dark))}
body.theme-dark .cvx-credential{background:linear-gradient(135deg,rgba(201,166,107,.18),rgba(255,255,255,.04));border:1px solid rgba(201,166,107,.3)}

/* الشاشات الصغيرة */
@media (max-width:760px){
  .cvx-degrees,.cvx-awards,.cvx-books,.cvx-two,.cvx-notes{grid-template-columns:1fr}
  .cvx-award.is-featured{grid-column:auto}
  .cvx-job-head{flex-direction:column;gap:8px}
  .cvx-credential{padding:16px}
}
