/* =========================================================================
   RECTA MEDEX — SUPPLEMENTARY RESPONSIVE RULES
   Loaded after assets/css/style.css. Tightens up the design on very
   small phones and guards against any horizontal overflow.
   ========================================================================= */

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

img, svg, video, iframe {
  max-width: 100%;
  height: auto;
}

table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Extra-small phones (< 380px) */
@media (max-width: 380px) {
  .display-heading { font-size: 1.9rem !important; line-height: 1.25; }
  .section-heading { font-size: 1.5rem !important; }
  .hero-sub, .lead-muted { font-size: 0.95rem !important; }
  .container-xl-custom { padding-left: 14px; padding-right: 14px; }
  .btn-rm-primary, .btn-rm-outline-light { width: 100%; justify-content: center; }
  .hero-cta-group { flex-direction: column; width: 100%; }
  .hero-cta-group a { width: 100%; text-align: center; }
}

/* Landscape phones / small tablets */
@media (min-width: 576px) and (max-width: 767.98px) {
  .rm-hero-slide { padding-top: 2.5rem; padding-bottom: 2.5rem; }
}

/* Prevent floating hero cards from overlapping content on small screens */
@media (max-width: 575px) {
  .hero-floating-card {
    position: static !important;
    margin-top: 0.75rem;
    width: 100%;
  }
}
