/* School Portal 0.7.2: one compact site-wide footer, compatible with Flatsome. */
.sps-sitewide-footer{
  position:relative;z-index:2;width:100%;box-sizing:border-box;margin:0;
  padding:18px clamp(18px,3vw,48px);
  background:linear-gradient(115deg,#143b66 0%,#102c50 60%,#102540 100%);
  border-top:3px solid #efbb4e;color:#e8f1fd;
  font:inherit;font-size:13px;line-height:1.9;direction:rtl;
}
.sps-sitewide-footer,.sps-sitewide-footer *{box-sizing:border-box}
.sps-sitewide-footer__inner{
  width:100%;max-width:1440px;margin:0 auto;
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);
  align-items:center;gap:18px;
}
.sps-sitewide-footer__author,.sps-sitewide-footer__visits{
  display:inline-flex;align-items:center;gap:10px;min-width:0;color:#e3ebf7;
}
.sps-sitewide-footer__visits{justify-self:center}
.sps-sitewide-footer__icon{
  display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;
  width:29px;height:29px;border-radius:9px;background:rgba(255,255,255,.095);
  color:#f2c566;font-size:16px;font-weight:700;
}
.sps-sitewide-footer strong{font:inherit;font-weight:800;color:#fff}
.sps-sitewide-footer a.sps-sitewide-footer__home{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;justify-self:end;
  width:max-content;min-height:38px;padding:6px 15px;border:1px solid rgba(255,255,255,.18);
  color:#fff;background:rgba(255,255,255,.115);text-decoration:none;border-radius:11px;
  font:inherit;font-weight:750;line-height:1.7;
  transition:background-color .15s ease,border-color .15s ease;
}
.sps-sitewide-footer a.sps-sitewide-footer__home:hover{
  background:rgba(255,255,255,.22);border-color:rgba(255,255,255,.32);color:#fff;
}
.sps-sitewide-footer a.sps-sitewide-footer__home:focus-visible{outline:3px solid #f1c86d;outline-offset:3px}
/* Only suppress Flatsome's footer, not the page's content or its settings. */
body.sps-has-compact-footer #footer{display:none!important}
body.sps-has-compact-footer #wrapper{
  min-height:100vh;min-height:100dvh;
  display:flex;flex-direction:column;
}
body.sps-has-compact-footer.admin-bar #wrapper{
  min-height:calc(100vh - var(--wp-admin--admin-bar--height,32px));
  min-height:calc(100dvh - var(--wp-admin--admin-bar--height,32px));
}
body.sps-has-compact-footer #wrapper > #main{flex:1 0 auto;min-width:0}
body.sps-has-compact-footer #wrapper > .sps-sitewide-footer{flex:0 0 auto}
/* Existing portal shortcuts remain readable and functional. */
.sps-top-actions{display:flex;align-items:center;gap:15px;flex-wrap:wrap}
.sps-return-home{display:block;text-align:right;margin-bottom:13px;font-size:13px;font-weight:700;color:#1757a4;text-decoration:none}
@media(max-width:820px){
  .sps-sitewide-footer__inner{grid-template-columns:1fr 1fr;gap:12px 18px}
  .sps-sitewide-footer__visits{justify-self:end}
  .sps-sitewide-footer a.sps-sitewide-footer__home{justify-self:start}
}
@media(max-width:580px){
  .sps-sitewide-footer{padding:15px 15px 18px}
  .sps-sitewide-footer__inner{grid-template-columns:1fr;gap:10px}
  .sps-sitewide-footer__author,.sps-sitewide-footer__visits{justify-self:center;text-align:center}
  .sps-sitewide-footer a.sps-sitewide-footer__home{justify-self:center}
}
@media(prefers-reduced-motion:reduce){.sps-sitewide-footer a.sps-sitewide-footer__home{transition:none}}
@media print{.sps-sitewide-footer{display:none!important}}
