/*!
 * MediLab Studio — global utilities & theme conflict resets
 * Loaded on every page to ensure our inline CSS wins over Hello Elementor / theme defaults.
 */

/* ===== THEME RESET — neutralize Hello Elementor defaults that could break our hero ===== */
body.medilab-page,
.medilab-page .site-main,
.medilab-page .entry-content,
.medilab-page main,
.medilab-page article {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  background: transparent !important;
}

.medilab-page .entry-header,
.medilab-page .entry-footer,
.medilab-page .site-header,
.medilab-page .site-footer,
.medilab-page .ast-container,
.medilab-page header.entry-header,
.medilab-page .post-thumb-img-content,
.medilab-page .ast-archive-description,
.medilab-page .page-title {
  display: none !important;
}

/* Ensure full-width templates on mobile don't get pushed by admin bar */
@media screen and (max-width: 782px) {
  html[lang="ar"] body.admin-bar { padding-top: 46px; }
}

/* Smooth scroll for in-page anchors */
html { scroll-behavior: smooth; }

/* Selection color matches brand primary */
::selection {
  background: var(--ml-primary, #0A6CFF);
  color: #fff;
}

/* Image lazy-load fade-in */
img[loading="lazy"] { transition: opacity 0.35s ease; }

/* Defend against theme h1/h2/h3 overrides */
.medilab-page h1,
.medilab-page h2,
.medilab-page h3 {
  font-family: 'Cairo', system-ui, sans-serif !important;
  letter-spacing: -0.02em;
}

/* Ensure containers don't get squeezed by theme grid */
.medilab-page .ml-container { width: 100%; box-sizing: border-box; }

/* Hard-reset grid children min-width (Hello Elementor sometimes sets min-width: auto) */
.medilab-page .ml-hero-grid > * { min-width: 0 !important; }

/* Print: hide floating WhatsApp button */
@media print {
  .ml-float-wa { display: none !important; }
}
