/* منجاز — فوتر سينمائي متداخل */
.mj-cinematic-footer{
  --mj-footer-ink:#f4fbfa;
  position:relative;
  z-index:0;
  isolation:isolate;
  overflow:hidden;
  margin-top:0;
  padding:76px 0 30px;
  border-radius:42px 42px 0 0;
  color:var(--mj-footer-ink);
  background:#073f4a url("/img/footer-alula-cinematic.jpg") center 54%/cover no-repeat;
  text-align:right;
  font-family:"Almarai",sans-serif;
}
.mj-cinematic-footer::before{
  content:"";
  position:absolute;
  z-index:0;
  inset:0;
  background:
    linear-gradient(180deg,rgba(6,74,81,.62) 0%,rgba(5,48,68,.79) 48%,rgba(3,35,51,.96) 100%),
    linear-gradient(90deg,rgba(8,142,132,.2),transparent 60%);
}
.mj-cinematic-footer::after{
  content:"";
  position:absolute;
  z-index:0;
  inset:0 0 auto;
  height:102px;
  background:linear-gradient(180deg,rgba(37,165,151,.42),transparent);
  pointer-events:none;
}
.mj-cinematic-footer a{color:inherit;text-decoration:none}
html[data-th] body footer.mj-cinematic-footer{background:#073f4a url("/img/footer-alula-cinematic.jpg") center 54%/cover no-repeat!important;background-image:url("/img/footer-alula-cinematic.jpg")!important;background-color:#073f4a!important}
.mj-footer-wrap{width:min(1220px,calc(100% - 40px));margin:0 auto;position:relative;z-index:1}
.mj-footer-grid{display:grid;grid-template-columns:minmax(280px,1.18fr) minmax(210px,.82fr) minmax(210px,.82fr);gap:18px;align-items:start}
.mj-footer-brand,.mj-footer-card{
  min-width:0;
  padding:25px;
  border:1px solid rgba(220,250,245,.24);
  border-radius:24px;
  background:rgba(13,81,86,.48);
  box-shadow:0 16px 44px rgba(0,24,39,.17),inset 0 1px rgba(255,255,255,.08);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
}
.mj-footer-brand-head{display:flex;align-items:center;gap:16px}
.mj-footer-brand-head img{display:block;flex:0 0 76px;width:76px;height:76px;object-fit:contain;padding:8px;border-radius:18px;background:#f8fcfb;box-shadow:0 8px 24px rgba(0,20,35,.14)}
.mj-footer-kicker{margin:0 0 5px;color:#c2eee1;font-size:13px;font-weight:700}
.mj-footer-brand h2,.mj-footer-card h2{margin:0;color:#f5fbf8;font-size:20px;font-weight:800;line-height:1.5}
.mj-footer-tagline{margin:0;color:#8de1cc;font-size:19px;font-weight:800;line-height:1.45}
.mj-footer-copy{max-width:45ch;margin:18px 0 20px;color:rgba(241,250,249,.83);font-size:14px;line-height:1.9}
.mj-footer-payments{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.mj-footer-payments img{height:34px;max-width:90px;min-width:58px;object-fit:contain;padding:6px 9px;border:1px solid rgba(255,255,255,.2);border-radius:10px;background:rgba(255,255,255,.88)}
.mj-footer-card{display:flex;flex-direction:column;justify-content:flex-start;flex-wrap:nowrap;gap:0;margin:0;font-weight:400}
.mj-footer-card h2{margin:0 0 12px;padding-bottom:12px;border-bottom:1px solid rgba(224,250,246,.22);font-size:18px}
.mj-footer-card a{padding:10px 0;font-weight:400;color:rgba(243,250,249,.84);font-size:14px;line-height:1.45;border-bottom:1px solid rgba(224,250,246,.13);transition:color .18s ease,transform .18s ease}
.mj-footer-card a:last-child{border-bottom:0}
.mj-footer-card a:hover{color:#8de1cc;transform:translateX(-3px)}
.mj-footer-registration{display:flex;justify-content:center;gap:10px 24px;flex-wrap:wrap;margin-top:22px;padding:14px 18px;border:1px solid rgba(220,250,245,.2);border-radius:16px;background:rgba(9,65,73,.42);color:rgba(240,250,248,.8);font-size:12px}
.mj-footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:16px;padding-top:16px;border-top:1px solid rgba(232,250,247,.2);color:rgba(237,248,246,.76)}
.mj-footer-bottom small{font-size:12px}
.mj-footer-bottom p{margin:0;color:#f0daa0;font-size:15px;font-weight:800}
.mj-cinematic-footer a:focus-visible{outline:3px solid #b8f2df;outline-offset:3px;border-radius:5px}
@media(max-width:760px){
  .mj-cinematic-footer{margin-top:0;padding:64px 0 calc(116px + env(safe-area-inset-bottom));border-radius:30px 30px 0 0;background-position:54% center}
  .mj-cinematic-footer::before{background:linear-gradient(180deg,rgba(6,74,81,.68) 0%,rgba(5,48,68,.84) 46%,rgba(3,35,51,.97) 100%)}
  .mj-footer-wrap{width:min(100% - 28px,560px)}
  .mj-footer-grid{grid-template-columns:1fr;gap:12px}
  .mj-footer-brand,.mj-footer-card{padding:20px;border-radius:20px}
  .mj-footer-brand-head{gap:13px}
  .mj-footer-brand-head img{flex-basis:66px;width:66px;height:66px;padding:7px;border-radius:16px}
  .mj-footer-brand h2{font-size:18px}
  .mj-footer-tagline{font-size:17px}
  .mj-footer-copy{margin:13px 0 16px;font-size:13px}
  .mj-footer-card h2{font-size:16px}
  .mj-footer-card a{padding:9px 0;font-size:13px}
  .mj-footer-registration{justify-content:space-between;margin-top:14px;padding:12px 14px;font-size:11px}
  .mj-footer-bottom{flex-direction:column;align-items:center;text-align:center;gap:8px;margin-top:13px}
  .mj-footer-bottom p{font-size:14px}
}
@media(max-width:360px){
  .mj-footer-wrap{width:calc(100% - 22px)}
  .mj-footer-brand,.mj-footer-card{padding:17px}
  .mj-footer-registration{justify-content:center}
}
@media(prefers-reduced-motion:reduce){.mj-footer-card a{transition:none}}
@media print{.mj-cinematic-footer{margin-top:0;padding:24px;background:#073f4a!important}}

html body footer.mj-cinematic-footer{background:#073f4a url("/img/footer-alula-cinematic.jpg") center 54%/cover no-repeat!important}

/* استعادة توثيق المنصة داخل الفوتر السينمائي */
.mj-footer-registration{
  display:grid;
  grid-template-columns:minmax(190px,.75fr) minmax(460px,1.6fr) minmax(250px,1fr);
  align-items:center;
  gap:16px;
  margin-top:22px;
  padding:18px 20px;
  text-align:right;
}
.mj-footer-proof-heading{display:flex;align-items:center;gap:12px;min-width:0}
.mj-footer-proof-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border:1px solid rgba(169,238,216,.38);border-radius:14px;background:rgba(105,211,178,.14);color:#a8efd9}
.mj-footer-proof-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.mj-footer-proof-heading b,.mj-footer-proof-heading small{display:block}
.mj-footer-proof-heading b{color:#f4fbfa;font-size:15px;font-weight:800}
.mj-footer-proof-heading small,.mj-footer-proof-numbers small{margin-top:3px;color:rgba(240,250,248,.7);font-size:11px;line-height:1.5}
.mj-footer-proof-authorities{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:7px}
.mj-footer-proof-authorities span{padding:7px 10px;border:1px solid rgba(220,250,245,.2);border-radius:999px;background:rgba(237,250,247,.1);color:rgba(244,251,250,.9);font-size:11px;font-weight:700;line-height:1.45}
.mj-footer-proof-numbers{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.mj-footer-proof-numbers>span{display:flex;flex-direction:column;align-items:flex-start;min-width:0;padding:8px 10px;border-radius:12px;background:rgba(3,45,56,.34)}
.mj-footer-proof-numbers b{margin-top:3px;color:#fff;font-size:13px;font-variant-numeric:tabular-nums;letter-spacing:.04em}
@media(max-width:760px){
 .mj-footer-registration{grid-template-columns:1fr;justify-items:stretch;gap:12px;margin-top:14px;padding:15px}
 .mj-footer-proof-authorities{justify-content:flex-start}
 .mj-footer-proof-authorities span{font-size:10px}
 .mj-footer-proof-numbers{grid-template-columns:1fr 1fr}
 .mj-footer-proof-numbers>span{align-items:flex-start}
}
@media(max-width:360px){
 .mj-footer-proof-numbers{grid-template-columns:1fr}
}

/* Intermediate widths must not inherit a wider three-column minimum. */
@media(min-width:761px) and (max-width:1000px){
 .mj-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .mj-footer-brand{grid-column:1/-1}
 .mj-footer-registration{grid-template-columns:1fr}
 .mj-footer-proof-authorities{justify-content:flex-start}
}
.mj-footer-registration>*{min-width:0}
.mj-footer-proof-authorities span{overflow-wrap:anywhere}
.mj-footer-proof-numbers b{max-width:100%;overflow-wrap:anywhere}

/* بطاقات الجهات المرتبطة بالتوثيق */
.mj-footer-proof-authorities{display:grid!important;grid-template-columns:repeat(3,minmax(150px,1fr));gap:10px!important;width:100%}
.mj-footer-proof-authorities>span{display:flex;align-items:center;gap:10px;min-width:0;padding:10px 12px;border:1px solid rgba(220,250,245,.18);border-radius:13px;background:rgba(255,255,255,.07);text-align:right}
.mj-footer-proof-authorities i{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:11px;background:#e7f5f2;color:#1e7290}
.mj-footer-proof-authorities svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mj-footer-proof-authorities b{font-size:12px;line-height:1.45;color:#eef9f6}
@media(max-width:760px){.mj-footer-grid{grid-template-columns:1fr 1fr!important;gap:10px}.mj-footer-brand{grid-column:1/-1}.mj-footer-card{padding:15px!important}.mj-footer-registration{display:grid;grid-template-columns:1fr;gap:10px}.mj-footer-proof-authorities{grid-template-columns:1fr}.mj-footer-proof-authorities>span:last-child{grid-column:auto}.mj-footer-proof-numbers{display:grid;grid-template-columns:1fr 1fr;gap:10px}}
@media(max-width:420px){.mj-footer-proof-authorities{grid-template-columns:1fr}.mj-footer-proof-authorities>span:last-child{grid-column:auto}.mj-footer-grid .mj-footer-card a{font-size:12px;padding:8px 0}}


/* شعارات الجهات الرسمية داخل بطاقات التوثيق */
.mj-footer-registration{
  grid-template-columns:minmax(180px,.72fr) minmax(560px,2fr) minmax(230px,.8fr);
}
.mj-footer-proof-authorities{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px!important;
  width:100%;
}
.mj-footer-proof-authorities>span.mj-footer-authority{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-width:0;
  min-height:112px;
  padding:12px;
  border:1px solid rgba(220,250,245,.2);
  border-radius:14px;
  background:rgba(255,255,255,.08);
  text-align:center;
}
.mj-footer-authority-logo{
  display:block;
  width:min(100%,132px);
  height:48px;
  padding:4px;
  box-sizing:border-box;
  border:1px solid rgba(255,255,255,.16);
  border-radius:9px;
  background:#fff;
  object-fit:contain;
  object-position:center;
}
.mj-footer-proof-authorities>span.mj-footer-authority b{
  color:#f4fbfa;
  font-size:11px;
  line-height:1.5;
  overflow-wrap:anywhere;
}
@media(min-width:761px) and (max-width:1100px){
  .mj-footer-registration{grid-template-columns:1fr}
  .mj-footer-proof-authorities{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
  .mj-footer-proof-authorities{grid-template-columns:1fr}
  .mj-footer-proof-authorities>span.mj-footer-authority{
    flex-direction:row;
    justify-content:flex-start;
    min-height:72px;
    text-align:right;
  }
  .mj-footer-authority-logo{flex:0 0 100px;width:100px;height:44px}
  .mj-footer-proof-authorities>span.mj-footer-authority b{font-size:12px}
}
@media(max-width:360px){
  .mj-footer-authority-logo{flex-basis:82px;width:82px;height:42px}
}


/* Final footer authority-card geometry: keep logos and labels side by side. */
.mj-footer-proof-authorities>span.mj-footer-authority{
  display:grid!important;
  grid-template-columns:76px minmax(0,1fr);
  align-items:center;
  justify-content:stretch;
  gap:10px;
  width:100%;
  min-height:84px;
  padding:10px;
  box-sizing:border-box;
  text-align:right;
}
.mj-footer-proof-authorities>span.mj-footer-authority .mj-footer-authority-logo{
  width:76px!important;
  height:54px!important;
  max-width:76px!important;
  min-width:0;
  padding:4px;
  object-fit:contain;
}
.mj-footer-proof-authorities>span.mj-footer-authority b{
  display:block;
  width:auto;
  min-width:0;
  max-width:100%;
  margin:0;
  text-align:right;
  white-space:normal;
  overflow-wrap:normal!important;
  word-break:normal!important;
  line-height:1.5;
  font-size:11px;
}
@media(max-width:760px){
  .mj-footer-proof-authorities>span.mj-footer-authority{
    grid-template-columns:92px minmax(0,1fr);
    min-height:74px;
    padding:9px 11px;
  }
  .mj-footer-proof-authorities>span.mj-footer-authority .mj-footer-authority-logo{
    width:92px!important;
    max-width:92px!important;
    height:48px!important;
  }
  .mj-footer-proof-authorities>span.mj-footer-authority b{font-size:12px}
}
@media(max-width:360px){
  .mj-footer-proof-authorities>span.mj-footer-authority{grid-template-columns:78px minmax(0,1fr)}
  .mj-footer-proof-authorities>span.mj-footer-authority .mj-footer-authority-logo{
    width:78px!important;max-width:78px!important;height:44px!important
  }
}


/* Stable layout for the verification strip at desktop, tablet, and phone sizes. */
.mj-footer-registration{
  display:flex!important;
  flex-direction:row;
  direction:rtl;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.mj-footer-proof-heading{flex:0 1 190px}
.mj-footer-proof-authorities{
  display:grid!important;
  flex:1 1 560px;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px!important;
  width:auto;
  min-width:0;
}
.mj-footer-proof-numbers{flex:0 1 250px}
.mj-footer-proof-authorities>span.mj-footer-authority{
  display:grid!important;
  grid-template-columns:88px minmax(0,1fr);
  align-items:center;
  gap:9px;
  width:100%;
  min-height:84px;
  padding:10px;
  box-sizing:border-box;
  text-align:right;
}
.mj-footer-proof-authorities>span.mj-footer-authority .mj-footer-authority-logo{
  display:block;
  width:88px!important;
  max-width:88px!important;
  min-width:0;
  height:50px!important;
  padding:4px;
  box-sizing:border-box;
  object-fit:contain;
  object-position:center;
}
.mj-footer-proof-authorities>span.mj-footer-authority b{
  display:block;
  width:auto;
  min-width:0;
  max-width:100%;
  margin:0;
  text-align:right;
  white-space:normal;
  overflow-wrap:break-word!important;
  word-break:normal!important;
  font-size:10.5px;
  line-height:1.5;
}
@media(min-width:761px) and (max-width:1100px){
  .mj-footer-registration{flex-direction:column;align-items:stretch}
  .mj-footer-proof-heading,.mj-footer-proof-authorities,.mj-footer-proof-numbers{flex:0 1 auto;width:100%}
}
@media(max-width:760px){
  .mj-footer-registration{flex-direction:column;align-items:stretch}
  .mj-footer-proof-heading,.mj-footer-proof-authorities,.mj-footer-proof-numbers{flex:0 1 auto;width:100%}
  .mj-footer-proof-authorities{grid-template-columns:1fr}
  .mj-footer-proof-authorities>span.mj-footer-authority{
    grid-template-columns:96px minmax(0,1fr);
    min-height:72px;
    padding:9px 11px;
  }
  .mj-footer-proof-authorities>span.mj-footer-authority .mj-footer-authority-logo{
    width:96px!important;max-width:96px!important;height:48px!important
  }
  .mj-footer-proof-authorities>span.mj-footer-authority b{font-size:12px}
}
@media(max-width:360px){
  .mj-footer-proof-authorities>span.mj-footer-authority{grid-template-columns:78px minmax(0,1fr)}
  .mj-footer-proof-authorities>span.mj-footer-authority .mj-footer-authority-logo{
    width:78px!important;max-width:78px!important;height:44px!important
  }
}
