/* SGBS mobile fixes – Dec 2026. Applies only to screens up to 767px; desktop is untouched. */
@media (max-width: 767px) {

  /* ---------- Header ---------- */
  .kl-header-toptext { margin-left: 0 !important; text-align: center; }
  .kl-header-toptext a[href^="tel:"] { white-space: nowrap; }


  /* ---------- Text: justified paragraphs leave big gaps on narrow screens ---------- */
  .insidediv p, .contentdiv p, p.course-text, .pgfpara, .dhortpgpara, .text-justify, .overlayimg,
  .insidediv p[style*="justify"], .contentdiv p[style*="justify"], p[style*="text-align: justify"], p[style*="text-align:justify"], div[style*="text-align: justify"] {
    text-align: left !important; word-spacing: normal; hyphens: manual;
  }
  .sgbsprgul li, .insidediv li, .contentdiv li, [style*="justify"] li { text-align: left !important; }

  /* Inner-page title (orange banner) */
  .subheader-maintitle { font-size: 24px !important; line-height: 1.25 !important; }

  /* ---------- Homepage ---------- */
  /* hero text under the video */
  .textonsliderimg { padding: 14px 36px 14px 16px !important; }
  .slidetag { font-size: 21px !important; line-height: 1.2 !important; }
  .slidetag span { font-size: 14px !important; line-height: 1.35 !important; }

  /* Experiential learning: decorative light-blue bar squeezes the text */
  section.scew::before { display: none !important; }
  .scdivnew { padding: 30px 20px !important; }

  /* "The power of a Sparsh..." block: right-aligned text + heavy padding */
  .imgparadiv { padding: 30px 20px !important; }
  .imgparadiv p.parahead, .imgparadiv p.paratex { text-align: center !important; width: 100% !important; }

  /* Sparsh Advantages: 14 items took ~2 screens – show them in two columns */
  .reasons-circle { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; padding: 0 6px; }
  .reasons-circle > .reasons-circle__content { grid-column: 1 / -1; width: auto !important; max-width: 100% !important; min-width: 0; }
  .reasons-circle > .reasons-circle__li { width: auto !important; min-width: 0; max-width: 100%; margin: 0 !important; display: flex !important; flex-direction: column; align-items: center !important; text-align: center; }
  .reasons-circle__li--cont, .reasons-circle__li--cont h5 { width: auto !important; max-width: 100%; min-width: 0; }
  .reasons-circle > .reasons-circle__li { height: auto !important; min-height: 0 !important; justify-content: flex-start; }
  .reasons-circle > .reasons-circle__li > span { margin: 0 0 4px !important; order: 0 !important; }
  .reasons-circle__li--cont { margin: 6px 0 0 !important; text-align: center !important; }
  .reasons-circle__li--cont h5 { font-size: 12.5px !important; line-height: 1.3 !important; }
  section.reason-section { padding-bottom: 30px !important; }

  /* Section paddings that leave big empty gaps */
  section.cirman { padding-top: 40px !important; }
  section.crssec { padding-top: 40px !important; }
  .cirmanimg .row { margin-left: 0 !important; margin-right: 0 !important; }
  .cirmanimg .row > [class*="col-"] { padding-left: 0 !important; padding-right: 0 !important; }
  .cirimgcont { padding: 36px 20px !important; }
  .forpaddingcrs { padding: 36px 16px !important; }

  /* Programme cards: small 142px thumbnails → full-width images */
  .crssec .crsind > img { width: 100% !important; height: 190px !important; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 10px; }
  .crssec .row > .col-lg-3 { margin-bottom: 18px; }

  /* Mentor Speaks / Student Reviews: videos were 350px wide in a 310px box */
  .crsind iframe { width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; display: block; }
  .trcont { padding: 30px 16px !important; }
  .trcont .imgdiv .row { margin-left: 0 !important; margin-right: 0 !important; }
  .trcont .imgdiv .row > [class*="col-"] { padding-left: 0 !important; padding-right: 0 !important; margin-bottom: 14px; }

  /* Partnerships & Associations: one huge logo per row → two compact columns */
  .evltextdv .row > .col-lg-4 { flex: 0 0 50% !important; max-width: 50% !important; text-align: center; margin-bottom: 18px; }
  .evltextdv .row > .col-lg-4 img { max-width: 100% !important; width: auto !important; height: 70px !important; object-fit: contain; }
  .evltextdv .row > .col-lg-4 p { font-size: 12.5px !important; line-height: 1.35 !important; margin-top: 6px; }

  /* Media never wider than the screen */
  img, iframe, video { max-width: 100%; }
}

/* ---------- Mobile menu: one menu only (all screen sizes) ----------
   The hamburger opened two menus on inner pages: the site's own inline menu (#main-menu)
   AND the template's cloned slide-out copy (#zn-res-menu, with a "Back ×" bar), which also
   locked #page_wrapper to the screen height. Keep the site's menu, switch off the clone. */
#zn-res-menu, .zn-res-menu-overlay { display: none !important; }
#page_wrapper { height: auto !important; }
