
:root{--c:#0f766e;--c2:#14b8a6;--d:#06302e;--a:#f59e0b;--bg:#f3f6f7;--t:#17212b;--m:#64748b;--r:16px}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--t);font:17px/1.95 Cairo,Tahoma,'Segoe UI',Arial,sans-serif;direction:rtl;text-align:right;-webkit-text-size-adjust:100%}
a{color:var(--c);text-decoration:none}a:hover{color:var(--d)}
img{max-width:100%;height:auto}.post-body pre,.post-body p[dir=ltr]{overflow-x:auto;white-space:pre-wrap}
.wrap{max-width:1160px;margin:0 auto;padding:0 18px}
.bar{position:sticky;top:0;z-index:20;background:rgba(6,48,46,.97);box-shadow:0 2px 12px rgba(0,0,0,.15)}
.bar .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:62px}
.brand{font-weight:800;font-size:21px;color:#fff;white-space:nowrap}
.brand a{color:#fff}
.brand a{display:inline-flex;align-items:center;gap:10px}.brand .lg{width:40px;height:40px;flex:none;display:block}
nav.menu{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}
nav.menu::-webkit-scrollbar{display:none}
nav.menu a{color:#d7efec;padding:7px 15px;border-radius:999px;font-size:15px;font-weight:600;white-space:nowrap}
nav.menu a:hover{background:var(--c);color:#fff}
.hero{background:linear-gradient(135deg,#06302e 0%,#0f766e 60%,#14b8a6 100%);color:#fff;padding:56px 0 64px;position:relative;overflow:hidden}
.hero.s{padding:20px 0}.hero.s .ht{font-size:22px;margin:0}.hero.s:after{display:none}
.hero:after{content:"";position:absolute;left:-80px;top:-80px;width:300px;height:300px;border-radius:50%;background:rgba(245,158,11,.18)}
.hero .wrap{position:relative;z-index:1}
.hero h1,.hero .ht{margin:0 0 12px;font-size:42px;line-height:1.35;font-weight:800;color:#fff}
.hero h1 a,.hero .ht a{color:#fff}
.hero p{margin:0 0 24px;max-width:640px;font-size:19px;color:#d2f1ed}
.hero form{display:flex;max-width:520px;background:#fff;border-radius:999px;padding:5px;box-shadow:0 8px 24px rgba(0,0,0,.2)}
.hero input{flex:1;border:0;outline:0;background:none;padding:10px 20px;font:inherit;font-size:16px;min-width:0;color:var(--t)}
.hero button{border:0;background:var(--a);color:#1b1300;font:inherit;font-weight:700;border-radius:999px;padding:8px 24px;cursor:pointer}
.chips{margin-top:22px;display:flex;flex-wrap:wrap;gap:8px}
.chips a{background:rgba(255,255,255,.14);color:#fff;border-radius:999px;padding:3px 16px;font-size:14px}
.chips a:hover{background:rgba(255,255,255,.28)}
.mini{background:linear-gradient(135deg,#06302e,#0f766e);padding:22px 0;color:#fff}
.mini .t{font-size:24px;font-weight:800;margin:0}
.layout{display:flex;gap:28px;padding:34px 0;align-items:flex-start}
main{flex:1;min-width:0}aside{width:310px;flex:none}
.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:22px}
.pc{background:#fff;border-radius:var(--r);overflow:hidden;box-shadow:0 2px 10px rgba(15,35,50,.07);display:flex;flex-direction:column;transition:transform .2s,box-shadow .2s}
.pc:hover{transform:translateY(-4px);box-shadow:0 10px 26px rgba(15,35,50,.14)}
.th{display:block;height:170px;background:linear-gradient(135deg,#0f766e,#14b8a6);position:relative;overflow:hidden}
.th img{width:100%;height:100%;object-fit:cover;display:block}
.th.g1{background:linear-gradient(135deg,#0f766e,#2dd4bf)}
.th.g2{background:linear-gradient(135deg,#1d4ed8,#38bdf8)}
.th.g3{background:linear-gradient(135deg,#b45309,#fbbf24)}
.th.g4{background:linear-gradient(135deg,#6d28d9,#a78bfa)}
.th span.ph{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.95);font-size:22px;font-weight:800;text-align:center;padding:16px;background-image:linear-gradient(rgba(255,255,255,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.12) 1px,transparent 1px);background-size:28px 28px}
.pb{padding:18px 20px 20px;display:flex;flex-direction:column;flex:1}
.pb .lb{font-size:13px;font-weight:700;color:var(--c);background:#e0f4f1;border-radius:999px;padding:0 12px;align-self:flex-start;margin-bottom:8px}
.pb h2{margin:0 0 8px;font-size:19px;line-height:1.6;font-weight:800}
.pb h2 a{color:var(--t)}.pb h2 a:hover{color:var(--c)}
.pb p{margin:0 0 12px;color:var(--m);font-size:15px;line-height:1.85;flex:1}
.pb .dt{font-size:13px;color:var(--m)}
.sec-t{display:flex;align-items:center;gap:10px;margin:0 0 18px;font-size:22px;font-weight:800}
.sec-t:before{content:"";width:6px;height:24px;border-radius:3px;background:var(--a)}
.art{background:#fff;border-radius:var(--r);padding:34px 38px;box-shadow:0 2px 10px rgba(15,35,50,.07)}
.crumbs{font-size:14px;color:var(--m);margin-bottom:10px}
.art h1{margin:0 0 10px;font-size:34px;line-height:1.5;font-weight:800}
.meta{color:var(--m);font-size:14px;margin-bottom:22px;padding-bottom:16px;border-bottom:1px solid #e5eaee}
.post-body{font-size:18px;line-height:2.05}
.post-body h2{font-size:26px;margin:36px 0 10px;color:var(--d);line-height:1.5;padding-right:14px;border-right:5px solid var(--a)}
.post-body h3{font-size:21px;margin:26px 0 8px;color:var(--c)}
.post-body p{margin:0 0 16px}
.post-body img{border-radius:12px}
.post-body table{border-collapse:collapse;width:100%;display:block;overflow-x:auto;margin:18px 0;border-radius:10px}
.post-body td,.post-body th{border:1px solid #d7dee4;padding:9px 12px;white-space:nowrap}
.post-body th{background:#e0f4f1;color:var(--d)}
.post-body code{background:#eef2f5;border-radius:6px;padding:1px 7px;font-size:15px;direction:ltr;unicode-bidi:embed;word-break:break-word}
.post-body ul,.post-body ol{padding-right:24px;margin:0 0 16px}
.post-body blockquote{margin:18px 0;padding:12px 18px;background:#fff8e6;border-right:5px solid var(--a);border-radius:8px}
.toc{background:#f1faf8;border:1px solid #cfe8e4;border-radius:14px;padding:14px 20px;margin:0 0 26px}.toc b{display:block;color:var(--d);font-size:18px;margin-bottom:6px}.toc ol{margin:0;padding-right:22px;line-height:2}.toc a{color:var(--c);font-weight:600}
.abox{display:flex;gap:16px;align-items:center;background:#fff;border:1px solid #e3e9ee;border-radius:16px;padding:18px;margin:30px 0;box-shadow:0 4px 16px rgba(15,35,50,.06)}.abox svg{width:56px;height:56px;flex:none}.abox b{display:block;color:var(--d);font-size:18px}.abox p{margin:4px 0 0;color:var(--m);font-size:15px;line-height:1.8}
.rel{margin:30px 0}.rel h2{font-size:22px;color:var(--d);margin:0 0 14px;border-right:5px solid var(--a);padding-right:12px}.rel .rg{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}.rel a.rc{display:block;background:#fff;border:1px solid #e3e9ee;border-radius:14px;padding:14px 16px;color:var(--t);font-weight:700;line-height:1.7;box-shadow:0 3px 12px rgba(15,35,50,.05)}.rel a.rc:hover{border-color:var(--c2);color:var(--c)}
@media(max-width:600px){.abox{flex-direction:column;text-align:center}}
.labels{margin-top:26px}
.labels a{display:inline-block;background:#e0f4f1;color:var(--c);border-radius:999px;padding:1px 14px;font-size:14px;margin-left:6px;font-weight:700}
.share{margin-top:18px;font-size:14px;color:var(--m)}
.share a{display:inline-block;border:1px solid #d7dee4;border-radius:8px;padding:2px 12px;margin-left:6px;color:var(--t)}
.pager{display:flex;justify-content:space-between;padding:26px 0 0;font-weight:700}
.wb{background:#fff;border-radius:var(--r);padding:20px 22px;margin-bottom:20px;box-shadow:0 2px 10px rgba(15,35,50,.07)}
.wb h3{margin:0 0 12px;font-size:18px;font-weight:800}
.wb ul{margin:0;padding:0;list-style:none}
.wb li{padding:8px 0;border-bottom:1px solid #edf1f4;font-size:15px;line-height:1.7}
.wb li:last-child{border:0}
.wb input[type=text]{width:100%;padding:10px 14px;border:1px solid #cfd8de;border-radius:10px;font:inherit}
footer.f{background:var(--d);color:#a9cfca;padding:34px 0 22px;margin-top:20px;font-size:14px}
footer.f .fr{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;align-items:center}
footer.f a{color:#fff}
footer.f .fn a{margin-left:16px;color:#d7efec}
@media(max-width:860px){main{width:100%;max-width:100%}.art{max-width:100%;overflow:hidden}.post-body{overflow-wrap:anywhere}.post-body p,.post-body pre{max-width:100%}.layout{flex-direction:column;padding:22px 0}aside{width:100%}.art{padding:22px 18px}.art h1{font-size:27px}.hero{padding:36px 0 44px}.hero h1,.hero .ht{font-size:30px}.hero p{font-size:16px}.bar .wrap{flex-direction:column;align-items:stretch;gap:0;padding-bottom:8px}.brand{padding-top:10px;font-size:19px}nav.menu{padding:6px 0 2px}.post-body{font-size:17px}.post-body h2{font-size:22px}}
@media(max-width:600px){.grid{grid-template-columns:1fr}.th{height:150px}}
@keyframes up{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes fl{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-12px) rotate(-2deg)}}
.pc{animation:up .6s both}.pc:nth-child(2){animation-delay:.08s}.pc:nth-child(3){animation-delay:.16s}.pc:nth-child(4){animation-delay:.24s}
.hero{padding:64px 0 96px}
.hero .wrap{display:flex;align-items:center;justify-content:space-between;gap:30px}
.hero .hx{flex:1;min-width:0}
.hero .art-i{width:420px;flex:none;animation:fl 6s ease-in-out infinite;filter:drop-shadow(0 20px 30px rgba(0,0,0,.35))}
.hero .badge{display:inline-block;background:rgba(245,158,11,.2);color:#fde68a;border:1px solid rgba(245,158,11,.5);border-radius:999px;padding:2px 16px;font-size:14px;margin-bottom:14px;font-weight:700}
.hero.s .art-i,.hero.s .badge{display:none}
.hero.s .wrap{display:block}
.cats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:-52px;position:relative;z-index:3}
.cat{background:#fff;border-radius:var(--r);padding:20px 18px;box-shadow:0 8px 24px rgba(15,35,50,.12);display:block;color:var(--t);border-top:5px solid var(--k);transition:transform .2s;animation:up .6s both}
.cat:hover{transform:translateY(-5px);color:var(--t)}
.cat i{display:flex;width:46px;height:46px;border-radius:12px;background:var(--k);align-items:center;justify-content:center;margin-bottom:10px}
.cat i svg{width:26px;height:26px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cat b{display:block;font-size:17px;line-height:1.5}
.cat small{color:var(--m);font-size:13px;line-height:1.6;display:block}
.grid .pc:first-child{grid-column:1/-1;flex-direction:row}
.grid .pc:first-child .th{width:48%;height:auto;min-height:260px;flex:none}
.grid .pc:first-child .pb h2{font-size:25px}
.grid .pc:first-child .pb:before{content:"مقال مميز";font-size:12px;font-weight:800;color:#92400e;background:#fef3c7;border-radius:999px;padding:0 12px;align-self:flex-start;margin-bottom:8px}
.pc:nth-child(4n+2) .lb{color:#1d4ed8;background:#dbeafe}.pc:nth-child(4n+3) .lb{color:#b45309;background:#fef3c7}.pc:nth-child(4n+4) .lb{color:#6d28d9;background:#ede9fe}
.th.g1{background:linear-gradient(135deg,#0f766e,#2dd4bf)}
.grid .pc:nth-child(4n+2) .th{background:linear-gradient(135deg,#1d4ed8,#38bdf8)}.grid .pc:nth-child(4n+3) .th{background:linear-gradient(135deg,#b45309,#fbbf24)}.grid .pc:nth-child(4n+4) .th{background:linear-gradient(135deg,#6d28d9,#a78bfa)}
.post-body figure{margin:22px 0;text-align:center}
.post-body figure img{width:100%;border-radius:14px;box-shadow:0 6px 22px rgba(15,35,50,.14);border:1px solid #e3e9ee;background:#fff}
.post-body figcaption{font-size:14px;color:var(--m);margin-top:8px;line-height:1.7}
.tip,.key,.warn{border-radius:12px;padding:14px 18px 14px 18px;margin:20px 0;border-right:6px solid;line-height:1.9}
.tip{background:#ecfdf5;border-color:#10b981}.key{background:#eff6ff;border-color:#3b82f6}.warn{background:#fffbeb;border-color:#f59e0b}
.tip:before,.key:before,.warn:before{display:block;font-weight:800;margin-bottom:2px}
.tip:before{content:"نصيحة";color:#047857}.key:before{content:"الخلاصة السريعة";color:#1d4ed8}.warn:before{content:"تنبيه";color:#b45309}
.dl{display:inline-flex;align-items:center;gap:10px;background:linear-gradient(135deg,var(--c),var(--c2));color:#fff!important;font-weight:800;border-radius:12px;padding:12px 24px;box-shadow:0 6px 16px rgba(15,118,110,.35);transition:transform .2s;text-decoration:none!important}
.dl:hover{transform:translateY(-2px)}
.art{animation:up .5s both}
footer.f{padding:46px 0 22px}
footer.f .cols{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:30px;margin-bottom:26px}
footer.f h4{color:#fff;margin:0 0 10px;font-size:17px}
footer.f .cols a{display:block;color:#a9cfca;padding:3px 0}footer.f .cols a:hover{color:#fff}
footer.f p{margin:0;line-height:1.9}
footer.f .fr{border-top:1px solid rgba(255,255,255,.12);padding-top:16px}
@media(max-width:860px){.hero .art-i{display:none}.hero{padding:40px 0 70px}.cats{grid-template-columns:repeat(2,1fr);margin-top:-40px}.grid .pc:first-child{flex-direction:column}.grid .pc:first-child .th{width:100%;min-height:160px}footer.f .cols{grid-template-columns:1fr}.hero.s{padding:20px 0}}
@media(prefers-reduced-motion:reduce){*{animation:none!important}}

