/* ==========================================================================
   arabstudypath.com — mobile layout corrections
   Fixes: stacking bottom overlays, duplicate SaluTalk promo, tiny text,
          tap targets, Manhati form overflow.
   Safe to load on every page; all rules are scoped and use !important only
   where it must beat an inline style.
   ========================================================================== */

/* 1 · DUPLICATE PROMO — the old inline SaluTalk card (#st-promo) and the newer
       approved banner (#stbar-asp) both mount, showing the same offer twice.
       Keep the newer bilingual, dismissible one and retire the old card. */
#st-promo { display: none !important; }

/* 2 · SELF-PROMO BAR — on a phone it competes with the cross-promo bar and
       pushes page content off screen. Desktop has room for both. */
@media (max-width: 640px) {
  #asp-new10, #asp-new18 { display: none !important; }
}

/* 3 · CROSS-PROMO BAR — compact on small screens, one comfortable line */
@media (max-width: 560px) {
  #stbar-asp { padding: 9px 12px !important; gap: 8px !important; font-size: 13px !important; }
  #stbar-asp .stchip { width: 26px !important; height: 26px !important; }
  #stbar-asp .stcta { padding: 7px 13px !important; font-size: 12.5px !important; }
  #stbar-asp .stx { width: 22px !important; height: 22px !important; }
}

/* 4 · Room at the foot of the page so the fixed bars never cover the last row
       of content. Height is topped up at runtime by mobile-fix.js. */
@media (max-width: 900px) {
  body { padding-bottom: 190px !important; }
}

/* 5 · READABILITY — status badges were 10px, metadata 10.5px */
.badge { font-size: 11px !important; }
@media (max-width: 640px) {
  .sch-dest, .sch-vf { font-size: 12px !important; }
}

/* 6 · MANHATI — three-column form does not fit a phone */
@media (max-width: 460px) {
  .profile-form { grid-template-columns: 1fr !important; }
  .path-shell { padding: 16px !important; }
}

/* 7 · TAP TARGETS — nav and language switch were ~14px tall */
@media (max-width: 640px) {
  .nav-links a, .nasignup, .nalogin, .lang-btn {
    min-height: 34px; display: inline-flex; align-items: center;
  }
}

/* 8 · Never leave reveal-on-scroll content invisible if the script fails */
@media (prefers-reduced-motion: reduce) {
  .rv, .reveal { opacity: 1 !important; transform: none !important; }
}

/* 9 · CHAT BUTTON — on phones it floats over the content (it was covering the
       funding figure). Shrink it to a round icon button and keep it tucked in
       the bottom corner, clear of the promo bar. */
@media (max-width: 640px) {
  .asp-chat-btn {
    width: 46px !important; height: 46px !important;
    padding: 0 !important; gap: 0 !important;
    border-radius: 50% !important;
    justify-content: center !important;
    box-shadow: 0 4px 14px rgba(0,0,0,.45) !important;
  }
  .asp-chat-btn span { display: none !important; }
  .asp-chat-btn svg { width: 22px !important; height: 22px !important; }
}
