/* =====================================================================
   Public site v3 refresh, ported from the design package (git 169b498).
   O5: the package prefix of classes, custom properties and keyframes is lp3 here.
   Layer 3 of 4, scoped to .lp; it re-skins the lp-* components of public.css.
   ===================================================================== */

.lp{
  --lp3-bg:#FFFFFF; --lp3-bg2:#F5F5F7; --lp3-bg3:#FBFBFD;
  --lp3-ink:#1D1D1F; --lp3-ink2:#424245; --lp3-muted:#6E6E73; --lp3-muted2:#86868B;
  --lp3-line:#D2D2D7; --lp3-line2:#E8E8ED;
  --lp3-blue:#0071E3; --lp3-blue-h:#0077ED; --lp3-link:#0066CC; --lp3-link-dark:#2997FF;
  --lp3-dark:#000000; --lp3-dark2:#1D1D1F; --lp3-dark3:#2C2C2E; --lp3-dark-muted:#A1A1A6;
  --lp3-orange:#F56300; --lp3-purple:#7D3CD1; --lp3-green:#1D9A5B; --lp3-teal:#0A95B0; --lp3-gold:#C9A227;
  --lp3-warm:linear-gradient(90deg,#FF9F0A,#FF375F);
  --lp3-r-lg:28px; --lp3-r-md:24px; --lp3-r-sm:14px;
  --lp3-font:'The Year of The Camel','IBM Plex Sans Arabic','Segoe UI',Tahoma,sans-serif;
  --lp3-mono:'IBM Plex Mono',ui-monospace,monospace;
  --lp3-ease:cubic-bezier(.2,.7,.2,1);
  --lp3-h1:clamp(40px,6.4vw,80px); --lp3-h1p:clamp(34px,4.8vw,60px);
  --lp3-h2:clamp(30px,4vw,48px); --lp3-h3:clamp(26px,3.2vw,38px);
  background:var(--lp3-bg) !important; color:var(--lp3-ink); font-size:17px; line-height:1.8;
}
/* خط عام الإبل لكل نصوص الصفحات العامة (mila.css يفرض خط المنصة بـ !important) */
.lp, .lp :is(h1,h2,h3,h4,h5,h6,p,a,span,div,li,label,input,select,textarea,button,summary,small,b,strong,em,.btn){ font-family:var(--lp3-font) !important; }
.lp .lp3-mono, .lp [dir="ltr"].lp3-mono{ font-family:var(--lp3-mono) !important; }
.lp h1,.lp h2,.lp h3{ text-wrap:balance; letter-spacing:0; }
.lp p{ text-wrap:pretty; }
.lp a{ color:var(--lp3-link); }
.lp a:hover{ color:var(--lp3-link); text-decoration:underline; }
.lp-container{ max-width:1080px; padding-inline:24px; }

/* ---------- الأزرار ---------- */
.lp .btn{ border-radius:999px !important; font-weight:500 !important; box-shadow:none !important; min-height:44px; padding:10px 20px !important; font-size:16px !important; text-decoration:none !important; transition:background .2s ease, transform .2s var(--lp3-ease); }
.lp .btn-gold{ background:var(--lp3-blue) !important; color:#fff !important; border:0 !important; }
.lp .btn-gold:hover{ background:var(--lp3-blue-h) !important; color:#fff !important; }
.lp .btn-ghost{ background:transparent !important; color:var(--lp3-ink) !important; border:0 !important; }
.lp .btn-ghost:hover{ color:var(--lp3-link) !important; }
.lp .lp-btn-lg{ min-height:52px; padding:14px 28px !important; font-size:17px !important; border-radius:999px !important; }
.lp .lp-btn-outline-light{ background:rgba(255,255,255,.8) !important; color:var(--lp3-ink) !important; border:1px solid var(--lp3-line) !important; }
.lp .lp-btn-outline-light:hover{ background:#fff !important; color:var(--lp3-ink) !important; }
.lp .btn-dark{ background:var(--lp3-ink) !important; color:#fff !important; border:0 !important; }
.lp .btn-dark:hover{ background:#000 !important; }
.lp .lp-more, .lp .lp3-more{ color:var(--lp3-link); font-weight:500; display:inline-flex; align-items:center; gap:6px; }
.lp :focus-visible{ outline:3px solid rgba(0,113,227,.45); outline-offset:3px; border-radius:10px; }

/* ---------- الترويسة والقوائم ---------- */
.lp-header{ background:rgba(251,251,253,.8) !important; backdrop-filter:saturate(1.8) blur(20px); -webkit-backdrop-filter:saturate(1.8) blur(20px); border-bottom:1px solid rgba(0,0,0,.06) !important; }
.lp-header .lp-container{ min-height:52px; }
.lp-brand, .lp-brand:hover{ color:var(--lp3-ink) !important; font-size:19px; font-weight:700; text-decoration:none !important; }
.lp-menu-link{ color:var(--lp3-ink2) !important; font-size:14px !important; font-weight:400 !important; }
.lp-menu-link:hover, .lp-menu-link[aria-current="page"], .lp-mega-btn[data-current="1"], .lp-mega-btn[aria-expanded="true"]{ color:#000 !important; }
.lp-mega{ background:var(--lp3-bg3) !important; border:0 !important; box-shadow:0 30px 40px -30px rgba(0,0,0,.2) !important; }
.lp-mega-item{ border-radius:var(--lp3-r-sm) !important; color:var(--lp3-ink) !important; text-decoration:none !important; }
.lp-mega-item:hover{ background:var(--lp3-bg2) !important; }
.lp-mega-item b{ color:var(--lp3-ink) !important; font-size:16px; }
.lp-mega-item small, .lp-mega-item em{ color:var(--lp3-muted) !important; font-style:normal; }
.lp-mega-h, .lp-kicker{ color:var(--lp3-muted) !important; font-weight:500 !important; }
.lp-ic{ background:var(--lp3-bg2) !important; color:var(--lp3-ink) !important; border-radius:12px !important; }
.lp-ic.gold{ background:#FFF1E0 !important; color:#B25000 !important; }
.lp .mila-lang{ border:1px solid var(--lp3-line2); border-radius:999px; padding:2px; }
.lp .mila-lang a{ color:var(--lp3-muted) !important; border-radius:999px; font-size:13px; }
.lp .mila-lang a.on{ background:var(--lp3-ink) !important; color:#fff !important; }
.lp-menu-btn{ border-color:var(--lp3-line2) !important; color:var(--lp3-ink) !important; background:transparent !important; }

/* ---------- عناوين الأقسام العامة ---------- */
.lp-section{ padding-block:100px; }
.lp-section.alt{ background:var(--lp3-bg2) !important; border:0 !important; }
.lp-head{ max-width:760px; margin:0 auto 52px; }
.lp-head .lp-kicker{ display:block; font-size:17px; color:var(--lp3-link) !important; margin-bottom:12px; }
.lp-head h2{ font-size:var(--lp3-h2) !important; font-weight:800 !important; line-height:1.4 !important; color:var(--lp3-ink) !important; }
.lp-head p{ font-size:19px !important; color:var(--lp3-muted) !important; line-height:1.85 !important; }

/* ---------- البطاقات العامة ---------- */
.lp-grid{ gap:14px !important; }
.lp-card{ background:var(--lp3-bg2) !important; border:0 !important; border-radius:var(--lp3-r-md) !important; padding:30px 28px !important; transition:transform .4s var(--lp3-ease), background .3s ease !important; }
.lp-section.alt .lp-card{ background:#fff !important; }
.lp-card:hover{ box-shadow:none !important; transform:translateY(-4px); }
.lp-card h3, .lp-card-t{ color:var(--lp3-ink) !important; font-weight:800 !important; font-size:22px !important; }
.lp-card p{ color:var(--lp3-muted) !important; font-size:16px !important; line-height:1.85 !important; }
.lp-card-link{ text-decoration:none !important; color:inherit !important; }
.lp-sublabel{ color:var(--lp3-link) !important; font-weight:500; }
.lp-chips li{ background:#fff !important; color:var(--lp3-ink2) !important; }
.lp-checks svg{ color:var(--lp3-green) !important; }
.lp-callout{ background:var(--lp3-bg2) !important; border:0 !important; color:var(--lp3-ink2) !important; border-radius:var(--lp3-r-sm) !important; }

/* ---------- الأسئلة الشائعة ---------- */
.lp-faq{ gap:10px !important; }
.lp-faq details{ background:var(--lp3-bg2) !important; border:0 !important; border-radius:20px !important; }
.lp-section.alt .lp-faq details{ background:#fff !important; }
.lp-faq summary{ color:var(--lp3-ink) !important; font-size:18px !important; padding:22px 24px !important; }
.lp-faq details p{ color:var(--lp3-muted) !important; font-size:17px !important; padding:0 24px 24px !important; }

/* ---------- ترويسة الصفحات الداخلية (المنتج، الحل، الخدمات، لماذا) ---------- */
.lp-page-hero{ background:var(--lp3-bg) !important; color:var(--lp3-ink) !important; position:relative; overflow:hidden; }
.lp-page-hero::before{ content:""; position:absolute; inset:-240px 0 auto; height:620px; pointer-events:none;
  background:radial-gradient(closest-side at 30% 50%,rgba(0,113,227,.12),transparent 70%),radial-gradient(closest-side at 72% 45%,rgba(125,60,209,.10),transparent 70%); }
.lp-page-hero .lp-container{ position:relative; padding-block:72px 88px !important; gap:48px !important; }
.lp-page-hero h1{ color:var(--lp3-ink) !important; font-size:var(--lp3-h1p) !important; font-weight:800 !important; line-height:1.3 !important; }
.lp-page-hero .lp-lead{ color:var(--lp3-muted) !important; font-size:20px !important; line-height:1.85 !important; }
.lp-crumbs, .lp-crumbs a{ color:var(--lp3-muted) !important; font-size:14px; }
.lp-eyebrow{ background:transparent !important; border:0 !important; padding:0 !important; color:var(--lp3-orange) !important; font-size:17px !important; font-weight:500 !important; }
.lp-eyebrow .lp-ic{ background:transparent !important; color:inherit !important; }
.lp-hero-panel{ background:var(--lp3-bg2) !important; border:0 !important; border-radius:var(--lp3-r-lg) !important; color:var(--lp3-ink) !important; padding:32px !important; }
.lp-hero-panel-h{ color:var(--lp3-muted) !important; }
.lp-hero-panel .lp-checks li, .lp-hero-panel h3{ color:var(--lp3-ink) !important; }
.lp-hero-panel p{ color:var(--lp3-muted) !important; }
figure.lp-risk, .lp-risk{ border:1px solid var(--lp3-line2); border-radius:20px !important; box-shadow:0 40px 80px -40px rgba(0,50,120,.35) !important; }

/* مزايا المنتج */
.lp-zigzag{ display:grid !important; grid-template-columns:repeat(6,minmax(0,1fr)); gap:14px !important; }
.lp-z-row{ grid-column:span 2; display:flex !important; flex-direction:column; gap:12px; background:var(--lp3-bg2) !important; border:0 !important; border-radius:var(--lp3-r-md) !important; padding:30px 28px !important; }
.lp-z-row:nth-child(4), .lp-z-row:nth-child(5){ grid-column:span 3; }
.lp-z-row:nth-child(4):last-child{ grid-column:span 6; }
.lp-z-num{ font-family:var(--lp3-mono) !important; font-size:13px !important; color:var(--lp3-link) !important; background:none !important; width:auto !important; height:auto !important; }
.lp-z-body h3{ font-size:22px !important; font-weight:800 !important; color:var(--lp3-ink) !important; }
.lp-z-body p{ color:var(--lp3-muted) !important; font-size:16px !important; line-height:1.85 !important; }
/* احتياجات الحل */
.lp-needs{ display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px !important; }
.lp-need{ background:var(--lp3-bg2) !important; border:0 !important; border-radius:var(--lp3-r-md) !important; padding:30px 28px !important; }
.lp-need h3{ font-size:22px !important; font-weight:800 !important; color:var(--lp3-ink) !important; }
.lp-need p{ color:var(--lp3-muted) !important; }
/* الخدمات */
.lp-services{ display:grid !important; grid-template-columns:repeat(6,minmax(0,1fr)); gap:14px !important; }
.lp-service{ grid-column:span 2; }
.lp-service:nth-child(4), .lp-service:nth-child(5){ grid-column:span 3; }
.lp-steps .lp-step{ background:#fff !important; border:0 !important; border-radius:var(--lp3-r-sm) !important; }
.lp-step::before{ background:linear-gradient(135deg,#34C759,var(--lp3-teal)) !important; border-radius:50% !important; }
.lp-std{ font-family:var(--lp3-mono) !important; color:var(--lp3-link) !important; font-size:13px !important; }

/* ---------- شريط الطلب أسفل الصفحات ---------- */
.lp-cta-band{ background:transparent !important; padding:16px !important; }
.lp-cta-band .lp-container{ max-width:1080px; background:var(--lp3-dark) !important; color:#F5F5F7 !important; border-radius:var(--lp3-r-lg); padding:72px 48px !important; text-align:center; display:flex !important; flex-direction:column; align-items:center; gap:22px; position:relative; overflow:hidden; }
.lp-cta-band h2{ color:#F5F5F7 !important; font-size:var(--lp3-h2) !important; font-weight:800 !important; line-height:1.4 !important; }
.lp-cta-band p{ color:var(--lp3-dark-muted) !important; font-size:19px; }
.lp-cta-band .lp-btn-outline-light{ background:transparent !important; color:#F5F5F7 !important; border-color:#48484A !important; }

/* ---------- التذييل ---------- */
.lp-footer{ background:var(--lp3-bg2) !important; color:var(--lp3-muted) !important; border-top:1px solid var(--lp3-line2); font-size:13px; }
.lp-footer a{ color:var(--lp3-ink2) !important; }
.lp-footer a:hover{ color:var(--lp3-ink) !important; }
.lp-foot-h{ color:var(--lp3-ink) !important; font-size:13px !important; font-weight:700 !important; }
.lp-foot-brand p{ color:var(--lp3-muted) !important; }
.lp-foot-bottom{ border-top:1px solid var(--lp3-line) !important; color:var(--lp3-muted) !important; background:transparent !important; }

/* =====================================================================
   مكوّنات الصفحة الرئيسية الجديدة (lp3-*)
   ===================================================================== */
.lp3-hero{ position:relative; overflow:hidden; text-align:center; padding-top:56px; }
.lp3-glow{ position:absolute; top:-220px; left:50%; width:1100px; height:700px; transform:translateX(-50%); pointer-events:none; filter:blur(20px);
  background:radial-gradient(closest-side at 30% 45%,rgba(0,113,227,.16),transparent 70%),radial-gradient(closest-side at 70% 40%,rgba(125,60,209,.13),transparent 70%),radial-gradient(closest-side at 50% 70%,rgba(255,159,10,.10),transparent 70%); }
.lp3-hero-inner{ position:relative; display:flex; flex-direction:column; align-items:center; gap:18px; }
.lp3-pill{ display:inline-flex; align-items:center; gap:10px; padding:6px 16px 6px 8px; border-radius:999px; background:rgba(255,255,255,.7); border:1px solid var(--lp3-line2); color:var(--lp3-ink) !important; font-size:14px; text-decoration:none !important; backdrop-filter:blur(8px); }
[dir="rtl"] .lp3-pill{ padding:6px 8px 6px 16px; }
.lp3-pill b{ background:var(--lp3-ink); color:#fff; border-radius:999px; padding:2px 10px; font-size:12px; font-weight:500; }
.lp3-hero h1{ margin:0; font-weight:800; font-size:var(--lp3-h1); line-height:1.3; color:var(--lp3-ink); }
.lp3-grad{ font-style:normal; background:linear-gradient(100deg,var(--lp3-blue) 10%,var(--lp3-purple) 55%,var(--lp3-orange) 95%); -webkit-background-clip:text; background-clip:text; color:transparent; }
.lp3-grad-warm{ background:var(--lp3-warm); -webkit-background-clip:text; background-clip:text; color:transparent; }
.lp3-grad-cool{ background:linear-gradient(90deg,var(--lp3-blue),var(--lp3-purple)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.lp3-hero-lead{ margin:0; font-size:clamp(19px,2.2vw,24px); line-height:1.8; color:var(--lp3-muted); max-width:720px; }
.lp3-hero .lp-cta{ justify-content:center; margin-top:6px; }
.lp3-note{ display:flex; flex-wrap:wrap; justify-content:center; gap:8px 22px; font-size:14px; color:var(--lp3-muted); list-style:none; margin:0; padding:0; }
.lp3-note li{ display:inline-flex; gap:6px; align-items:center; }
.lp3-note svg{ width:16px; height:16px; color:var(--lp3-green); }

.lp3-stage{ position:relative; max-width:1080px; margin:56px auto 0; perspective:1800px; }
.lp3-frame{ transform-origin:center top; background:linear-gradient(180deg,rgba(255,255,255,.9),rgba(245,245,247,.9)); border:1px solid var(--lp3-line2); border-radius:var(--lp3-r-lg); padding:12px; box-shadow:0 60px 120px -40px rgba(0,50,120,.35); text-align:start; }
.lp3-window{ background:#fff; border-radius:20px; overflow:hidden; border:1px solid #EEEEF2; }
.lp3-window-bar{ display:flex; align-items:center; gap:7px; padding:12px 16px; border-bottom:1px solid var(--lp3-line2); }
.lp3-window-bar i{ width:11px; height:11px; border-radius:50%; background:#FF5F57; }
.lp3-window-bar i:nth-child(2){ background:#FEBC2E; } .lp3-window-bar i:nth-child(3){ background:#28C840; }
.lp3-window-bar span{ margin-inline-start:auto; font-family:var(--lp3-mono) !important; font-size:12px; color:var(--lp3-muted2); }
.lp3-window .lp-risk{ box-shadow:none !important; border:0 !important; border-radius:0 !important; max-width:none !important; }
.lp3-float{ position:absolute; z-index:3; display:none; border-radius:18px; padding:12px 16px; text-align:start; animation:lp3Float 6s ease-in-out infinite; }
.lp3-float--a{ top:-26px; inset-inline-end:-60px; background:rgba(255,255,255,.88); backdrop-filter:blur(14px); border:1px solid var(--lp3-line2); box-shadow:0 20px 40px -18px rgba(0,0,0,.25); align-items:center; gap:12px; }
.lp3-float--a .ic{ width:34px; height:34px; border-radius:10px; background:#E3F5E8; color:#1D7A45; display:grid; place-items:center; }
.lp3-float--a .ic svg{ width:18px; height:18px; }
.lp3-float--a b{ display:block; font-size:14px; } .lp3-float--a small{ font-size:12px; color:var(--lp3-muted); }
.lp3-float--b{ bottom:-30px; inset-inline-start:-70px; background:var(--lp3-dark2); color:#F5F5F7; min-width:230px; box-shadow:0 24px 48px -18px rgba(0,0,0,.5); animation-delay:-2s; flex-direction:column; gap:6px; }
.lp3-float--b small{ font-size:12px; color:var(--lp3-dark-muted); }
.lp3-float--b .row{ display:flex; justify-content:space-between; gap:12px; font-size:14px; }
.lp3-float--b .row span:last-child{ font-family:var(--lp3-mono) !important; color:#FF9F0A; }
.lp3-float--b .bar{ height:5px; border-radius:5px; background:#333336; }
.lp3-float--b .bar i{ display:block; width:92%; height:100%; border-radius:5px; background:var(--lp3-warm); }
@media (min-width:1240px){ .lp3-float--a{ display:flex; } .lp3-float--b{ display:flex; } }

/* شريط المعايير المتحرك */
.lp3-marquee{ padding:72px 0 16px; overflow:hidden; text-align:center; }
.lp3-marquee > p{ font-size:14px; color:var(--lp3-muted2); margin:0 0 22px; }
.lp3-marquee-mask{ overflow:hidden; -webkit-mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent); mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent); }
.lp3-marquee-track{ display:flex; gap:44px; width:max-content; animation:lp3Marq 40s linear infinite; }
.lp3-marquee-track ul{ display:flex; gap:44px; list-style:none; margin:0; padding:0; }
.lp3-marquee-track li{ font-size:19px; font-weight:500; color:var(--lp3-muted2); white-space:nowrap; }
.lp3-marquee:hover .lp3-marquee-track{ animation-play-state:paused; }
.lp3-marquee .lp-more{ margin-top:18px; font-size:15px; }

/* عنوان قسم موسّط */
.lp3-head{ text-align:center; display:flex; flex-direction:column; align-items:center; gap:14px; margin:0 auto 52px; max-width:760px; }
.lp3-head .k{ font-size:17px; font-weight:500; color:var(--lp3-link); }
.lp3-head h2{ margin:0; font-size:var(--lp3-h2); font-weight:800; line-height:1.4; color:inherit; }
.lp3-head h2 .soft{ color:var(--lp3-muted2); }
.lp3-head p{ margin:0; font-size:19px; line-height:1.85; color:var(--lp3-muted); }

/* شبكة المنتجات */
.lp3-bento{ display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:14px; }
.lp3-tile{ --acc:var(--lp3-blue); grid-column:span 2; position:relative; overflow:hidden; background:var(--lp3-bg2); color:var(--lp3-ink) !important; border-radius:var(--lp3-r-lg); padding:30px 28px; display:flex; flex-direction:column; gap:10px; min-height:270px; text-decoration:none !important; transition:transform .4s var(--lp3-ease), background .3s ease; }
.lp3-tile:hover{ transform:scale(1.02); background:#EEEEF2; }
.lp3-tile-label{ font-size:14px; color:var(--acc); }
.lp3-tile h3{ margin:0; font-size:26px; font-weight:800; line-height:1.4; text-align:start; }
.lp3-tile h3 span{ color:var(--acc); }
.lp3-tile p{ margin:0; font-size:16px; line-height:1.8; color:var(--lp3-muted); }
.lp3-tile ul{ list-style:none; margin:auto 0 0; padding:0; display:flex; flex-direction:column; gap:6px; }
.lp3-tile li{ background:#fff; border-radius:12px; padding:9px 12px; font-size:14px; line-height:1.7; }
.lp3-tile.is-hero{ grid-column:span 4; grid-row:span 2; background:var(--lp3-dark); color:#F5F5F7 !important; min-height:520px; }
.lp3-tile.is-hero:hover{ transform:scale(1.012); background:var(--lp3-dark); }
.lp3-tile.is-hero::after{ content:""; position:absolute; inset:auto -120px -160px auto; width:520px; height:520px; border-radius:50%; background:radial-gradient(closest-side,rgba(245,99,0,.45),rgba(255,55,95,.18),transparent); filter:blur(10px); pointer-events:none; }
.lp3-tile.is-hero > *{ position:relative; z-index:1; }
.lp3-tile.is-hero h3{ font-size:var(--lp3-h3); }
.lp3-tile.is-hero p{ color:var(--lp3-dark-muted); font-size:19px; max-width:460px; }
.lp3-tile.is-hero ul{ max-width:460px; }
.lp3-tile.is-hero li{ background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08); color:#F5F5F7; padding:14px 16px; }
.lp3-tile.is-hero .lp3-more{ color:var(--lp3-link-dark); }
.lp3-tile--lms{ --acc:var(--lp3-blue); } .lp3-tile--insight{ --acc:#FF9F0A; } .lp3-tile--assess{ --acc:var(--lp3-purple); }
.lp3-tile--campus{ --acc:var(--lp3-green); } .lp3-tile--connect{ --acc:var(--lp3-teal); } .lp3-tile--academy{ --acc:#A8841A; }

/* الركائز */
.lp3-pillars{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.lp3-pillar{ position:relative; overflow:hidden; background:#fff; border:1px solid var(--lp3-line2); border-radius:var(--lp3-r-lg); padding:30px 28px; display:flex; flex-direction:column; gap:12px; min-height:300px; }
.lp3-pillar::before{ content:""; position:absolute; top:-80px; inset-inline-start:-80px; width:220px; height:220px; border-radius:50%; background:var(--tint); filter:blur(30px); }
.lp3-pillar > *{ position:relative; }
.lp3-pillar .n{ font-weight:800; font-size:48px; line-height:1; color:var(--acc); }
.lp3-pillar h3{ margin:18px 0 0; font-weight:800; font-size:24px; line-height:1.45; }
.lp3-pillar p{ margin:0; font-size:17px; line-height:1.85; color:var(--lp3-muted); }
.lp3-pillar:nth-child(1){ --acc:var(--lp3-blue); --tint:#E8F1FC; }
.lp3-pillar:nth-child(2){ --acc:var(--lp3-purple); --tint:#F1E9FB; }
.lp3-pillar:nth-child(3){ --acc:var(--lp3-green); --tint:#E3F5E8; }

/* محرّك Why */
.lp3-engine{ position:relative; overflow:hidden; background:var(--lp3-dark); color:#F5F5F7; }
.lp3-engine::before{ content:""; position:absolute; top:-200px; left:50%; transform:translateX(-50%); width:900px; height:600px; background:radial-gradient(closest-side,rgba(255,159,10,.18),rgba(255,55,95,.08),transparent); pointer-events:none; }
.lp3-engine .lp-container{ position:relative; padding-block:104px; }
.lp3-engine .lp3-head .k{ color:#FF9F0A; }
.lp3-engine .lp3-head p{ color:var(--lp3-dark-muted); }
.lp3-engine-grid{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:40px; align-items:center; }
.lp3-steps{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; }
.lp3-steps button{ all:unset; cursor:pointer; box-sizing:border-box; width:100%; display:flex; flex-direction:column; gap:8px; padding:16px 0; border-bottom:1px solid var(--lp3-dark2); }
.lp3-steps button:focus-visible{ outline:3px solid rgba(41,151,255,.6); outline-offset:4px; }
.lp3-steps .head{ display:flex; align-items:baseline; gap:14px; color:#6E6E73; transition:color .3s; }
.lp3-steps .num{ font-family:var(--lp3-mono) !important; font-size:13px; }
.lp3-steps .t{ font-weight:800; font-size:24px; }
.lp3-steps .d{ font-size:16px; line-height:1.8; color:var(--lp3-dark-muted); max-height:0; overflow:hidden; transition:max-height .45s ease; }
.lp3-steps .bar{ height:2px; border-radius:2px; background:var(--lp3-dark2); overflow:hidden; }
.lp3-steps .bar i{ display:block; height:100%; width:0; background:#48484A; }
.lp3-steps [aria-selected="true"] .head{ color:#F5F5F7; }
.lp3-steps [aria-selected="true"] .d{ max-height:90px; }
.lp3-steps [aria-selected="true"] .bar i{ width:100%; background:var(--lp3-warm); transition:width var(--lp3-step,4s) linear; }
.lp3-steps .done .bar i{ width:100%; }
.lp3-engine-panel{ position:relative; background:linear-gradient(160deg,var(--lp3-dark2),#111113); border:1px solid var(--lp3-dark3); border-radius:var(--lp3-r-lg); padding:40px; min-height:400px; display:flex; flex-direction:column; justify-content:center; box-shadow:0 40px 80px -30px rgba(255,120,40,.25); }
.lp3-slide{ display:flex; flex-direction:column; gap:16px; animation:lp3In .4s ease; }
.lp3-slide[hidden]{ display:none; }
.lp3-slide .ic{ width:72px; height:72px; border-radius:22px; background:var(--lp3-warm); color:#000; display:grid; place-items:center; }
.lp3-slide .ic svg{ width:34px; height:34px; }
.lp3-slide .num{ font-family:var(--lp3-mono) !important; font-size:14px; color:#FF9F0A; }
.lp3-slide h3{ margin:0; font-weight:800; font-size:var(--lp3-h3); line-height:1.35; }
.lp3-slide p{ margin:0; font-size:19px; line-height:1.8; color:var(--lp3-dark-muted); }
.lp3-engine-foot{ margin-top:56px; display:flex; flex-direction:column; align-items:center; gap:18px; text-align:center; }
.lp3-engine-foot p{ margin:0; font-size:16px; color:var(--lp3-dark-muted); }
.lp3-engine .btn-light{ background:#F5F5F7 !important; color:#000 !important; }

/* الحلول: شريط أفقي */
.lp3-solutions{ background:var(--lp3-bg2); padding-block:104px 96px; }
.lp3-sol-head{ display:flex; justify-content:space-between; align-items:flex-end; gap:20px; flex-wrap:wrap; margin-bottom:44px; }
.lp3-sol-head h2{ margin:0; font-size:var(--lp3-h2); font-weight:800; line-height:1.4; }
.lp3-sol-head span{ font-size:15px; color:var(--lp3-muted); }
.lp3-scroller{ display:flex; gap:16px; overflow-x:auto; scroll-snap-type:x mandatory; padding:6px max(24px,calc((100vw - 1080px)/2 + 24px)) 24px; scrollbar-width:none; list-style:none; margin:0; }
.lp3-scroller::-webkit-scrollbar{ display:none; }
.lp3-sol{ scroll-snap-align:start; flex:0 0 min(84vw,360px); background:#fff; border-radius:var(--lp3-r-lg); overflow:hidden; display:flex; flex-direction:column; color:var(--lp3-ink) !important; text-decoration:none !important; transition:transform .4s var(--lp3-ease), box-shadow .4s; height:100%; }
.lp3-sol:hover{ transform:translateY(-6px); box-shadow:0 30px 60px -30px rgba(0,0,0,.3); }
.lp3-sol-top{ height:140px; padding:24px 26px; display:flex; align-items:flex-end; background:linear-gradient(135deg,#E8F1FC,#F1E9FB); }
.lp3-scroller li:nth-child(2) .lp3-sol-top{ background:linear-gradient(135deg,#E8F1FC,#E3F5E8); }
.lp3-scroller li:nth-child(3) .lp3-sol-top{ background:linear-gradient(135deg,#FFF1E0,#FDE8E8); }
.lp3-scroller li:nth-child(4) .lp3-sol-top{ background:linear-gradient(135deg,#F1E9FB,#FFF1E0); }
.lp3-sol-top span{ font-size:14px; color:var(--lp3-ink2); background:rgba(255,255,255,.7); padding:4px 12px; border-radius:999px; }
.lp3-sol-body{ padding:26px; display:flex; flex-direction:column; gap:10px; flex:1; }
.lp3-sol-body h3{ margin:0; font-weight:800; font-size:24px; line-height:1.45; }
.lp3-sol-body p{ margin:0; font-size:16px; line-height:1.8; color:var(--lp3-muted); }
.lp3-sol-body ul{ list-style:none; margin:8px 0 0; padding:0; display:flex; flex-direction:column; gap:6px; font-size:14px; }
.lp3-sol-body li::before{ content:"✓"; color:var(--lp3-green); margin-inline-end:8px; }
.lp3-sol-body .lp3-more{ margin-top:auto; padding-top:12px; }

/* الأرقام */
.lp3-facts{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:40px 24px; text-align:center; padding-block:100px; }
.lp3-fact b{ display:block; font-weight:800; font-size:96px; line-height:1.1; background:linear-gradient(180deg,var(--lp3-ink),var(--lp3-muted2)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.lp3-fact span{ display:block; margin:12px auto 0; font-size:16px; line-height:1.75; color:var(--lp3-muted); max-width:220px; }

/* الخدمات في الرئيسية */
.lp3-panel{ max-width:1080px; margin:0 auto; background:var(--lp3-bg2); border-radius:var(--lp3-r-lg); padding:88px clamp(20px,4vw,56px); display:flex; flex-direction:column; gap:48px; }
.lp3-panel .lp3-head{ margin-bottom:0; }
.lp3-panel .lp3-head .k{ color:var(--lp3-green); }
.lp3-svc{ display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:14px; list-style:none; margin:0; padding:0; }
.lp3-svc li{ grid-column:span 2; background:#fff; border-radius:var(--lp3-r-md); padding:28px 26px; display:flex; flex-direction:column; gap:12px; }
.lp3-svc li:nth-child(4), .lp3-svc li:nth-child(5){ grid-column:span 3; }
.lp3-svc a{ color:inherit !important; text-decoration:none !important; display:contents; }
.lp3-svc .n{ width:40px; height:40px; border-radius:50%; background:linear-gradient(135deg,#34C759,var(--lp3-teal)); color:#fff; display:grid; place-items:center; font-family:var(--lp3-mono) !important; font-size:13px; }
.lp3-svc b{ font-size:18px; line-height:1.5; }
.lp3-svc p{ margin:0; font-size:15px; line-height:1.8; color:var(--lp3-muted); }

/* طلب العرض */
.lp-demo{ background:transparent !important; padding:16px !important; }
.lp-demo > .lp-container{ position:relative; overflow:hidden; max-width:1080px; background:var(--lp3-dark); color:#F5F5F7; border-radius:var(--lp3-r-lg); padding:clamp(40px,6vw,80px) !important; }
.lp-demo > .lp-container::before{ content:""; position:absolute; bottom:-260px; inset-inline-end:-160px; width:760px; height:760px; border-radius:50%; background:radial-gradient(closest-side,rgba(0,113,227,.35),rgba(125,60,209,.18),transparent); pointer-events:none; }
.lp-demo > .lp-container > *{ position:relative; }
.lp-demo h2{ color:#F5F5F7 !important; font-size:var(--lp3-h2) !important; font-weight:800 !important; line-height:1.4 !important; }
.lp-demo .intro p{ color:var(--lp3-dark-muted) !important; font-size:19px !important; }
.lp-demo .lp-checks li{ color:#F5F5F7 !important; }
.lp-demo .lp-checks svg{ color:#30D158 !important; }
.lp-contact p{ color:var(--lp3-dark-muted) !important; }
.lp-contact a{ color:var(--lp3-link-dark) !important; }
.lp-contact svg{ color:var(--lp3-link-dark) !important; }
.lp-form{ background:#fff !important; border-radius:var(--lp3-r-md) !important; box-shadow:none !important; }
.lp-form h3{ color:var(--lp3-ink) !important; font-weight:800 !important; }
.lp-form .form-control{ background:var(--lp3-bg2) !important; border:1px solid var(--lp3-bg2) !important; border-radius:var(--lp3-r-sm) !important; min-height:50px; box-shadow:none !important; }
.lp-form .form-control:focus{ background:#fff !important; border-color:var(--lp3-blue) !important; box-shadow:0 0 0 4px rgba(0,113,227,.15) !important; }
.lp-form .btn-gold{ border-radius:var(--lp3-r-sm) !important; }

/* ---------- الظهور مع التمرير ---------- */
@keyframes lp3In{ from{ opacity:0; transform:translateY(10px) } to{ opacity:1; transform:none } }
@keyframes lp3Float{ 0%,100%{ transform:translateY(0) } 50%{ transform:translateY(-10px) } }
@keyframes lp3Marq{ from{ transform:translateX(0) } to{ transform:translateX(-50%) } }
[dir="rtl"] .lp3-marquee-track{ animation-name:lp3MarqRtl; }
@keyframes lp3MarqRtl{ from{ transform:translateX(0) } to{ transform:translateX(50%) } }
@keyframes lp3Tilt{ from{ transform:rotateX(16deg) scale(.92) } to{ transform:none } }
.js .lp3-reveal{ opacity:0; transform:translateY(40px); transition:opacity .8s var(--lp3-ease), transform .8s var(--lp3-ease); }
.js .lp3-reveal.is-in{ opacity:1; transform:none; }
@supports (animation-timeline:view()){
  .lp3-frame[data-tilt]{ animation:lp3Tilt linear both; animation-timeline:view(); animation-range:entry 0% cover 45%; }
}

/* ---------- الاستجابة ---------- */
@media (max-width:999px){
  .lp3-bento{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .lp3-tile{ grid-column:span 1; }
  .lp3-tile.is-hero, .lp3-tile:last-child{ grid-column:span 2; }
  .lp3-tile.is-hero{ grid-row:auto; min-height:460px; }
  .lp3-engine-grid{ grid-template-columns:1fr; }
  .lp3-pillars{ grid-template-columns:1fr; }
  .lp3-facts{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .lp3-svc, .lp-services, .lp-zigzag{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .lp3-svc li, .lp-service, .lp-z-row{ grid-column:span 1 !important; }
  .lp3-svc li:last-child, .lp-service:last-child, .lp-z-row:nth-child(5):last-child{ grid-column:span 2 !important; }
}
@media (max-width:640px){
  .lp{ font-size:16px; }
  .lp3-bento, .lp3-svc, .lp-services, .lp-zigzag, .lp-needs{ grid-template-columns:1fr; }
  .lp3-tile, .lp3-tile.is-hero, .lp3-tile:last-child, .lp3-svc li, .lp3-svc li:last-child, .lp-service, .lp-service:last-child, .lp-z-row, .lp-z-row:last-child{ grid-column:auto !important; }
  .lp3-fact b{ font-size:72px; }
  .lp3-engine-panel{ padding:28px; min-height:0; }
  .lp-section{ padding-block:72px; }
  .lp-cta-band .lp-container{ padding:56px 24px !important; }
}
@media (prefers-reduced-motion:reduce){
  .lp *, .lp *::before, .lp *::after{ animation:none !important; transition:none !important; }
  .js .lp3-reveal{ opacity:1; transform:none; }
}

/* ---------- تكامل مع المنصة ---------- */
/* حجم أيقونة السهم في روابط «التفاصيل» داخل البطاقات */
.lp .lp3-more svg, .lp .lp-more svg{ width:16px; height:16px; flex:0 0 auto; }
/* الجوال: backdrop-filter على الترويسة يجعل درج القائمة (position:fixed) نسبةً لها فينضغط؛ نلغيه ونبدأ الدرج تحت الترويسة */
@media (max-width:1080px){
  .lp-header{ backdrop-filter:none !important; -webkit-backdrop-filter:none !important; background:var(--lp3-bg3) !important; }
  .lp-nav{ top:53px !important; background:var(--lp3-bg3) !important; }
}
/* الطباعة: إظهار الأقسام التي تظهر مع التمرير */
@media print{
  .js .lp3-reveal{ opacity:1 !important; transform:none !important; }
}
/* البوابات الأربع: أربعة أعمدة على الشاشات الواسعة، وعمودان حتى الجوال */
.lp3-pillar:nth-child(4){ --acc:var(--lp3-teal); --tint:#E2F4F4; }
.lp3-pillars.c4{ grid-template-columns:repeat(4,minmax(0,1fr)); }
.lp3-pillars.c4 .lp3-pillar{ min-height:0; }
@media (max-width:1180px){ .lp3-pillars.c4{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:640px){ .lp3-pillars.c4{ grid-template-columns:1fr; } }
/* لوحة المعلّم داخل نافذة البطل */
.lp3-window .lp-mock-card{ box-shadow:none !important; border:0 !important; border-radius:0 !important; max-width:none !important; }
/* رابط المنتج في لوحة مسار الفصل الدراسي */
.lp3-slide .lp-more{ color:var(--lp3-link-dark) !important; align-self:flex-start; }
