html { overflow-x: hidden; }
body { width: 100%; max-width: 100%; overflow-x: hidden; }
img, video, iframe, canvas, svg { max-width: 100%; }

@media (max-width: 1024px) {
  html, body { width: 100%; min-width: 0 !important; }
  .container, .wrapper, .section, .content, .content-wrapper, .main, .page, .page-container { max-width: 100% !important; box-sizing: border-box; }
  [style*="width: 1024px"], [style*="width:1024px"], [style*="width: 1023px"], [style*="width:1023px"] { max-width: 100% !important; box-sizing: border-box; }
}

@media (max-width: 767px) {
  * { box-sizing: border-box; }
  body { font-size: 16px; }
  h1, h2, h3, h4, h5, h6, p { max-width: 100%; overflow-wrap: anywhere; }
  section, header, footer, nav, main, article, aside { max-width: 100%; }
  .container, .wrapper, .section, .content, .content-wrapper, .main, .page, .page-container { width: 100% !important; max-width: 100% !important; margin-left: auto !important; margin-right: auto !important; }
  img, video, iframe, canvas { height: auto; }
  table { display: block; max-width: 100%; overflow-x: auto; }
  pre, code { max-width: 100%; overflow-x: auto; }
  input, select, textarea, button { max-width: 100%; }
  [style*="min-width: 1024px"], [style*="min-width:1024px"], [style*="min-width: 640px"], [style*="min-width:640px"] { min-width: 0 !important; }
  [style*="width: 1024px"], [style*="width:1024px"], [style*="width: 1023px"], [style*="width:1023px"], [style*="width: 767px"], [style*="width:767px"] { width: 100% !important; max-width: 100% !important; }
  .row, .grid, .cards, .card-grid, .features, .services-grid, .packages-grid, .doctor-grid { max-width: 100%; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  h1 { line-height: 1.15; }
  h2 { line-height: 1.2; }
  button, a { max-width: 100%; }
}
