/* Muslim Teachings Academy v0.3.1.
 * AR, FR, DE, IT only: a visual cover with no headline, paragraph, or CTA
 * overlay. Existing editable text appears in a separate section BELOW.
 * English cover is deliberately unchanged.
 */
.mta-home-v029--native .mta-cover-only-v031 {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  display: block;
  width: min(1370px, calc(100% - 6.8vw));
  height: clamp(340px, 37vw, 530px);
  margin: 24px auto 91px;
  padding: 0;
  border: 0;
  border-radius: 31px;
  background: radial-gradient(ellipse at 88% 27%, #d9efff 0%, #f5fbff 59%, #eaf7ff 100%);
  box-shadow: none;
}
.mta-home-v029--native .mta-cover-only-v031__photo {
  position: absolute;
  inset: 0 auto 0 0;
  width: 52%;
  border-radius: 31px 0 0 31px;
  background: #e4f2fa url('../images/home-child-v030.webp') center 39% / cover no-repeat;
  z-index: 0;
}
.mta-home-v029--native .mta-cover-only-v031__waves {
  position: absolute;
  inset: auto 0 0 0;
  display: block;
  width: 100%;
  height: 29%;
  border-radius: 0 0 31px 31px;
  background: url('/wp-content/uploads/2026/10/muslim-academy-hero.webp') center bottom / 100% auto no-repeat;
  pointer-events: none;
  z-index: 1;
}
.mta-home-v029--native .mta-cover-only-v031__logo {
  position: absolute;
  right: 5.6%;
  bottom: -58px;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 208px;
  height: 208px;
  padding: 11px;
  border: 5px solid #fff;
  outline: 2px solid #75cfff;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 13px 27px rgba(12, 53, 100, .11);
  z-index: 3;
}
.mta-home-v029--native .mta-cover-only-v031__logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}
/* The article intro and booking button are now in normal page flow. */
.mta-home-v029--native .mta-front-complete__editorial { padding-top: 0; }
.mta-home-v029--native .mta-editorial > .mta-editorial-intro {
  position: static;
  isolation: auto;
  display: block;
  box-sizing: border-box;
  grid-column: 1 / -1;
  width: min(100%, 930px);
  max-width: 930px;
  min-height: 0;
  margin: 0 auto 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  text-align: center;
}
.mta-home-v029--native .mta-editorial-intro::before,
.mta-home-v029--native .mta-editorial-intro::after { content: none !important; display: none !important; }
.mta-home-v029--native .mta-editorial-intro > *:not(.mta-mirror-logo) {
  display: block;
  position: static;
  z-index: auto;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  text-align: center;
}
.mta-home-v029--native .mta-editorial-intro .mta-eyebrow {
  justify-content: center;
  margin: 0 auto 15px !important;
}
.mta-home-v029--native .mta-editorial-intro h1 {
  max-width: 880px;
  font-size: clamp(31px, 3vw, 45px);
  line-height: 1.35;
  margin: 0 auto 18px;
}
.mta-home-v029--native .mta-editorial-intro .mta-lead {
  max-width: 805px;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.86;
  margin: 0 auto;
}
.mta-home-v029--native .mta-home-hero-action { margin: 25px auto 0 !important; }
.mta-home-v029--native .mta-home-hero-action a { text-align: center; }
@media (max-width: 900px) {
  .mta-home-v029--native .mta-cover-only-v031 { height: 375px; }
  .mta-home-v029--native .mta-cover-only-v031__logo {
    width: 158px;
    height: 158px;
    bottom: -43px;
  }
}
@media (max-width: 720px) {
  .mta-home-v029--native .mta-cover-only-v031 {
    width: calc(100% - 30px);
    height: clamp(260px, 77vw, 350px);
    margin: 17px auto 70px;
    border-radius: 18px;
  }
  .mta-home-v029--native .mta-cover-only-v031__photo {
    width: 100%;
    border-radius: 18px;
    background-position: center 28%;
  }
  .mta-home-v029--native .mta-cover-only-v031__waves {
    height: 84px;
    border-radius: 0 0 18px 18px;
    background-size: auto 240px;
    background-position: center bottom;
  }
  .mta-home-v029--native .mta-cover-only-v031__logo {
    width: 113px;
    height: 113px;
    right: 17px;
    bottom: -34px;
    padding: 5px;
    border-width: 3px;
  }
  .mta-home-v029--native .mta-editorial > .mta-editorial-intro {
    width: 100%;
    margin-bottom: 30px;
    padding: 0;
    text-align: center;
  }
  .mta-home-v029--native .mta-editorial-intro h1 {
    font-size: clamp(28px, 7vw, 36px);
    line-height: 1.42;
  }
  .mta-home-v029--native .mta-editorial-intro .mta-lead { font-size: 15.5px; }
}

/* Remove empty right side of homepage cover */
@media (min-width: 721px) {
  .mta-home-v029--native .mta-cover-only-v031 {
    width: min(760px, calc(100% - 40px)) !important;
    background: none !important;
  }

  .mta-home-v029--native .mta-cover-only-v031__photo {
    width: 100% !important;
    border-radius: 31px !important;
  }

  .mta-home-v029--native .mta-cover-only-v031__logo {
    right: -24px;
    width: 166px;
    height: 166px;
  }
}

/* MTA CLEAN WIDE COVER FIX */

/* Full-width photographic cover */
@media (min-width: 721px) {
  .mta-home-v029--native .mta-cover-only-v031 {
    width: min(1370px, calc(100% - 6.8vw)) !important;
    height: clamp(380px, 37vw, 530px) !important;
    background: none !important;
  }

  .mta-home-v029--native .mta-cover-only-v031__photo {
    inset: 0 !important;
    width: 100% !important;
    background-size: cover !important;
    background-position: center 40% !important;
    border-radius: 31px !important;
  }

  .mta-home-v029--native .mta-cover-only-v031__logo {
    right: 5.6% !important;
    width: 208px !important;
    height: 208px !important;
  }
}

