/* MARS website on phones and tablets (see mobile.js). Everything here is under html.mb3, which mobile.js adds. */
.mbar,.hcta{display:none}
html.mb3{--mbh:64px}

/* phones: no bottom bar (Enroll Now and Get the App are at the top of the menu) */

/* ---------- tablets: Get the App and Enroll Now beside the menu button ---------- */
@media (min-width:761px) and (max-width:980px){
  html.mb3 .hcta{display:flex;align-items:center;gap:8px;margin-left:auto}
  html.mb3 .hcta .btn{min-height:44px;padding:0 16px;gap:8px;font-size:.92rem;color:#fff;margin:0;box-shadow:none}
  html.mb3 .hcta .btn svg{width:17px;height:17px}
  html.mb3 .hcta .getapp{background:#0E1A2B}
  html.mb3 .hcta .app{background:linear-gradient(100deg,#2A6EB5,#7B61FF);box-shadow:0 10px 26px -12px rgba(123,97,255,.8)}
  html.mb3 .head .wrap{gap:12px}
}

/* ---------- the menu: scrolls inside, Enroll Now and Get the App first ---------- */
html.mb3.nav-open #mai .mai-launch,html.mb3.nav-open #mai .mai-teaser{opacity:0;pointer-events:none}
@media (max-width:980px){
  html.mb3 .nav{flex-flow:row wrap;align-content:flex-start;column-gap:10px;padding-top:14px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  html.mb3 .nav>*{flex:0 0 100%}
  html.mb3 .nav .btn.app{order:-3;flex:1 1 0;min-width:0;margin:0 0 8px}
  html.mb3 .nav .btn.getapp{order:-2;flex:1 1 0;min-width:0;margin:0 0 8px}
  html.mb3 .nav .btn.enq{margin:16px 0 0}
}
@media (max-width:380px){
  html.mb3 .nav .btn.app,html.mb3 .nav .btn.getapp{padding:0 10px;gap:6px;font-size:.9rem}
}

/* ---------- sections that were too tight on phones ---------- */
@media (max-width:560px){
  /* footer: the MARS logo and description get the full width instead of a narrow column */
  html.mb3 .foot .cols>div:first-child{grid-column:1/-1}
  /* founder card figures (31+, 70K+, 12,590, 2 Lakh+) share the card width instead of running past it */
  html.mb3 .tr-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}
  html.mb3 .tr-stats span{display:block;overflow-wrap:anywhere}
}
@media (max-width:380px){
  /* home page figures (4,00,000+ ran off small screens) */
  html.mb3 .stats>div,html.mb3 .stats>.gstat{padding:20px 16px}
  html.mb3 .stats b{font-size:1.7rem}
  /* "Ready to upskill" style boxes: buttons may wrap instead of running past the edge */
  html.mb3 .cta-band{padding:32px 18px}
  html.mb3 .cta-band .btn{white-space:normal;text-align:center;line-height:1.25;padding-top:10px;padding-bottom:10px}
}
