/* Scoped quality-control rules; no header position or payment form overrides. */
#alim-hf-section-5415-main :is(a,button):focus-visible,
body.page-id-55 :is(a,button):focus-visible,
body.page-id-79 :is(a,button):focus-visible,
:is(.mn-hajj-portal,#mn-dhikr-portal,#mn-quran,#mn-iftar27) :is(a,button,input,select,summary):focus-visible {
  outline: 3px solid #805b0b;
  outline-offset: 3px;
}
:is(.mn-hajj-portal,#mn-dhikr-portal,#mn-quran,#mn-iftar27,.mn-hajj-article) {
  min-width: 0;
  overflow-wrap: anywhere;
}
:is(.mn-hajj-portal,#mn-dhikr-portal,#mn-quran,#mn-iftar27,.mn-hajj-article) img {
  max-width: 100%;
  height: auto;
}
@media (prefers-reduced-motion: reduce) {
  :is(.mn-hajj-portal,#mn-dhikr-portal,#mn-quran,#mn-iftar27) * {
    scroll-behavior: auto !important;
  }
}

/* Known homepage widgets only. Keep existing header and donation styles. */
body.home .elementor-element-be9aacc,
body.home .elementor-element-2a914658 { display: none !important; }
body.home .elementor-element-eee326f .elementor-icon-box-title { line-height: 1.3 !important; color: #805b0b !important; }
body.home .elementor-element-eee326f .elementor-icon-box-description,
body.home .elementor-element-d303903 .elementor-heading-title,
body.home .elementor-element-54263c4 p { color: #475569 !important; }
body.home .elementor-element-c59842e h1 { font-size: clamp(30px, 5vw, 62px); line-height: 1.2; }
body.page-id-55 .elementor-element-5c73b56e img,
body.page-id-79 .elementor-element-2545d1c img { max-width: 100%; height: auto; }

/* Homepage charitable causes: only the replacement widget. */
.mnqc-causes{max-width:1200px;margin:0 auto;padding:56px 20px;text-align:center;color:#173251}
.mnqc-causes h2{font-size:clamp(26px,3.5vw,42px);line-height:1.2;color:#173251;margin:8px 0 16px}
.mnqc-causes-kicker,.mnqc-cause-type{font-weight:700;color:#805b0b;font-size:14px;letter-spacing:.04em}
.mnqc-causes-intro{max-width:720px;margin:0 auto 32px;color:#475569}
.mnqc-causes-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:stretch}
.mnqc-cause-card{display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid #e7dfcd;border-radius:12px;overflow:hidden;box-shadow:0 6px 24px rgba(23,50,81,.08);text-align:left}
.mnqc-cause-image{display:block;aspect-ratio:4/3;overflow:hidden;background:#f5f1e7}
.mnqc-cause-image img{width:100%;height:100%;object-fit:cover;display:block}
.mnqc-cause-body{display:flex;flex-direction:column;flex:1;padding:24px;gap:12px}
.mnqc-cause-body h3{color:#173251;font-size:clamp(20px,2vw,25px);line-height:1.3;margin:0}
.mnqc-cause-body p{margin:0;line-height:1.6;color:#475569}
.mnqc-cause-body .mnqc-cause-type{color:#805b0b}
.mnqc-cause-button{display:block;text-align:center;margin-top:auto;padding:13px 15px;background:#173251;color:#fff!important;border-radius:7px;font-weight:700;line-height:1.4;border:2px solid #173251}
.mnqc-cause-button:hover,.mnqc-cause-button:focus-visible{background:#fff;color:#173251!important}
@media(max-width:900px){.mnqc-causes-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.mnqc-causes-grid{grid-template-columns:1fr}.mnqc-causes{padding:32px 16px}}

/* Campaign alignment: scope by widget ID rather than homepage body class. */
html body .elementor-element-6712b21 > .elementor-container,
html body .elementor-element-6712b21 .elementor-element-b7b7e18,
html body .elementor-element-6712b21 .elementor-element-b7b7e18 > .elementor-widget-wrap,
html body .elementor-element-eaaf984,
html body .elementor-element-eaaf984 > .elementor-widget-container {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100% !important;
  flex-basis: 100% !important;
  margin-inline: auto !important;
}
html body .mnqc-causes {
  box-sizing: border-box;
  position: relative;
  width: min(100%, 1200px);
  max-width: none;
  margin: 0 auto !important;
}
/* The script measures the actual viewport and corrects any inherited offset. */
html body .mnqc-causes.mnqc-viewport-centred {
  width: var(--mnqc-causes-width) !important;
  max-width: none !important;
  left: var(--mnqc-causes-offset, 0px) !important;
}