/* Blue waves without embedded English text */
.mta-home-v029--native .mta-cover-only-v031__waves {
  background: linear-gradient(
    110deg,
    #0963bb 0%,
    #159be8 52%,
    #0454ac 100%
  ) !important;
  height: 26%;
  border-radius: 45% 16% 31px 31px / 35% 25% 31px 31px;
  overflow: hidden;
}

.mta-home-v029--native .mta-cover-only-v031__waves::before {
  content: "";
  position: absolute;
  left: -8%;
  top: -48%;
  width: 116%;
  height: 75%;
  border-radius: 50%;
  background: rgba(121, 213, 255, .5);
  transform: rotate(-2deg);
}

@media (max-width: 720px) {
  .mta-home-v029--native .mta-cover-only-v031__waves {
    height: 23%;
    border-radius: 35% 15% 18px 18px / 30% 20% 18px 18px;
  }
}

/* MTA FULL WIDTH, SAME ENGLISH COMPOSITION v0.3.2
   This text-free cover is derived from the actual original English banner.
   No duplicate photographs, flat blue replacement bands, or overlay boxes. */
.mta-home-v029--native .mta-cover-only-v031 {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  aspect-ratio: 1904 / 826 !important;
  margin: 0 auto 103px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 28px !important;
  background: #eaf6ff url('../images/mta-textfree-full-hero-v032.webp') center center / 100% 100% no-repeat !important;
  overflow: visible !important;
}
/* Retire both the cropped-boy layer and the old strip cut from the English banner. */
.mta-home-v029--native .mta-cover-only-v031__photo,
.mta-home-v029--native .mta-cover-only-v031__waves {
  display: none !important;
}
.mta-home-v029--native .mta-cover-only-v031__logo {
  right: 5.6% !important;
  bottom: -58px !important;
  width: clamp(142px, 14vw, 218px) !important;
  height: clamp(142px, 14vw, 218px) !important;
}
@media (max-width: 720px) {
  .mta-home-v029--native .mta-cover-only-v031 {
    width: calc(100% - 24px) !important;
    max-width: none !important;
    height: clamp(245px, 68vw, 320px) !important;
    aspect-ratio: auto !important;
    margin: 12px auto 75px !important;
    border-radius: 18px !important;
    background-size: cover !important;
    background-position: 21% center !important;
  }
  .mta-home-v029--native .mta-cover-only-v031__logo {
    right: 12px !important;
    bottom: -32px !important;
    width: 108px !important;
    height: 108px !important;
  }
}






/* MTA ACTUAL HERO HEIGHT V033 */
@media (min-width: 721px) {
  .mta-home-v029--native .mta-cover-only-v031 {
    height: auto !important;
    aspect-ratio: 1904 / 578.2 !important;
    background-size: cover !important;
    background-position: center 30% !important;
  }
}

@media (max-width: 720px) {
  .mta-home-v029--native .mta-cover-only-v031 {
    height: clamp(172px, 47.6vw, 224px) !important;
    aspect-ratio: auto !important;
    background-size: cover !important;
    background-position: 21% 30% !important;
  }
}

/* MTA SAME HERO ALL LANGUAGES */
body.home:not(.home-en) .mta-cover-only-v031,
body.home:not(.home-en) .mta-cover-only-v031__media,
body.home:not(.home-en) .mta-cover-only-v031__image-wrap{
  position:relative;
}

body.home:not(.home-en) .mta-cover-only-v031__image,
body.home:not(.home-en) .mta-cover-only-v031__media img{
  width:100%;
  height:auto;
  display:block;
  object-fit:cover;
  object-position:center center;
}

body.home:not(.home-en) .mta-cover-only-v031__overlay,
body.home:not(.home-en) .mta-cover-only-v031__panel,
body.home:not(.home-en) .mta-cover-only-v031__content,
body.home:not(.home-en) .mta-cover-only-v031__copy,
body.home:not(.home-en) .mta-cover-only-v031__text,
body.home:not(.home-en) .mta-cover-only-v031__title,
body.home:not(.home-en) .mta-cover-only-v031__desc,
body.home:not(.home-en) .mta-cover-only-v031__cta,
body.home:not(.home-en) .mta-cover-only-v031__hero-text,
body.home:not(.home-en) .mta-cover-only-v031__glass,
body.home:not(.home-en) .mta-cover-only-v031__blur,
body.home:not(.home-en) .mta-cover-only-v031__empty,
body.home:not(.home-en) .mta-cover-only-v031__box{
  display:none !important;
  visibility:hidden !important;
  opacity:0 !important;
  max-height:0 !important;
  overflow:hidden !important;
}

body.home:not(.home-en) .mta-cover-only-v031__media{
  background:none !important;
  box-shadow:none !important;
}

body.home:not(.home-en) .mta-cover-only-v031__media::before,
body.home:not(.home-en) .mta-cover-only-v031__media::after,
body.home:not(.home-en) .mta-cover-only-v031::before,
body.home:not(.home-en) .mta-cover-only-v031::after{
  content:none !important;
  display:none !important;
}

/* MTA ORIGINAL HERO ALL LANGUAGES */
.mta-home-v029--native .mta-cover-only-v031 {
  background-image: url('/wp-content/uploads/2026/10/muslim-academy-hero.webp') !important;
  background-size: cover !important;
  background-position: center center !important;
}

.mta-home-v029--native .mta-cover-only-v031__photo,
.mta-home-v029--native .mta-cover-only-v031__waves {
  display: none !important;
}



