/* Jamia Mahmoodia Theme v98 — final public layout gutter and edge-safety authority. */
body#jm-site-root.jm-ui-v98:not(.jm-portal-workspace-page){
  --jm98-gutter:clamp(22px,3vw,52px);
  --jm98-max:1640px;
  overflow-x:hidden!important;
}
body#jm-site-root.jm-ui-v98:not(.jm-portal-workspace-page) :is(.jm70-shell,.jm-container,.jm-core-wrap,.jm76-gallery-shell){
  width:min(var(--jm98-max),calc(100% - (var(--jm98-gutter) * 2)))!important;
  max-width:var(--jm98-max)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  min-width:0!important;
}
body#jm-site-root.jm-ui-v98:not(.jm-portal-workspace-page) :is([data-jm-premium-page],.jm-standard-page,.jm-core-section,.jm-prospectus-page,.jm76-home,.jm70-home){
  max-width:100%!important;
  overflow-x:clip!important;
}
body#jm-site-root.jm-ui-v98:not(.jm-portal-workspace-page) :is(.jm68-faculty-card,.jm-prospectus-card,.jm70-facility-showcase,.jm70-facility-journey,.jm70-final-inner,.jm71-pathfinder-card,.jm70-story-card,.jm72-mission-card,.jm96-footer-gateway-inner){
  min-width:0!important;
  max-width:100%!important;
}
body#jm-site-root.jm-ui-v98:not(.jm-portal-workspace-page) :is(h1,h2,h3,p,a,b,strong,small,span){overflow-wrap:break-word}

/* Footer gateway — premium, never touching viewport edges. */
body#jm-site-root.jm-ui-v98:not(.jm-portal-workspace-page) .jm96-footer-gateway{
  padding:clamp(30px,4vw,54px) 0!important;
  background:linear-gradient(180deg,#f7f1e4 0%,#f2ebdc 100%)!important;
}
body#jm-site-root.jm-ui-v98:not(.jm-portal-workspace-page) .jm96-footer-gateway-inner{
  width:min(1540px,calc(100% - (var(--jm98-gutter) * 2)))!important;
  padding:clamp(22px,2.2vw,32px)!important;
  gap:clamp(22px,2.8vw,42px)!important;
  border-radius:24px!important;
  box-shadow:0 18px 55px rgba(5,55,45,.07)!important;
}
body#jm-site-root.jm-ui-v98:not(.jm-portal-workspace-page) .jm96-footer-gateway-brand{grid-template-columns:68px minmax(0,1fr)!important;gap:17px!important}
body#jm-site-root.jm-ui-v98:not(.jm-portal-workspace-page) .jm96-footer-gateway-mark{width:68px!important;height:68px!important;padding:5px!important}
body#jm-site-root.jm-ui-v98:not(.jm-portal-workspace-page) .jm96-footer-gateway-brand h2{font-size:clamp(29px,2.25vw,42px)!important;line-height:1!important}
body#jm-site-root.jm-ui-v98:not(.jm-portal-workspace-page) .jm96-footer-gateway-brand p{max-width:670px!important;font-size:11.5px!important;line-height:1.6!important}
body#jm-site-root.jm-ui-v98:not(.jm-portal-workspace-page) .jm96-footer-gateway-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;min-width:0!important}
body#jm-site-root.jm-ui-v98:not(.jm-portal-workspace-page) .jm96-footer-gateway-actions>a,
body#jm-site-root.jm-ui-v98:not(.jm-portal-workspace-page) .jm96-footer-gateway-actions>button{min-width:0!important;min-height:76px!important;padding:13px!important}
body#jm-site-root.jm-ui-v98:not(.jm-portal-workspace-page) .jm96-footer-gateway-actions b,
body#jm-site-root.jm-ui-v98:not(.jm-portal-workspace-page) .jm96-footer-gateway-actions small{white-space:normal!important}

