/*
 * M307.5 — Mobile portal transition root-cause correction.
 * Actual render order: .shk-home-section-hero contains .shk-m243-home
 * (hero + portal chooser), followed by .shk-home-section-quick_features.
 * The previous M307.4 :has(.shk-m243-portals) sibling selector could not match
 * because the portal is nested inside .shk-m243-home, not a .shk-home-section.
 * Bottom navigation clearance remains on the managed homepage wrapper.
 */
@media (max-width: 767px) {
  body.home.shk-managed-home-active #shikshan-homepage .shk-home-section-hero,
  body.home.shk-managed-home-active .shk-managed-homepage .shk-home-section-hero {
    min-height: 0 !important;
    height: auto !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  body.home.shk-managed-home-active #shikshan-homepage .shk-home-section-hero .shk-m243-home,
  body.home.shk-managed-home-active .shk-managed-homepage .shk-home-section-hero .shk-m243-home {
    min-height: 0 !important;
    height: auto !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  body.home.shk-managed-home-active #shikshan-homepage .shk-home-section-hero .shk-m243-portals,
  body.home.shk-managed-home-active .shk-managed-homepage .shk-home-section-hero .shk-m243-portals {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  body.home.shk-managed-home-active #shikshan-homepage .shk-home-section-quick_features,
  body.home.shk-managed-home-active .shk-managed-homepage .shk-home-section-quick_features {
    margin-top: 0 !important;
    padding-top: 12px !important;
  }

  body.home.shk-managed-home-active #shikshan-homepage .shk-home-section-quick_features .shk-home-section-inner,
  body.home.shk-managed-home-active .shk-managed-homepage .shk-home-section-quick_features .shk-home-section-inner {
    margin-top: 0 !important;
  }
}
