/* Deen Imam — Modern Masjid Theme
   Palette: navy, gold, cream, deep green
*/

:root {
  --di-navy: #0B111D;
  --di-navy-soft: #151C2B;
  --di-gold: #D4A017;
  --di-gold-deep: #B8870F;
  --di-green: #0B3D2E;
  --di-cream: #F7F5F0;
  --di-cream-2: #EFEBE3;
  --di-text: #1A1F2C;
  --di-muted: #5C6575;
  --di-white: #FFFFFF;
  --di-line: rgba(11, 17, 29, 0.08);
  --di-radius: 16px;
  --di-radius-sm: 12px;
  --di-shadow: 0 20px 60px rgba(11, 17, 29, 0.14);
  --di-font-heading: "Cormorant Garamond", Georgia, serif;
  --di-font-body: "DM Sans", system-ui, sans-serif;
  --di-container: 1180px;
  --di-header-h: 88px;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--di-font-body);
  color: var(--di-text);
  background: var(--di-cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, video, svg { max-width: 100%; height: auto; }
iframe { max-width: 100%; }
img { display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
table { max-width: 100%; }
h1, h2, h3, h4 {
  font-family: var(--di-font-heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--di-navy);
}
p { margin: 0 0 1em; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.di-skip-link:focus {
  position: fixed; top: 12px; left: 12px; z-index: 10000;
  width: auto; height: auto; clip: auto;
  padding: 0.75rem 1rem;
  background: var(--di-gold); color: var(--di-navy);
}

.di-container {
  width: min(100% - 2rem, var(--di-container));
  margin-inline: auto;
}

/* Buttons */
.di-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--di-font-body);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.di-btn:hover { transform: translateY(-2px); }
.di-btn--sm { padding: 0.6rem 1.1rem; font-size: 0.85rem; }
.di-btn--block { width: 100%; }
.di-btn--gold { background: var(--di-gold); color: var(--di-navy); }
.di-btn--gold:hover { background: var(--di-gold-deep); color: var(--di-white); box-shadow: 0 10px 28px rgba(212,160,23,0.35); }
.di-btn--donate {
  background: #E8A317;
  color: #111;
  gap: 0.35rem;
  padding: 0.68rem 1.2rem;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(232,163,23,0.32);
}
.di-btn--donate:hover { background: #f0b122; color: #000; }
.di-btn__heart { flex-shrink: 0; }
.di-btn__dollar { font-size: 0.92rem; font-weight: 700; line-height: 1; }
.di-btn--live {
  background: rgba(0,0,0,0.25);
  color: var(--di-white);
  border-color: rgba(255,255,255,0.55);
  padding: 0.68rem 1.15rem;
  font-weight: 600;
}
.di-btn--live:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.08); }
.di-btn--navy { background: var(--di-navy); color: var(--di-white); }
.di-btn--navy:hover { background: var(--di-navy-soft); }
.di-btn--ghost { background: transparent; color: var(--di-white); border-color: rgba(255,255,255,0.35); }
.di-btn--ghost:hover { border-color: var(--di-gold); color: var(--di-gold); }
.di-btn--outline { background: transparent; color: var(--di-navy); border-color: rgba(10,22,40,0.2); }
.di-btn--outline:hover { border-color: var(--di-gold); color: var(--di-gold-deep); }
.di-btn--outline-light { background: transparent; color: var(--di-white); border-color: rgba(255,255,255,0.4); }
.di-btn--outline-light:hover { background: rgba(255,255,255,0.08); border-color: var(--di-gold); color: var(--di-gold); }

.di-link {
  color: var(--di-gold-deep);
  font-weight: 600;
  font-size: 0.9rem;
}
.di-link:hover { color: var(--di-navy); }

.di-eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--di-gold);
}
.di-lead { font-size: 1.05rem; color: var(--di-muted); max-width: 36rem; }
.di-section-head { margin-bottom: 2.5rem; }
.di-section-head--center { text-align: center; }
.di-section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.di-tag {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(12, 55, 120, 0.1);
  color: #1e4d8c;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Header — MCMC-style full-bleed overlay on hero */
.di-header {
  position: relative;
  z-index: 100;
  background: transparent;
  color: var(--di-white);
}
.di-header--overlay {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  padding: 0;
}
.di-home-overlay .di-header--overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 200;
}
body:not(.di-home-overlay) .di-header--overlay .di-header__bar {
  background: rgba(8, 12, 20, 0.97);
}
body:not(.di-home-overlay) .di-brand--badge {
  margin-bottom: -0.85rem;
}
.di-header--overlay .di-header__shell {
  width: 100%;
  margin: 0;
}
.di-header--overlay .di-header__bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 1.75rem;
  min-height: var(--di-header-h);
  padding: 0.35rem clamp(0.85rem, 2.5vw, 2rem) 0.45rem clamp(0.5rem, 1.5vw, 1.25rem);
  background: rgba(10, 14, 22, 0.82);
  border-radius: 0;
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.di-sticky-header .di-header--overlay.is-stuck {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 200;
  background: transparent;
}
.di-sticky-header .di-header.is-stuck .di-header__bar {
  background: rgba(8, 12, 20, 0.96);
  box-shadow: 0 12px 36px rgba(0,0,0,0.4);
}

.di-brand--badge {
  position: relative;
  z-index: 2;
  align-self: flex-end;
  display: flex;
  align-items: flex-end;
  margin: -0.35rem 0 -1.65rem;
}
.di-brand__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.85rem 0.95rem;
  background: linear-gradient(180deg, #f7f2e8 0%, #ebe3d4 100%);
  border-radius: 12px 12px 22px 22px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
  min-height: 98px;
}
.di-brand__logo,
.di-brand .custom-logo-link img {
  display: block;
  max-height: 70px;
  width: auto;
  filter: none;
}
.di-brand .custom-logo-link {
  display: block;
  line-height: 0;
}

.di-header__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.1rem 0;
}
.di-bismillah {
  margin: 0;
  font-family: var(--di-font-heading);
  font-size: clamp(0.92rem, 1.35vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

.di-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem 0.35rem;
  flex-wrap: wrap;
}
.di-nav__list > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.7rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  border-radius: 8px;
  background: transparent;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.di-nav__list > li.menu-item-has-children > a::after {
  content: "";
  width: 0;
  height: 0;
  margin-top: 2px;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4.5px solid rgba(255,255,255,0.7);
}
.di-nav__list > li > a:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.di-nav__list > li.current-menu-item > a,
.di-nav__list > li.current_page_item > a {
  color: var(--di-gold);
  background: transparent;
}
.di-nav__list .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  padding: 0.5rem;
  background: #fff;
  color: var(--di-navy);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
  z-index: 20;
}
.di-nav__list > li { position: relative; }
.di-nav__list > li:hover > .sub-menu,
.di-nav__list > li:focus-within > .sub-menu { display: block; }
.di-nav__list .sub-menu a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--di-navy);
  background: transparent;
}
.di-nav__list .sub-menu a:hover { background: var(--di-cream); color: var(--di-gold-deep); }

.di-header__right {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  padding: 0.1rem 0;
}
.di-header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.di-social--header { display: none; }
.di-nav__mobile-cta { display: none; }
.di-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.di-burger span {
  display: block; height: 2px; background: var(--di-white); border-radius: 2px;
}

/* Date chip hidden in MCMC overlay look (date lives in prayer widget) */
.di-date-chip { display: none; }
.di-main--elementor,
.di-main--canvas {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}
.di-elementor-canvas {
  background: var(--di-cream);
}

/* Elementor starter homepage helpers */
.di-el-prayer {
  background: rgba(10,14,22,0.72);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 1.25rem 1.35rem 1.1rem;
  color: #fff;
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}
.di-el-prayer__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  font-size: 0.92rem;
}
.di-el-prayer__head strong { color: var(--di-gold); font-weight: 600; }
.di-el-prayer table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.di-el-prayer th {
  text-align: left;
  color: var(--di-gold);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.4rem 0.55rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.di-el-prayer td {
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.di-el-prayer__jummah {
  margin-top: 0.85rem;
  color: var(--di-gold);
  font-size: 0.86rem;
}
.di-el-media-placeholder {
  min-height: 360px;
  border-radius: 18px;
  background: linear-gradient(160deg, #ebe4d4, #d9d0bc);
  color: #5C6575;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.95rem;
}
.di-el-pillars {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}
.di-el-pillars li {
  background: #fff;
  border-radius: 14px;
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: 0 10px 28px rgba(11,17,29,0.06);
  display: grid;
  gap: 0.35rem;
}
.di-el-pillars span {
  width: 2rem;
  height: 2rem;
  margin: 0 auto 0.35rem;
  border-radius: 50%;
  background: rgba(212,160,23,0.15);
  color: #B8870F;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.di-el-pillars strong { color: #0B111D; }
.di-el-pillars em { color: #5C6575; font-style: normal; font-size: 0.9rem; }
@media (max-width: 900px) {
  .di-el-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .di-el-pillars { grid-template-columns: 1fr; }
}

.di-date-chip__arrow {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.7;
  line-height: 1;
}
.di-date-chip__arrow:hover { opacity: 1; color: var(--di-gold); }

/* Friday Prayer */
.di-friday {
  background: linear-gradient(160deg, #0B111D 0%, #0B3D2E 100%);
  color: #fff;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}
.di-friday__inner { max-width: 820px; text-align: center; }
.di-friday h2 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); }
.di-friday .di-lead { margin: 0 auto 1.75rem; color: rgba(255,255,255,0.82); }
.di-friday__times {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 auto 1.25rem;
  max-width: 520px;
}
.di-friday__card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 1.15rem 1rem;
  display: grid;
  gap: 0.35rem;
}
.di-friday__card span { font-size: 0.8rem; color: var(--di-gold); text-transform: uppercase; letter-spacing: 0.08em; }
.di-friday__card strong { font-size: 1.45rem; font-family: var(--di-font-heading); }
.di-friday__address { margin: 0; color: rgba(255,255,255,0.7); font-size: 0.95rem; }
@media (max-width: 560px) {
  .di-friday__times { grid-template-columns: 1fr; }
}

/* Social */
.di-social { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.di-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--di-white);
  opacity: 0.88;
  transition: opacity 0.2s, border-color 0.2s, color 0.2s, background 0.2s;
}
.di-social__link:hover { opacity: 1; border-color: var(--di-gold); color: var(--di-gold); background: rgba(212,160,23,0.08); }
.di-social--sm .di-social__link { width: 28px; height: 28px; }

/* Legacy topbar hidden in float layout */
.di-topbar { display: none; }

/* Hero — sits under overlay header */
.di-hero {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  padding-top: calc(var(--di-header-h) + clamp(3.5rem, 7vw, 5.5rem));
  background:
    linear-gradient(115deg, rgba(8,12,20,0.88) 0%, rgba(8,12,20,0.72) 45%, rgba(11,61,46,0.55) 100%),
    var(--di-hero-image, linear-gradient(160deg, #0B111D, #151C2B 50%, #0B3D2E));
  background-size: cover;
  background-position: center;
  color: var(--di-white);
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
  min-height: min(88vh, 820px);
  display: flex;
  align-items: center;
}
.di-hero__pattern {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(197,160,89,0.12), transparent 28%),
    radial-gradient(circle at 80% 70%, rgba(197,160,89,0.08), transparent 32%),
    repeating-linear-gradient(60deg, transparent 0 18px, rgba(255,255,255,0.015) 18px 19px);
  pointer-events: none;
}
.di-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
.di-hero__title {
  color: var(--di-white);
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  margin-bottom: 1rem;
  max-width: 14ch;
}
.di-hero__text {
  color: rgba(255,255,255,0.78);
  font-size: 1.08rem;
  max-width: 34rem;
  margin-bottom: 1.75rem;
}
.di-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.di-hero__amp { color: var(--di-gold); }

/* Prayer widget */
.di-prayer {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(197,160,89,0.35);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  overflow: hidden;
}
.di-prayer__header {
  padding: 1.25rem 1.35rem 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.di-prayer__title {
  color: var(--di-white);
  font-size: 1.55rem;
  margin: 0.15rem 0;
}
.di-prayer__date { color: rgba(255,255,255,0.55); font-size: 0.85rem; margin: 0; }
.di-prayer__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.di-prayer__table th,
.di-prayer__table td {
  padding: 0.7rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.di-prayer__table th {
  color: var(--di-gold);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.di-prayer__table td:first-child { font-weight: 600; color: var(--di-white); }
.di-prayer__table tr.is-next td { background: rgba(197,160,89,0.12); }
.di-prayer__jummah {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding: 0.95rem 1.2rem 1.2rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
}
.di-prayer__jummah strong { color: var(--di-gold); }

/* Services */
.di-services {
  background: var(--di-white);
  border-bottom: 1px solid var(--di-line);
  padding: 0.35rem 0;
}
.di-services__list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.25rem;
}
.di-services__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 1.25rem 0.5rem;
  text-align: center;
  transition: background 0.2s, color 0.2s;
  border-radius: var(--di-radius-sm);
}
.di-services__item:hover { background: var(--di-cream); color: var(--di-gold-deep); }
.di-services__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(197,160,89,0.12);
  color: var(--di-gold-deep);
  font-size: 1.1rem;
}
.di-services__label { font-size: 0.86rem; font-weight: 600; }

/* Vision / Story / Pillars */
.di-prose-section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background: var(--di-white);
}
.di-prose-section__inner { max-width: 820px; }
.di-prose {
  color: var(--di-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}
.di-prose p { margin-bottom: 1.1rem; }

.di-story {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background: var(--di-cream);
}
.di-story__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
.di-story__frame {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--di-shadow);
  border: 1px solid var(--di-line);
}
.di-story__frame img,
.di-story__frame .di-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.di-pillars {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background: var(--di-white);
}
.di-pillars__list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.di-pillars__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 1.4rem 1.2rem;
  border-radius: var(--di-radius);
  background: var(--di-cream);
  border: 1px solid var(--di-line);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.di-pillars__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--di-shadow);
  border-color: rgba(212,160,23,0.4);
}
.di-pillars__num {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--di-gold);
  color: #111;
  font-weight: 700;
  font-size: 0.9rem;
}
.di-pillars__name {
  font-family: var(--di-font-heading);
  font-size: 1.45rem;
  color: var(--di-navy);
  font-weight: 600;
}
.di-pillars__label {
  color: var(--di-muted);
  font-size: 0.92rem;
}

