/* ════════════════════════════════════════════
   MOBILE LAYOUT FIXES
════════════════════════════════════════════ */
/* --- Hero section --- */
@media(max-width:900px){
  .hero-wrap{
    grid-template-columns:1fr !important;
    padding:20px 20px !important;
    gap:32px !important;
  }
  /* Image comes first on mobile for visual impact */
  .hleft{order:2;}
  .hright{order:1;}
  .hero-s h1{font-size:clamp(1.9rem,6vw,2.8rem) !important;}
  .hdesc{font-size:14px !important;margin-bottom:24px !important;}
  .hacts{flex-direction:column;gap:10px !important;}
  .hacts .btn{width:100%;text-align:center;padding:14px 20px !important;font-size:14px !important;}
  .htrust{margin-top:20px !important;padding-top:16px !important;}
}
/* --- Hero image on mobile --- */
@media(max-width:900px){
  .ke-photo-wrap,.ug-photo-wrap{
    min-height:auto !important;
    max-width:100%;
  }
  .ke-main-card img,.ug-main-card img{
    max-height:300px;
    object-fit:cover;
    object-position:center top;
    -webkit-mask-image:linear-gradient(to bottom,#000 70%,transparent 100%) !important;
    mask-image:linear-gradient(to bottom,#000 70%,transparent 100%) !important;
    -webkit-mask-composite:unset !important;
    mask-composite:unset !important;
  }
  .hero-stats{
    grid-template-columns:1fr 1fr !important;
    gap:10px !important;
    margin-top:16px !important;
  }
  .hstat{padding:14px 12px !important;}
  .hstat-n{font-size:1.5rem !important;}
}
/* --- Sub-page bar mobile --- */
@media(max-width:560px){
  .subpage-bar{
    font-size:11px !important;
    padding:8px 12px !important;
    gap:6px !important;
    flex-wrap:wrap;
    justify-content:center;
    line-height:1.6;
  }
}
/* --- Nav mobile --- */
@media(max-width:768px){
  .nlogo{font-size:.95rem !important;}
  .nlogo-flag{width:30px !important;height:30px !important;font-size:1rem !important;}
}
/* --- Curriculum banner pills mobile --- */
@media(max-width:600px){
  .curric-title{font-size:1.2rem !important;}
  .cpill{font-size:12px !important;padding:6px 14px !important;}
  .curric-banner{padding:28px 16px !important;}
}
/* --- Pricing mobile --- */
@media(max-width:600px){
  .pricing-grid{grid-template-columns:1fr !important;gap:16px !important;}
  .pcard{padding:24px 20px !important;}
  .pcard-price{font-size:2rem !important;}
}
/* --- Testimonials mobile --- */
@media(max-width:600px){
  .rcard{width:260px !important;}
}
/* --- CTA bar mobile --- */
@media(max-width:600px){
  .cta-bar{padding:56px 20px !important;}
  .cta-acts{flex-direction:column;align-items:center;gap:10px !important;}
  .cta-acts .btn{width:100%;max-width:320px;}
}
/* --- Footer mobile --- */
@media(max-width:560px){
  .fgrid{grid-template-columns:1fr !important;gap:24px !important;}
  .fbot{flex-direction:column;gap:8px;text-align:center;}
}
/* --- Modal mobile --- */
@media(max-width:560px){
  .mbox{
    border-radius:20px !important;
    padding:28px 20px !important;
    margin:12px !important;
  }
  .mtit{font-size:1.4rem !important;}
}
/* --- Section headings mobile --- */
@media(max-width:600px){
  .section{padding:52px 20px !important;}
  .section-title{font-size:1.6rem !important;}
}
/* --- Eyebrow / trust on mobile --- */
@media(max-width:480px){
  .heyebrow{font-size:10px !important;padding:5px 10px !important;}
  .htrust-txt{font-size:11px !important;}
}

/* ── REMOVE HERO IMAGE FROM HERO ON MOBILE; show only text + stats ── */
@media(max-width:900px){
  .ke-photo-wrap,.ug-photo-wrap{display:none !important;}
  .hright{order:3 !important;}    /* stats go AFTER text on mobile */
  .hleft{order:1 !important;}
  .hero-stats{margin-top:0 !important;}
}

/* ── MOBILE HERO IMAGE BLOCK (before pricing) ── */
.mobile-hero-img-block{
  display:none;
  position:relative;
  overflow:hidden;
  max-height:300px;
  line-height:0;
}
.mobile-hero-img-block img{
  width:100%;height:300px;
  object-fit:cover;object-position:center top;
  display:block;
}
/* blend edges into surrounding sections */
.mobile-hero-img-block::before{
  content:'';position:absolute;
  top:0;left:0;right:0;height:45%;
  z-index:1;
}
.mobile-hero-img-block::after{
  content:'';position:absolute;
  bottom:0;left:0;right:0;height:55%;
  background:linear-gradient(to top,#f3f4f6 0%,transparent 100%);
  z-index:1;
}
.mobile-hero-img-block-ke::before{
  background:linear-gradient(to bottom,#004400 0%,transparent 100%);
}
.mobile-hero-img-block-ug::before{
  background:linear-gradient(to bottom,#500000 0%,transparent 100%);
}
@media(max-width:900px){
  .mobile-hero-img-block{display:block;}
}
