/* ===== YSA Blog — same identity as the site: #004aad / #0a5fd1 / #00296b + gold #f8a72b ===== */
:root{--yb-bg:#fff;--yb-bd:#e2e8f0;--yb-tx:#0f172a;--yb-mu:#475569;--yb-bl:#004aad;--yb-soft:#eef3fb;--yb-sh:0 10px 30px -14px rgba(15,23,42,.22)}
html.dark{--yb-bg:#111c33;--yb-bd:#22345a;--yb-tx:#e8eefc;--yb-mu:#aebbd6;--yb-bl:#8fb2ff;--yb-soft:#0c1527;--yb-sh:0 10px 30px -14px rgba(0,0,0,.6)}
.yb-wrap{max-width:1180px;margin:0 auto;padding:20px 16px 56px}
.yb-back{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 20px;border-radius:12px;background:var(--yb-bg);border:1px solid var(--yb-bd);box-shadow:0 1px 2px rgba(0,0,0,.05);color:var(--yb-bl);font-weight:700;font-size:14px;margin-bottom:16px}
.yb-back:hover{transform:translateY(-1px)}
/* hero */
.yb-hero{position:relative;overflow:hidden;border-radius:28px;color:#fff;background:linear-gradient(135deg,#004aad,#0a5fd1);box-shadow:0 22px 40px -22px rgba(0,74,173,.7)}
.yb-cv-c1,.yb-cv-c2{position:absolute;border-radius:50%;background:rgba(255,255,255,.1);pointer-events:none}
.yb-cv-c1{width:220px;height:220px;top:-70px;inset-inline-end:-40px}.yb-cv-c2{width:260px;height:260px;bottom:-110px;inset-inline-start:-50px}
.yb-hero-index{text-align:center;padding:56px 20px 48px}
.yb-hero-index h1{position:relative;font-family:"Plus Jakarta Sans",Cairo,sans-serif;font-weight:900;font-size:clamp(34px,6vw,60px);letter-spacing:-.01em;line-height:1.2}
.yb-hero-ic{position:relative;width:64px;height:64px;object-fit:contain;margin:0 auto 10px;filter:drop-shadow(0 8px 12px rgba(0,0,0,.25))}
.yb-bar-gold{position:relative;width:56px;height:8px;border-radius:4px;background:#f8a72b;transform:rotate(-12deg);margin:16px auto 0}
.yb-hero-index p{position:relative;max-width:680px;margin:18px auto 0;font-size:clamp(15px,2.2vw,18px);line-height:1.9;color:#e6efff;font-weight:600}
.yb-search{position:relative;display:flex;align-items:center;gap:10px;max-width:520px;margin:26px auto 0;height:54px;padding:0 18px;border-radius:16px;background:#fff;color:#64748b;box-shadow:0 14px 28px -14px rgba(0,0,0,.45)}
.yb-search input{flex:1;border:0;outline:0;background:transparent;font:inherit;font-size:15px;color:#0f172a;min-width:0}
.yb-search:focus-within{box-shadow:0 0 0 3px rgba(248,167,43,.7),0 14px 28px -14px rgba(0,0,0,.45)}
/* chips / buttons */
.yb-chip{display:inline-flex;align-items:center;position:absolute;top:12px;inset-inline-start:12px;padding:5px 12px;border-radius:999px;background:rgba(255,255,255,.95);color:#004aad;font-weight:800;font-size:11.5px;box-shadow:0 4px 10px -4px rgba(0,0,0,.3);z-index:2}
.yb-chip-gold{position:static;background:#f8a72b;color:#12203a}
.yb-btn-gold,.yb-btn-ghost{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:50px;padding:0 24px;border-radius:14px;font-weight:800;font-size:15px;transition:all .2s;white-space:nowrap}
.yb-btn-gold{color:#020617;background:linear-gradient(to right,#fbbf24,#facc15,#f59e0b);box-shadow:0 10px 22px -10px rgba(245,158,11,.7)}
.yb-btn-gold:hover{transform:translateY(-2px);filter:brightness(1.05)}
.yb-btn-ghost{color:#fff;border:2px solid rgba(255,255,255,.55)}.yb-btn-ghost:hover{background:rgba(255,255,255,.12)}
/* featured */
.yb-feat{position:relative;display:flex;align-items:center;justify-content:space-between;gap:20px;overflow:hidden;margin-top:22px;padding:34px 34px;border-radius:26px;color:#fff;box-shadow:0 22px 40px -24px rgba(0,41,107,.8);transition:transform .25s}
.yb-feat:hover{transform:translateY(-3px)}
.yb-feat-tx{position:relative;z-index:1;max-width:700px;display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.yb-feat h2{font-weight:900;font-size:clamp(22px,3.4vw,34px);line-height:1.5}
.yb-feat p{color:#e6efff;font-size:15.5px;line-height:1.9;font-weight:500}
.yb-feat-meta{font-size:13px;color:#dbe7ff;font-weight:700}
.yb-feat-img{position:relative;z-index:1;width:150px;height:150px;object-fit:contain;filter:drop-shadow(0 14px 18px rgba(0,0,0,.3))}
/* categories */
.yb-cats{display:flex;gap:10px;flex-wrap:wrap;margin:26px 0 18px}
.yb-cat{display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 16px;border-radius:12px;background:var(--yb-bg);border:1px solid var(--yb-bd);color:var(--yb-mu);font:inherit;font-weight:800;font-size:13.5px;cursor:pointer;transition:all .18s}
.yb-cat b{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:var(--yb-soft);color:var(--yb-bl);font-size:11.5px}
.yb-cat:hover{border-color:#004aad;color:var(--yb-bl)}
.yb-cat.is-on{background:#004aad;border-color:#004aad;color:#fff;box-shadow:0 10px 20px -12px rgba(0,74,173,.9)}.yb-cat.is-on b{background:rgba(255,255,255,.2);color:#fff}
/* grid + cards */
.yb-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.yb-card{position:relative;display:flex;flex-direction:column;border-radius:22px;background:var(--yb-bg);border:1px solid var(--yb-bd);box-shadow:var(--yb-sh);overflow:hidden;transition:transform .22s,box-shadow .22s,border-color .22s}
.yb-card[hidden]{display:none}
.yb-card:hover{transform:translateY(-5px);border-color:#9bb8e8;box-shadow:0 22px 36px -18px rgba(0,74,173,.45)}
.yb-cover{position:relative;height:150px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.yb-cover img{position:relative;z-index:1;width:84px;height:84px;object-fit:contain;filter:drop-shadow(0 10px 12px rgba(0,0,0,.3));transition:transform .3s}
.yb-card:hover .yb-cover img{transform:scale(1.1) rotate(-4deg)}
.yb-cb{display:flex;flex-direction:column;gap:10px;padding:18px 18px 16px;flex:1}
.yb-cb h3{font-weight:900;font-size:17px;line-height:1.65;color:var(--yb-tx)}
.yb-cb p{color:var(--yb-mu);font-size:14px;line-height:1.85;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.yb-meta{display:flex;flex-wrap:wrap;gap:14px;margin-top:auto;padding-top:12px;border-top:1px dashed var(--yb-bd);color:var(--yb-mu);font-size:12px;font-weight:700}
.yb-meta i,.yb-hero-meta i,.yb-feat-meta i{color:#f8a72b;margin-inline-end:3px}
.yb-more-w{text-align:center;margin-top:26px}
.yb-more{height:48px;padding:0 30px;border-radius:14px;border:2px solid #004aad;color:#004aad;background:transparent;font:inherit;font-weight:800;cursor:pointer;transition:all .2s}
.yb-more:hover{background:#004aad;color:#fff}.yb-more[hidden]{display:none}
html.dark .yb-more{border-color:#8fb2ff;color:#8fb2ff}
.yb-none{text-align:center;padding:40px 0;color:var(--yb-mu);font-weight:700}
.yb-empty{text-align:center;padding:60px 16px}.yb-empty h1{font-size:28px;font-weight:900;color:var(--yb-bl);margin:12px 0}.yb-empty p{color:var(--yb-mu);margin-bottom:22px}.yb-empty-ic{width:90px;margin:0 auto}
/* CTA */
.yb-cta{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin:40px 0 0;padding:28px 30px;border-radius:24px;color:#fff;background:linear-gradient(135deg,#00296b,#004aad);box-shadow:0 22px 40px -24px rgba(0,41,107,.9);position:relative;overflow:hidden}
.yb-cta h2{font-weight:900;font-size:clamp(19px,2.6vw,25px);margin:0 0 6px;color:#fff;border:0;padding:0}.yb-cta p{color:#d6e4ff;font-size:15px;line-height:1.8;margin:0}
.yb-cta-btns{display:flex;gap:12px;flex-wrap:wrap}.yb-cta-wide{margin-top:44px}
/* article layout */
.yb-hero-art{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:44px 40px}
.yb-hero-tx{position:relative;z-index:1;display:flex;flex-direction:column;align-items:flex-start;gap:18px;max-width:780px}
.yb-hero-art h1{font-weight:900;font-size:clamp(25px,4vw,42px);line-height:1.55}
.yb-hero-meta{display:flex;flex-wrap:wrap;gap:18px;font-size:13px;font-weight:700;color:#e3ecff}
.yb-hero-ic2{position:relative;z-index:1;width:150px;height:150px;object-fit:contain;filter:drop-shadow(0 16px 20px rgba(0,0,0,.3));flex:none}
.yb-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:32px;margin-top:30px;align-items:start}
.yb-layout:not(:has(.yb-toc)){grid-template-columns:minmax(0,780px);justify-content:center}
.yb-toc{position:sticky;top:104px}
.yb-toc-in{padding:18px;border-radius:20px;background:var(--yb-bg);border:1px solid var(--yb-bd);box-shadow:var(--yb-sh)}
.yb-toc-h{font-weight:900;color:var(--yb-bl);margin-bottom:12px;font-size:14.5px}.yb-toc-h i{color:#f8a72b;margin-inline-end:6px}
.yb-toc ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px;counter-reset:t}
.yb-toc a{display:block;padding:8px 12px;border-radius:10px;font-size:13.5px;font-weight:700;line-height:1.6;color:var(--yb-mu);border-inline-start:3px solid transparent;transition:all .15s}
.yb-toc a:hover{background:var(--yb-soft);color:var(--yb-bl)}
.yb-toc a.is-on{background:var(--yb-soft);color:var(--yb-bl);border-inline-start-color:#f8a72b}
.yb-article{min-width:0;padding:34px 38px;border-radius:26px;background:var(--yb-bg);border:1px solid var(--yb-bd);box-shadow:var(--yb-sh);color:var(--yb-tx);font-size:17px;line-height:2.05}
.yb-article p{margin:0 0 16px;color:var(--yb-tx)}
.yb-article .yb-lead{font-size:18.5px;font-weight:600;color:var(--yb-mu)}
.yb-article a{color:#0a5fd1;font-weight:800;border-bottom:2px solid rgba(248,167,43,.7)}.yb-article a:hover{background:rgba(248,167,43,.18)}
html.dark .yb-article a{color:#8fb2ff}
.yb-article h2{position:relative;scroll-margin-top:110px;margin:34px 0 14px;padding-inline-start:18px;font-weight:900;font-size:clamp(21px,2.8vw,26px);line-height:1.6;color:var(--yb-bl)}
.yb-article h2::before{content:"";position:absolute;inset-inline-start:0;top:.45em;width:6px;height:1em;border-radius:3px;background:#f8a72b}
.yb-ul,.yb-ol{margin:0 0 18px;padding:0;list-style:none;display:flex;flex-direction:column;gap:10px}
.yb-ul li,.yb-ol li{position:relative;padding:12px 16px;padding-inline-start:46px;border-radius:14px;background:var(--yb-soft);border:1px solid var(--yb-bd);line-height:1.9;font-size:16px}
.yb-ul li::before{content:"";position:absolute;inset-inline-start:16px;top:20px;width:12px;height:12px;border-radius:4px;background:#f8a72b;transform:rotate(45deg)}
.yb-ol{counter-reset:o}.yb-ol li{counter-increment:o}
.yb-ol li::before{content:counter(o);position:absolute;inset-inline-start:12px;top:12px;width:26px;height:26px;border-radius:50%;background:#004aad;color:#fff;font-weight:900;font-size:13px;display:flex;align-items:center;justify-content:center}
.yb-tip{display:flex;gap:14px;align-items:flex-start;margin:22px 0;padding:18px 20px;border-radius:18px;background:linear-gradient(135deg,rgba(248,167,43,.16),rgba(248,167,43,.06));border:1px solid rgba(248,167,43,.55);font-size:16px;line-height:1.95}
.yb-tip-ic{flex:none;width:38px;height:38px;border-radius:12px;background:#f8a72b;color:#12203a;display:flex;align-items:center;justify-content:center}
.yb-share{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:28px 0 6px;padding:14px 16px;border-radius:16px;background:var(--yb-soft);border:1px solid var(--yb-bd);font-weight:800;font-size:14px;color:var(--yb-mu)}
.yb-share a,.yb-share button{width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;border:0;background:var(--c);color:#fff;font-size:17px;cursor:pointer;transition:transform .15s}
.yb-article .yb-share a{color:#fff;border:0}.yb-article .yb-share a:hover{background:var(--c);transform:translateY(-2px)}
.yb-share button:hover{transform:translateY(-2px)}.yb-share .is-ok{background:#16a34a}
.yb-faq{margin-top:30px}.yb-faq h2{margin-top:0}
.yb-faq details{margin-bottom:10px;border-radius:14px;border:1px solid var(--yb-bd);background:var(--yb-bg);overflow:hidden}
.yb-faq summary{cursor:pointer;list-style:none;padding:14px 18px;font-weight:800;font-size:16px;color:var(--yb-tx);display:flex;justify-content:space-between;gap:12px}
.yb-faq summary::-webkit-details-marker{display:none}
.yb-faq summary::after{content:"+";font-weight:900;color:#f8a72b;font-size:22px;line-height:1}
.yb-faq details[open]{border-color:#9bb8e8}.yb-faq details[open] summary::after{content:"–"}
.yb-faq details p{margin:0;padding:0 18px 16px;color:var(--yb-mu);font-size:15.5px}
.yb-rel{margin-top:44px}.yb-rel h2{font-weight:900;font-size:24px;color:var(--yb-bl);margin-bottom:18px}
.yb-progress{position:fixed;top:0;inset-inline:0;height:4px;z-index:60;background:linear-gradient(to right,#f8a72b,#facc15);transform:scaleX(0);transform-origin:right center;pointer-events:none}
html[dir=ltr] .yb-progress{transform-origin:left center}
@media(max-width:1023px){.yb-grid{grid-template-columns:repeat(2,1fr)}.yb-layout{grid-template-columns:minmax(0,1fr)}.yb-toc{display:none}}
@media(max-width:640px){.yb-grid{grid-template-columns:1fr}.yb-hero-art{padding:30px 22px}.yb-hero-ic2,.yb-feat-img{display:none}.yb-feat{padding:26px 22px}.yb-article{padding:22px 18px;font-size:16.5px}.yb-cta{padding:22px 20px}.yb-cta-btns,.yb-cta-btns a{width:100%}.yb-hero-index{padding:40px 16px 36px}}
@media(prefers-reduced-motion:reduce){.yb-card,.yb-card:hover .yb-cover img,.yb-feat{transition:none}}
/* إصلاح: صندوق CTA جوه المقال (أولوية أعلى من ستايل نص المقال) */
.yb-article .yb-cta{margin:36px 0 0}
.yb-article .yb-cta h2{color:#fff;margin:0 0 6px;padding:0;font-size:clamp(19px,2.6vw,25px)}
.yb-article .yb-cta h2::before{display:none}
.yb-article .yb-cta p{color:#d6e4ff;margin:0;font-size:15px;line-height:1.8}
.yb-article a.yb-btn-gold{color:#020617;border:0}
.yb-article a.yb-btn-gold:hover{background:linear-gradient(to right,#fcd34d,#facc15,#fbbf24)}
.yb-article a.yb-btn-ghost{color:#fff;border:2px solid rgba(255,255,255,.55)}
.yb-article a.yb-btn-ghost:hover{background:rgba(255,255,255,.14)}
.yb-feat[hidden]{display:none}

/* v33: صور المقالات المصمّمة */
.yb-cover-img{height:auto;aspect-ratio:1200/630;background:#00296b}
.yb-cover-img img{width:100%;height:100%;object-fit:cover;filter:none;transition:transform .35s}
.yb-card:hover .yb-cover-img img{transform:scale(1.04)}
.yb-feat{align-items:stretch}.yb-feat-cover{width:min(46%,460px);height:auto;aspect-ratio:1200/630;border-radius:18px;object-fit:cover;filter:none;box-shadow:0 18px 34px -16px rgba(0,0,0,.6);align-self:center;flex:none}
.yb-fig{margin:26px 0;border-radius:22px;overflow:hidden;border:1px solid var(--yb-bd);box-shadow:var(--yb-sh);background:#fff}
.yb-fig img{display:block;width:100%;height:auto}
.yb-fig-cover{margin:18px 0 8px}
.yb-fig figcaption{padding:9px 14px;font-size:13.5px;font-weight:700;color:#475a7a;text-align:center;background:#f3f7ff}
html.dark .yb-fig figcaption{background:#101b33;color:#9db3dc}
@media(max-width:640px){.yb-feat-cover{display:block;width:100%}.yb-feat{flex-direction:column}.yb-fig{border-radius:16px}}
.yb-hero-index p.ysa-nl{white-space:pre-line}