.di-footer__logo-link img {
  max-height: 64px;
  width: auto;
}

/* Announcements */
.di-announcements { padding: clamp(3.5rem, 7vw, 5.5rem) 0; background: var(--di-cream); }
.di-announcements__grid {
  display: grid;
  grid-template-columns: 1.7fr 0.9fr;
  gap: 1.75rem;
  align-items: start;
}
.di-announcements__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.di-card {
  background: var(--di-white);
  border: 1px solid var(--di-line);
  border-radius: var(--di-radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.di-card:hover { transform: translateY(-4px); box-shadow: var(--di-shadow); }
.di-card__media { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--di-cream-2); }
.di-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.di-card:hover .di-card__media img { transform: scale(1.05); }
.di-card__media--placeholder {
  background:
    linear-gradient(135deg, rgba(197,160,89,0.25), rgba(10,22,40,0.15)),
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(255,255,255,0.2) 10px 11px);
}
.di-card__body { padding: 1.15rem 1.2rem 1.35rem; }
.di-card__meta { display: block; font-size: 0.78rem; color: var(--di-muted); margin-bottom: 0.4rem; }
.di-card__title { font-size: 1.25rem; margin-bottom: 0.4rem; }
.di-card__title a:hover { color: var(--di-gold-deep); }
.di-card__excerpt { color: var(--di-muted); font-size: 0.92rem; margin-bottom: 0.75rem; }

.di-newsletter {
  background: var(--di-navy);
  color: var(--di-white);
  border-radius: var(--di-radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--di-shadow);
}
.di-newsletter h3 { color: var(--di-white); font-size: 1.6rem; }
.di-newsletter p { color: rgba(255,255,255,0.7); }
.di-newsletter__form { display: grid; gap: 0.65rem; margin: 1.25rem 0 0.75rem; }
.di-newsletter__form input {
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: var(--di-white);
}
.di-newsletter__hint { font-size: 0.78rem; opacity: 0.55; margin: 0; }

/* Mission */
.di-mission {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background: var(--di-white);
}
.di-mission__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.di-checklist { margin: 1.5rem 0 2rem; display: grid; gap: 0.75rem; }
.di-checklist li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--di-muted);
}
.di-checklist li::before {
  content: "";
  position: absolute; left: 0; top: 0.45rem;
  width: 0.65rem; height: 0.65rem;
  border-radius: 50%;
  background: var(--di-gold);
  box-shadow: 0 0 0 4px rgba(197,160,89,0.2);
}
.di-mission__collage {
  position: relative;
  min-height: 420px;
}
.di-mission__frame {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--di-shadow);
}
.di-mission__frame--main {
  width: 78%;
  aspect-ratio: 4/5;
}
.di-mission__frame--accent {
  position: absolute;
  right: 0; bottom: 8%;
  width: 48%;
  aspect-ratio: 1;
  border: 4px solid var(--di-gold);
}
.di-mission__frame img,
.di-placeholder {
  width: 100%; height: 100%;
  object-fit: cover;
}
.di-placeholder {
  background:
    linear-gradient(145deg, #1a2d48, #0B3D2E 70%),
    radial-gradient(circle at 30% 30%, rgba(197,160,89,0.35), transparent 50%);
  min-height: 180px;
}
.di-placeholder--tall { min-height: 360px; }
.di-placeholder--story { min-height: 100%; aspect-ratio: 9/16; }
.di-placeholder--avatar {
  width: 100%; height: 100%;
  min-height: 0;
  border-radius: 50%;
}

/* Journey */
.di-journey {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background: var(--di-cream);
}
.di-journey__track {
  display: grid;
  gap: 2.5rem;
  position: relative;
}
.di-journey__track::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(var(--di-gold), transparent);
  transform: translateX(-50%);
  opacity: 0.45;
}
.di-journey__item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.di-journey__item--alt .di-journey__copy { order: 2; }
.di-journey__item--alt .di-journey__media { order: 1; }
.di-journey__copy h3 { font-size: 2rem; }
.di-ornament-frame {
  position: relative;
  padding: 0.85rem;
  border-radius: 20px;
  background:
    linear-gradient(var(--di-white), var(--di-white)) padding-box,
    linear-gradient(135deg, var(--di-gold), transparent 55%, var(--di-gold)) border-box;
  border: 2px solid transparent;
  overflow: hidden;
  box-shadow: var(--di-shadow);
}
.di-ornament-frame img,
.di-ornament-frame .di-placeholder {
  border-radius: 12px;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Stories */
.di-stories {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background: var(--di-white);
}
.di-stories__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.di-story {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: center;
}
.di-story__phone {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 9/16;
  background: var(--di-navy);
  box-shadow: var(--di-shadow);
  border: 3px solid #1c2c44;
}
.di-story__phone img,
.di-story__phone .di-placeholder { width: 100%; height: 100%; object-fit: cover; }
.di-story__play {
  position: absolute;
  inset: auto auto 1rem 50%;
  transform: translateX(-50%);
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(197,160,89,0.95);
  color: var(--di-navy);
  font-size: 0.8rem;
}
.di-story__title { font-weight: 600; font-size: 0.95rem; }
.di-story:hover .di-story__phone { transform: translateY(-4px); transition: transform 0.3s; }

/* Programs */
.di-programs {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background: linear-gradient(180deg, var(--di-navy) 0%, #071221 100%);
  color: var(--di-white);
}
.di-programs .di-section-head h2,
.di-programs .di-eyebrow { color: var(--di-white); }
.di-programs .di-eyebrow { color: var(--di-gold); }
.di-programs__grid {
  display: grid;
  grid-template-columns: 1.7fr 0.9fr;
  gap: 2rem;
  align-items: start;
}
.di-programs__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.di-program-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.4rem 1.2rem;
  border-radius: var(--di-radius);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(197,160,89,0.22);
  color: var(--di-white);
  min-height: 160px;
  transition: background 0.25s, transform 0.25s, border-color 0.25s;
}
.di-program-card:hover {
  background: rgba(197,160,89,0.1);
  border-color: var(--di-gold);
  transform: translateY(-3px);
}
.di-program-card h3 { color: var(--di-white); font-size: 1.25rem; margin: 0; }
.di-program-card__icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(197,160,89,0.15);
  color: var(--di-gold);
}

.di-imams {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--di-radius);
  padding: 1.5rem;
}
.di-imams__title { color: var(--di-white); font-size: 1.5rem; margin-bottom: 1.25rem; }
.di-imams__list { display: grid; gap: 0.9rem; margin-bottom: 1.25rem; }
.di-imams__item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--di-white);
}
.di-imams__avatar {
  width: 54px; height: 54px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(197,160,89,0.5);
  flex-shrink: 0;
}
.di-imams__avatar img { width: 100%; height: 100%; object-fit: cover; }
.di-imams__meta { display: grid; gap: 0.15rem; }
.di-imams__meta em { font-style: normal; color: rgba(255,255,255,0.55); font-size: 0.85rem; }

/* Donate */
.di-donate {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background: var(--di-cream);
}
.di-donate__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}
.di-donate__ayah {
  margin-top: 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--di-gold);
  font-family: var(--di-font-heading);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--di-navy);
}
.di-donate__card {
  background: var(--di-white);
  border-radius: var(--di-radius);
  padding: 1.75rem;
  box-shadow: var(--di-shadow);
  border-top: 3px solid var(--di-gold);
}
.di-donate__amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  margin: 1.25rem 0;
}
.di-donate__amount {
  padding: 0.75rem 0.4rem;
  border-radius: 10px;
  border: 1px solid var(--di-line);
  background: var(--di-cream);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.di-donate__amount.is-active,
.di-donate__amount:hover {
  background: var(--di-navy);
  color: var(--di-white);
  border-color: var(--di-navy);
}
.di-donate__other {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--di-muted);
}
.di-donate__other input {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--di-line);
  font: inherit;
}
.di-donate__secure { margin: 0.85rem 0 0; font-size: 0.8rem; color: var(--di-muted); text-align: center; }

/* Events */
.di-events {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background: var(--di-white);
}
.di-events__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* Contact */
.di-contact {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 4rem;
  background: var(--di-cream);
}
.di-contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.di-jummah-card {
  position: relative;
  background: var(--di-green);
  color: var(--di-white);
  border-radius: var(--di-radius);
  padding: 2.25rem 1.75rem;
  overflow: hidden;
  min-height: 280px;
}
.di-jummah-card__arch {
  position: absolute;
  top: -40px; right: -30px;
  width: 160px; height: 160px;
  border: 18px solid rgba(197,160,89,0.25);
  border-radius: 50%;
}
.di-jummah-card h2 { color: var(--di-white); font-size: 2rem; position: relative; }
.di-jummah-card ul { position: relative; margin: 1.5rem 0; display: grid; gap: 0.85rem; }
.di-jummah-card li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.di-jummah-card strong { color: var(--di-gold); }
.di-map {
  border-radius: var(--di-radius);
  overflow: hidden;
  min-height: 280px;
  background: var(--di-cream-2);
  border: 1px solid var(--di-line);
}
.di-map iframe { width: 100%; height: 100%; min-height: 280px; border: 0; }
.di-map__placeholder {
  display: grid; place-items: center;
  height: 100%; min-height: 280px;
  padding: 2rem; text-align: center; color: var(--di-muted);
}

.di-contact-form {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  background: var(--di-white);
  padding: 2rem;
  border-radius: var(--di-radius);
  border: 1px solid var(--di-line);
}
.di-contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.di-contact-form label { display: grid; gap: 0.35rem; font-size: 0.88rem; font-weight: 600; }
.di-contact-form input,
.di-contact-form textarea {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--di-line);
  font: inherit;
  font-weight: 400;
}
.di-contact__intro {
  text-align: center;
  margin-bottom: 2rem;
}
.di-contact__intro h2 { margin-bottom: 1rem; }
.di-contact__details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--di-muted);
  font-size: 0.95rem;
}
.di-contact__details a:hover { color: var(--di-gold-deep); }
.di-contact__form-wrap {
  background: #fff;
  border: 1px solid var(--di-line);
  border-radius: 18px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
}
.di-contact-form input:focus,
.di-contact-form textarea:focus {
  outline: 2px solid rgba(197,160,89,0.45);
  border-color: var(--di-gold);
}

