@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;600;700;800;900&family=Tajawal:wght@400;500;600;700;800&display=swap');
:root{--bg:#020918;--panel:#07172d;--panel2:#0a2140;--cyan:#4beeff;--blue:#2f83ff;--text:#ecf8ff;--muted:#b9d3e5;--border:rgba(86,213,255,.28)}
*{box-sizing:border-box}
html{min-width:320px;scroll-behavior:smooth}
body{margin:0;min-height:100vh;direction:rtl;font-family:'Heebo',Arial,sans-serif;color:var(--text);background:radial-gradient(ellipse at 8% 0%,rgba(47,83,215,.22),transparent 36%),radial-gradient(ellipse at 88% 18%,rgba(0,158,236,.15),transparent 36%),linear-gradient(180deg,#020713 0%,#041024 55%,#030817 100%);overflow-x:hidden}
body::before{content:"";position:fixed;inset:0;pointer-events:none;opacity:.25;background-image:radial-gradient(circle,#b9eaff 1px,transparent 1.5px),radial-gradient(circle,#89a1ff 1px,transparent 1.6px);background-size:137px 137px,239px 239px;background-position:26px 44px,91px 16px;z-index:0}
a{color:inherit}a:focus-visible{outline:3px solid var(--cyan);outline-offset:4px}
.bank-wrap,.article-wrap{position:relative;z-index:1;margin:0 auto;padding-bottom:64px}
.bank-wrap{width:min(1100px,calc(100% - 36px))}
.article-wrap{width:min(800px,calc(100% - 36px))}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:24px 0 16px}
.brand{direction:ltr;font-size:14px;letter-spacing:.16em;font-weight:900;color:#8bf6ff;text-decoration:none;text-shadow:0 0 18px rgba(76,228,255,.45)}
.back{display:inline-flex;justify-content:center;align-items:center;gap:8px;width:max-content;min-height:42px;padding:8px 16px;border:1px solid rgba(91,221,255,.5);border-radius:12px;background:rgba(10,35,68,.88);color:#e9fcff;text-decoration:none;font-weight:800;font-size:14px;box-shadow:0 0 16px rgba(0,169,255,.13);transition:background .18s,transform .18s,border-color .18s}
.back:hover{background:rgba(11,67,115,.9);border-color:#70efff;transform:translateY(-2px)}
.bank-heading{text-align:center;margin:4px auto 22px;max-width:820px}
.eyebrow{display:inline-block;color:#8cddff;font-size:13px;letter-spacing:.04em;font-weight:800}
.bank-heading h1{font-size:clamp(32px,4vw,56px);line-height:1.17;margin:6px 0 10px;text-shadow:0 0 32px rgba(33,150,255,.28)}
.bank-heading .lead{font-size:clamp(16px,1.6vw,19px);margin:0 0 12px;color:#cfe8f5;line-height:1.7}
.notice{display:inline-block;margin:0;padding:8px 16px;border:1px solid rgba(83,192,237,.28);border-radius:999px;background:rgba(9,31,60,.72);font-size:13px;color:#b9d6e8;line-height:1.5}
.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;align-items:stretch}
.challenge-card{display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(85,210,255,.4);background:linear-gradient(180deg,rgba(13,36,70,.97),rgba(6,19,43,.98));border-radius:20px;text-decoration:none;box-shadow:0 14px 36px rgba(0,0,0,.28),inset 0 0 28px rgba(10,99,255,.055),0 0 0 1px rgba(50,73,220,.15);transition:transform .2s,border-color .2s,box-shadow .2s}
.challenge-card:hover{transform:translateY(-5px);border-color:#77eaff;box-shadow:0 22px 48px rgba(0,0,0,.35),0 0 23px rgba(29,174,255,.23)}
.card-media{position:relative;height:130px;display:flex;align-items:center;justify-content:center;margin:0;padding:12px;overflow:hidden;background:transparent}
.card-media img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;transition:transform .3s}
.challenge-card:hover .card-media img{transform:scale(1.02)}
.card-number{position:absolute;top:11px;right:12px;display:inline-block;padding:4px 11px;border:1px solid rgba(91,237,255,.8);background:rgba(3,17,39,.86);border-radius:999px;color:#c2fbff;font-weight:900;font-size:12px;box-shadow:0 0 14px rgba(12,163,255,.25)}
.card-body{display:flex;flex:1;flex-direction:column;min-width:0;padding:11px 15px 15px}
.card-body h2{font-size:19px;line-height:1.35;margin:0 0 9px;font-weight:900;color:#f5fdff}
.card-subtitle{font-weight:700;color:#78ddff;font-size:14px;line-height:1.5;margin:0 0 12px}
.card-description{color:#d2e2f0;font-size:14px;line-height:1.65;margin:0 0 14px;flex:1}
.read-more{align-self:stretch;display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:38px;background:linear-gradient(135deg,#00aeda,#1370c9);padding:7px 12px;border:1px solid #63efff;border-radius:11px;color:white;box-shadow:0 0 14px rgba(19,166,255,.22);font-size:14px;font-weight:900}
.page-footer{text-align:center;font-size:12px;color:#8caac2;margin:30px 0 0;direction:ltr}
.article-nav{margin-bottom:16px}
.reading{background:linear-gradient(180deg,rgba(8,24,48,.97),rgba(5,17,36,.98));border:1px solid var(--border);border-radius:22px;padding:clamp(20px,3vw,32px);box-shadow:0 24px 56px rgba(0,0,0,.32),0 0 29px rgba(31,124,246,.1)}
.article-title{font-size:clamp(29px,4vw,43px);font-weight:900;line-height:1.25;margin:0 0 8px;color:#fff;text-shadow:0 0 23px rgba(55,164,255,.22)}
.article-subtitle{font-size:clamp(17px,2vw,20px);color:#81e6ff;font-weight:700;line-height:1.55;margin:0 0 8px}
.article-figure{display:flex;align-items:center;justify-content:center;width:fit-content;max-width:100%;margin:12px auto 18px;padding:0;border:0;overflow:visible;background:transparent;box-shadow:none}
.article-figure img{display:block;width:auto;height:auto;max-width:100%;max-height:200px;inline-size:auto;block-size:auto;object-fit:contain;object-position:center;transform:none}
.article-section{margin:0 0 24px}
.article-section h2{color:#88ecff;font-size:clamp(20px,2.4vw,24px);line-height:1.45;font-weight:900;margin:0 0 12px;padding:0 11px 1px 0;border-right:3px solid #32bdff}
.article-section p{font-size:20px;font-weight:400;line-height:1.8;color:#e8f3fb;text-align:right;margin:0 0 12px}
.article-section p:last-child{margin-bottom:0}
.space-section{background:rgba(13,46,82,.46);border:1px solid rgba(70,191,252,.24);border-radius:16px;padding:20px 21px;margin-bottom:0}
.space-section h2{color:#8ff3ff}
.article-footer{display:flex;justify-content:center;margin:25px 0 8px}

@media(max-width:900px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.bank-wrap{width:min(100% - 28px,420px)}.article-wrap{width:calc(100% - 24px)}.topbar{padding-top:17px}.bank-heading{margin:4px auto 20px}.cards{grid-template-columns:1fr;gap:16px}.card-media{height:130px}.card-body{padding:12px 15px 16px}.card-description{font-size:15px}.reading{padding:21px 18px;border-radius:18px}.article-figure{margin:10px auto 16px}.article-figure img{max-width:100%;max-height:180px}.article-section{margin-bottom:22px}.article-section h2{font-size:21px}.article-section p{font-size:19px;line-height:1.8}.space-section{padding:17px}.notice{border-radius:14px}.brand{font-size:12px}}

/* Shared reading time and collapsible space hint for the six extended stories. */
.reading-time{color:#abcbdc;font-size:15px;font-weight:700;line-height:1.5;margin:0 0 18px}
.space-hint{margin-top:30px;border:1px solid rgba(86,213,255,.4);border-radius:16px;background:rgba(13,46,82,.46);overflow:hidden}
.space-hint summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;cursor:pointer;padding:16px 20px;color:#a5f7ff;font-size:20px;font-weight:900;transition:background .15s}
.space-hint summary::-webkit-details-marker{display:none}
.space-hint summary::after{content:"+";display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border:1px solid rgba(100,234,255,.48);border-radius:50%;font:900 21px Arial,sans-serif}
.space-hint[open] summary::after{content:"−"}
.space-hint summary:hover,.space-hint summary:focus-visible{background:rgba(28,90,133,.24)}
.space-hint .hint-content{border-top:1px solid rgba(86,213,255,.25);padding:18px 20px}
.space-hint .hint-content p{font-size:20px;line-height:1.8;color:#e8f3fb;text-align:right;margin:0 0 16px}
.space-hint .hint-content p:last-child{margin-bottom:0}
@media(max-width:600px){.reading-time{font-size:14px}.space-hint summary{font-size:19px;padding:15px 16px}.space-hint .hint-content{padding:16px}.space-hint .hint-content p{font-size:19px}}

@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}


/* Hebrew/Arabic language switcher; readable Arabic without changing the rest of the site. */
.lang-switch{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;gap:5px;padding:4px;border:1px solid rgba(91,221,255,.38);border-radius:12px;background:rgba(5,25,52,.85);box-shadow:0 0 15px rgba(5,163,246,.09);direction:ltr}
.lang-switch a{display:inline-flex;justify-content:center;align-items:center;min-height:32px;padding:4px 10px;border-radius:8px;color:#c7e7f7;text-decoration:none;font-size:14px;font-weight:800;white-space:nowrap}
.lang-switch a:hover,.lang-switch a:focus-visible{background:rgba(40,123,178,.3);color:white}
.lang-switch a[aria-current="true"]{background:linear-gradient(135deg,#06a6d8,#145dbd);color:#fff;box-shadow:0 0 10px rgba(17,162,233,.22)}
.lang-separator{color:#71a4b9;font-size:14px}
.header-tools{display:flex;align-items:center;gap:14px}
html[lang="ar"] body{font-family:'Noto Naskh Arabic','Tajawal','Arial',sans-serif}
html[lang="ar"] .article-title,html[lang="ar"] .card-body h2,html[lang="ar"] .bank-heading h1{font-weight:800;line-height:1.4}
html[lang="ar"] .article-section h2{line-height:1.55}
html[lang="ar"] .article-section p,html[lang="ar"] .space-hint .hint-content p{line-height:1.95}
html[lang="ar"] .card-description{line-height:1.85}
html[lang="ar"] .back,html[lang="ar"] .read-more,html[lang="ar"] .space-hint summary{line-height:1.6}
@media(max-width:620px){.topbar{flex-wrap:wrap;row-gap:10px}.header-tools{gap:8px}.lang-switch a{font-size:13px;padding:4px 7px}.bank-wrap .topbar{justify-content:space-between}}

/* Keep illustrations compact; never turn them into cropped article banners. */
.article-figure{max-inline-size:min(240px,100%)}
.article-figure img{max-inline-size:100%;object-fit:contain;object-position:center;transform:none}
.article-section p,.hint-content p{overflow-wrap:break-word;white-space:normal}
.topbar{flex-wrap:wrap}
@media(max-width:600px){.article-figure{max-inline-size:min(220px,100%)}.topbar .eyebrow{display:none}.lang-switch a{min-height:40px}}

/* Compact home and team icons in the challenges landing-page header. */
.quick-links{display:inline-flex;align-items:center;gap:8px;flex-shrink:0}
.nav-icon{display:inline-grid;place-items:center;width:46px;height:46px;padding:0;flex-shrink:0;border:1px solid rgba(91,221,255,.5);border-radius:12px;background:rgba(10,35,68,.88);color:#e9fcff;box-shadow:0 0 16px rgba(0,169,255,.13)}
a.nav-icon{text-decoration:none;transition:background .18s,transform .18s,border-color .18s,box-shadow .18s}
a.nav-icon:hover{background:rgba(11,67,115,.9);border-color:#70efff;box-shadow:0 0 19px rgba(43,194,255,.26);transform:translateY(-2px)}
.nav-icon svg{display:block;width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.team-icon{color:#8defff;border-color:rgba(91,221,255,.33);background:rgba(10,35,68,.66)}
@media(max-width:600px){.quick-links{gap:7px}.nav-icon{width:43px;height:43px}.nav-icon svg{width:22px;height:22px}}

/* Official Taasiyeda logo shared unchanged across Hebrew and Arabic pages. */
.brand{display:inline-flex;align-items:center;justify-content:center;min-height:58px;line-height:1}
.brand .site-logo{display:block;width:66px;height:68px;object-fit:contain;object-position:center;filter:drop-shadow(0 2px 7px rgba(0,0,0,.18))}
.page-footer{display:flex;align-items:center;justify-content:center;gap:8px;direction:ltr;min-height:50px}
.page-footer .footer-logo{display:block;width:40px;height:46px;object-fit:contain}
.page-footer span{color:#9ccde6;font-size:12px;font-weight:800;letter-spacing:.1em}
@media(max-width:600px){.brand{min-height:50px}.brand .site-logo{width:52px;height:58px}.page-footer .footer-logo{width:35px;height:42px}}

/* Compact interactive team icon and unobtrusive connection status. */
button.team-icon{appearance:none;font:inherit;cursor:pointer;transition:background .18s,transform .18s,border-color .18s}
button.team-icon:hover{background:rgba(11,67,115,.9);border-color:#70efff;transform:translateY(-2px)}
button.team-icon:disabled{opacity:.65;cursor:wait}
.group-auth-status{position:fixed;z-index:100;bottom:16px;left:50%;transform:translateX(-50%);max-width:min(480px,calc(100% - 24px));padding:0;color:#d9f8ff;text-align:center;font-size:14px}
.group-auth-status:not(:empty){padding:10px 18px;border:1px solid rgba(89,215,255,.5);border-radius:12px;background:#0a2747;box-shadow:0 10px 28px #0007}
