/* منصة حصة التعليمية — purple top bar, grade bar, cards. Same family as the other Hessa sites. */
:root{--bg:#f3f5fb;--surface:#fff;--surface-2:#eaeef8;--ink:#16213e;--muted:#5b6585;--line:#d9dff0;--v:#6a4fe0;--v-2:#8f7bff;--v-soft:#efeafe;--v-deep:#2a1f6e;--bar:#2b2f45;--bar-2:#3a3f5c;--warm:#e8412c;--warm-2:#ff9a1f;--ok:#2e9e4f;
  --f:'Tajawal','Segoe UI',system-ui,sans-serif;--fh:'Alexandria','Tajawal',system-ui,sans-serif;--sh:0 1px 2px rgba(22,33,62,.06),0 10px 28px rgba(22,33,62,.09);--r:18px}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font:17px/1.75 var(--f)}
a{color:inherit}
button,input{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:3px solid var(--v);outline-offset:2px}
[hidden]{display:none!important}
img{max-width:100%}
.in{max-width:1180px;margin-inline:auto;padding-inline:16px}
h1,h2,h3,h4{font-family:var(--fh);line-height:1.35;margin:0}
.ic{display:inline-grid;place-items:center}
.ic svg{width:1em;height:1em;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* top bar: dark navy like the other Hessa sites, text tabs only */
.top{background:var(--bar);color:#fff;position:relative;z-index:30}
.top .in{max-width:1400px;display:flex;align-items:center;gap:16px;min-height:60px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;flex:none}
.brand i{width:38px;height:38px;border-radius:11px;background:var(--v);color:#fff;display:grid;place-items:center}
.brand i svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.brand span{display:flex;gap:6px;align-items:baseline;line-height:1.15}
.brand b{font-family:var(--fh);font-weight:800;font-size:1.25rem;white-space:nowrap}
.brand em{font-style:normal;color:#c9b8ff;font-weight:700;font-size:.95rem}
.svc{display:flex;gap:4px;flex:1;min-width:0;overflow-x:auto;scrollbar-width:none;justify-content:center}
.svc::-webkit-scrollbar{display:none}
.svc a{text-decoration:none;color:#e4defc;padding:7px 14px;border-radius:999px;font-weight:700;font-size:.92rem;white-space:nowrap;transition:.15s}
.svc a:hover{background:rgba(255,255,255,.12);color:#fff}
.svc a[aria-current]{background:var(--v);color:#fff}
.find{position:relative;flex:0 1 260px;display:flex}
.find input{width:100%;height:40px;border-radius:999px;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.12);color:#fff;padding:0 42px 0 16px;font-size:.92rem}
.find input::placeholder{color:#c9c4e6}
.find input:focus{outline:0;background:#fff;color:var(--ink)}
.find input:focus::placeholder{color:var(--muted)}
.find button{position:absolute;right:3px;top:3px;width:34px;height:34px;border:0;border-radius:50%;background:transparent;color:inherit;display:grid;place-items:center}
.find input:focus+button{color:var(--v)}
.find button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.fr{position:absolute;top:48px;left:0;right:0;min-width:300px;background:#fff;color:var(--ink);border-radius:14px;box-shadow:0 18px 40px rgba(22,33,62,.25);padding:6px;max-height:70vh;overflow:auto;z-index:40}
.fr a{display:block;text-decoration:none;padding:9px 12px;border-radius:10px}
.fr a:hover{background:var(--v-soft)}
.fr b{display:block;font-weight:700;line-height:1.5}
.fr small{color:var(--muted)}
.fr p{margin:0;padding:12px;color:var(--muted)}
@media(max-width:1240px){.top .in{flex-wrap:wrap;gap:6px 12px;padding-block:8px}.svc{order:3;flex-basis:100%;justify-content:flex-start}.find{flex:1 1 180px}}
@media(max-width:560px){.brand b{font-size:1.1rem}.svc a{font-size:.84rem;padding:6px 10px}}

/* grade bar */
.gbar{background:var(--bar-2);border-bottom:1px solid #4a506e}
.gbar .in{max-width:1400px;display:flex;align-items:center;min-height:46px;overflow-x:auto;scrollbar-width:none;gap:2px}
.gbar .in::-webkit-scrollbar{display:none}
.gbar .stn{font-weight:800;color:#fff;font-size:.88rem;padding-inline:6px 4px;white-space:nowrap}
.gbar a{text-decoration:none;white-space:nowrap;padding:3px 11px;color:#e4defc;font-size:.88rem;font-weight:500;border-radius:999px}
.gbar a:hover{background:rgba(255,255,255,.14);color:#fff}
.gbar a[aria-current=page]{background:var(--v);color:#fff;font-weight:700}
.gbar .sep{width:1px;height:20px;background:#5a6080;margin-inline:8px;flex:none}

/* hero */
.hero{background:#fff;border-bottom:1px solid var(--line);padding:44px 0 26px}
.hero .in{display:grid;grid-template-columns:1.2fr .8fr;gap:30px;align-items:center}
.hero h1{font-size:clamp(1.7rem,3.6vw,2.6rem);font-weight:800;color:var(--v-deep)}
.hero h1 em{font-style:normal;color:var(--v)}
.hero p{font-size:1.1rem;color:var(--muted);margin:12px 0 0;max-width:40rem}
.hero img{width:100%;max-width:420px;justify-self:center;filter:drop-shadow(0 18px 30px rgba(42,31,110,.18))}
@media(max-width:800px){.hero .in{grid-template-columns:1fr;gap:10px}.hero img{max-width:180px;order:-1}.hero{padding-top:20px}}

/* two doors */
.doors{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:26px}
.door{display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:center;text-decoration:none;background:var(--surface);border:2px solid var(--line);border-radius:var(--r);padding:18px 20px;box-shadow:var(--sh);transition:.15s;position:relative;overflow:hidden}
.door:hover{transform:translateY(-3px);border-color:var(--c)}
.door .ic{width:64px;height:64px;border-radius:18px;background:var(--c);color:#fff;font-size:34px;flex:none}
.door b{font-family:var(--fh);font-size:1.3rem;display:block;color:var(--c)}
.door small{display:block;color:var(--muted);line-height:1.5;margin-top:2px}
.door .go{width:38px;height:38px;border-radius:50%;background:var(--v-soft);color:var(--v);display:grid;place-items:center}
.door .go svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.door ul{grid-column:1/-1;margin:0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:6px}
.door li{background:var(--v-soft);color:var(--v-deep);border-radius:999px;padding:2px 11px;font-size:.84rem;font-weight:500}
@media(max-width:700px){.doors{grid-template-columns:1fr}}

/* sections */
.sec{padding:34px 0 10px}
.sec-h{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:16px}
.sec-h h2{font-size:1.45rem;font-weight:800;color:var(--v-deep);padding-inline-start:14px;border-inline-start:5px solid var(--v);line-height:1.2}
.sec-h p{margin:4px 0 0 14px;color:var(--muted);padding-inline-start:5px}
.sec-h a.more{text-decoration:none;color:var(--v);font-weight:700;white-space:nowrap}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
@media(max-width:800px){.grid3{grid-template-columns:1fr}}

/* service card */
.sc{display:flex;flex-direction:column;gap:6px;text-decoration:none;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:18px;box-shadow:var(--sh);position:relative;transition:.15s;min-height:170px}
.sc:hover{transform:translateY(-3px);border-color:var(--c)}
.sc .ic{width:50px;height:50px;border-radius:14px;background:color-mix(in srgb,var(--c) 14%,#fff);color:var(--c);font-size:28px}
.sc b{font-family:var(--fh);font-size:1.08rem;color:var(--ink)}
.sc p{margin:0;color:var(--muted);font-size:.93rem;line-height:1.6;flex:1}
.sc .who{align-self:flex-start;font-size:.78rem;font-weight:700;color:var(--c);background:color-mix(in srgb,var(--c) 10%,#fff);border-radius:999px;padding:1px 10px}

/* stage cards */
.stage{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:16px 18px;box-shadow:var(--sh)}
.stage .sh{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.stage .sh img{width:62px;height:62px;object-fit:contain}
.stage h3{font-size:1.15rem;color:var(--v-deep)}
.stage .sh small{display:block;color:var(--muted)}
.stage .gl{display:flex;flex-wrap:wrap;gap:8px}
.stage .gl a{text-decoration:none;background:var(--v-soft);color:var(--v-deep);border-radius:999px;padding:5px 14px;font-weight:600;font-size:.92rem;border:1px solid transparent}
.stage .gl a:hover{border-color:var(--v);background:#fff;color:var(--v)}
.stage .gl a.soon{opacity:.55}

/* subject row */
.subs{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.sub{display:flex;flex-direction:column;align-items:center;gap:6px;text-decoration:none;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:14px 10px;box-shadow:var(--sh);transition:.15s;text-align:center}
.sub:hover{transform:translateY(-3px);border-color:var(--c)}
.sub .dot{width:52px;height:52px;border-radius:50%;background:color-mix(in srgb,var(--c) 16%,#fff);color:var(--c);display:grid;place-items:center;font-family:var(--fh);font-weight:800;font-size:1.3rem}
.sub b{font-size:.98rem}
.sub small{color:var(--muted);font-size:.8rem}

/* band (dark call-out) */
.band{background:var(--bar);color:#fff;border-radius:22px;padding:26px 28px;display:grid;grid-template-columns:1fr auto;gap:18px;align-items:center;margin:28px auto;box-shadow:var(--sh)}
.band h3{font-size:1.35rem;font-weight:800}
.band p{margin:6px 0 0;color:#d8d0fb}
.band .btn{background:#ffd23f;color:#2a1f6e}
@media(max-width:700px){.band{grid-template-columns:1fr}}
.btn{display:inline-flex;align-items:center;gap:8px;text-decoration:none;background:var(--v);color:#fff;font-weight:700;border-radius:999px;padding:10px 22px;border:0;white-space:nowrap}
.btn.ghost{background:#fff;color:var(--v);border:2px solid var(--v)}

/* grade page */
.gp-head{background:linear-gradient(180deg,#fff,var(--bg));padding:30px 0 10px}
.gp-head h1{font-size:clamp(1.5rem,3vw,2.2rem);color:var(--v-deep);font-weight:800}
.gp-head p{color:var(--muted);margin:6px 0 0}
.res{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:16px}
.rc{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:16px 18px;box-shadow:var(--sh);display:flex;flex-direction:column;gap:8px}
.rc .rh{display:flex;align-items:center;gap:10px}
.rc .rh .ic{width:44px;height:44px;border-radius:12px;background:color-mix(in srgb,var(--c) 14%,#fff);color:var(--c);font-size:24px}
.rc h3{font-size:1.05rem}
.rc p{margin:0;color:var(--muted);font-size:.9rem;line-height:1.55}
.rc .ls{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto}
.rc .ls a{text-decoration:none;background:var(--v-soft);color:var(--v-deep);border-radius:999px;padding:3px 12px;font-size:.88rem;font-weight:600}
.rc .ls a:hover{background:var(--v);color:#fff}
.rc .ls a.main{background:var(--c);color:#fff}

/* steps (how to use) */
.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.step{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:16px;box-shadow:var(--sh)}
.step i{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--v);color:#fff;font-style:normal;font-weight:800;font-family:var(--fh);margin-bottom:8px}
.step b{display:block;font-family:var(--fh);margin-bottom:4px}
.step p{margin:0;color:var(--muted);font-size:.92rem}

/* footer */
.foot{margin-top:40px;background:var(--bar);color:#d8d0fb;padding:34px 0 0}
.foot .in{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:24px}
.foot h4{color:#fff;font-size:1.05rem;margin-bottom:8px}
.foot p{margin:0;font-size:.92rem;line-height:1.7}
.foot .fc a{display:block;text-decoration:none;font-size:.95rem;padding:2px 0}
.foot .fc a:hover{color:#fff}
.foot .disc{margin:24px 0 0;padding:14px 0;background:#232739;font-size:.82rem;text-align:center}
.foot .disc .in{display:block}
@media(max-width:800px){.foot .in{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.foot .in{grid-template-columns:1fr}}