/* Footer — rich designed layout */
.di-footer {
  color: rgba(26, 31, 44, 0.88);
}
.di-footer--rich {
  background: #fff;
  padding-top: 0;
}
.di-footer__cta {
  background:
    linear-gradient(120deg, rgba(11,17,29,0.96), rgba(11,61,46,0.92)),
    radial-gradient(circle at 20% 50%, rgba(212,160,23,0.22), transparent 45%);
  color: #fff;
  padding: clamp(1.75rem, 4vw, 2.5rem) 0;
}
.di-footer__cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.di-footer__cta-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--di-gold);
  font-weight: 600;
}
.di-footer__cta-title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  max-width: 28ch;
}
.di-footer__main {
  padding: clamp(2.5rem, 6vw, 3.75rem) 0 2.5rem;
  background:
    linear-gradient(180deg, #f8f6f1 0%, #ffffff 55%);
  border-top: 1px solid var(--di-line);
}
.di-footer__grid-rich {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 1.15fr 0.9fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
.di-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.95rem;
}
.di-footer__logo img,
.di-footer__logo-link img,
.di-footer .custom-logo-link img {
  max-height: 68px;
  width: auto;
}
.di-footer__about {
  margin: 0;
  max-width: 22rem;
  font-size: 0.92rem;
  color: var(--di-muted);
  line-height: 1.6;
}
.di-footer__heading {
  margin: 0 0 1rem;
  font-family: var(--di-font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--di-navy);
}
.di-footer__menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 16rem;
}
.di-footer__menu > li {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.di-footer__menu a {
  color: var(--di-text);
  font-size: 0.95rem;
  line-height: 1.35;
}
.di-footer__menu a:hover { color: var(--di-gold-deep); }
/* If primary nav classes ever leak into footer, force one-by-one */
.di-footer__col .di-nav__list {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  flex-wrap: nowrap !important;
  gap: 0.65rem !important;
  width: 100%;
  max-width: 16rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.di-footer__col .di-nav__list > li {
  display: block;
  width: 100%;
  float: none !important;
}
.di-footer__contact-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.di-footer__contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--di-text);
  line-height: 1.45;
}
.di-footer__icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(212, 160, 23, 0.14);
  color: #b33a2b;
}
.di-footer__contact-list a { color: inherit; word-break: break-word; }
.di-footer__contact-list a:hover { color: var(--di-gold-deep); }
.di-footer__hours {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 0.85rem;
  padding: 0;
  list-style: none;
}
.di-footer__hours li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem;
  background: rgba(11,17,29,0.04);
  border-radius: 10px;
  font-size: 0.9rem;
}
.di-footer__hours span { color: var(--di-muted); }
.di-footer__hours strong { color: var(--di-navy); }
.di-footer__mini-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--di-gold-deep);
}
.di-footer__mini-link:hover { color: var(--di-navy); }
.di-social--footer {
  gap: 0.5rem;
}
.di-social--footer .di-social__link {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--di-navy);
  color: #f2f0f6;
  border: none;
  opacity: 1;
}
.di-social--footer .di-social__link:hover {
  background: var(--di-gold);
  color: var(--di-navy);
}
.di-footer__bottom {
  background: var(--di-navy);
  color: rgba(255,255,255,0.82);
  border-top: none;
  padding: 1.2rem 0;
}
.di-footer__bottom-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.di-footer__legal { max-width: 48rem; }
.di-footer__copy {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  color: #fff;
}
.di-footer__tagline {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.68);
}
.di-footer__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.di-footer__meta a { color: rgba(255,255,255,0.78); }
.di-footer__meta a:hover { color: var(--di-gold); }
.di-footer__credit {
  margin: 0;
  width: 100%;
  text-align: right;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.62);
}
.di-footer__credit a {
  color: var(--di-gold);
  font-weight: 600;
  text-decoration: none;
}
.di-footer__credit a:hover {
  color: #f0c75a;
  text-decoration: underline;
}
@media (max-width: 767px) {
  .di-footer__credit { text-align: left; }
}

/* Legacy footer helpers */
.di-footer--clean .di-footer__main { padding: 2.5rem 0; }
.di-footer--green { background: var(--di-green); color: rgba(255,255,255,0.82); }
.di-footer--navy { background: var(--di-navy); color: rgba(255,255,255,0.82); }
.di-footer__grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.di-footer__grid--2 { grid-template-columns: 1.4fr 1fr; }
.di-footer__grid--3 { grid-template-columns: 1.4fr repeat(2, 1fr); }
.di-footer__grid--4 { grid-template-columns: 1.4fr repeat(3, 1fr); }
.di-footer-widget__title { color: var(--di-white); margin-bottom: 1rem; }
.di-footer__apps { display: inline-flex; gap: 0.75rem; }

/* Expansion campaign — clean CTA */
.di-campaign {
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
  background: #fff;
}
.di-campaign--clean .di-campaign__panel {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(247,244,238,0.95), rgba(255,255,255,0.9)),
    radial-gradient(circle at 80% 20%, rgba(212,160,23,0.12), transparent 40%);
  border: 1px solid var(--di-line);
}
.di-campaign__title {
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  color: #b8870f;
  margin-bottom: 0.75rem;
}
.di-campaign__lead {
  font-size: 1.08rem;
  color: var(--di-text);
  font-weight: 500;
  margin: 0 auto 0.85rem;
  max-width: 36rem;
}
.di-campaign__excerpt {
  margin: 0 auto 1.5rem;
  color: var(--di-muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 40rem;
}
.di-campaign__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Donate for Humanity (Elementor 50062) */
.di-humanity {
  padding-block: clamp(3.25rem, 7vw, 5.25rem);
  background: #0d1832;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.di-humanity::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(212,160,23,0.18), transparent 35%),
    radial-gradient(circle at 85% 80%, rgba(11,61,46,0.35), transparent 40%);
  pointer-events: none;
}
.di-humanity .di-container { position: relative; }
.di-humanity__intro {
  max-width: 760px;
  margin: 0 auto 2.25rem;
  text-align: center;
}
.di-humanity__intro h2 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3rem);
}
.di-humanity__text {
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 auto 1.35rem;
}
.di-humanity__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}
.di-humanity__ayah,
.di-humanity__video {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 16px 40px rgba(0,0,0,0.28);
}
.di-humanity__ayah img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 260px;
  background: #fff;
}
.di-humanity__video {
  position: relative;
  min-height: 260px;
}
.di-humanity__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.di-elementor-part--header,
.di-elementor-part--footer {
  width: 100%;
}

/* Content pages */
.di-page {
  padding: 3.5rem 0 4.5rem;
}
.di-page__title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 1.5rem;
}
.di-content { max-width: 760px; }
.di-content > *:last-child { margin-bottom: 0; }
.di-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.di-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}
.di-widget {
  background: var(--di-white);
  border: 1px solid var(--di-line);
  border-radius: var(--di-radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.di-empty { color: var(--di-muted); grid-column: 1 / -1; }

/* Utilities */
.di-back-top {
  position: fixed;
  right: 1.25rem; bottom: 1.25rem;
  z-index: 90;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--di-gold);
  color: var(--di-navy);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
}
.di-back-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }

.di-preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: var(--di-navy);
  transition: opacity 0.4s ease, visibility 0.4s;
}
.di-preloader.is-done { opacity: 0; visibility: hidden; }
.di-preloader__mark {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 3px solid rgba(197,160,89,0.25);
  border-top-color: var(--di-gold);
  animation: di-spin 0.8s linear infinite;
}
@keyframes di-spin { to { transform: rotate(360deg); } }

.di-animate .di-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.di-animate .di-reveal.is-in {
  opacity: 1;
  transform: none;
}
.di-animate .di-reveal--delay { transition-delay: 0.12s; }

/* Responsive — full breakpoints */
@media (max-width: 1200px) {
  .di-nav__list > li > a {
    padding: 0.42rem 0.7rem;
    font-size: 0.84rem;
  }
  .di-btn--live,
  .di-btn--donate {
    padding: 0.62rem 1rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 1100px) {
  .di-announcements__cards,
  .di-programs__cards,
  .di-events__grid,
  .di-stories__row,
  .di-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .di-services__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .di-journey__track::before { display: none; }
  .di-header--overlay .di-header__bar {
    grid-template-columns: auto 1fr;
    gap: 0.65rem;
    min-height: 72px;
    padding: 0.4rem 0.75rem 0.4rem 0.4rem;
    position: relative;
  }
  .di-header__center { display: contents; }
  .di-bismillah { display: none !important; }
  .di-header__right {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    margin-left: auto;
  }
  .di-social--header { display: none; }
  .di-brand--badge {
    margin: -0.25rem 0 -1rem;
  }
  .di-brand__link {
    min-height: 70px;
    padding: 0.45rem 0.6rem 0.7rem;
  }
  .di-brand__logo,
  .di-brand .custom-logo-link img {
    max-height: 52px;
  }
  .di-burger { display: inline-flex; }
  .di-header-actions .di-btn--live { display: none; }
  .di-header__shell { position: relative; }
  .di-nav {
    display: none;
    grid-column: 1 / -1;
    position: relative;
    z-index: 120;
    width: 100%;
    margin-top: 0.35rem;
    background: #0A0E16;
    padding: 0.75rem 1rem 1.15rem;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  }
  .di-nav.is-open { display: block; }
  .di-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }
  .di-nav__list > li > a {
    padding: 0.9rem 0.75rem;
    font-size: 1rem;
    border-radius: 10px;
    background: transparent;
  }
  .di-nav__list > li > a:hover,
  .di-nav__list > li.current-menu-item > a,
  .di-nav__list > li.current_page_item > a {
    background: rgba(255,255,255,0.08);
  }
  .di-nav__list .sub-menu {
    position: static;
    display: none;
    transform: none;
    left: auto;
    min-width: 0;
    box-shadow: none;
    background: rgba(255,255,255,0.04);
    margin: 0.15rem 0 0.35rem;
  }
  .di-nav__list > li.is-open > .sub-menu,
  .di-nav__list > li:focus-within > .sub-menu { display: block; }
  .di-nav__list .sub-menu a { color: rgba(255,255,255,0.85); }
  .di-nav__list .sub-menu a:hover { background: rgba(255,255,255,0.06); color: var(--di-gold); }
  .di-nav__mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .di-nav__mobile-cta .di-btn { width: 100%; }
  body.di-nav-open { overflow: hidden; }
  .di-date-chip {
    max-width: calc(100% - 0.5rem);
    margin: 0.7rem 0 0;
    font-size: 0.78rem;
    padding: 0.45rem 0.75rem;
    gap: 0.55rem;
  }
}

@media (max-width: 900px) {
  .di-hero__grid,
  .di-announcements__grid,
  .di-mission__grid,
  .di-programs__grid,
  .di-donate__grid,
  .di-contact__grid,
  .di-journey__item,
  .di-story__grid,
  .di-layout,
  .di-footer__grid--2,
  .di-footer__grid--3,
  .di-footer__grid--4,
  .di-footer__row,
  .di-footer__grid-rich,
  .di-contact--clean .di-contact__grid,
  .di-humanity__media {
    grid-template-columns: 1fr;
  }
  .di-footer__cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .di-footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .di-footer__legal { max-width: none; }
  .di-humanity__video { min-height: 240px; aspect-ratio: 16 / 9; }
  .di-contact--clean .di-map iframe { height: 260px; }
  .di-pillars__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .di-journey__item--alt .di-journey__copy,
  .di-journey__item--alt .di-journey__media { order: initial; }
  .di-hero {
    min-height: auto;
    margin-top: 0;
    padding-top: calc(var(--di-header-h) + 2.75rem);
    padding-bottom: 2.75rem;
  }
  .di-hero__grid { gap: 1.75rem; }
  .di-hero__title { font-size: clamp(1.85rem, 6.5vw, 2.6rem); }
  .di-hero__text { font-size: 0.98rem; max-width: none; }
  .di-hero__actions { gap: 0.65rem; }
  .di-hero__actions .di-btn { flex: 1 1 auto; min-width: 140px; justify-content: center; }
  .di-prayer { width: 100%; }
  .di-prayer__table th,
  .di-prayer__table td { padding: 0.55rem 0.35rem; font-size: 0.88rem; }
  .di-mission__collage { min-height: 280px; }
  .di-section-head h2,
  .di-friday h2,
  .di-vision h2,
  .di-story h2 { font-size: clamp(1.75rem, 5vw, 2.4rem); }
  .di-prose-section,
  .di-story,
  .di-pillars,
  .di-events,
  .di-donate,
  .di-programs,
  .di-contact,
  .di-announcements { padding-block: clamp(2.75rem, 6vw, 4rem); }
}

@media (max-width: 640px) {
  .di-container { width: min(100% - 1.35rem, var(--di-container)); }
  .di-announcements__cards,
  .di-programs__cards,
  .di-events__grid,
  .di-stories__row,
  .di-archive-grid,
  .di-services__list,
  .di-donate__amounts,
  .di-contact-form__row,
  .di-pillars__list,
  .di-friday__times { grid-template-columns: 1fr; }
  .di-header--overlay .di-header__bar {
    min-height: 64px;
    padding: 0.3rem 0.55rem 0.3rem 0.3rem;
  }
  .di-brand--badge { margin: -0.15rem 0 -0.75rem; }
  .di-brand__link {
    min-height: 58px;
    padding: 0.35rem 0.45rem 0.55rem;
    border-radius: 10px 10px 16px 16px;
  }
  .di-brand__logo,
  .di-brand .custom-logo-link img { max-height: 42px; }
  .di-btn--donate {
    padding: 0.55rem 0.8rem;
    font-size: 0.78rem;
    gap: 0.25rem;
  }
  .di-btn__dollar { font-size: 0.8rem; }
  .di-btn__heart { width: 12px; height: 12px; }
  .di-hero {
    margin-top: 0;
    padding-top: calc(72px + 2.15rem);
    padding-bottom: 2.15rem;
  }
  .di-hero__content { text-align: left; }
  .di-hero__actions { flex-direction: column; align-items: stretch; }
  .di-hero__actions .di-btn { width: 100%; min-width: 0; }
  .di-eyebrow { font-size: 0.7rem; }
  .di-date-chip {
    width: 100%;
    max-width: none;
    justify-content: space-between;
    margin-top: 0.55rem;
  }
  .di-services { padding: 0.85rem 0; }
  .di-services__item { padding: 0.85rem 0.5rem; }
  .di-card__body { padding: 1rem; }
  .di-card__title { font-size: 1.15rem; }
  .di-donate__card,
  .di-newsletter { padding: 1.25rem; }
  .di-footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .di-back-top {
    right: 0.85rem;
    bottom: 0.85rem;
    width: 42px;
    height: 42px;
  }
  .di-el-prayer { padding: 1rem; }
  .di-el-prayer__head { flex-direction: column; gap: 0.25rem; }
  .di-el-media-placeholder { min-height: 220px; }
  .elementor-section .elementor-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 420px) {
  .di-header-actions .di-btn--donate span:not(.di-btn__dollar):not(.di-btn__icons) {
    /* keep Donate label */
  }
  .di-prayer__table th,
  .di-prayer__table td {
    font-size: 0.8rem;
    padding: 0.45rem 0.25rem;
  }
  .di-friday__card strong { font-size: 1.25rem; }
  .di-stories__row { grid-template-columns: 1fr; }
}