/* Footer shell inherits the same outer breathing room. */
body#jm-site-root.jm-ui-v98:not(.jm-portal-workspace-page) .jm70-footer>.jm70-shell{width:min(1540px,calc(100% - (var(--jm98-gutter) * 2)))!important}
body#jm-site-root.jm-ui-v98:not(.jm-portal-workspace-page) .jm70-footer-grid{gap:clamp(26px,3vw,48px)!important}
body#jm-site-root.jm-ui-v98:not(.jm-portal-workspace-page) .jm70-footer-grid>div{min-width:0!important}

/* Shared public cards and sections: edge safety on tablet/mobile. */
@media(max-width:1100px){
  body#jm-site-root.jm-ui-v98:not(.jm-portal-workspace-page){--jm98-gutter:24px}
  body#jm-site-root.jm-ui-v98:not(.jm-portal-workspace-page) .jm96-footer-gateway-inner{grid-template-columns:1fr!important}
  body#jm-site-root.jm-ui-v98:not(.jm-portal-workspace-page) .jm96-footer-gateway-actions{max-width:none!important}
}
@media(max-width:900px){
  body#jm-site-root.jm-ui-v98:not(.jm-portal-workspace-page){--jm98-gutter:18px}
  body#jm-site-root.jm-ui-v98:not(.jm-portal-workspace-page) :is(.jm70-shell,.jm-container,.jm-core-wrap,.jm76-gallery-shell){
    width:calc(100% - (var(--jm98-gutter) * 2))!important;
    max-width:calc(100% - (var(--jm98-gutter) * 2))!important;
  }
  body#jm-site-root.jm-ui-v98:not(.jm-portal-workspace-page) .jm70-header-inner{width:calc(100% - (var(--jm98-gutter) * 2))!important;padding-left:0!important;padding-right:0!important}
  body#jm-site-root.jm-ui-v98:not(.jm-portal-workspace-page) .jm96-footer-gateway{padding:24px 0!important}
  body#jm-site-root.jm-ui-v98:not(.jm-portal-workspace-page) .jm96-footer-gateway-inner{width:calc(100% - (var(--jm98-gutter) * 2))!important;padding:18px!important;border-radius:20px!important}
  body#jm-site-root.jm-ui-v98:not(.jm-portal-workspace-page) .jm96-footer-gateway-actions{grid-template-columns:1fr!important}
  body#jm-site-root.jm-ui-v98:not(.jm-portal-workspace-page) .jm96-footer-gateway-actions>a,
  body#jm-site-root.jm-ui-v98:not(.jm-portal-workspace-page) .jm96-footer-gateway-actions>button{min-height:64px!important}
  body#jm-site-root.jm-ui-v98:not(.jm-portal-workspace-page) .jm70-footer>.jm70-shell{width:calc(100% - (var(--jm98-gutter) * 2))!important}
  body#jm-site-root.jm-ui-v98:not(.jm-portal-workspace-page) :is(.jm70-final-inner,.jm70-facility-showcase,.jm70-facility-journey,.jm68-faculty-card){margin-left:0!important;margin-right:0!important}
}
@media(max-width:480px){
  body#jm-site-root.jm-ui-v98:not(.jm-portal-workspace-page){--jm98-gutter:14px}
  body#jm-site-root.jm-ui-v98:not(.jm-portal-workspace-page) .jm96-footer-gateway-inner{padding:16px!important}
  body#jm-site-root.jm-ui-v98:not(.jm-portal-workspace-page) .jm96-footer-gateway-brand{grid-template-columns:54px minmax(0,1fr)!important;gap:11px!important}
  body#jm-site-root.jm-ui-v98:not(.jm-portal-workspace-page) .jm96-footer-gateway-mark{width:54px!important;height:54px!important}
  body#jm-site-root.jm-ui-v98:not(.jm-portal-workspace-page) .jm96-footer-gateway-brand h2{font-size:27px!important}
}
