@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');
:root { --deep:#075e63; --deep2:#064a52; --mint:#e5f4f0; --cream:#fffaf1; --gold:#e6b653; --ink:#1b3b42; --muted:#587179; --border:#dce9e6; --white:#ffffff; --shadow:0 15px 42px rgba(24,80,81,.09); --radius:25px; }
* {box-sizing:border-box} html {scroll-behavior:smooth} body {margin:0;background:var(--cream);color:var(--ink);font-family:'Cairo',Tahoma,Arial,sans-serif;min-height:100vh;line-height:1.8}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.58} a{color:var(--deep)} img{max-width:100%} :focus-visible{outline:3px solid #e8b648;outline-offset:3px} [hidden]{display:none!important} .shell{width:min(1140px,calc(100% - 34px));margin-inline:auto}.skip-link{position:absolute;right:-9999px;top:5px;background:white;padding:12px;z-index:300}.skip-link:focus{right:15px}
.site-header{position:sticky;top:0;z-index:20;background:#fffdf8ee;backdrop-filter:blur(18px);box-shadow:0 2px 20px #194c4c0a;border-bottom:1px solid #eceae1}.header-inner{min-height:96px;display:flex;align-items:center;gap:20px;justify-content:space-between}.brand{display:flex;align-items:center;gap:12px;min-width:320px}.brand-thumb{width:76px;height:76px;border-radius:22px;background:linear-gradient(180deg,#fff,#f7f5ef);border:1px solid #e4e7df;box-shadow:0 8px 20px #055b6118;overflow:hidden;display:grid;place-items:center;flex:0 0 auto}.brand-thumb img{width:100%;height:100%;object-fit:cover;object-position:center}.brand-copy{display:flex;flex-direction:column;line-height:1.4;min-width:0}.brand-copy strong{color:var(--deep2);font-size:1.55rem;font-weight:900;display:block;white-space:nowrap}.brand-copy span{font-size:.84rem;color:#61747b;font-weight:800;white-space:nowrap}.site-nav{display:flex;align-items:center;gap:6px;background:#edf5f1;padding:5px;border-radius:100px}.nav-btn{border:0;background:transparent;color:#41676a;padding:8px 17px;border-radius:50px;font-weight:800;white-space:nowrap}.nav-btn:hover,.nav-btn.active{background:#fff;color:var(--deep);box-shadow:0 2px 11px #14464614}.install-top{border:0;border-radius:16px;padding:12px 18px;background:var(--deep);color:white;font-weight:800;white-space:nowrap;box-shadow:0 8px 18px #075e632a}.install-top span:first-child{font-size:1.25rem;margin-left:5px}.main-content{min-height:68vh;padding-block:34px 66px}.loading-panel{padding:52px;text-align:center;color:var(--muted)}
.hero{display:grid;grid-template-columns:1.15fr .85fr;gap:25px;min-height:390px;align-items:stretch}.hero-copy{border-radius:34px;background:linear-gradient(127deg,#075e63,#0e8480 100%);color:#fff;padding:48px 44px;position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:center;isolation:isolate}.hero-copy:before{content:'';position:absolute;left:-75px;top:-100px;width:360px;height:360px;border-radius:50%;background:#ffffff13;z-index:-1}.hero-copy:after{content:'';position:absolute;right:-100px;bottom:-170px;width:350px;height:350px;border:2px solid #ffffff24;border-radius:50%;z-index:-1}.eyebrow{align-self:flex-start;background:#ffffff20;border:1px solid #ffffff40;border-radius:100px;padding:6px 15px;font-size:.83rem;font-weight:800}.hero h1{font-size:clamp(2rem,4vw,3.2rem);line-height:1.4;margin:17px 0 9px;font-weight:900}.hero p{color:#ebfffa;font-size:1rem;line-height:2;margin:0 0 20px;max-width:550px}.hero-actions{display:flex;flex-wrap:wrap;gap:12px}.btn{border:0;display:inline-flex;justify-content:center;align-items:center;text-align:center;gap:8px;padding:12px 23px;border-radius:15px;font-weight:900;text-decoration:none}.btn-main{background:var(--gold);color:#19363b;box-shadow:0 9px 19px #06272d20}.btn-main:hover{filter:brightness(1.04)}.btn-glass{background:#ffffff19;color:#fff;border:1px solid #ffffff55}.btn-outline{background:#fff;border:1px solid var(--border);color:var(--deep)}.hero-art{border-radius:34px;overflow:hidden;position:relative;background:linear-gradient(145deg,#f7f4e8,#e7f1ec 60%,#eff8f5);border:1px solid #e3e6d9;min-height:380px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:34px}.hero-art:before{content:"";position:absolute;left:-30px;top:-30px;width:180px;height:180px;background:radial-gradient(circle,#fff8d6,transparent 70%);border-radius:50%}.hero-art:after{content:"";position:absolute;left:28px;top:28px;width:130px;height:130px;border:2px dashed #c8dcd1;border-radius:50%;opacity:.7}.hero-art img{display:none}.art-caption{position:relative;left:auto;bottom:auto;z-index:3;background:#ffffffd9;border:1px solid #dce7e2;border-radius:16px;padding:10px 14px;box-shadow:0 9px 17px #244e4c14;font-size:.90rem;font-weight:900;color:var(--deep);margin-top:14px}.hero-side-title{position:relative;z-index:2;margin:0 0 10px;color:#175258;font-size:1.8rem;font-weight:900;line-height:1.5}.hero-side-text{position:relative;z-index:2;margin:0;color:#5b7374;font-size:.95rem;line-height:2;max-width:32ch}.hero-side-pills{position:relative;z-index:2;display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.hero-pill{background:#fff;border:1px solid #dde9e4;border-radius:999px;padding:8px 14px;color:#1b4c4f;font-size:.84rem;font-weight:800;box-shadow:0 5px 16px #194c4c0d}.section-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:36px;margin-bottom:15px}.section-title h2,.page-title{margin:0;color:var(--deep2);font-size:1.45rem;line-height:1.5;font-weight:900}.section-title p,.page-subtitle{margin:3px 0 0;color:var(--muted);font-size:.9rem}.inline-link{background:transparent;border:0;color:var(--deep);font-weight:800;text-decoration:underline;text-underline-offset:5px}.grade-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.grade-card{position:relative;isolation:isolate;text-align:right;border:1px solid #dce8e2;background:#fff;border-radius:25px;padding:24px 21px;box-shadow:0 4px 18px #0c51520a;transition:transform .2s,border-color .2s;min-height:205px;display:flex;flex-direction:column;align-items:flex-start}.grade-card:hover{transform:translateY(-4px);border-color:#6db5ac}.grade-card .grade-emoji{font-size:2.4rem;line-height:1}.grade-card strong{font-size:1.2rem;margin-top:13px;color:#1b4c4f}.grade-card small{color:var(--muted);font-size:.82rem}.grade-card .grade-arrow{margin-top:auto;align-self:flex-end;background:#eff7f2;color:var(--deep);border-radius:9px;width:30px;height:30px;display:grid;place-items:center}.grade-card:nth-child(2){background:#f2fbf9}.grade-card:nth-child(3){background:#fff9ec}.grade-card:nth-child(4){background:#f4f1fb}.disclaimer{margin-top:27px;border:1px solid #e5d3a3;background:#fff7e4;color:#6b5729;padding:13px 17px;border-radius:16px;font-size:.85rem}.feature-strip{margin-top:18px;display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.feature{border-radius:17px;padding:15px 17px;background:white;border:1px solid var(--border);display:flex;align-items:center;gap:12px;font-size:.86rem;font-weight:800}.feature span{font-size:1.5rem}
.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:25px}.eyebrow-text{font-size:.8rem;font-weight:900;color:#69827e;letter-spacing:.02em}.back-button{border:1px solid var(--border);border-radius:12px;background:#fff;color:var(--deep);padding:8px 15px;font-weight:900;white-space:nowrap}.grade-filters{display:flex;flex-wrap:wrap;gap:9px;margin:13px 0 25px}.filter-btn{padding:9px 15px;border:1px solid #bfd9ce;border-radius:13px;background:white;font-weight:800;color:#386367}.filter-btn.active{background:var(--deep);color:white;border-color:var(--deep)}.lessons-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.lesson-card{background:white;padding:24px;border:1px solid var(--border);border-radius:24px;display:flex;flex-direction:column;min-height:240px;box-shadow:0 5px 16px #0b4f4f08}.lesson-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.lesson-icon{display:grid;place-items:center;width:60px;height:60px;border-radius:18px;background:var(--mint);font-size:2rem}.lesson-unit{background:#fbf1d9;padding:3px 10px;border-radius:25px;font-size:.73rem;font-weight:800;color:#7a5c13}.lesson-card h3{font-size:1.12rem;margin:12px 0 2px;color:#18484d}.lesson-card p{font-size:.84rem;line-height:1.9;color:var(--muted);margin:0 0 15px}.lesson-bottom{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:8px}.lesson-bottom small{font-size:.75rem;color:#617f7b}.start-lesson{border:0;border-radius:12px;background:var(--deep);color:white;padding:9px 16px;font-size:.86rem;font-weight:900}.start-lesson:hover{background:#0e777c}
.quiz-shell{max-width:820px;margin-inline:auto}.quiz-top{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:14px}.quiz-progress-track{height:11px;background:#e0ece7;border-radius:40px;overflow:hidden}.quiz-progress-fill{height:100%;width:0%;background:linear-gradient(90deg,#0f9184,#e5b45b);transition:width .2s}.quiz-card{background:white;border:1px solid var(--border);padding:clamp(22px,4vw,42px);border-radius:30px;box-shadow:var(--shadow);margin-top:16px}.question-kicker{font-weight:900;font-size:.82rem;color:var(--muted);display:flex;align-items:center;justify-content:space-between}.timer{background:#e9f6f2;color:#076969;border-radius:15px;padding:8px 13px;font-weight:900;font-variant-numeric:tabular-nums;min-width:94px;text-align:center}.timer.urgent{background:#fde5de;color:#b3462c}.quiz-card h2{font-size:clamp(1.24rem,3vw,1.7rem);line-height:1.9;margin:24px 0;color:var(--ink)}.answer-list{display:grid;gap:13px}.answer-option{display:flex;text-align:right;gap:12px;align-items:center;width:100%;border:2px solid #e5eeeb;background:#fbfdfa;border-radius:17px;padding:14px 16px;color:#244e4e;font-weight:800;transition:background .15s,border .15s}.answer-option:hover:not(:disabled){background:#effaf7;border-color:#8dc9b5}.answer-option:disabled{opacity:1}.answer-option.correct{border-color:#2a9b77;background:#e7f8ed;color:#125e43}.answer-option.wrong{border-color:#e79f8b;background:#fff0e8;color:#8a3927}.option-letter{background:white;border:1px solid #e0ebe7;border-radius:10px;min-width:37px;height:37px;display:grid;place-items:center;font-weight:900}.feedback{padding:16px 19px;border-radius:15px;margin-top:19px;line-height:1.9;font-size:.9rem}.feedback.good{background:#e8f7ed;border:1px solid #b4dfc5;color:#185a3c}.feedback.bad{background:#fff3e2;border:1px solid #f4d6a1;color:#795722}.quiz-actions{display:flex;justify-content:space-between;align-items:center;gap:11px;margin-top:20px;flex-wrap:wrap}.small-muted{color:var(--muted);font-size:.82rem}.result-panel{text-align:center;border:1px solid var(--border);background:white;border-radius:31px;padding:45px 23px;box-shadow:var(--shadow)}.result-icon{font-size:4rem}.result-panel h2{font-size:1.8rem;margin:7px 0;color:var(--deep)}.result-score{font-weight:900;font-size:2.7rem;color:#0b786f;line-height:1.5}.result-panel p{color:var(--muted);margin:2px 0 20px}.result-buttons{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}.progress-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-top:15px}.progress-card{border:1px solid var(--border);background:white;padding:23px;border-radius:20px}.progress-card span{display:block;color:var(--muted);font-size:.86rem}.progress-card strong{display:block;color:var(--deep);font-size:2rem}.progress-list{display:grid;gap:10px;margin-top:22px}.progress-line{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 20px;background:white;border:1px solid var(--border);border-radius:13px}.progress-line strong{font-size:.91rem}.progress-line small{color:var(--muted)}.progress-note{font-size:.8rem;color:var(--muted);margin:15px 0}.progress-line .score{font-weight:900;color:var(--deep)}
.site-footer{background:#eaf1ec;border-top:1px solid #dce5df;padding:26px 0}.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:20px}.footer-inner strong{display:block;color:var(--deep)}.footer-inner small{display:block;font-size:.75rem;color:var(--muted)}.footer-actions{display:flex;flex-direction:column;align-items:flex-end;gap:5px;font-size:.76rem;color:var(--muted)}.footer-actions button{background:none;border:0;color:var(--deep);font-weight:900;text-decoration:underline}dialog{border:1px solid var(--border);border-radius:26px;padding:0;width:min(540px,calc(100% - 26px));box-shadow:0 22px 100px #092f4070;color:var(--ink);max-height:calc(100vh - 50px)}dialog::backdrop{background:#092f41a8;backdrop-filter:blur(6px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:20px 24px;background:var(--deep);color:white}.dialog-head h2{font-size:1.12rem;margin:0}.close-btn{border:0;color:white;background:#ffffff24;border-radius:100%;width:36px;height:36px;font-size:1.7rem;line-height:1}.dialog-body{padding:20px 25px;font-size:.93rem}.dialog-body ol{padding-right:24px}.dialog-body li{padding-bottom:10px}.dialog-body p{margin:0 0 9px}.dialog-footer{padding:0 25px 25px}.toast{position:fixed;z-index:95;bottom:25px;left:25px;background:#153f45;color:#fff;border-radius:15px;box-shadow:0 13px 32px #0c434349;padding:12px 20px;opacity:0;pointer-events:none;transform:translateY(15px);transition:all .2s;font-size:.86rem;max-width:min(450px,calc(100% - 35px))}.toast.visible{opacity:1;transform:translateY(0)}.status-banner{background:#fff4d5;padding:7px 18px;text-align:center;color:#765d2a;font-size:.82rem;font-weight:800}
@media(max-width:1050px){.header-inner{gap:10px}.site-nav{display:none}.hero{grid-template-columns:1fr 0.83fr}.hero-copy{padding:29px}.grade-grid{grid-template-columns:repeat(2,1fr)}.lessons-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:690px){.shell{width:min(100% - 24px,1140px)}.site-header{position:relative}.header-inner{min-height:73px}.brand{gap:8px;min-width:0}.brand-thumb{width:58px;height:58px;border-radius:16px}.brand-copy strong{font-size:1.05rem;white-space:normal}.brand-copy span{font-size:.68rem;white-space:normal}.install-top{padding:8px 10px;font-size:.75rem;border-radius:12px}.install-top span:first-child{display:none}.main-content{padding-block:17px 40px}.hero{grid-template-columns:1fr;gap:12px}.hero-copy{padding:26px 23px;border-radius:24px;min-height:310px}.hero h1{font-size:2rem}.hero p{font-size:.87rem}.hero-art{min-height:235px;border-radius:24px;padding:22px 18px}.hero-art:before{width:110px;height:110px}.hero-art:after{width:82px;height:82px;left:18px;top:18px}.art-caption{padding:6px 9px;border-radius:12px;font-size:.72rem}.hero-side-title{font-size:1.3rem}.hero-side-text{font-size:.84rem}.hero-side-pills{gap:8px}.hero-pill{font-size:.76rem;padding:7px 11px}.section-title{margin-top:25px}.section-title h2,.page-title{font-size:1.24rem}.grade-grid{gap:9px}.grade-card{min-height:165px;padding:17px 13px;border-radius:18px}.grade-card .grade-emoji{font-size:2rem}.grade-card strong{font-size:1rem}.grade-card small{font-size:.72rem}.feature-strip{grid-template-columns:1fr}.feature{padding:10px 13px}.lessons-grid{grid-template-columns:1fr}.lesson-card{min-height:190px}.page-heading{align-items:flex-start}.quiz-card{padding:20px 16px}.answer-option{padding:10px}.quiz-card h2{margin:16px 0}.progress-grid{grid-template-columns:1fr}.progress-card{padding:14px 18px}.progress-line{padding:12px}.footer-inner{align-items:flex-start;flex-direction:column}.footer-actions{align-items:flex-start}.result-panel{padding:29px 17px}}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* هوية المؤسسات: صور أصلية مرفقة بلا إعادة رسم أو تغيير ألوان */
.official-logos{background:linear-gradient(180deg,#fffdf7,#fff8e9);border-bottom:1px solid #e7e5db}
.official-logos-inner{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.85fr) minmax(0,1fr);align-items:center;gap:12px;min-height:149px;padding-block:8px}
.official-logo{height:140px;display:flex;align-items:center;justify-content:center;min-width:0}
.official-logo img{display:block;object-fit:contain;max-width:100%;max-height:100%;width:auto;height:auto}
.logo-ministry img{width:min(100%,235px);max-height:134px}
.logo-school img{width:132px;height:132px}
.logo-vision img{width:235px;height:140px}
.video-teaser{margin-top:30px;display:grid;grid-template-columns:1.15fr .85fr;gap:20px;align-items:stretch;background:linear-gradient(135deg,#e5f6f0,#fff4db);border:1px solid #d3e7dc;border-radius:27px;padding:23px}
.video-teaser-copy h2{font-size:1.47rem;color:var(--deep);margin:8px 0}
.video-teaser-copy p{color:var(--muted);font-size:.9rem;line-height:2;margin:5px 0 16px}
.video-teaser-copy small{display:block;color:#587179;font-size:.7rem;margin-top:12px}
.video-teaser-actions,.video-links{display:flex;flex-wrap:wrap;gap:11px;align-items:center}
.video-teaser-actions .btn,.video-links .btn{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.video-cover{background:radial-gradient(circle at 25% 28%,#2e8582,#064349 73%);border:0;border-radius:21px;min-height:220px;color:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:20px;font-size:1.05rem;font-weight:900}
.video-cover-play{border-radius:50%;width:76px;height:76px;display:grid;place-items:center;background:#f6f1dd;color:#a02b47;font-size:2rem;padding-right:4px;box-shadow:0 12px 40px #031e296b}
.video-player-wrap{aspect-ratio:16/9;background:#093f43;border-radius:24px;overflow:hidden;display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow)}
.video-player{width:100%;height:100%;border:0}
.video-offline{padding:32px;color:#fff;text-align:center}
.video-links{margin-top:19px}
@media(max-width:690px){
  .official-logos-inner{min-height:104px;gap:3px;padding-block:5px}
  .official-logo{height:99px}
  .logo-ministry img{width:100%;max-height:96px}
  .logo-school img{width:min(31vw,90px);height:90px}
  .logo-vision img{width:100%;max-height:100px}
  .video-teaser{grid-template-columns:1fr;padding:16px;gap:15px}
  .video-cover{min-height:165px}
  .video-player-wrap{border-radius:15px}
  .video-links .btn{width:100%}
}


/* الإصدار الرابع: تذييل رشيق ومتوازن لجميع أحجام الشاشات */
.site-footer{
  background:linear-gradient(180deg,#eef5ef,#e5eeea);
  padding:22px 0 25px;
}
.site-footer .footer-inner{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  align-items:center;
  gap:16px 28px;
  direction:rtl;
}
.footer-credits{min-width:0;text-align:right}
.footer-credits p{margin:2px 0;color:#3c5b5c;font-size:.78rem;line-height:1.9;overflow-wrap:break-word}
.footer-credits .credit-label{font-weight:700;color:#577473}
.footer-credits strong{font-size:inherit;font-weight:800;color:#24575a;display:inline}
.footer-legal{min-width:0;display:flex;align-items:flex-end;flex-direction:column;gap:4px;text-align:left}
.footer-privacy-link{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:44px;min-width:44px;
  padding:8px 1px;
  font-size:.78rem;font-weight:800;color:#28656a;
  text-decoration:none;border-bottom:1px solid transparent;
}
.footer-privacy-link:hover,.footer-privacy-link:focus-visible{color:#064a52;text-decoration:underline;text-underline-offset:5px}
.footer-legal small{font-size:.67rem;font-weight:600;color:#657e7d;line-height:1.7;overflow-wrap:anywhere}
/* رأس المنصة: النص والأيقونة يتكيّفان مع الأجهزة الضيقة */
@media (max-width:690px){
  .header-inner{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;padding-block:9px}
  .brand{min-width:0;max-width:100%;gap:8px}
  .brand-thumb{flex:0 0 auto;min-width:54px;max-width:54px;width:54px;height:54px;border-radius:14px}
  .brand-copy{min-width:0;line-height:1.5}
  .brand-copy span{font-size:clamp(.64rem,2.35vw,.78rem);overflow-wrap:normal}
  .install-top{font-size:.72rem;padding:8px 9px;max-width:95px;white-space:normal;line-height:1.5}
  .site-footer .footer-inner{gap:8px 14px}
  .footer-credits p{font-size:.71rem;line-height:1.75}
  .footer-privacy-link{font-size:.73rem}
  .footer-legal small{font-size:.61rem}
}
@media (max-width:430px){
  .site-footer{padding-block:15px 18px}
  .site-footer .footer-inner{grid-template-columns:minmax(0,1fr);gap:3px}
  .footer-credits{width:100%}
  .footer-credits p{font-size:.74rem;line-height:1.75}
  .footer-legal{width:100%;align-items:flex-end;text-align:left;gap:0}
  .footer-privacy-link{min-height:40px;font-size:.73rem}
  .footer-legal small{font-size:.62rem}
}
@media(max-width:355px){
  .brand-thumb{width:52px;height:52px;min-width:52px;max-width:52px}
  .brand-copy span{font-size:.61rem}
  .install-top{max-width:80px;font-size:.66rem}
}
/* صفحة السياسة تقرأ بشكل مريح على الهاتف كذلك */
.policy-wrapper{max-width:860px;margin-inline:auto}
.policy-sheet{background:white;border:1px solid var(--border);border-radius:24px;padding:clamp(19px,4vw,38px);box-shadow:var(--shadow)}
.policy-sheet h1{margin:0 0 6px;color:var(--deep2);font-size:clamp(1.38rem,3.6vw,2rem)}
.policy-sheet h2{font-size:1.03rem;color:var(--deep);margin:23px 0 5px}
.policy-sheet p,.policy-sheet li{font-size:.9rem;line-height:2;color:#3c595c}
.policy-sheet ul{padding-inline-start:24px}
.policy-sheet .policy-updated{color:var(--muted);font-size:.75rem;margin-bottom:20px}
.policy-sheet .policy-notice{border-right:3px solid var(--gold);padding:11px 15px;background:#fffaee;border-radius:11px}
.policy-back{margin-bottom:16px;display:inline-flex;min-height:44px;align-items:center}