/* Clean homepage polish */
.di-main--home .di-vision {
  padding-block: clamp(2.75rem, 6vw, 4rem);
  text-align: center;
}
.di-main--home .di-prose-section__inner {
  margin-inline: auto;
}
.di-main--home .di-prose {
  max-width: 40rem;
  margin-inline: auto;
  font-size: 1.08rem;
  color: var(--di-muted);
}
.di-contact--clean {
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
  background: #fff;
}
.di-contact--clean .di-contact__grid {
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: center;
}
.di-contact__details--stack {
  display: grid;
  gap: 0.55rem;
  justify-content: start;
  margin: 0 0 1.25rem;
  text-align: left;
}
.di-contact--clean .di-map,
.di-contact--clean .di-map__placeholder {
  min-height: 280px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--di-line);
  background: var(--di-cream);
}
.di-contact--clean .di-map iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}
.di-map__placeholder {
  display: grid;
  place-content: center;
  gap: 0.75rem;
  padding: 2rem;
  text-align: center;
}
.di-humanity {
  padding-block: clamp(2.75rem, 6vw, 4.25rem);
}
.di-humanity__text {
  max-width: 38rem;
}
.di-events {
  padding-block: clamp(2.75rem, 6vw, 4.25rem);
  background: var(--di-cream);
}


/* Lite YouTube facade */
.di-video-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #000;
  display: block;
}
.di-video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.88;
}
.di-video-facade__play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: rgba(212,160,23,0.95);
  color: #111;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.di-humanity__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .di-animate .di-reveal,
  .di-btn,
  .di-nav__list > li > a { transition: none !important; }
}

/* ==========================================================================
   Customizer → Design & Spacing controls
   ========================================================================== */
.di-btn,
.di-btn--sm,
.di-btn--block { border-radius: var(--di-btn-radius, 999px); }

.di-prose-section,
.di-vision,
.di-friday,
.di-humanity,
.di-campaign,
.di-events,
.di-contact,
.di-announcements,
.di-programs,
.di-story,
.di-journey,
.di-mission,
.di-pillars,
.di-services,
.di-stories,
.di-donate {
  padding-block: var(--di-section-space, 90px);
}

.di-section-head h2,
.di-prose-section h2 { font-size: calc(clamp(2rem, 4vw, 3rem) * var(--di-h-scale, 1)); }
.di-friday h2 { font-size: calc(clamp(2rem, 4vw, 2.8rem) * var(--di-h-scale, 1)); }
.di-hero__title { font-size: calc(clamp(2.6rem, 5.5vw, 4.4rem) * var(--di-h-scale, 1)); }

@media (max-width: 767px) {
  .di-hero__title { font-size: calc(clamp(1.85rem, 6.5vw, 2.6rem) * var(--di-h-scale, 1)); }
  .di-section-head h2,
  .di-prose-section h2,
  .di-friday h2 { font-size: calc(clamp(1.75rem, 5vw, 2.4rem) * var(--di-h-scale, 1)); }
}

/* Hero overlay darkness follows the Customizer slider */
.di-hero {
  background:
    linear-gradient(
      115deg,
      rgba(6, 10, 18, calc(var(--di-hero-overlay, 0.72) + 0.14)) 0%,
      rgba(6, 10, 18, var(--di-hero-overlay, 0.72)) 45%,
      rgba(var(--di-navy-rgb, 11, 17, 29), calc(var(--di-hero-overlay, 0.72) * 0.8)) 100%
    ),
    var(--di-hero-image, linear-gradient(160deg, var(--di-navy), var(--di-navy-soft) 50%, var(--di-green)));
  background-size: cover;
  background-position: center;
}

/* ==========================================================================
   Homepage polish — calmer rhythm, softer cards, better hierarchy
   ========================================================================== */
.di-eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--di-gold);
  margin-bottom: 0.6rem;
}
.di-eyebrow--on-dark { color: var(--di-gold); opacity: 0.95; }

.di-prose-section__inner { max-width: 62ch; margin-inline: auto; text-align: center; }
.di-prose { color: var(--di-muted); font-size: 1.05rem; line-height: 1.75; }
.di-prose p + p { margin-top: 1rem; }

.di-card {
  background: var(--di-white);
  border: 1px solid var(--di-line);
  border-radius: var(--di-radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.di-card:hover { transform: translateY(-4px); box-shadow: var(--di-shadow); }

/* Elementor-rendered homepage: let sections own their spacing */
.di-main--elementor > .elementor { overflow-x: clip; }
.di-main--elementor .elementor-section.elementor-section-boxed > .elementor-container {
  max-width: var(--di-container, 1180px);
}
.di-el-prayer,
.di-main--elementor .di-prayer-card { width: 100%; }

@media (max-width: 767px) {
  .di-prose-section__inner { max-width: none; }
  .di-main--elementor .elementor-column { padding-inline: 0; }
}

/* Inner Elementor pages — clear space under fixed header */
body:not(.di-home-overlay) .di-main--elementor > .elementor > .elementor-section:first-child {
  padding-top: max(7rem, calc(var(--di-header-h, 88px) + 2.5rem)) !important;
}
.di-friday__inner { text-align: center; max-width: 42rem; margin-inline: auto; }
.di-friday__inner .di-lead { margin-inline: auto; }

/* ==========================================================================
   Modern dark footer (v2)
   ========================================================================== */
.di-footer--rich {
  background: var(--di-navy);
  color: rgba(255,255,255,0.78);
}
.di-footer__cta {
  background:
    radial-gradient(circle at 12% 40%, rgba(var(--di-gold-rgb, 212,160,23), 0.28), transparent 42%),
    linear-gradient(120deg, var(--di-green), var(--di-navy-soft));
  padding: clamp(2.25rem, 5vw, 3.25rem) 0;
  position: relative;
}
.di-footer__cta::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--di-gold-rgb, 212,160,23), 0.6), transparent);
}
.di-footer__cta-title {
  font-family: var(--di-font-heading);
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  line-height: 1.15;
}
.di-footer__main {
  background: var(--di-navy);
  border-top: 0;
  padding: clamp(3rem, 6vw, 4.5rem) 0 2.75rem;
}
.di-footer__about { color: rgba(255,255,255,0.7); }
.di-footer__heading {
  color: #fff;
  position: relative;
  padding-bottom: 0.65rem;
}
.di-footer__heading::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 28px; height: 2px;
  background: var(--di-gold);
  border-radius: 2px;
}
.di-footer__menu a,
.di-footer__contact-list li,
.di-footer__contact-list a { color: rgba(255,255,255,0.78); }
.di-footer__menu a:hover,
.di-footer__contact-list a:hover { color: var(--di-gold); }
.di-footer__menu a,
.di-footer__col .di-nav__list a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: color .2s ease, transform .2s ease;
}
.di-footer__menu a::before,
.di-footer__col .di-nav__list a::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px;
  background: var(--di-gold); opacity: 0.55;
  flex-shrink: 0;
}
.di-footer__menu a:hover,
.di-footer__col .di-nav__list a:hover { transform: translateX(3px); }
.di-footer__menu .current-menu-item > a,
.di-footer__col .di-nav__list .current-menu-item > a {
  color: var(--di-gold);
}
.di-footer__icon {
  background: rgba(var(--di-gold-rgb, 212,160,23), 0.16);
  color: var(--di-gold);
}
.di-footer__hours li {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
}
.di-footer__hours span { color: rgba(255,255,255,0.62); }
.di-footer__hours strong { color: #fff; }
.di-footer__mini-link { color: var(--di-gold); }
.di-footer__mini-link:hover { color: #fff; }
.di-social--footer .di-social__link {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
}
.di-social--footer .di-social__link:hover {
  background: var(--di-gold);
  color: var(--di-navy);
  border-color: var(--di-gold);
}
.di-footer__logo img,
.di-footer__logo-link img,
.di-footer .custom-logo-link img {
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.35));
}
.di-footer__bottom {
  background: rgba(0,0,0,0.28);
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Elementor embeds — never collapse maps / videos */
.elementor-widget-google_maps iframe,
.elementor-custom-embed iframe {
  width: 100%;
  display: block;
  border: 0;
}
.elementor-widget-google_maps iframe { min-height: 320px; }
.di-map iframe { display: block; }

/* Icon-box cards: subtle lift on hover */
.di-main--elementor .elementor-widget-icon-box { transition: transform .25s ease; }
.di-main--elementor .elementor-column:hover > .elementor-widget-wrap > .elementor-widget-icon-box { transform: translateY(-4px); }
.di-main--elementor .elementor-widget-icon-box .elementor-icon-box-title a { color: inherit; }

@media (max-width: 767px) {
  .di-footer__cta-inner { justify-content: center; text-align: center; }
  .di-footer__cta-title { max-width: none; }
}

/* ==========================================================================
   Events grid (shortcode [deen_imam_events]) — modern cards
   ========================================================================== */
.di-evgrid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.di-evgrid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.di-evgrid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.di-evgrid--cols-1 { grid-template-columns: 1fr; }
.di-ev {
  display: flex;
  flex-direction: column;
  background: var(--di-white);
  border: 1px solid var(--di-line);
  border-radius: calc(var(--di-radius) + 6px);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.di-ev:hover { transform: translateY(-5px); box-shadow: var(--di-shadow); }
.di-ev__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
}
.di-ev__media--empty {
  background:
    radial-gradient(circle at 80% 20%, rgba(var(--di-gold-rgb, 212,160,23), 0.35), transparent 45%),
    linear-gradient(145deg, var(--di-navy), var(--di-green));
}
.di-ev--b .di-ev__media--empty {
  background:
    radial-gradient(circle at 20% 80%, rgba(var(--di-gold-rgb, 212,160,23), 0.3), transparent 45%),
    linear-gradient(145deg, var(--di-green), var(--di-navy-soft));
}
.di-ev__media--empty::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(60deg, transparent 0 14px, rgba(255,255,255,0.04) 14px 15px);
}
.di-ev__date,
.di-ev__badge {
  position: absolute;
  top: 0.9rem; left: 0.9rem;
  z-index: 1;
  border-radius: 12px;
  background: rgba(255,255,255,0.95);
  color: var(--di-navy);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}
.di-ev__date {
  display: grid;
  place-items: center;
  min-width: 54px;
  padding: 0.45rem 0.55rem;
  line-height: 1;
}
.di-ev__date strong { font-family: var(--di-font-heading); font-size: 1.5rem; font-weight: 700; }
.di-ev__date span { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--di-gold-deep); font-weight: 700; }
.di-ev__badge {
  padding: 0.4rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.di-ev__body { padding: 1.15rem 1.2rem 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.di-ev__title { font-size: 1.3rem; margin: 0; line-height: 1.2; }
.di-ev__title a { color: var(--di-navy); }
.di-ev__title a:hover { color: var(--di-gold-deep); }
.di-ev__text { margin: 0; font-size: 0.92rem; color: var(--di-muted); line-height: 1.6; }
.di-ev__meta { list-style: none; margin: 0.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.di-ev__meta li {
  font-size: 0.74rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: var(--di-cream);
  color: var(--di-text);
}
.di-ev__link {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--di-gold-deep);
}
.di-ev__link:hover { color: var(--di-navy); }

@media (max-width: 1023px) {
  .di-evgrid,
  .di-evgrid--cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .di-evgrid,
  .di-evgrid--cols-3,
  .di-evgrid--cols-2 { grid-template-columns: 1fr; }
}

/* Elementor content — mobile polish */
@media (max-width: 767px) {
  .di-main--elementor .elementor-section > .elementor-container > .elementor-column[data-id] {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .di-main--elementor .elementor-widget-button:not(.di-btn-inline) .elementor-button { width: 100%; justify-content: center; }
  .di-main--elementor .elementor-widget-button:not(.di-btn-inline) + .elementor-widget-button:not(.di-btn-inline) { margin-top: -6px; }
  .di-main--elementor .elementor-widget-google_maps iframe { min-height: 260px; }
}

/* ==========================================================================
   v2.2 — Modern UI layer
   ========================================================================== */

/* --- Prayer card: premium glass, always-legible on dark ------------------ */
.di-prayer {
  color: #fff;
  background: linear-gradient(160deg, rgba(255,255,255,0.10), rgba(255,255,255,0.035));
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.di-prayer__header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.35rem 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.di-prayer__eyebrow {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--di-gold);
}
.di-prayer__date { color: rgba(255,255,255,0.6); font-size: 0.8rem; margin: 0; }
.di-prayer__table td {
  color: rgba(255,255,255,0.86);
  padding: 0.8rem 1.35rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.95rem;
}
.di-prayer__table tr:last-child td { border-bottom: 0; }
.di-prayer__name { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; color: #fff; }
.di-prayer__dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: rgba(255,255,255,0.28);
  flex-shrink: 0;
}
.di-prayer__next-tag {
  display: none;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.18rem 0.5rem; border-radius: 999px;
  background: var(--di-gold); color: var(--di-navy);
}
.di-prayer__time {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #fff !important;
  white-space: nowrap;
}
.di-prayer__table tr.is-next td {
  background: linear-gradient(90deg, rgba(var(--di-gold-rgb, 212,160,23), 0.22), rgba(var(--di-gold-rgb, 212,160,23), 0.06));
}
.di-prayer__table tr.is-next .di-prayer__dot { background: var(--di-gold); box-shadow: 0 0 0 4px rgba(var(--di-gold-rgb, 212,160,23), 0.25); }
.di-prayer__table tr.is-next .di-prayer__next-tag { display: inline-block; }
.di-prayer__table tr.is-next .di-prayer__time { color: var(--di-gold) !important; }
.di-prayer__jummah {
  align-items: center;
  padding: 0.95rem 1.35rem 1.15rem;
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.85);
}
.di-prayer__jummah span {
  padding: 0.25rem 0.65rem; border-radius: 999px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
  font-weight: 600; font-size: 0.82rem;
}

/* --- Islamic geometric pattern + glow for dark sections ------------------ */
.di-sec-dark,
.di-hero-el,
.di-page-hero-el { position: relative; isolation: isolate; overflow: hidden; }
.di-sec-dark::before,
.di-hero-el::before,
.di-page-hero-el::before {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='0.8'%3E%3Cpath d='M60 0l60 60-60 60L0 60z'/%3E%3Cpath d='M60 18l42 42-42 42-42-42z'/%3E%3Cpath d='M60 36l24 24-24 24-24-24z'/%3E%3Ccircle cx='60' cy='60' r='9'/%3E%3Cpath d='M0 0h120M0 120h120M0 0v120M120 0v120'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
  mask-image: radial-gradient(ellipse at 70% 30%, rgba(0,0,0,0.9), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, rgba(0,0,0,0.9), transparent 70%);
}
.di-hero-el::after,
.di-page-hero-el::after {
  content: "";
  position: absolute; z-index: 0; pointer-events: none;
  width: 60vw; height: 60vw; max-width: 780px; max-height: 780px;
  right: -18vw; top: -22vw;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(var(--di-gold-rgb, 212,160,23), 0.32), transparent 62%);
  filter: blur(10px);
}
.di-sec-dark::before, .di-hero-el::before, .di-page-hero-el::before,
.di-hero-el::after, .di-page-hero-el::after { z-index: 1; }
.di-sec-dark > .elementor-container,
.di-hero-el > .elementor-container,
.di-page-hero-el > .elementor-container { position: relative; z-index: 2; }

/* --- Eyebrow with gold rule ------------------------------------------------ */
.di-eyebrow-el .elementor-heading-title {
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.di-eyebrow-el .elementor-heading-title::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: var(--di-gold); flex-shrink: 0;
}
.di-eyebrow-el.elementor-widget-heading.di-eyebrow-center .elementor-heading-title::after {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: var(--di-gold); flex-shrink: 0;
}

/* --- Hero title: gold gradient accent on last word --------------------- */
.di-hero-el .elementor-widget-heading h1.elementor-heading-title {
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* --- Card columns: lift + glow -------------------------------------------- */
/* Elementor paints column background/border/radius/shadow on .elementor-widget-wrap,
   so all card chrome must live there — never on the (square) column box itself. */
.di-main--elementor .di-card-el > .elementor-widget-wrap {
  transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease, border-color .28s ease;
}
.di-main--elementor .di-card-el:hover > .elementor-widget-wrap {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px -22px rgba(11,17,29,0.35);
}
.di-main--elementor .di-card-el .elementor-icon-box-icon .elementor-icon {
  transition: transform .3s ease, background-color .3s ease;
}
.di-main--elementor .di-card-el:hover .elementor-icon-box-icon .elementor-icon { transform: scale(1.06) rotate(-4deg); }

/* --- Buttons: modern pill with lift ---------------------------------------- */
.di-main--elementor .elementor-button {
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
  letter-spacing: 0.01em;
}
.di-main--elementor .elementor-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(0,0,0,0.45);
}

/* --- Video / map frames ---------------------------------------------------- */
.di-main--elementor .elementor-widget-video .elementor-wrapper,
.di-main--elementor .elementor-widget-google_maps .elementor-custom-embed {
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(0,0,0,0.5);
}

/* --- Mobile: horizontal scroll rails (centered cards) -------------------- */
@media (max-width: 767px) {
  .di-main--elementor .di-scroll-x > .elementor-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    /* Fallback gutters (JS refines to exact centre): (100vw - card) / 2 */
    padding: 8px calc((100vw - min(78vw, 300px)) / 2) 20px;
    margin: 0 -18px;
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
    scrollbar-width: none;
  }
  .di-main--elementor .di-scroll-x > .elementor-container::-webkit-scrollbar { display: none; }
  .di-main--elementor .di-scroll-x > .elementor-container > .elementor-column {
    flex: 0 0 min(78vw, 300px) !important;
    width: min(78vw, 300px) !important;
    max-width: 300px;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    margin: 0 !important;
  }
  .di-main--elementor .di-scroll-x > .elementor-container > .elementor-column > .elementor-widget-wrap { height: 100%; }

  /* Events grid becomes a rail too */
  .di-evgrid,
  .di-evgrid--cols-3,
  .di-evgrid--cols-2 {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding: 8px calc((100vw - min(78vw, 300px)) / 2) 20px;
    margin: 0 -18px;
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
    scrollbar-width: none;
  }
  .di-evgrid::-webkit-scrollbar { display: none; }
  .di-evgrid .di-ev {
    flex: 0 0 min(78vw, 300px);
    max-width: 300px;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  /* Hero: tighter, prayer card full width */
  .di-hero-el .elementor-widget-heading h1.elementor-heading-title { font-size: clamp(2rem, 9vw, 2.6rem) !important; }
  .di-hero-el::after { width: 90vw; height: 90vw; right: -40vw; top: -30vw; }
  .di-prayer__table td { padding: 0.7rem 1rem; }
}

/* Scroll hint dots (pure CSS, no JS) */
@media (max-width: 767px) {
  .di-main--elementor .di-scroll-x { padding-bottom: 8px !important; }
}

/* ==========================================================================
   v2.2.1 — One dark palette (deep green ➜ navy) for footer, no colour clash
   ========================================================================== */
.di-footer,
.di-footer--rich,
.di-footer--navy,
.di-footer--green {
  background: linear-gradient(180deg, var(--di-green-deep, #061B14) 0%, var(--di-navy) 100%);
  color: rgba(255,255,255,0.8);
  position: relative;
  isolation: isolate;
}
.di-footer--rich::before {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.10;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='0.8'%3E%3Cpath d='M60 0l60 60-60 60L0 60z'/%3E%3Cpath d='M60 18l42 42-42 42-42-42z'/%3E%3Cpath d='M60 36l24 24-24 24-24-24z'/%3E%3Ccircle cx='60' cy='60' r='9'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
  mask-image: radial-gradient(ellipse at 90% 100%, rgba(0,0,0,0.9), transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 90% 100%, rgba(0,0,0,0.9), transparent 65%);
}
.di-footer--rich > * { position: relative; z-index: 1; }
.di-footer__cta {
  background:
    radial-gradient(circle at 10% 50%, rgba(var(--di-gold-rgb, 212,160,23), 0.30), transparent 40%),
    linear-gradient(120deg, var(--di-green) 0%, var(--di-green-deep, #061B14) 100%);
}
.di-footer__main { background: transparent; }
.di-footer__bottom { background: rgba(0,0,0,0.30); }

/* Footer logo: legible chip on dark (the mark has dark lettering) */
.di-footer__logo .custom-logo-link,
.di-footer__logo-link {
  display: inline-flex; align-items: center; justify-content: center;
  background: #FFFFFF;
  padding: 0.7rem 1.1rem;
  border-radius: 16px;
  box-shadow: 0 16px 36px -18px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(var(--di-gold-rgb, 212,160,23), 0.35);
  margin-bottom: 1.1rem;
}
.di-footer__logo img,
.di-footer__logo-link img,
.di-footer .custom-logo-link img {
  filter: none;
  max-height: 60px; width: auto; display: block;
}

/* Card columns: no chrome on the column box (Elementor styles the widget-wrap) */
.di-main--elementor .di-card-el {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Inner-section card rails: keep columns gapped without stretching */
.di-main--elementor .elementor-inner-section.di-scroll-x > .elementor-container { max-width: 100%; }

/* ==========================================================================
   v2.3 — Scroll-rail controls (arrows + dots) & modern mobile drawer menu
   ========================================================================== */

/* --- Rail controls --------------------------------------------------------- */
.di-rail-nav { display: none; }
@media (max-width: 767px) {
  .di-rail-nav.is-active {
    display: flex; align-items: center; justify-content: center; gap: 0.85rem;
    margin: 0.55rem auto 0.15rem; padding: 0 18px;
    position: relative; z-index: 3;
  }
  .di-rail-btn {
    width: 42px; height: 42px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; color: var(--di-navy);
    border: 1px solid rgba(11,17,29,0.10);
    box-shadow: 0 10px 24px -12px rgba(11,17,29,0.35);
    cursor: pointer; padding: 0;
    transition: transform .2s ease, background-color .2s ease, opacity .2s ease;
  }
  .di-rail-btn:active { transform: scale(0.94); }
  .di-rail-btn:disabled { opacity: 0.35; pointer-events: none; }
  .di-rail-dots { display: flex; align-items: center; gap: 6px; }
  .di-rail-dot {
    width: 7px; height: 7px; border-radius: 999px; padding: 0; border: 0;
    background: rgba(11,17,29,0.18); cursor: pointer;
    transition: width .25s ease, background-color .25s ease;
  }
  .di-rail-dot.is-active { width: 22px; background: var(--di-gold); }

  /* Dark sections get light controls */
  .di-sec-dark .di-rail-btn,
  .di-hero-el .di-rail-btn,
  .di-page-hero-el .di-rail-btn {
    background: rgba(255,255,255,0.10); color: #fff; border-color: rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
  }
  .di-sec-dark .di-rail-dot { background: rgba(255,255,255,0.28); }
  .di-sec-dark .di-rail-dot.is-active { background: var(--di-gold); }

  /* Rail interaction polish */
  .di-scroll-x > .elementor-container,
  .di-evgrid {
    position: relative;
    touch-action: pan-x pan-y;
    cursor: grab;
    scroll-snap-type: x mandatory;
  }
  .di-scroll-x > .elementor-container.is-dragging,
  .di-evgrid.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
  .di-scroll-x > .elementor-container.is-dragging a,
  .di-evgrid.is-dragging a { pointer-events: none; }
  .di-scroll-x > .elementor-container > .elementor-column,
  .di-evgrid .di-ev { scroll-snap-align: center; scroll-snap-stop: always; }
  /* Inner-section rails: let the rail bleed to the screen edge */
  .di-main--elementor .elementor-inner-section.di-scroll-x > .elementor-container,
  .di-main--elementor .di-scroll-x > .elementor-container,
  .di-evgrid { margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; }
}

/* --- Mobile drawer menu ---------------------------------------------------- */
.di-nav__head,
.di-nav__address,
.di-nav__sub-toggle { display: none; }

@media (max-width: 1100px) {
  .di-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(86vw, 390px);
    height: 100dvh;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background:
      radial-gradient(circle at 100% 0%, rgba(var(--di-gold-rgb, 212,160,23), 0.22), transparent 45%),
      linear-gradient(170deg, var(--di-green-deep, #061B14) 0%, var(--di-navy) 100%);
    box-shadow: -30px 0 70px rgba(0,0,0,0.5);
    transform: translateX(104%);
    visibility: hidden;
    transition: transform .45s cubic-bezier(.32,.72,0,1), visibility .45s;
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    isolation: isolate;
  }
  .di-nav::before {
    content: "";
    position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.12;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='0.8'%3E%3Cpath d='M60 0l60 60-60 60L0 60z'/%3E%3Cpath d='M60 18l42 42-42 42-42-42z'/%3E%3Cpath d='M60 36l24 24-24 24-24-24z'/%3E%3Ccircle cx='60' cy='60' r='9'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 120px 120px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 70%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 70%);
  }
  .di-nav.is-open { display: flex; transform: none; visibility: visible; }

  body.di-nav-open::before {
    content: "";
    position: fixed; inset: 0; z-index: 900;
    background: rgba(3,7,12,0.62);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: diFadeIn .3s ease both;
  }
  @keyframes diFadeIn { from { opacity: 0; } to { opacity: 1; } }
  @keyframes diNavItem {
    from { opacity: 0; transform: translateX(22px); }
    to   { opacity: 1; transform: none; }
  }

  .di-nav__head {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: calc(env(safe-area-inset-top, 0px) + 1.1rem) 1.25rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.10);
  }
  .di-nav__head-brand { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
  .di-nav__head-name {
    font-family: var(--di-font-heading);
    font-size: 1.2rem; font-weight: 600; color: #fff; line-height: 1.1;
  }
  .di-nav__head-bismillah {
    font-size: 0.95rem; color: var(--di-gold); opacity: 0.95; line-height: 1.4;
  }
  .di-nav__close {
    flex-shrink: 0;
    width: 42px; height: 42px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.08); color: #fff;
    border: 1px solid rgba(255,255,255,0.14);
    cursor: pointer; padding: 0;
    transition: background-color .2s ease, transform .2s ease;
  }
  .di-nav__close:hover { background: rgba(255,255,255,0.16); transform: rotate(90deg); }

  .di-nav__list {
    flex-direction: column; align-items: stretch; gap: 0.15rem;
    padding: 1rem 0.9rem 0.5rem;
    margin: 0;
  }
  .di-nav__list > li { position: relative; }
  .di-nav__list > li > a {
    display: flex; align-items: center; gap: 0.85rem;
    padding: 0.95rem 1rem;
    font-size: 1.08rem; font-weight: 500;
    color: rgba(255,255,255,0.9);
    border-radius: 14px;
    background: transparent;
    transition: background-color .2s ease, color .2s ease, padding-left .2s ease;
  }
  .di-nav__list > li > a::before {
    content: ""; width: 6px; height: 6px; border-radius: 999px;
    background: rgba(255,255,255,0.28); flex-shrink: 0;
    transition: background-color .2s ease, box-shadow .2s ease;
  }
  .di-nav__list > li > a::after { display: none !important; }
  .di-nav__list > li > a:hover,
  .di-nav__list > li > a:focus-visible { background: rgba(255,255,255,0.07); color: #fff; padding-left: 1.15rem; }
  .di-nav__list > li.current-menu-item > a,
  .di-nav__list > li.current_page_item > a,
  .di-nav__list > li.current-menu-ancestor > a {
    background: rgba(var(--di-gold-rgb, 212,160,23), 0.14);
    color: var(--di-gold);
  }
  .di-nav__list > li.current-menu-item > a::before,
  .di-nav__list > li.current_page_item > a::before {
    background: var(--di-gold); box-shadow: 0 0 0 4px rgba(var(--di-gold-rgb, 212,160,23), 0.25);
  }

  /* Staggered entrance */
  .di-nav.is-open .di-nav__list > li { animation: diNavItem .45s cubic-bezier(.2,.8,.2,1) both; }
  .di-nav.is-open .di-nav__list > li:nth-child(1) { animation-delay: .08s; }
  .di-nav.is-open .di-nav__list > li:nth-child(2) { animation-delay: .13s; }
  .di-nav.is-open .di-nav__list > li:nth-child(3) { animation-delay: .18s; }
  .di-nav.is-open .di-nav__list > li:nth-child(4) { animation-delay: .23s; }
  .di-nav.is-open .di-nav__list > li:nth-child(5) { animation-delay: .28s; }
  .di-nav.is-open .di-nav__list > li:nth-child(6) { animation-delay: .33s; }
  .di-nav.is-open .di-nav__list > li:nth-child(n+7) { animation-delay: .38s; }
  .di-nav.is-open .di-nav__mobile-cta { animation: diNavItem .5s .3s cubic-bezier(.2,.8,.2,1) both; }

  /* Sub menus */
  .di-nav__sub-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    position: absolute; top: 0.55rem; right: 0.5rem;
    width: 38px; height: 38px; border-radius: 10px;
    background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.85);
    border: 0; cursor: pointer; padding: 0;
    transition: transform .25s ease, background-color .2s ease;
  }
  .di-nav__list > li.menu-item-has-children > a { padding-right: 3.2rem; }
  .di-nav__list > li.is-open > .di-nav__sub-toggle { transform: rotate(180deg); background: rgba(var(--di-gold-rgb, 212,160,23), 0.18); color: var(--di-gold); }
  .di-nav__list .sub-menu {
    position: static; display: none; transform: none; left: auto; min-width: 0;
    box-shadow: none; border: 0;
    background: rgba(0,0,0,0.18);
    border-radius: 12px;
    margin: 0.15rem 0 0.5rem 1.6rem;
    padding: 0.35rem;
  }
  .di-nav__list > li.is-open > .sub-menu { display: block; }
  .di-nav__list .sub-menu a {
    display: block; padding: 0.7rem 0.9rem; border-radius: 10px;
    color: rgba(255,255,255,0.8); font-size: 0.98rem;
  }
  .di-nav__list .sub-menu a:hover { background: rgba(255,255,255,0.06); color: var(--di-gold); }

  /* Bottom actions */
  .di-nav__mobile-cta {
    display: flex; flex-direction: column; gap: 0.6rem;
    margin: auto 0 0;
    padding: 1.1rem 1.25rem calc(env(safe-area-inset-bottom, 0px) + 1.35rem);
    border-top: 1px solid rgba(255,255,255,0.10);
    background: rgba(0,0,0,0.16);
  }
  .di-nav__mobile-cta .di-btn {
    width: 100%; justify-content: center;
    padding: 0.95rem 1.2rem; font-size: 0.98rem; border-radius: 999px;
  }
  .di-nav__mobile-cta .di-btn--live {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18); color: #fff;
  }
  .di-nav__mobile-cta .di-btn--donate {
    background: var(--di-gold); color: var(--di-navy);
    box-shadow: 0 16px 34px -14px rgba(var(--di-gold-rgb, 212,160,23), 0.7);
  }
  .di-nav__address {
    display: block; margin: 0.35rem 0 0; text-align: center;
    font-size: 0.8rem; color: rgba(255,255,255,0.55); line-height: 1.5;
  }

  /* Burger → X */
  .di-burger { position: relative; gap: 0; justify-content: center; }
  .di-burger span { position: absolute; left: 10px; right: 10px; transition: transform .3s ease, opacity .2s ease, top .3s ease; }
  .di-burger span:nth-child(2) { top: 12px; }
  .di-burger span:nth-child(3) { top: 19px; }
  .di-burger span:nth-child(4) { top: 26px; }
  .di-burger[aria-expanded="true"] span:nth-child(2) { top: 19px; transform: rotate(45deg); }
  .di-burger[aria-expanded="true"] span:nth-child(3) { opacity: 0; }
  .di-burger[aria-expanded="true"] span:nth-child(4) { top: 19px; transform: rotate(-45deg); }
}

@media (prefers-reduced-motion: reduce) {
  .di-nav, .di-nav.is-open .di-nav__list > li, .di-nav.is-open .di-nav__mobile-cta { animation: none !important; transition: none !important; }
}

/* Inline button pairs (hero): side by side on every screen */
.di-main--elementor .elementor-widget-button.di-btn-inline { width: auto; max-width: 100%; }
.di-main--elementor .elementor-widget-button.di-btn-inline .elementor-button { white-space: nowrap; }
@media (max-width: 767px) {
  .di-main--elementor .elementor-widget-button.di-btn-inline .elementor-button {
    padding: 14px 22px !important;
    font-size: 14px !important;
  }
  .di-main--elementor .elementor-widget-button.di-btn-inline { margin-right: 10px !important; margin-bottom: 10px !important; }
  .di-main--elementor .elementor-widget-button.di-btn-inline:last-of-type { margin-right: 0 !important; }
}
@media (max-width: 360px) {
  .di-main--elementor .elementor-widget-button.di-btn-inline .elementor-button { padding: 13px 18px !important; font-size: 13px !important; }
}

/* Drawer portal: when the nav lives on <body> it must beat every header layer */
@media (max-width: 1100px) {
  .di-nav--drawer { z-index: 1000; }
  body.di-nav-open::before { z-index: 900; }
  /* Fallback while JS hasn't moved the nav yet: keep the header above the backdrop */
  body.di-nav-open .di-header { z-index: 950; }
}

/* ==========================================================================
   Mosque AI chatbot assistant
   ========================================================================== */
.di-bot {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 1100;
  font-family: var(--di-font-body);
}
.di-bot__fab {
  position: relative;
  width: 60px; height: 60px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--di-navy);
  background: linear-gradient(145deg, var(--di-gold), #E8C56A);
  box-shadow: 0 16px 40px -12px rgba(var(--di-gold-rgb, 212,160,23), 0.75), 0 8px 20px rgba(0,0,0,0.25);
  transition: transform .25s ease, box-shadow .25s ease;
}
.di-bot__fab:hover { transform: translateY(-2px) scale(1.03); }
.di-bot.is-open .di-bot__fab { transform: scale(0.92); }
.di-bot__fab-pulse {
  position: absolute; inset: -4px;
  border-radius: inherit;
  border: 2px solid rgba(var(--di-gold-rgb, 212,160,23), 0.45);
  animation: diBotPulse 2.4s ease-out infinite;
  pointer-events: none;
}
.di-bot.is-open .di-bot__fab-pulse { display: none; }
@keyframes diBotPulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.35); opacity: 0; }
}

.di-bot__panel {
  position: absolute;
  right: 0; bottom: 74px;
  width: min(92vw, 380px);
  height: min(72vh, 560px);
  display: none;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  color: var(--di-text);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.45), 0 0 0 1px rgba(11,17,29,0.06);
  transform-origin: bottom right;
  z-index: 2;
}
.di-bot.is-open .di-bot__panel {
  display: flex;
  animation: diBotIn .35s cubic-bezier(.2,.8,.2,1) both;
}
.di-bot__panel[hidden] { display: none !important; }
@keyframes diBotIn {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.di-bot__head {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.95rem 1rem;
  background: linear-gradient(135deg, var(--di-green-deep, #061B14), var(--di-navy));
  color: #fff;
}
.di-bot__avatar {
  width: 42px; height: 42px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(var(--di-gold-rgb, 212,160,23), 0.2);
  color: var(--di-gold);
  border: 1px solid rgba(255,255,255,0.12);
  flex-shrink: 0;
}
.di-bot__head-text { min-width: 0; flex: 1; }
.di-bot__head-text strong {
  display: block; font-family: var(--di-font-heading);
  font-size: 1.05rem; line-height: 1.15; font-weight: 600;
}
.di-bot__head-text span {
  display: block; margin-top: 0.15rem;
  font-size: 0.72rem; color: rgba(255,255,255,0.65); letter-spacing: 0.02em;
}
.di-bot__close {
  position: relative; z-index: 5;
  width: 42px; height: 42px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.di-bot__close svg { pointer-events: none; }
.di-bot__close:hover { background: rgba(255,255,255,0.18); }
.di-bot-iq { font-style: normal; font-weight: 500; font-size: 0.72em; opacity: 0.7; margin-left: 0.25rem; }

.di-bot__messages {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 1rem 0.9rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--di-gold-rgb, 212,160,23), 0.08), transparent 40%),
    linear-gradient(180deg, #FBF9F5, #F4F1EA);
  display: flex; flex-direction: column; gap: 0.7rem;
}
.di-bot__msg { display: flex; max-width: 92%; }
.di-bot__msg--bot { align-self: flex-start; }
.di-bot__msg--user { align-self: flex-end; }
.di-bot__bubble {
  padding: 0.75rem 0.95rem;
  border-radius: 16px;
  font-size: 0.9rem; line-height: 1.45;
  box-shadow: 0 6px 18px -12px rgba(11,17,29,0.35);
}
.di-bot__msg--bot .di-bot__bubble {
  background: #fff;
  border: 1px solid rgba(11,17,29,0.06);
  border-bottom-left-radius: 6px;
  color: var(--di-text);
}
.di-bot__msg--user .di-bot__bubble {
  background: var(--di-navy);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.di-bot__bubble a {
  color: var(--di-gold-deep, #9a7510);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.di-bot__msg--user .di-bot__bubble a { color: #fff; }

.di-bot-card {
  margin-top: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--di-green-deep, #061B14), var(--di-navy));
  color: #fff;
}
.di-bot-card strong { display: block; font-family: var(--di-font-heading); font-size: 1.05rem; }
.di-bot-card__meta {
  display: block; margin: 0.2rem 0 0.55rem;
  font-size: 0.7rem; color: rgba(255,255,255,0.55); letter-spacing: 0.04em; text-transform: uppercase;
}
.di-bot-times { list-style: none; margin: 0; padding: 0; }
.di-bot-times li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.88rem;
}
.di-bot-times li:last-child { border-bottom: 0; }
.di-bot-times li.is-next {
  margin: 0.1rem -0.4rem;
  padding: 0.45rem 0.4rem;
  border-radius: 10px;
  border-bottom-color: transparent;
  background: rgba(224,177,58,0.16);
}
.di-bot-times li.is-next span,
.di-bot-times li.is-next strong { color: var(--di-gold); }
.di-bot-next {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.08rem 0.32rem;
  border-radius: 999px;
  font-style: normal;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--di-gold);
  color: #0b1220;
  vertical-align: middle;
}
.di-bot-times span { color: rgba(255,255,255,0.75); }
.di-bot-times strong { color: var(--di-gold); font-variant-numeric: tabular-nums; }
.di-bot-card__note {
  margin: 0.65rem 0 0;
  font-size: 0.78rem; color: rgba(255,255,255,0.7);
}
.di-bot-card__alert {
  margin: 0.55rem 0 0;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(180,55,55,0.45);
  background: rgba(90,18,22,0.35);
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(255,255,255,0.9);
}
.di-bot-card__alert strong {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e57373;
  margin-bottom: 0.15rem;
  font-family: inherit;
}

.di-bot__dots { display: inline-flex; gap: 5px; align-items: center; height: 1em; }
.di-bot__dots i {
  width: 6px; height: 6px; border-radius: 999px;
  background: rgba(11,17,29,0.35);
  animation: diBotDot 1.1s ease-in-out infinite;
}
.di-bot__dots i:nth-child(2) { animation-delay: .15s; }
.di-bot__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes diBotDot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.di-bot__chips {
  display: flex; flex-wrap: nowrap; gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  overflow-x: auto; scrollbar-width: none;
  border-top: 1px solid rgba(11,17,29,0.06);
  background: #fff;
}
.di-bot__chips::-webkit-scrollbar { display: none; }
.di-bot__chip {
  flex: 0 0 auto;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(11,17,29,0.1);
  background: var(--di-cream, #F7F5F0);
  color: var(--di-navy);
  font-size: 0.78rem; font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease;
}
.di-bot__chip:hover {
  background: rgba(var(--di-gold-rgb, 212,160,23), 0.18);
  border-color: rgba(var(--di-gold-rgb, 212,160,23), 0.45);
}

.di-bot__form {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.55rem 0.75rem 0.35rem;
  background: #fff;
  border-top: 1px solid rgba(11,17,29,0.06);
}
.di-bot__input {
  flex: 1; min-width: 0;
  height: 44px;
  padding: 0 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(11,17,29,0.12);
  background: #F8F7F4;
  font-size: 0.9rem;
  color: var(--di-text);
  outline: none;
}
.di-bot__input:focus {
  border-color: rgba(var(--di-gold-rgb, 212,160,23), 0.7);
  box-shadow: 0 0 0 3px rgba(var(--di-gold-rgb, 212,160,23), 0.18);
}
.di-bot__send {
  width: 44px; height: 44px; border-radius: 999px; border: 0;
  background: var(--di-navy); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: background-color .2s ease, transform .15s ease;
}
.di-bot__send:hover { background: var(--di-green); transform: scale(1.04); }
.di-bot__footnote {
  margin: 0;
  padding: 0 0.9rem 0.65rem;
  font-size: 0.65rem;
  color: rgba(11,17,29,0.45);
  text-align: center;
  background: #fff;
}

@media (max-width: 480px) {
  .di-bot {
    right: 0.75rem; bottom: 0.75rem;
  }
  .di-bot__panel {
    position: fixed;
    inset: auto 0.5rem max(0.5rem, env(safe-area-inset-bottom)) 0.5rem;
    width: auto; height: min(78vh, 620px);
    bottom: max(0.5rem, env(safe-area-inset-bottom));
    right: 0.5rem; left: 0.5rem;
  }
  .di-bot.is-open .di-bot__fab { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .di-bot__fab-pulse, .di-bot__panel, .di-bot__dots i { animation: none !important; }
}

/* Keep back-to-top above the chatbot FAB */
body:has(#di-bot) .di-back-top { bottom: 5.5rem; }
@media (max-width: 480px) {
  body:has(#di-bot) .di-back-top { bottom: 5.25rem; }
}

/* Chatbot invite bubble — typewriter “ask me” line */
.di-bot__invite {
  position: absolute;
  right: 72px;
  bottom: 8px;
  max-width: min(72vw, 260px);
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.95rem;
  border: 0;
  border-radius: 16px 16px 4px 16px;
  background: #fff;
  color: var(--di-navy);
  box-shadow: 0 18px 40px -16px rgba(11,17,29,0.45), 0 0 0 1px rgba(11,17,29,0.06);
  cursor: pointer;
  text-align: left;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.3;
  opacity: 0;
  transform: translateX(12px) scale(0.96);
  transition: opacity .35s ease, transform .35s cubic-bezier(.2,.8,.2,1);
  z-index: 1;
  -webkit-tap-highlight-color: transparent;
}
.di-bot__invite.is-visible {
  display: inline-flex;
  opacity: 1;
  transform: none;
  animation: diBotInviteFloat 3.2s ease-in-out infinite;
}
.di-bot.is-open .di-bot__invite { display: none !important; }
.di-bot__invite::after {
  content: "";
  position: absolute;
  right: -6px; bottom: 14px;
  width: 12px; height: 12px;
  background: #fff;
  transform: rotate(45deg);
  box-shadow: 2px -2px 0 rgba(11,17,29,0.04);
}
.di-bot__invite-dots {
  display: none;
  align-items: center; gap: 3px;
  flex-shrink: 0;
}
.di-bot__invite.is-typing .di-bot__invite-dots { display: inline-flex; }
.di-bot__invite-dots i {
  width: 5px; height: 5px; border-radius: 999px;
  background: var(--di-gold);
  animation: diBotDot 1.1s ease-in-out infinite;
}
.di-bot__invite-dots i:nth-child(2) { animation-delay: .15s; }
.di-bot__invite-dots i:nth-child(3) { animation-delay: .3s; }
.di-bot__invite-text {
  min-height: 1.2em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.di-bot__invite-caret {
  width: 2px; height: 1em;
  background: var(--di-gold);
  border-radius: 1px;
  flex-shrink: 0;
  opacity: 0;
}
.di-bot__invite.is-typing .di-bot__invite-caret {
  opacity: 1;
  animation: diBotCaret 0.85s steps(1) infinite;
}
@keyframes diBotCaret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes diBotInviteFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@media (max-width: 480px) {
  .di-bot__invite {
    right: 68px;
    bottom: 6px;
    max-width: min(62vw, 220px);
    font-size: 0.78rem;
    padding: 0.6rem 0.8rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .di-bot__invite.is-visible { animation: none; }
  .di-bot__invite-caret, .di-bot__invite-dots i { animation: none !important; }
}

/* Chatbot root is always visible; only the panel is toggled by JS */
.di-bot.is-ready,
.di-bot[hidden] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.di-bot__panel[hidden] { display: none !important; }

/* Rail spacers (JS) — invisible, no snap, keep first/last cards centred */
.di-rail-spacer { flex: 0 0 0; height: 1px; scroll-snap-align: none; pointer-events: none; }
@media (max-width: 767px) {
  .di-main--elementor .di-scroll-x > .elementor-container > .di-rail-spacer { flex-shrink: 0; width: auto; max-width: none; }
}
@media (min-width: 768px) { .di-rail-spacer { display: none; } }

/* ==========================================================================
   v2.4.6 — Square emblem logo + Jumu'ah schedule with notes
   ========================================================================== */
/* Header badge: the new emblem is square, so let it fill the hanging badge */
.di-brand__link { padding: 0.55rem 0.75rem 0.85rem; min-height: 0; }
.di-brand__logo,
.di-brand .custom-logo-link img { max-height: 84px; height: 84px; width: auto; }
@media (max-width: 1023px) {
  .di-brand__logo,
  .di-brand .custom-logo-link img { max-height: 64px; height: 64px; }
}
@media (max-width: 767px) {
  .di-brand__link { padding: 0.35rem 0.5rem 0.6rem; }
  .di-brand__logo,
  .di-brand .custom-logo-link img { max-height: 54px; height: 54px; }
}
/* Footer chip */
.di-footer__logo img,
.di-footer__logo-link img,
.di-footer .custom-logo-link img { max-height: 84px; height: 84px; }
.di-footer__logo,
.di-footer__logo-link { padding: 0.55rem 0.7rem; border-radius: 18px; }

/* Theme Friday section: two-prayer schedule */
.di-jummah-list {
  list-style: none; margin: 1.5rem auto 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem;
  max-width: 640px;
}
.di-jummah-list__item {
  display: grid; gap: 0.25rem; padding: 1.1rem 1rem 1.15rem;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px; text-align: center;
}
.di-jummah-list__label {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  color: var(--di-gold);
}
.di-jummah-list__time {
  font-family: var(--di-font-heading, inherit); font-size: 1.55rem; line-height: 1.1;
  color: #fff; font-variant-numeric: tabular-nums;
}
.di-jummah-list__note { font-size: 0.86rem; color: rgba(255,255,255,0.72); }
@media (max-width: 479px) { .di-jummah-list { grid-template-columns: 1fr; } }

/* Footer hours: who-is-welcome note under the label */
.di-footer__hours li { align-items: flex-start; }
.di-footer__hours li span { display: flex; flex-direction: column; gap: 0.1rem; }
.di-footer__hours-note { font-style: normal; font-size: 0.72rem; opacity: 0.78; }
.di-footer__hours li strong { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Prayer widget: stacked Jumu'ah rows */
.di-prayer__jummah--stack { flex-direction: column; align-items: stretch; gap: 0.5rem; }
.di-prayer__jummah--stack > strong { text-align: center; }
.di-prayer__jummah--stack .di-prayer__jummah-row {
  display: flex; justify-content: space-between; align-items: center; gap: 0.6rem;
  padding: 0.5rem 0.8rem; border-radius: 12px;
}
.di-prayer__jummah-row b { color: #fff; font-weight: 700; }
.di-prayer__jummah-row small { font-size: 0.74rem; color: rgba(255,255,255,0.7); text-align: right; }

/* Elementor Friday cards: time ranges are longer — keep them on one line */
.di-main--elementor .di-card-el h3 { white-space: nowrap; letter-spacing: -0.01em; }
@media (max-width: 380px) { .di-main--elementor .di-card-el h3 { font-size: 22px !important; } }

/* Chatbot: subtle secondary text */
.di-bot-muted { font-size: 0.92em; }
.di-bot__msg--bot .di-bot__bubble .di-bot-muted { color: rgba(11,17,29,0.62); }
.di-bot__msg--bot .di-bot-card .di-bot-muted { color: rgba(255,255,255,0.7); }

/* ==========================================================================
   v2.4.7 — Hero YouTube background (desktop + mobile cover)
   ========================================================================== */
.di-hero--video {
  background-image:
    linear-gradient(115deg, rgba(6,10,18,0.72) 0%, rgba(6,10,18,0.55) 48%, rgba(11,61,46,0.42) 100%),
    var(--di-hero-image, none);
  background-size: cover;
  background-position: center;
}
.di-hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    var(--di-hero-image, none) center / cover no-repeat,
    #0B111D;
}
.di-hero__video-frame,
.di-hero__video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 */
  min-height: 100%;
  min-width: 177.78vh; /* 16:9 cover */
  transform: translate(-50%, -50%);
  border: 0;
  max-width: none;
  pointer-events: none;
}
.di-hero--video .di-hero__pattern {
  z-index: 1;
  background-image:
    linear-gradient(115deg, rgba(6,10,18,0.55) 0%, rgba(6,10,18,0.35) 45%, rgba(11,61,46,0.28) 100%),
    radial-gradient(circle at 20% 20%, rgba(197,160,89,0.10), transparent 28%),
    radial-gradient(circle at 80% 70%, rgba(197,160,89,0.06), transparent 32%);
  opacity: 1;
}
.di-hero--video .di-hero__grid { position: relative; z-index: 2; }

/* Elementor hero video — play on mobile + true cover crop */
.di-hero-el--video,
.di-hero-el.di-hero-el--video {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(88vh, 820px);
}
.di-hero-el .elementor-background-video-container,
.di-hero-el .elementor-background-video-container.elementor-hidden-phone,
.di-hero-el .elementor-background-video-container.elementor-hidden-mobile {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  overflow: hidden !important;
  pointer-events: none;
  z-index: 0 !important;
  /* Kill Elementor's 16:9 aspect-ratio box that causes the mobile hard cut */
  padding: 0 !important;
  transform: none !important;
}
/* Elementor's inner embed wrapper is the usual cause of the mid-hero cut */
.di-hero-el .elementor-background-video-embed {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
  transform: none !important;
  overflow: hidden !important;
}
.di-hero-el .elementor-background-video-embed iframe,
.di-hero-el .elementor-background-video-hosted,
.di-hero-el .elementor-background-video-container iframe,
.di-hero-el .elementor-background-video-container video {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: max(100vw, 177.78vh) !important;
  height: max(100vh, 56.25vw) !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  transform: translate(-50%, -50%) scale(1.2) !important;
  object-fit: cover !important;
  border: 0 !important;
  pointer-events: none !important;
}
.di-hero-el .elementor-background-overlay {
  z-index: 1 !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}
.di-hero-el--video::before { opacity: 0.08; z-index: 1; }
.di-hero-el--video::after { opacity: 0.45; z-index: 1; }

@media (max-width: 767px) {
  .di-hero--video,
  .di-hero-el--video {
    min-height: min(92vh, 760px);
  }
  .di-hero__video-frame,
  .di-hero__video iframe,
  .di-hero-el .elementor-background-video-embed iframe,
  .di-hero-el .elementor-background-video-hosted,
  .di-hero-el .elementor-background-video-container iframe,
  .di-hero-el .elementor-background-video-container video {
    /* Portrait phones: oversize landscape 16:9 so it always covers the tall hero */
    width: max(220vw, 200vh) !important;
    height: max(124vw, 112vh) !important;
    min-width: 220vw !important;
    min-height: 112vh !important;
    transform: translate(-50%, -50%) scale(1) !important;
  }
  .di-hero-el--video {
    padding-top: 6.5rem !important;
  }
  /* Even overlay — no “band” of dark pattern above the video */
  .di-hero-el--video > .elementor-background-overlay {
    opacity: 0.72 !important;
    background-image: linear-gradient(
      180deg,
      rgba(6,10,18,0.78) 0%,
      rgba(6,10,18,0.55) 45%,
      rgba(11,61,46,0.5) 100%
    ) !important;
  }
  /* Soften the geometric pattern so a gap never looks like a hard cut */
  .di-hero-el--video::before { opacity: 0.05; }
  .di-hero-el--video::after { opacity: 0.28; width: 120vw; height: 120vw; right: -50vw; top: -40vw; }
}

/* ==========================================================================
   v2.4.8 — Hero video sound (Tap for sound)
   ========================================================================== */
.di-hero,
.di-hero-el { position: relative; }
.di-hero-sound {
  position: absolute;
  z-index: 6;
  left: max(1rem, env(safe-area-inset-left));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem 0.7rem 0.85rem;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  background: rgba(6, 10, 18, 0.72);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  pointer-events: auto;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  animation: diSoundPulse 1.8s ease-in-out infinite;
}
.di-hero-sound:hover,
.di-hero-sound:focus-visible {
  transform: translateY(-1px);
  background: rgba(6, 10, 18, 0.88);
  outline: none;
  box-shadow: 0 14px 32px rgba(0,0,0,0.4), 0 0 0 2px rgba(var(--di-gold-rgb, 212,160,23), 0.55);
}
.di-hero-sound.is-on { animation: none; background: rgba(11, 61, 46, 0.85); }
.di-hero-sound__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 999px;
  background: rgba(var(--di-gold-rgb, 212,160,23), 0.95);
  color: #111;
  flex-shrink: 0;
}
.di-hero-sound.is-on .di-hero-sound__off,
.di-hero-sound.is-muted .di-hero-sound__on,
.di-hero-sound.is-on .di-hero-sound__label--off,
.di-hero-sound.is-muted .di-hero-sound__label--on { display: none; }
.di-hero-sound.is-on .di-hero-sound__on,
.di-hero-sound.is-muted .di-hero-sound__off,
.di-hero-sound.is-on .di-hero-sound__label--on,
.di-hero-sound.is-muted .di-hero-sound__label--off { display: inline; }
@keyframes diSoundPulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(0,0,0,0.35), 0 0 0 0 rgba(var(--di-gold-rgb, 212,160,23), 0.45); }
  50% { box-shadow: 0 10px 28px rgba(0,0,0,0.35), 0 0 0 10px rgba(var(--di-gold-rgb, 212,160,23), 0); }
}
@media (max-width: 767px) {
  .di-hero-sound {
    left: 50%;
    bottom: max(0.85rem, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    padding: 0.78rem 1.1rem 0.78rem 0.9rem;
    font-size: 0.9rem;
  }
  .di-hero-sound:hover,
  .di-hero-sound:focus-visible { transform: translateX(-50%) translateY(-1px); }
}
/* Keep Elementor content above the sound button layout */
.di-hero-el > .elementor-container { z-index: 2; }

/* ==========================================================================
   v2.4.9 — Theme logo + Elementor header/footer parts
   ========================================================================== */
.di-footer__logo-img,
.di-footer__logo-link img { display: block; max-height: 84px; height: 84px; width: auto; }
.di-elementor-part--header {
  position: relative;
  z-index: 40;
  background: #fff;
  box-shadow: 0 8px 24px rgba(11,17,29,0.08);
}
.di-elementor-part--header .di-el-header-logo img,
.di-elementor-part--header .elementor-widget-image img {
  max-height: 72px; width: auto; height: auto;
}
.di-elementor-part--header .di-nav--el .di-nav__list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.15rem 1.1rem;
  list-style: none; margin: 0; padding: 0;
}
.di-elementor-part--header .di-nav--el .di-nav__list a {
  color: var(--di-text, #0B111D); text-decoration: none; font-weight: 600; font-size: 0.92rem;
}
.di-elementor-part--header .di-nav--el .di-nav__head,
.di-elementor-part--header .di-nav--el .di-nav__mobile-cta,
.di-elementor-part--header .di-nav--el .di-nav__close { display: none; }
.di-elementor-part--footer .di-nav--el .di-nav__list {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem;
}
.di-elementor-part--footer .di-nav--el .di-nav__list a { color: rgba(255,255,255,0.78); text-decoration: none; }
.di-elementor-part--footer .di-nav--el .di-nav__head,
.di-elementor-part--footer .di-nav--el .di-nav__mobile-cta,
.di-elementor-part--footer .di-nav--el .di-nav__close { display: none; }
.di-el-footer-logo img {
  background: #fff; border-radius: 16px; padding: 0.45rem 0.55rem;
  max-height: 84px; width: auto;
}
@media (max-width: 767px) {
  .di-elementor-part--header .di-nav--el { display: none; }
}

/* ==========================================================================
   v2.5.0 — Mobile hero video full-bleed (no hard cut)
   ========================================================================== */
.di-hero-el--video .elementor-background-video-container::before,
.di-hero-el--video .elementor-background-video-container::after {
  display: none !important;
}
/* Fallback poster must also cover the full section (no band above video) */
.di-hero-el--video {
  background-size: cover !important;
  background-position: center center !important;
}
.di-hero-el--video .elementor-background-video-container {
  background-size: cover !important;
  background-position: center center !important;
}
@media (max-width: 767px) {
  .di-hero--video .di-hero__video {
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .di-hero--video .di-hero__pattern {
    /* Uniform veil — avoids a solid top band looking like a cut */
    background-image: linear-gradient(
      180deg,
      rgba(6,10,18,0.62) 0%,
      rgba(6,10,18,0.42) 40%,
      rgba(11,61,46,0.38) 100%
    );
  }
}

/* ==========================================================================
   v2.5.9 — Namaz card UI (compact height for hero)
   ========================================================================== */
.di-salah {
  --di-salah-gold: #e0b13a;
  --di-salah-line: rgba(255,255,255,0.1);
  --di-salah-muted: rgba(255,255,255,0.58);
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding: 0.7rem 0.8rem 0.75rem;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(16,22,36,0.96), rgba(8,12,20,0.94));
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 48px rgba(0,0,0,0.38);
  color: #fff;
  font-family: var(--di-font-body, system-ui, sans-serif);
  box-sizing: border-box;
  line-height: 1.25;
}
.di-salah *,
.di-salah *::before,
.di-salah *::after { box-sizing: border-box; }

.di-salah__nav {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}
.di-salah__arrow {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.75);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.di-salah__arrow svg { width: 14px; height: 14px; }
.di-salah__arrow:disabled { opacity: 0.35; cursor: default; }
.di-salah__dates { text-align: center; min-width: 0; }
.di-salah__greg {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 650;
  color: #fff;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.di-salah__hijri {
  margin: 0.1rem 0 0;
  font-size: 0.7rem;
  color: var(--di-salah-gold);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.di-salah__next {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(224,177,58,0.35);
  background: rgba(0,0,0,0.28);
  margin-bottom: 0.45rem;
}
.di-salah__next-icon {
  color: var(--di-salah-gold);
  display: inline-flex;
  flex-shrink: 0;
}
.di-salah__next-icon svg { width: 13px; height: 13px; }
.di-salah__next-text {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.3;
  color: rgba(255,255,255,0.88);
}
.di-salah__next-text strong {
  color: var(--di-salah-gold);
  font-weight: 700;
}

.di-salah__alert {
  border: 1px solid rgba(180, 55, 55, 0.55);
  background: rgba(90, 18, 22, 0.45);
  border-radius: 10px;
  padding: 0.4rem 0.55rem;
  margin-bottom: 0.45rem;
}
.di-salah__alert strong {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e57373;
  margin-bottom: 0.12rem;
}
.di-salah__alert p {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.3;
}

.di-salah__sun {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  margin-bottom: 0.35rem;
  padding: 0.15rem 0 0.4rem;
  border-bottom: 1px solid var(--di-salah-line);
}
.di-salah__sun-item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.4rem;
  align-items: center;
  text-align: left;
  position: relative;
  padding: 0 0.35rem;
}
.di-salah__sun-item:first-child::after {
  content: "";
  position: absolute;
  right: 0;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: var(--di-salah-line);
}
.di-salah__sun-icon {
  grid-row: 1 / span 2;
  color: var(--di-salah-gold);
  display: inline-flex;
}
.di-salah__sun-icon svg { width: 15px; height: 15px; }
.di-salah__sun-time {
  font-size: 0.88rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.di-salah__sun-label {
  font-size: 0.62rem;
  color: var(--di-salah-muted);
  line-height: 1.1;
}

.di-salah__table {
  width: 100%;
  border-collapse: collapse;
}
.di-salah__table th {
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(224,177,58,0.75);
  padding: 0.2rem 0.25rem 0.3rem;
  text-align: left;
  border-bottom: 1px solid var(--di-salah-line);
}
.di-salah__table th:nth-child(2),
.di-salah__table th:nth-child(3),
.di-salah__table td:nth-child(2),
.di-salah__table td:nth-child(3) {
  text-align: right;
}
.di-salah__table td {
  padding: 0.38rem 0.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  vertical-align: middle;
  font-size: 0.82rem;
}
.di-salah__table tr:last-child td { border-bottom: 0; }
.di-salah__table tr.is-next td {
  background: linear-gradient(90deg, rgba(224,177,58,0.22), rgba(224,177,58,0.08));
}
.di-salah__table tr.is-next .di-salah__plabel,
.di-salah__table tr.is-next .di-salah__iqamah {
  color: var(--di-salah-gold);
}
.di-salah__table tr.is-next .di-salah__picon {
  filter: drop-shadow(0 0 4px rgba(224,177,58,0.55));
}
.di-salah__next-badge {
  display: none;
  margin-left: 0.2rem;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--di-salah-gold);
  color: #0b1220;
  line-height: 1.2;
}
.di-salah__table tr.is-next .di-salah__next-badge {
  display: inline-block;
}
.di-salah__name {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 650;
  color: #fff;
  flex-wrap: wrap;
}
.di-salah__picon {
  color: var(--di-salah-gold);
  display: inline-flex;
  opacity: 0.9;
}
.di-salah__picon svg { width: 13px; height: 13px; }
.di-salah__adhan {
  color: rgba(255,255,255,0.82);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 0.8rem;
}
.di-salah__iqamah {
  color: #fff;
  font-weight: 800;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.di-salah__jumuah { margin-top: 0.45rem; }
.di-salah__jumuah-title {
  margin: 0 0 0.3rem;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--di-salah-gold);
}
.di-salah__jumuah-title::before {
  content: "•";
  margin-right: 0.3rem;
}
.di-salah__jumuah-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.3rem;
}
.di-salah__jumuah-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 9px;
  padding: 0.4rem 0.25rem;
  text-align: center;
}
.di-salah__jumuah-card strong {
  display: block;
  color: var(--di-salah-gold);
  font-size: 0.8rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.05rem;
}
.di-salah__jumuah-card span {
  font-size: 0.62rem;
  color: var(--di-salah-muted);
}
.di-salah__jumuah-grid:has(.di-salah__jumuah-card:nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.di-salah__jumuah-grid:has(.di-salah__jumuah-card:only-child) {
  grid-template-columns: 1fr;
}

.di-salah__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.45rem;
}
.di-salah__download {
  color: var(--di-salah-gold);
  font-size: 0.7rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.di-salah__download:hover { color: #f0c75a; }

/* Hero: keep card aligned with left copy height */
.di-hero-el .di-salah,
.di-hero .di-salah,
.elementor-section .di-salah,
.di-main--home .di-salah {
  width: min(100%, 340px);
  max-height: min(78vh, 520px);
  overflow: auto;
  scrollbar-width: thin;
  align-self: center;
}
.di-hero-el .di-salah__jumuah,
.di-hero .di-salah__jumuah,
.elementor-section .di-salah__jumuah,
.di-main--home .di-salah__jumuah {
  margin-top: 0.35rem;
}
.di-hero-el .di-salah__footer,
.di-hero .di-salah__footer,
.elementor-section .di-salah__footer,
.di-main--home .di-salah__footer {
  margin-top: 0.35rem;
}

@media (max-width: 900px) {
  .di-salah {
    max-width: 100%;
    width: 100%;
  }
  .di-hero-el .di-salah,
  .di-hero .di-salah,
  .elementor-section .di-salah,
  .di-main--home .di-salah {
    max-height: none;
    width: min(100%, 380px);
  }
}

@media (max-width: 420px) {
  .di-salah { padding: 0.65rem 0.7rem 0.7rem; border-radius: 16px; }
  .di-salah__greg { font-size: 0.78rem; }
  .di-salah__table td { font-size: 0.78rem; padding: 0.34rem 0.2rem; }
  .di-salah__iqamah { font-size: 0.84rem; }
  .di-salah__next-text { font-size: 0.64rem; }
}


/* ==========================================================================
   v2.5.12 — Friday times from Customizer (website sections + AI)
   ========================================================================== */
.di-friday-times {
  width: 100%;
  margin: 1.25rem auto 0;
  max-width: 920px;
}
.di-friday-times__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.di-friday-times__item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 1.15rem 1rem;
  text-align: center;
  color: #fff;
}
.di-friday-times__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--di-gold, #d4a017);
  margin-bottom: 0.45rem;
}
.di-friday-times__time {
  display: block;
  font-family: var(--di-font-heading, Georgia, serif);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 0.35rem;
}
.di-friday-times__note {
  display: block;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.4;
}
.di-sec-dark .di-friday-times__item,
.elementor-section.di-sec-dark .di-friday-times__item {
  background: rgba(0,0,0,0.18);
}
@media (max-width: 767px) {
  .di-friday-times__list {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .di-friday-times__item { padding: 0.95rem 0.85rem; }
}
