/* SOURCE: maal-cards-refinement-v18.css */
/* MAAL HOME | official card refinement | 26 October 2026
 * Loaded after the original theme to keep the upgrade scoped and reversible.
 * Changes only homepage Projects cards and apartment-models listing cards.
 */

/* ==========================================================
   PROJECTS | a shorter, consistent card with an understated hover
   ========================================================== */
.project.project-parallax-jeddah.project-fixed-bg-section .project-grid.project-grid--jeddah {
  gap: clamp(14px, 1.5vw, 22px) !important;
  align-items: stretch !important;
}

.project.project-parallax-jeddah.project-fixed-bg-section .project-card,
.project.project-parallax-jeddah.project-fixed-bg-section .project-item.project-card {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  border: 1px solid #dce7f3 !important;
  border-top: 1px solid #dce7f3 !important;
  border-radius: 15px !important;
  background: #fff !important;
  box-shadow: 0 7px 23px rgba(2, 32, 86, .075) !important;
  overflow: hidden !important;
  will-change: auto !important;
  transition: transform .32s cubic-bezier(.2,.8,.2,1),
              box-shadow .32s ease, border-color .32s ease !important;
}

/* Remove earlier decorative overlays; image carries the only hover accent. */
.project.project-parallax-jeddah.project-fixed-bg-section .project-card::before,
.project.project-parallax-jeddah.project-fixed-bg-section .project-card::after {
  content: none !important;
  display: none !important;
}

.project.project-parallax-jeddah.project-fixed-bg-section .project-card:hover,
.project.project-parallax-jeddah.project-fixed-bg-section .project-card:focus-within {
  transform: translate3d(0, -3px, 0) !important;
  border-color: #b9d0e9 !important;
  box-shadow: 0 14px 30px rgba(2, 32, 86, .115) !important;
}

.project.project-parallax-jeddah.project-fixed-bg-section .project-card-photo,
.project.project-parallax-jeddah.project-fixed-bg-section .project-card .photo.project-card-photo {
  display: block !important;
  position: relative !important;
  height: clamp(180px, 18vw, 238px) !important;
  min-height: 0 !important;
  max-height: 238px !important;
  aspect-ratio: auto !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #edf3f9 !important;
  border-radius: 0 !important;
}

.project.project-parallax-jeddah.project-fixed-bg-section .project-card-photo a,
.project.project-parallax-jeddah.project-fixed-bg-section .project-card .photo.project-card-photo a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  background: transparent !important;
}

.project.project-parallax-jeddah.project-fixed-bg-section .project-card-photo img,
.project.project-parallax-jeddah.project-fixed-bg-section .project-item .photo.project-card-photo img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  max-width: 100% !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 0 !important;
  transform: scale(1) !important;
  filter: none !important;
  transition: transform .54s cubic-bezier(.2,.75,.22,1), filter .54s ease !important;
  will-change: auto !important;
}

/* Square or portrait poster artwork must not be cropped or lose text. */
.project.project-parallax-jeddah.project-fixed-bg-section .project-card-photo.mh-project-preserve-image img,
.project.project-parallax-jeddah.project-fixed-bg-section .project-item .photo.project-card-photo.mh-project-preserve-image img {
  object-fit: contain !important;
}

.project.project-parallax-jeddah.project-fixed-bg-section .project-card:hover .project-card-photo img,
.project.project-parallax-jeddah.project-fixed-bg-section .project-card-photo:focus-within img {
  transform: scale(1.022) !important;
  filter: saturate(1.035) contrast(1.01) !important;
}

/* A single gentle light pass on hover, not a flashing or looping effect. */
.project.project-parallax-jeddah.project-fixed-bg-section .project-card-photo::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  pointer-events: none !important;
  background: linear-gradient(105deg,
              transparent 38%, rgba(255, 255, 255, .14) 50%, transparent 62%) !important;
  box-shadow: none !important;
  transform: translateX(135%) !important;
  opacity: .8 !important;
  transition: transform .72s cubic-bezier(.2,.8,.2,1) !important;
}

.project.project-parallax-jeddah.project-fixed-bg-section .project-card:hover .project-card-photo::after,
.project.project-parallax-jeddah.project-fixed-bg-section .project-card-photo:focus-within::after {
  transform: translateX(-135%) !important;
}

.project.project-parallax-jeddah.project-fixed-bg-section .project-card-body,
.project.project-parallax-jeddah.project-fixed-bg-section .project-card .text.project-card-body {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  flex: 1 1 auto !important;
  height: auto !important;
  min-height: 0 !important;
  width: 100% !important;
  padding: 13px 16px 17px !important;
  background: #fff !important;
  text-align: right !important;
}

.project.project-parallax-jeddah.project-fixed-bg-section .project-card-body h3 {
  margin: 0 0 7px !important;
  font-size: clamp(16px, 1.12vw, 19px) !important;
  line-height: 1.55 !important;
  font-weight: 800 !important;
  text-align: right !important;
  color: #082b57 !important;
}

.project.project-parallax-jeddah.project-fixed-bg-section .project-card-body h3 a {
  color: inherit !important;
}

.project.project-parallax-jeddah.project-fixed-bg-section .project-card-body p {
  display: -webkit-box !important;
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: 3.5em !important;
  margin: 0 0 13px !important;
  color: #617086 !important;
  font-size: 13px !important;
  line-height: 1.75 !important;
  text-align: right !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.project.project-parallax-jeddah.project-fixed-bg-section .project-card-action,
.project.project-parallax-jeddah.project-fixed-bg-section .read-more.project-card-action {
  width: 100% !important;
  display: flex !important;
  justify-content: flex-start !important;
  margin: auto 0 0 !important;
}

.project.project-parallax-jeddah.project-fixed-bg-section .project-card-action a,
.project.project-parallax-jeddah.project-fixed-bg-section .read-more.project-card-action a {
  min-width: 112px !important;
  min-height: 37px !important;
  padding: 7px 16px !important;
  border-radius: 9px !important;
  border: 1px solid #d1dfef !important;
  box-shadow: none !important;
  background: #f4f8fd !important;
  color: #0c4d8d !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  transform: none !important;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease !important;
}

.project.project-parallax-jeddah.project-fixed-bg-section .project-card:hover .project-card-action a,
.project.project-parallax-jeddah.project-fixed-bg-section .project-card:focus-within .project-card-action a,
.project.project-parallax-jeddah.project-fixed-bg-section .project-card-action a:hover {
  background: #0b3e7a !important;
  border-color: #0b3e7a !important;
  color: #fff !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Legacy scroll-reveal has its own high-specificity hover overrides. */
body.mh-project-reveal-ready #projects .project-grid .project-item.mh-project-slide-card.mh-project-visible:hover,
body.mh-project-reveal-ready #projects .project-grid .project-item.mh-project-slide-card.is-visible:hover {
  transform: translate3d(0, -3px, 0) !important;
}

@media (max-width: 767.98px) {
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card-photo,
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card .photo.project-card-photo {
    height: clamp(194px, 42vw, 234px) !important;
    max-height: 234px !important;
  }
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card-body,
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card .text.project-card-body {
    padding: 12px 14px 16px !important;
  }
}

@media (max-width: 575.98px) {
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card,
  .project.project-parallax-jeddah.project-fixed-bg-section .project-item.project-card {
    max-width: 460px !important;
    border-radius: 14px !important;
  }
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card-photo,
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card .photo.project-card-photo {
    height: clamp(192px, 56vw, 244px) !important;
    max-height: 244px !important;
  }
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card-body h3 {
    margin-bottom: 7px !important;
    font-size: 18px !important;
  }
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card-body p {
    font-size: 13px !important;
    margin-bottom: 12px !important;
  }
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card-action a {
    min-width: 112px !important;
    min-height: 37px !important;
    font-size: 13px !important;
  }
}

/* ==========================================================
   APARTMENT MODELS | elegant moving strip like homepage Services
   Phone: 2 visible, tablet: 3, desktop: 4. No 3D flipping.
   ========================================================== */
.mh-models-scope.mh-models-marquee {
  min-height: 0 !important;
  width: 100% !important;
  overflow: hidden !important;
  color: #123351 !important;
  background: #f4f8fc !important;
  font-family: "Cairo", Tahoma, Arial, sans-serif !important;
}
.mh-models-scope.mh-models-marquee .apartment-models-section {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  padding: clamp(35px, 4vw, 58px) 0 clamp(32px, 3vw, 50px) !important;
  perspective: none !important;
  user-select: auto !important;
  background: linear-gradient(180deg, #f9fbfe, #eef4fa) !important;
}
.mh-models-scope.mh-models-marquee .apartment-models-section::before,
.mh-models-scope.mh-models-marquee .apartment-models-section::after {
  content: none !important;
  display: none !important;
}
.mh-models-scope.mh-models-marquee .hero-header {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  transform: none !important;
  display: grid !important;
  gap: 14px !important;
  width: min(1250px, calc(100% - 36px)) !important;
  max-width: 1250px !important;
  margin: 0 auto 20px !important;
  padding: 0 !important;
  pointer-events: auto !important;
}
.mh-models-scope.mh-models-marquee .hero-title-row {
  display: flex !important;
  gap: clamp(10px, 2vw, 22px) !important;
  align-items: center !important;
  justify-content: center !important;
}
.mh-models-scope.mh-models-marquee .hero-line {
  flex: 1 1 auto !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, #c8d8e9, transparent) !important;
}
.mh-models-scope.mh-models-marquee .hero-title {
  display: block !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 8px 9px !important;
  overflow: visible !important;
  border: 0 !important;
  border-bottom: 3px solid #1d72bd !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #082b57 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  font-size: clamp(22px, 2.3vw, 32px) !important;
  line-height: 1.5 !important;
  font-weight: 800 !important;
  text-align: center !important;
  white-space: normal !important;
  text-overflow: clip !important;
}
.mh-models-scope.mh-models-marquee .branch-tabs-shell {
  width: 100% !important;
  justify-content: center !important;
}
.mh-models-scope.mh-models-marquee .branch-tabs {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  max-width: 100% !important;
  gap: 6px !important;
  padding: 5px !important;
  background: #fff !important;
  border: 1px solid #e1eaf5 !important;
  border-radius: 12px !important;
  backdrop-filter: none !important;
  box-shadow: 0 3px 13px rgba(2, 32, 86, .045) !important;
}
.mh-models-scope.mh-models-marquee .branch-tab {
  min-height: 36px !important;
  padding: 8px 13px !important;
  border-radius: 8px !important;
  color: #365777 !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  transition: color .25s ease, background-color .25s ease !important;
}
.mh-models-scope.mh-models-marquee .branch-tab:hover,
.mh-models-scope.mh-models-marquee .branch-tab:focus-visible {
  color: #0b3e7a !important;
  background: #edf5fc !important;
}
.mh-models-scope.mh-models-marquee .branch-tab.is-active,
.mh-models-scope.mh-models-marquee .branch-tab.is-active:hover {
  color: #fff !important;
  border-color: #0b3e7a !important;
  background: #0b3e7a !important;
  box-shadow: none !important;
}
.mh-models-scope.mh-models-marquee .branch-count {
  min-width: 19px !important;
  height: 19px !important;
  padding: 0 4px !important;
  color: inherit !important;
  background: rgba(45, 102, 155, .11) !important;
  font-size: 10px !important;
}
.mh-models-scope.mh-models-marquee .branch-tab.is-active .branch-count {
  background: rgba(255,255,255,.17) !important;
}

/* Two seamless groups animate on the compositor, just as Services does.
   cqw measures the actual stage width even inside a project detail page. */
.mh-models-scope.mh-models-marquee .mh-model-grid-stage {
  --mh-model-gap: 18px;
  --mh-model-card-width: calc((100cqw - 54px) / 4);
  container-type: inline-size;
  position: relative;
  width: min(1250px, calc(100% - 36px));
  margin: 0 auto;
  padding: 11px 0 23px;
  overflow: hidden;
  direction: ltr;
  touch-action: pan-y;
}
.mh-models-scope.mh-models-marquee .mh-model-grid {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  width: max-content;
  min-height: 0;
  height: auto;
  transform: translate3d(0,0,0);
  animation-play-state: paused;
}
.mh-models-scope.mh-models-marquee .mh-model-grid.is-looping {
  animation: mh-models-seamless var(--mh-model-duration, 42s) linear infinite;
  animation-play-state: paused;
  will-change: transform;
}
@keyframes mh-models-seamless {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(-50%,0,0); }
}
.mh-models-scope.mh-models-marquee .mh-model-grid.is-single {
  margin-inline: auto;
}
.mh-models-scope.mh-models-marquee .mh-model-group {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: var(--mh-model-gap);
  padding-inline-end: var(--mh-model-gap);
}
.mh-models-scope.mh-models-marquee .mh-model-card {
  display: block;
  flex: 0 0 var(--mh-model-card-width);
  width: var(--mh-model-card-width);
  min-width: 0;
  align-self: stretch;
  overflow: hidden;
  direction: rtl;
  border: 1px solid #dce7f3;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(2,32,86,.065);
  transition: transform .32s cubic-bezier(.2,.8,.2,1), box-shadow .32s ease, border-color .32s ease;
}
.mh-models-scope.mh-models-marquee .mh-model-card:hover,
.mh-models-scope.mh-models-marquee .mh-model-card:focus-within {
  transform: translateY(-4px);
  border-color: #b4cde7;
  box-shadow: 0 13px 27px rgba(2,32,86,.11);
}
.mh-models-scope.mh-models-marquee .mh-model-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.mh-models-scope.mh-models-marquee .mh-model-card-link:focus-visible {
  outline: 2px solid #167dcc;
  outline-offset: -2px;
  border-radius: inherit;
}
.mh-models-scope.mh-models-marquee .mh-model-card-media {
  position: relative;
  width: 100%;
  height: clamp(178px, 17vw, 218px);
  overflow: hidden;
  background: #edf3f9;
}
.mh-models-scope.mh-models-marquee .mh-model-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .5s ease;
}
.mh-models-scope.mh-models-marquee .mh-model-card:hover .mh-model-card-media img {
  transform: scale(1.024);
  filter: saturate(1.03);
}
.mh-models-scope.mh-models-marquee .mh-model-card-branch {
  position: absolute;
  top: 10px;
  right: 10px;
  max-width: calc(100% - 20px);
  padding: 5px 9px;
  overflow: hidden;
  border-radius: 7px;
  color: #fff;
  background: rgba(5,37,79,.91);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mh-models-scope.mh-models-marquee .mh-model-card-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  padding: 14px 15px 17px;
  text-align: right;
}
.mh-models-scope.mh-models-marquee .mh-model-card-content h3 {
  margin: 0 0 7px;
  color: #082b57;
  font-size: clamp(15px, 1.14vw, 18px);
  line-height: 1.6;
  font-weight: 800;
}
.mh-models-scope.mh-models-marquee .mh-model-card-content p {
  display: -webkit-box;
  margin: 0 0 12px;
  overflow: hidden;
  color: #65758a;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.75;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.mh-models-scope.mh-models-marquee .mh-model-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  align-self: flex-start;
  margin-top: auto;
  padding: 8px 12px;
  border: 1px solid #d1dfef;
  border-radius: 9px;
  background: #f4f8fd;
  color: #0c4d8d;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 800;
  transition: background-color .26s ease, color .26s ease, border-color .26s ease;
}
.mh-models-scope.mh-models-marquee .mh-model-card:hover .mh-model-card-action,
.mh-models-scope.mh-models-marquee .mh-model-card:focus-within .mh-model-card-action {
  color: #fff;
  border-color: #0b3e7a;
  background: #0b3e7a;
}
.mh-models-scope.mh-models-marquee .mh-model-card-action span {
  font-size: 15px;
  font-weight: 700;
}
.mh-models-scope.mh-models-marquee .empty-state {
  position: relative;
  min-height: 170px;
  padding: 12px;
}
@media (max-width: 1100px) {
  .mh-models-scope.mh-models-marquee .mh-model-grid-stage {
    --mh-model-gap: 16px;
    --mh-model-card-width: calc((100cqw - 32px) / 3);
  }
  .mh-models-scope.mh-models-marquee .mh-model-card-media {
    height: clamp(150px, 20vw, 205px);
  }
}
@media (max-width: 700px) {
  .mh-models-scope.mh-models-marquee .mh-model-grid-stage {
    --mh-model-gap: 12px;
    --mh-model-card-width: calc((100cqw - 12px) / 2);
  }
  .mh-models-scope.mh-models-marquee .mh-model-card-media {
    height: clamp(130px, 28vw, 188px);
  }
  .mh-models-scope.mh-models-marquee .mh-model-card-content {
    padding: 11px 12px 14px;
  }
  .mh-models-scope.mh-models-marquee .mh-model-card-content h3 {
    font-size: 14px;
    margin-bottom: 6px;
  }
  .mh-models-scope.mh-models-marquee .mh-model-card-content p {
    font-size: 11px;
    line-height: 1.6;
    margin-bottom: 10px;
  }
  .mh-models-scope.mh-models-marquee .mh-model-card-action {
    font-size: 11px;
    padding: 7px 9px;
  }
}
@media (max-width: 575.98px) {
  .mh-models-scope.mh-models-marquee .apartment-models-section {
    padding: 30px 0 33px !important;
  }
  .mh-models-scope.mh-models-marquee .hero-header,
  .mh-models-scope.mh-models-marquee .mh-model-grid-stage {
    width: calc(100% - 28px) !important;
  }
  .mh-models-scope.mh-models-marquee .hero-header {
    gap: 11px !important;
    margin-bottom: 17px !important;
  }
  .mh-models-scope.mh-models-marquee .hero-title {
    font-size: 23px !important;
    padding: 0 6px 7px !important;
  }
  .mh-models-scope.mh-models-marquee .branch-tabs {
    justify-content: flex-start !important;
  }
  .mh-models-scope.mh-models-marquee .mh-model-card-branch {
    right: 7px;
    top: 7px;
    padding: 4px 6px;
    font-size: 9px;
  }
  .mh-models-scope.mh-models-marquee .mh-model-card-content p {
    display: none;
  }
  .mh-models-scope.mh-models-marquee .mh-model-card-content h3 {
    min-height: 2.9em;
  }
  .mh-models-scope.mh-models-marquee .mh-model-card-action {
    margin-top: 5px;
  }
}
/* Compatibility for browsers without CSS container query length units. */
@supports not (width: 1cqw) {
  .mh-models-scope.mh-models-marquee .mh-model-grid-stage {
    --mh-model-card-width: calc((min(1250px, 100vw - 36px) - 54px) / 4);
  }
  @media (max-width: 1100px) {
    .mh-models-scope.mh-models-marquee .mh-model-grid-stage {
      --mh-model-card-width: calc((100vw - 68px) / 3);
    }
  }
  @media (max-width: 700px) {
    .mh-models-scope.mh-models-marquee .mh-model-grid-stage {
      --mh-model-card-width: calc((100vw - 40px) / 2);
    }
  }
}
@media (hover: hover) {
  .mh-models-scope.mh-models-marquee .mh-model-grid-stage:hover .mh-model-grid.is-looping {
    animation-play-state: paused !important;
  }
}
@media (hover: none) {
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card:hover,
  .mh-models-scope.mh-models-marquee .mh-model-card:hover {
    transform: none !important;
  }
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card:hover .project-card-photo img,
  .mh-models-scope.mh-models-marquee .mh-model-card:hover .mh-model-card-media img {
    transform: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card,
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card-photo img,
  .mh-models-scope.mh-models-marquee .mh-model-card,
  .mh-models-scope.mh-models-marquee .mh-model-card-media img {
    transition: none !important;
    transform: none !important;
  }
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card-photo::after {
    display: none !important;
  }
  .mh-models-scope.mh-models-marquee .mh-model-grid {
    animation: none !important;
    will-change: auto !important;
  }
  .mh-models-scope.mh-models-marquee .mh-model-grid-stage {
    overflow-x: auto;
    touch-action: auto;
  }
  .mh-models-scope.mh-models-marquee .mh-model-group-copy,
  .mh-models-scope.mh-models-marquee .mh-model-card[data-mh-copy] {
    display: none !important;
  }
}


/* ==========================================================
   2026-10-26 | user follow-up
   Match reference image ratios more closely.
   - Apartment models: portrait poster ratio like supplied sample
   - Projects: square poster ratio like supplied sample
   ========================================================== */

/* Projects reference: square artwork such as "مبنى 101 النسيم" */
.project.project-parallax-jeddah.project-fixed-bg-section .project-card-photo,
.project.project-parallax-jeddah.project-fixed-bg-section .project-card .photo.project-card-photo {
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 1 / 1 !important;
  display: grid !important;
  place-items: center !important;
  background: #f4f8fd !important;
}

.project.project-parallax-jeddah.project-fixed-bg-section .project-card-photo a,
.project.project-parallax-jeddah.project-fixed-bg-section .project-card .photo.project-card-photo a {
  display: grid !important;
  place-items: center !important;
}

.project.project-parallax-jeddah.project-fixed-bg-section .project-card-photo img,
.project.project-parallax-jeddah.project-fixed-bg-section .project-item .photo.project-card-photo img {
  object-fit: contain !important;
  object-position: center center !important;
  width: 100% !important;
  height: 100% !important;
  background: #f4f8fd !important;
}

.project.project-parallax-jeddah.project-fixed-bg-section .project-card-body,
.project.project-parallax-jeddah.project-fixed-bg-section .project-card .text.project-card-body {
  padding: 15px 17px 18px !important;
}

/* Apartment models reference: portrait poster artwork like supplied sample */
.mh-models-scope.mh-models-marquee .mh-model-grid-stage {
  padding-top: 14px !important;
  padding-bottom: 26px !important;
}

.mh-models-scope.mh-models-marquee .mh-model-card {
  border-radius: 17px;
}

.mh-models-scope.mh-models-marquee .mh-model-card-media {
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 941 / 1672 !important;
  display: grid !important;
  place-items: center !important;
  background: #eef4fa !important;
}

.mh-models-scope.mh-models-marquee .mh-model-card-media img {
  object-fit: contain !important;
  object-position: center center !important;
  width: 100% !important;
  height: 100% !important;
  background: #eef4fa !important;
}

.mh-models-scope.mh-models-marquee .mh-model-card-content {
  padding: 14px 15px 18px !important;
}

.mh-models-scope.mh-models-marquee .mh-model-card-content h3 {
  min-height: 2.9em;
}

@media (max-width: 1100px) {
  .mh-models-scope.mh-models-marquee .mh-model-grid-stage {
    --mh-model-gap: 16px;
    --mh-model-card-width: calc((100cqw - 32px) / 3);
  }
}

@media (max-width: 700px) {
  .mh-models-scope.mh-models-marquee .mh-model-grid-stage {
    --mh-model-gap: 12px;
    --mh-model-card-width: calc((100cqw - 12px) / 2);
  }

  .mh-models-scope.mh-models-marquee .mh-model-card-content {
    padding: 10px 10px 13px !important;
  }

  .mh-models-scope.mh-models-marquee .mh-model-card-content h3 {
    font-size: 13px !important;
    line-height: 1.55 !important;
    min-height: 3em;
  }

  .mh-models-scope.mh-models-marquee .mh-model-card-content p {
    font-size: 10.5px !important;
    line-height: 1.55 !important;
  }

  .mh-models-scope.mh-models-marquee .mh-model-card-action {
    font-size: 10.5px !important;
    padding: 6px 8px !important;
  }
}

@media (max-width: 575.98px) {
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card,
  .project.project-parallax-jeddah.project-fixed-bg-section .project-item.project-card {
    max-width: 520px !important;
  }

  .mh-models-scope.mh-models-marquee .hero-header,
  .mh-models-scope.mh-models-marquee .mh-model-grid-stage {
    width: calc(100% - 22px) !important;
  }

  .mh-models-scope.mh-models-marquee .mh-model-card-branch {
    font-size: 8.5px !important;
  }
}


/* 2026-10-26 final balancing pass: project cards should keep stronger height presence */
.project.project-parallax-jeddah.project-fixed-bg-section .project-card-body,
.project.project-parallax-jeddah.project-fixed-bg-section .project-card .text.project-card-body {
  min-height: 166px !important;
}

.project.project-parallax-jeddah.project-fixed-bg-section .project-card-body h3 {
  min-height: 3.1em !important;
}

.project.project-parallax-jeddah.project-fixed-bg-section .project-card-body p {
  max-height: 5.25em !important;
  -webkit-line-clamp: 3 !important;
}

@media (max-width: 991.98px) {
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card-body,
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card .text.project-card-body {
    min-height: 154px !important;
  }
}

@media (max-width: 575.98px) {
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card-body,
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card .text.project-card-body {
    min-height: 148px !important;
  }
}

/* SOURCE: maal-ui-filters-projects-v20.css */
/*
 * MAAL HOME | Projects height & apartment-model filters V20
 * Scoped overrides after V19. Does not replace the site theme or database content.
 */

/* === Our Projects: retain full square poster artwork, but stop enforcing a tall square card. === */
.project.project-parallax-jeddah.project-fixed-bg-section .project-grid.project-grid--jeddah {
  gap: clamp(12px, 1.35vw, 19px) !important;
  align-items: stretch !important;
}
.project.project-parallax-jeddah.project-fixed-bg-section .project-card,
.project.project-parallax-jeddah.project-fixed-bg-section .project-item.project-card {
  display: flex !important;
  flex-direction: column !important;
  align-self: stretch !important;
  height: auto !important;
  min-height: 0 !important;
}
.project.project-parallax-jeddah.project-fixed-bg-section .project-card-photo,
.project.project-parallax-jeddah.project-fixed-bg-section .project-card .photo.project-card-photo {
  flex: 0 0 auto !important;
  width: 100% !important;
  height: clamp(170px, 16vw, 210px) !important;
  min-height: 0 !important;
  max-height: 210px !important;
  aspect-ratio: auto !important;
  padding: 5px !important;
  margin: 0 !important;
  background: #f6f9fd !important;
  overflow: hidden !important;
}
.project.project-parallax-jeddah.project-fixed-bg-section .project-card-photo a,
.project.project-parallax-jeddah.project-fixed-bg-section .project-card .photo.project-card-photo a {
  display: grid !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  place-items: center !important;
  overflow: hidden !important;
  background: transparent !important;
}
.project.project-parallax-jeddah.project-fixed-bg-section .project-card-photo img,
.project.project-parallax-jeddah.project-fixed-bg-section .project-item .photo.project-card-photo img {
  display: block !important;
  height: 100% !important;
  width: 100% !important;
  max-height: 100% !important;
  max-width: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #f6f9fd !important;
}
.project.project-parallax-jeddah.project-fixed-bg-section .project-card-body,
.project.project-parallax-jeddah.project-fixed-bg-section .project-card .text.project-card-body {
  flex: 1 1 auto !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 11px 13px 13px !important;
}
.project.project-parallax-jeddah.project-fixed-bg-section .project-card-body h3 {
  display: -webkit-box !important;
  min-height: 0 !important;
  max-height: 2.85em !important;
  margin: 0 0 4px !important;
  overflow: hidden !important;
  font-size: clamp(15px, 1.14vw, 18px) !important;
  line-height: 1.4 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}
.project.project-parallax-jeddah.project-fixed-bg-section .project-card-body p {
  display: -webkit-box !important;
  min-height: 0 !important;
  max-height: 2.9em !important;
  margin: 0 0 9px !important;
  overflow: hidden !important;
  color: #617086 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}
.project.project-parallax-jeddah.project-fixed-bg-section .project-card-action a {
  min-height: 33px !important;
  min-width: 100px !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
}
@media (max-width: 991.98px) {
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card-photo,
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card .photo.project-card-photo {
    height: clamp(175px, 27vw, 220px) !important;
    max-height: 220px !important;
  }
}
@media (max-width: 575.98px) {
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card-photo,
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card .photo.project-card-photo {
    height: clamp(185px, 49vw, 224px) !important;
    max-height: 224px !important;
  }
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card-body,
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card .text.project-card-body {
    padding: 11px 14px 13px !important;
  }
}

/* === Model listing: simple dropdown controls with a persistent Show All button. === */
.mh-models-scope.mh-models-marquee .mh-model-filters {
  display: grid !important;
  grid-template-columns: minmax(155px, .86fr) repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  width: min(870px, 100%);
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  direction: rtl;
  text-align: right;
}
.mh-models-scope.mh-models-marquee .mh-model-all {
  display: flex !important;
  min-width: 0;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid #cadbed !important;
  border-radius: 12px;
  background: #0b3e7a;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.mh-models-scope.mh-models-marquee .mh-model-all.is-active,
.mh-models-scope.mh-models-marquee .mh-model-all:hover {
  border-color: #0b3e7a !important;
  background: #0b3e7a;
  color: #fff;
  box-shadow: 0 6px 17px rgba(7, 48, 99, .13);
}
.mh-models-scope.mh-models-marquee .mh-model-total {
  flex: 0 0 auto;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  font-size: 11px;
  font-weight: 800;
}
.mh-models-scope.mh-models-marquee .mh-model-all.is-active .mh-model-total,
.mh-models-scope.mh-models-marquee .mh-model-all:hover .mh-model-total {
  background: rgba(255,255,255,.16);
}
.mh-models-scope.mh-models-marquee .mh-model-filter {
  display: flex !important;
  min-width: 0;
  min-height: 56px;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 5px 12px;
  border: 1px solid #d4e2f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 13px rgba(2,32,86,.04);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.mh-models-scope.mh-models-marquee .mh-model-filter:hover,
.mh-models-scope.mh-models-marquee .mh-model-filter:focus-within {
  border-color: #448dc9;
  box-shadow: 0 0 0 3px rgba(29,114,189,.09);
}
.mh-models-scope.mh-models-marquee .mh-model-filter-label {
  display: block;
  color: #71859c;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
}
.mh-models-scope.mh-models-marquee .mh-model-select-wrap {
  display: block;
  position: relative;
  width: 100%;
  min-width: 0;
}
.mh-models-scope.mh-models-marquee .mh-model-filter select {
  display: block !important;
  appearance: none;
  -webkit-appearance: none;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100%;
  height: 27px !important;
  min-height: 27px !important;
  padding: 0 0 0 22px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #082b57 !important;
  direction: rtl;
  text-align: right;
  text-overflow: ellipsis;
  font-family: inherit;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 27px !important;
  cursor: pointer;
}
.mh-models-scope.mh-models-marquee .mh-model-filter select:focus {
  outline: none !important;
}
.mh-models-scope.mh-models-marquee .mh-model-filter select option {
  color: #082b57;
  background: #fff;
}
.mh-models-scope.mh-models-marquee .mh-model-caret {
  position: absolute;
  left: 3px;
  top: calc(50% - 4px);
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2px solid #0b3e7a;
  border-bottom: 2px solid #0b3e7a;
  transform: rotate(45deg);
  pointer-events: none;
}
.mh-models-scope.mh-models-marquee .mh-model-filter-feedback {
  min-height: 0;
  margin: 0;
  color: #617086;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}
.mh-models-scope.mh-models-marquee .mh-model-filter-feedback:empty {
  display: none;
}
.mh-models-scope.mh-models-marquee .mh-model-filter-feedback:not(:empty) {
  margin-top: 8px;
}
.mh-models-scope.mh-models-marquee .mh-model-grid.is-empty {
  display: block;
  width: 100%;
  min-height: 175px;
}
.mh-models-scope.mh-models-marquee .mh-model-no-results {
  display: grid;
  min-height: 175px;
  place-content: center;
  justify-items: center;
  gap: 9px;
  width: 100%;
  padding: 18px;
  border: 1px dashed #ccdced;
  border-radius: 15px;
  background: #fff;
  color: #123351;
  direction: rtl;
  text-align: center;
}
.mh-models-scope.mh-models-marquee .mh-model-no-results strong {font-size: 17px;color:#082b57;}
.mh-models-scope.mh-models-marquee .mh-model-no-results p {margin:0;color:#65758a;font-size:13px;}
.mh-models-scope.mh-models-marquee .mh-model-no-results button {
  min-height: 35px;
  padding: 7px 14px;
  border: 1px solid #d1dfef;
  border-radius: 8px;
  background: #eef5fc;
  color: #0b3e7a;
  cursor: pointer;
  font-weight: 800;
}
@media (max-width: 640px) {
  .mh-models-scope.mh-models-marquee .mh-model-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    width: 100%;
  }
  .mh-models-scope.mh-models-marquee .mh-model-all {
    grid-column: 1 / -1;
    min-height: 40px;
    padding: 7px 12px;
    font-size: 13px;
  }
  .mh-models-scope.mh-models-marquee .mh-model-filter {
    min-height: 54px;
    padding: 5px 10px;
    border-radius: 10px;
  }
  .mh-models-scope.mh-models-marquee .mh-model-filter select {
    font-size: 12px !important;
  }
  .mh-models-scope.mh-models-marquee .hero-header {
    gap: 11px !important;
    margin-bottom: 15px !important;
  }
}
@media (max-width: 360px) {
  .mh-models-scope.mh-models-marquee .mh-model-filter {padding-inline:8px;}
  .mh-models-scope.mh-models-marquee .mh-model-filter select {font-size:11px !important;}
}
@media (prefers-reduced-motion: reduce) {
  .mh-models-scope.mh-models-marquee .mh-model-all,
  .mh-models-scope.mh-models-marquee .mh-model-filter {transition:none;}
}

/* Avoid overlong model cards while preserving uploaded poster proportions. */
.mh-models-scope.mh-models-marquee .mh-model-card-media {
  aspect-ratio: auto !important;
  height: clamp(225px, 23vw, 282px) !important;
  max-height: 282px !important;
  background: #eef4fa !important;
}
.mh-models-scope.mh-models-marquee .mh-model-card-media img {
  object-fit: contain !important;
  object-position: center center !important;
}
/* Landscape photographic thumbnails can fill the frame; tall branded posters remain uncropped. */
.mh-models-scope.mh-models-marquee .mh-model-card-media img.mh-model-landscape-photo {
  object-fit: cover !important;
}
@media (max-width: 1100px) {
  .mh-models-scope.mh-models-marquee .mh-model-card-media {
    height: clamp(210px, 31vw, 260px) !important;
    max-height: 260px !important;
  }
}
@media (max-width: 700px) {
  .mh-models-scope.mh-models-marquee .mh-model-card-media {
    height: clamp(166px, 52vw, 210px) !important;
    max-height: 210px !important;
  }
}

/* SOURCE: maal-unified-cards-aos-v21.css */
/* MAAL HOME | V21 | Shared design language / controlled AOS entrances
   Project cards deliberately remain a STATIC grid. Never animate the project grid as a carousel.
   Model cards keep the existing independent continuous marquee from V20.
*/

/* The same content width as apartment-model cards, including Bootstrap row gutters. */
.project.project-parallax-jeddah.project-fixed-bg-section .project-content-wrap {
  width: 100% !important;
  max-width: 1286px !important;
  padding-inline: 18px !important;
}


/* Remove extra Bootstrap gutters only inside the projects listing;
   grid width now equals the models stage (1250 desktop / viewport minus 36px). */
.project.project-parallax-jeddah.project-fixed-bg-section .project-content-wrap > .row {
  margin-inline: 0 !important;
}
.project.project-parallax-jeddah.project-fixed-bg-section .project-content-wrap > .row > .col-md-12 {
  padding-inline: 0 !important;
}
@media (max-width: 575.98px) {
  .project.project-parallax-jeddah.project-fixed-bg-section .project-content-wrap {
    padding-inline: 11px !important;
  }
}

.project.project-parallax-jeddah.project-fixed-bg-section .project-grid.project-grid--jeddah {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0,1fr)) !important;
  gap: 18px !important;
  align-items: stretch !important;
  justify-items: stretch !important;
  direction: rtl !important;
}

/* Project cards: same outline, radius, white panel, elevation and inner layout as model cards. */
.project.project-parallax-jeddah.project-fixed-bg-section .project-card,
.project.project-parallax-jeddah.project-fixed-bg-section .project-item.project-card {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  align-self: stretch !important;
  margin: 0 !important;
  overflow: hidden !important;
  position: relative !important;
  border: 1px solid #dce7f3 !important;
  border-radius: 15px !important;
  background: #fff !important;
  box-shadow: 0 7px 22px rgba(2,32,86,.065) !important;
  transition: box-shadow .32s ease, border-color .32s ease, transform .32s cubic-bezier(.2,.8,.2,1) !important;
}

.project.project-parallax-jeddah.project-fixed-bg-section .project-card::before,
.project.project-parallax-jeddah.project-fixed-bg-section .project-card::after {
  content: none !important;
  display: none !important;
}

.project.project-parallax-jeddah.project-fixed-bg-section .project-card:hover,
.project.project-parallax-jeddah.project-fixed-bg-section .project-card:focus-within {
  border-color: #b4cde7 !important;
  box-shadow: 0 13px 27px rgba(2,32,86,.11) !important;
  transform: translate3d(0, -4px, 0) !important;
}

/* Match the model media's computed HEIGHT at every breakpoint; do not crop square project posters. */
.project.project-parallax-jeddah.project-fixed-bg-section .project-card-photo,
.project.project-parallax-jeddah.project-fixed-bg-section .project-card .photo.project-card-photo {
  flex: 0 0 auto !important;
  display: block !important;
  width: 100% !important;
  height: clamp(225px, 23vw, 282px) !important;
  min-height: 0 !important;
  max-height: 282px !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #eef4fa !important;
  overflow: hidden !important;
}

.project.project-parallax-jeddah.project-fixed-bg-section .project-card-photo a,
.project.project-parallax-jeddah.project-fixed-bg-section .project-card .photo.project-card-photo a {
  display: flex !important;
  width: 100% !important;
  height: 100% !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: #eef4fa !important;
  box-shadow: none !important;
}

.project.project-parallax-jeddah.project-fixed-bg-section .project-card-photo img,
.project.project-parallax-jeddah.project-fixed-bg-section .project-item .photo.project-card-photo img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  border-radius: 0 !important;
  background: #eef4fa !important;
  filter: none !important;
  transform: scale(1) !important;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .5s ease !important;
}

.project.project-parallax-jeddah.project-fixed-bg-section .project-card:hover .project-card-photo img,
.project.project-parallax-jeddah.project-fixed-bg-section .project-card:focus-within .project-card-photo img {
  transform: scale(1.024) !important;
  filter: saturate(1.03) !important;
}

/* Identical text hierarchy, padding and CTA treatment to the models. */
.project.project-parallax-jeddah.project-fixed-bg-section .project-card-body,
.project.project-parallax-jeddah.project-fixed-bg-section .project-card .text.project-card-body {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 14px 15px 17px !important;
  border: 0 !important;
  border-radius: 0 !important;
  text-align: right !important;
  background: #fff !important;
}

.project.project-parallax-jeddah.project-fixed-bg-section .project-card-body h3 {
  display: block !important;
  min-height: 2.9em !important;
  max-height: none !important;
  height: auto !important;
  margin: 0 0 7px !important;
  overflow: visible !important;
  color: #082b57 !important;
  font-size: clamp(15px, 1.14vw, 18px) !important;
  font-weight: 800 !important;
  line-height: 1.6 !important;
  text-align: right !important;
}
.project.project-parallax-jeddah.project-fixed-bg-section .project-card-body h3 a { color: inherit !important; }
.project.project-parallax-jeddah.project-fixed-bg-section .project-card-body p {
  display: -webkit-box !important;
  min-height: 0 !important;
  max-height: 3.5em !important;
  height: auto !important;
  margin: 0 0 12px !important;
  overflow: hidden !important;
  color: #65758a !important;
  font-size: 12.5px !important;
  line-height: 1.75 !important;
  font-weight: 500 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  text-align: right !important;
}
.project.project-parallax-jeddah.project-fixed-bg-section .project-card-action,
.project.project-parallax-jeddah.project-fixed-bg-section .read-more.project-card-action {
  display: flex !important;
  justify-content: flex-start !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  margin: auto 0 0 !important;
}
.project.project-parallax-jeddah.project-fixed-bg-section .project-card-action a,
.project.project-parallax-jeddah.project-fixed-bg-section .read-more.project-card-action a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  width: auto !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 8px 12px !important;
  border: 1px solid #d1dfef !important;
  border-radius: 9px !important;
  background: #f4f8fd !important;
  color: #0c4d8d !important;
  box-shadow: none !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  transform: none !important;
  transition: background-color .26s ease, color .26s ease, border-color .26s ease !important;
}
.project.project-parallax-jeddah.project-fixed-bg-section .project-card:hover .project-card-action a,
.project.project-parallax-jeddah.project-fixed-bg-section .project-card:focus-within .project-card-action a {
  color: #fff !important;
  border-color: #0b3e7a !important;
  background: #0b3e7a !important;
}

@media (max-width: 1100px) {
  .project.project-parallax-jeddah.project-fixed-bg-section .project-grid.project-grid--jeddah {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card-photo,
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card .photo.project-card-photo {
    height: clamp(210px, 31vw, 260px) !important;
    max-height: 260px !important;
  }
}
@media (max-width: 700px) {
  .project.project-parallax-jeddah.project-fixed-bg-section .project-grid.project-grid--jeddah {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card-photo,
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card .photo.project-card-photo {
    height: clamp(166px, 52vw, 210px) !important;
    max-height: 210px !important;
  }
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card-body,
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card .text.project-card-body {
    padding: 10px 10px 13px !important;
  }
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card-body h3 {
    min-height: 3em !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
  }
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card-body p {
    font-size: 10.5px !important;
    line-height: 1.55 !important;
  }
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card-action a {
    padding: 6px 8px !important;
    font-size: 10.5px !important;
  }
}
@media (max-width: 575.98px) {
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card-body p {
    display: none !important;
  }
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card-body h3 {
    margin-bottom: 6px !important;
  }
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card-action a {
    margin-top: 5px !important;
  }
}

/* AOS, when active, handles the entrance. Hover remains independent. */
body:not(.mh-project-reveal-ready) .project.project-parallax-jeddah .project-card[data-aos].aos-animate:hover,
body:not(.mh-project-reveal-ready) .project.project-parallax-jeddah .project-card[data-aos].aos-animate:focus-within {
  transform: translate3d(0, -4px, 0) !important;
}

/* Restrained RTL motion. AOS CSS still controls opacity/easing/timing. */
body:not(.apartment-model-details-page) [data-aos="fade-up"]:not(.aos-animate),
body.apartment-model-details-page [data-aos="fade-up"]:not(.aos-animate) {
  transform: translate3d(0, 24px, 0);
}
body [data-aos="fade-right"]:not(.aos-animate) { transform: translate3d(-22px, 0, 0); }
body [data-aos="fade-left"]:not(.aos-animate) { transform: translate3d(22px, 0, 0); }
body [data-aos="zoom-in"]:not(.aos-animate) { transform: scale(.965); }

/* Never move the fixed navigation, footer contact bar, popups or autonomous carousel tracks. */
.top, .navbar-area, .mobile-header, #stickymenu,
.floating-profile-download, .mal-contact-widget, .scroll-top,
.maal-services-track, .mh-model-grid {
  backface-visibility: visible;
}

@media (max-width: 700px) {
  body [data-aos="fade-right"]:not(.aos-animate),
  body [data-aos="fade-left"]:not(.aos-animate) {
    transform: translate3d(0, 18px, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  body [data-aos], body [data-aos].aos-animate {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition: none !important;
  }
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card,
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card-photo img {
    transition: none !important;
  }
}

/* V21 finishing fix: parent .container had an older higher-specificity width,
   making Projects narrower than the apartment-models stage on mobile. */
.project.project-parallax-jeddah.project-fixed-bg-section .project-content-wrap.container,
.project.project-parallax-jeddah.project-fixed-bg-section .project-content-wrap {
  box-sizing: border-box !important;
  width: min(1250px, calc(100% - 36px)) !important;
  max-width: 1250px !important;
  padding: 0 !important;
  margin-inline: auto !important;
}
.project.project-parallax-jeddah.project-fixed-bg-section .project-content-wrap > .row {
  margin: 0 !important;
  width: 100% !important;
}
.project.project-parallax-jeddah.project-fixed-bg-section .project-content-wrap > .row > .col-md-12 {
  padding: 0 !important;
  width: 100% !important;
}
@media (max-width: 575.98px) {
  .project.project-parallax-jeddah.project-fixed-bg-section .project-content-wrap.container,
  .project.project-parallax-jeddah.project-fixed-bg-section .project-content-wrap {
    width: calc(100% - 22px) !important;
    max-width: none !important;
  }
}

/* Shared CTA dimensions: Projects mirrors the model-card detail button. */
.project.project-parallax-jeddah.project-fixed-bg-section .project-card-action a,
.project.project-parallax-jeddah.project-fixed-bg-section .read-more.project-card-action a {
  justify-content: flex-start !important;
  gap: 9px !important;
  align-self: flex-start !important;
}
.project.project-parallax-jeddah.project-fixed-bg-section .project-card-action a span {
  font-size: 15px !important;
  font-weight: 700 !important;
}
/* Keep longer project descriptions within the same 4-card desktop height. */
@media (min-width: 1101px) {
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card-body p {
    -webkit-line-clamp: 1 !important;
    max-height: 1.75em !important;
  }
}

/* Small-screen Projects use the exact model-card action spacing and typography. */
@media (max-width: 700px) {
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card-action a,
  .project.project-parallax-jeddah.project-fixed-bg-section .read-more.project-card-action a {
    padding: 6px 8px !important;
    font-size: 10.5px !important;
    line-height: 1.5 !important;
    white-space: nowrap !important;
  }
}

/* Legacy site CSS forces transform:none on Projects; AOS entrance must override
   only while a project card is entering, without affecting its normal hover. */
.project.project-parallax-jeddah.project-fixed-bg-section .project-card[data-aos="fade-up"]:not(.aos-animate) {
  opacity: 0 !important;
  transform: translate3d(0, 24px, 0) !important;
}
.project.project-parallax-jeddah.project-fixed-bg-section .project-card[data-aos="fade-up"].aos-animate {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) !important;
}
.project.project-parallax-jeddah.project-fixed-bg-section .project-card[data-aos="fade-up"].aos-animate:hover,
.project.project-parallax-jeddah.project-fixed-bg-section .project-card[data-aos="fade-up"].aos-animate:focus-within {
  transform: translate3d(0, -4px, 0) !important;
}
@media (prefers-reduced-motion: reduce) {
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card[data-aos="fade-up"],
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card[data-aos="fade-up"]:not(.aos-animate) {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Pixel alignment with apartment-model panels (the older project styles had 1px less bottom spacing). */
@media (min-width: 701px) {
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card-body,
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card .text.project-card-body {
    padding-bottom: 18px !important;
  }
}
@media (max-width: 575.98px) {
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card-action a,
  .project.project-parallax-jeddah.project-fixed-bg-section .read-more.project-card-action a {
    margin-top: 5px !important;
  }
}

/* SOURCE: maal-ui-polish-v22.css */
/* MAAL HOME | V22 final mobile/desktop polishing: dropdown menus & projects */

/* Keep the filter row measured in its own width without the browser-native popup. */
.mh-models-scope.mh-models-marquee .hero-header {z-index: 40 !important; overflow: visible !important;}
.mh-models-scope.mh-models-marquee .mh-model-filters {position:relative; overflow:visible !important;}
.mh-models-scope.mh-models-marquee .mh-model-filter {
  position:relative;
  min-height:66px;
  padding:9px 12px !important;
  gap:2px;
  justify-content:center;
  align-items:stretch;
  border:1px solid #d5e4f3 !important;
  border-radius:13px !important;
  box-shadow:0 4px 16px rgba(2,32,86,.05) !important;
  background:#fff !important;
}
.mh-models-scope.mh-models-marquee .mh-model-filter.mh-filter-open,
.mh-models-scope.mh-models-marquee .mh-model-filter:focus-within {
  border-color:#2c7fc2 !important;
  box-shadow:0 0 0 3px rgba(29,114,189,.1),0 6px 18px rgba(2,32,86,.075) !important;
}
.mh-models-scope.mh-models-marquee .mh-model-filter-label {
  display:block !important;
  width:100% !important;
  margin:0 !important;
  font-size:11px !important;
  font-weight:700 !important;
  line-height:1.5 !important;
  color:#74869b !important;
  text-align:center !important;
  white-space:nowrap;
}
.mh-models-scope.mh-models-marquee .mh-model-select-wrap {position:relative; width:100%; overflow:visible;}
/* Only hide the native input after the script has built an accessible replacement. */
.mh-models-scope.mh-models-marquee .mh-model-select-wrap.mh-filter-enhanced > select,
.mh-models-scope.mh-models-marquee .mh-model-select-wrap.mh-filter-enhanced > .mh-model-caret {
  display:none !important;
}
.mh-models-scope.mh-models-marquee .mh-model-popover-trigger {
  position:relative;
  display:flex !important;
  align-items:center;
  justify-content:center;
  width:100%;
  min-width:0;
  min-height:32px;
  margin:0;
  padding:4px 21px !important;
  border:0 !important;
  border-radius:8px;
  background:transparent !important;
  color:#082b57 !important;
  font-family:inherit;
  font-size:13px;
  font-weight:800;
  line-height:1.5;
  text-align:center;
  cursor:pointer;
  transition:background-color .2s ease;
}
.mh-models-scope.mh-models-marquee .mh-model-popover-trigger:hover,
.mh-models-scope.mh-models-marquee .mh-model-popover-trigger[aria-expanded="true"] {background:#f0f6fd !important;}
.mh-models-scope.mh-models-marquee .mh-model-popover-trigger:focus-visible,
.mh-models-scope.mh-models-marquee .mh-model-popover-option:focus-visible {outline:2px solid #176fba; outline-offset:2px;}
.mh-models-scope.mh-models-marquee .mh-model-popover-value {
  display:block;
  overflow:hidden;
  max-width:100%;
  text-overflow:ellipsis;
  white-space:nowrap;
  text-align:center;
}
.mh-models-scope.mh-models-marquee .mh-model-popover-chevron {
  position:absolute;
  left:7px;
  top:calc(50% - 4px);
  width:9px;
  height:9px;
  border-left:0;
  border-top:0;
  border-right:2px solid #0b3e7a;
  border-bottom:2px solid #0b3e7a;
  transform:rotate(45deg);
  pointer-events:none;
  transition:transform .2s ease;
}
.mh-models-scope.mh-models-marquee .mh-model-popover-trigger[aria-expanded="true"] .mh-model-popover-chevron {transform:translateY(3px) rotate(225deg);}
.mh-models-scope.mh-models-marquee .mh-model-popover-menu {
  position:absolute;
  top:calc(100% + 9px);
  right:0;
  left:auto;
  z-index:300;
  box-sizing:border-box;
  display:grid;
  gap:3px;
  width:max-content;
  min-width:max(100%, 190px);
  max-width:min(300px, calc(100vw - 26px));
  max-height:min(290px, 45vh);
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:6px;
  border:1px solid #d5e4f3;
  border-radius:13px;
  background:#fff;
  box-shadow:0 20px 38px rgba(2,32,86,.17);
  direction:rtl;
  scrollbar-width:thin;
  scrollbar-color:#bfcee0 #fff;
}
.mh-models-scope.mh-models-marquee .mh-model-popover-menu[hidden] {display:none !important;}
.mh-models-scope.mh-models-marquee .mh-model-popover-option {
  box-sizing:border-box;
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  width:100% !important;
  min-height:39px;
  padding:9px 12px !important;
  border:0 !important;
  border-radius:9px;
  background:#fff !important;
  color:#123351 !important;
  text-align:center !important;
  font-family:inherit;
  font-size:13px;
  font-weight:700;
  line-height:1.5;
  white-space:normal;
  overflow-wrap:anywhere;
  cursor:pointer;
  transition:background-color .16s ease, color .16s ease;
}
.mh-models-scope.mh-models-marquee .mh-model-popover-option:hover,
.mh-models-scope.mh-models-marquee .mh-model-popover-option:focus-visible {
  background:#edf5fc !important;
  color:#0b3e7a !important;
}
.mh-models-scope.mh-models-marquee .mh-model-popover-option.is-selected {
  background:#0b3e7a !important;
  color:#fff !important;
  font-weight:800;
}
.mh-models-scope.mh-models-marquee .mh-model-filter.mh-filter-has-value .mh-model-popover-value {color:#0b5da3 !important;}
.mh-models-scope.mh-models-marquee .mh-model-grid-stage {position:relative; z-index:1;}

/* Project posters: one legible card per row on small screens, not two squeezed columns. */
@media (max-width: 767.98px) {
  .project.project-parallax-jeddah.project-fixed-bg-section .project-grid.project-grid--jeddah {
    grid-template-columns:minmax(0,1fr) !important;
    gap:16px !important;
  }
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card,
  .project.project-parallax-jeddah.project-fixed-bg-section .project-item.project-card {
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    min-height:0 !important;
    height:auto !important;
    border-radius:16px !important;
    margin-inline:auto !important;
    align-self:stretch !important;
  }
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card-photo,
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card .photo.project-card-photo {
    width:100% !important;
    height:clamp(208px, 59vw, 278px) !important;
    min-height:0 !important;
    max-height:278px !important;
    background:#eef4fa !important;
    padding:0 !important;
  }
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card-body,
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card .text.project-card-body {
    padding:14px 17px 17px !important;
    min-height:0 !important;
  }
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card-body h3 {
    font-size:18px !important;
    line-height:1.55 !important;
    min-height:0 !important;
    height:auto !important;
    margin-bottom:7px !important;
  }
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card-body p {
    display:-webkit-box !important;
    font-size:13px !important;
    line-height:1.65 !important;
    max-height:3.3em !important;
    margin-bottom:12px !important;
    -webkit-line-clamp:2 !important;
  }
  .project.project-parallax-jeddah.project-fixed-bg-section .project-card-action a,
  .project.project-parallax-jeddah.project-fixed-bg-section .read-more.project-card-action a {
    min-height:38px !important;
    padding:8px 13px !important;
    font-size:13px !important;
    line-height:1.5 !important;
  }
}

@media (max-width: 640px) {
  .mh-models-scope.mh-models-marquee .mh-model-filters {gap:9px !important;}
  .mh-models-scope.mh-models-marquee .mh-model-all {min-height:43px !important;}
  .mh-models-scope.mh-models-marquee .mh-model-filter {min-height:62px; padding:7px 8px !important;}
  .mh-models-scope.mh-models-marquee .mh-model-filter-label {font-size:10.5px !important;}
  .mh-models-scope.mh-models-marquee .mh-model-popover-trigger {font-size:12px !important; padding-inline:17px !important;}
  .mh-models-scope.mh-models-marquee .mh-model-popover-menu {min-width:max(100%, 176px);}
  .mh-models-scope.mh-models-marquee .mh-model-filter[data-mh-filter="type"] .mh-model-popover-menu {left:0; right:auto;}
}
@media (max-width: 360px) {
  .mh-models-scope.mh-models-marquee .mh-model-popover-menu {min-width:max(100%, 162px);}
  .mh-models-scope.mh-models-marquee .mh-model-filter {padding-inline:5px !important;}
  .mh-models-scope.mh-models-marquee .mh-model-popover-trigger {padding-inline:14px !important; font-size:11px !important;}
}
@media (prefers-reduced-motion:reduce) {
  .mh-models-scope.mh-models-marquee .mh-model-popover-trigger,
  .mh-models-scope.mh-models-marquee .mh-model-popover-chevron,
  .mh-models-scope.mh-models-marquee .mh-model-popover-option {transition:none !important;}
}

/* SOURCE: maal-project-landing-motion-v23.css */
/* MAAL HOME | V23 | Professional project detail landing & measured AOS timing
 * Scoped to project details so unrelated landing pages retain their own layout.
 */

/* Keep a modest, smooth reveal with no flash, spin, blur or slide across the page. */
body.site-motion-ready [data-aos="fade-up"]:not(.aos-animate) {
  transform: translate3d(0, 22px, 0);
}
body.site-motion-ready [data-aos="fade-left"]:not(.aos-animate),
body.site-motion-ready [data-aos="fade-right"]:not(.aos-animate) {
  transform: translate3d(0, 22px, 0);
}
body.site-motion-ready [data-aos][data-aos-duration] {
  transition-timing-function: cubic-bezier(.21,.71,.22,1) !important;
}

/* Compact masthead, not another full-screen hero before the ad landing content. */
.mh-project-page-banner.page-banner {
  min-height: 180px !important;
  height: auto !important;
  background-position: center 53% !important;
}
.mh-project-page-banner.page-banner .text {
  padding: 94px 16px 26px !important;
  width: min(1140px, 100%) !important;
}
.mh-project-page-banner.page-banner .text h1 {
  margin: 0 !important;
  font-size: clamp(23px, 2.7vw, 34px) !important;
  line-height: 1.45 !important;
  font-weight: 850 !important;
  color: #092e5e !important;
  text-shadow: 0 2px 14px rgba(255,255,255,.55) !important;
}
.mh-project-page-banner.page-banner .breadcrumb {
  margin-top: 5px !important;
}

.project-detail-page.official-detail-page {
  padding: clamp(17px, 2.4vw, 30px) 0 clamp(44px, 5vw, 70px) !important;
  background: linear-gradient(180deg,#f5f8fc 0%, #f8fbfe 65%, #fff 100%) !important;
  color: #173753 !important;
}
.project-detail-page.official-detail-page > .container {
  width: min(1180px, calc(100% - 36px)) !important;
  max-width: 1180px !important;
  padding: 0 !important;
  margin-inline: auto !important;
}

/* Two intentional columns, using the existing project information and image. */
.project-detail-page .mh-project-detail-layout.row {
  display: grid !important;
  grid-template-columns: minmax(0,1.62fr) minmax(300px,.95fr) !important;
  gap: clamp(16px, 2.1vw, 26px) !important;
  align-items: start !important;
  margin: 0 !important;
  width: 100% !important;
}
.project-detail-page .mh-project-main-column,
.project-detail-page .mh-project-info-column {
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: none !important;
}
.project-detail-page .mh-project-main-column {
  grid-column: 1 !important;
  grid-row: 1 !important;
  order: unset !important;
}
.project-detail-page .mh-project-info-column {
  grid-column: 2 !important;
  grid-row: 1 !important;
  order: unset !important;
}

.project-detail-page .single-project.official-detail-card {
  padding: clamp(13px,1.6vw,22px) !important;
  border: 1px solid #dce6f2 !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: 0 12px 38px rgba(9,40,83,.07) !important;
  overflow: hidden !important;
}
.project-detail-page .single-project.official-detail-card::before {
  opacity: 0 !important;
  content: none !important;
}
.project-detail-page .project-featured-media {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: clamp(305px, 30vw, 425px) !important;
  max-height: 425px !important;
  padding: clamp(9px, 1.2vw, 14px) !important;
  overflow: hidden !important;
  border: 1px solid #e3edf7 !important;
  border-radius: 15px !important;
  background: #f2f7fd !important;
  box-shadow: none !important;
}
.project-detail-page .project-featured-media > img.featured-photo {
  display: block !important;
  flex: 0 1 auto !important;
  width: auto !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 9px !important;
  box-shadow: 0 8px 24px rgba(18,66,130,.09) !important;
}

/* Same restrained heading system and readable content that appears on listing cards. */
.project-detail-page .project-rich-content.text {
  margin-top: clamp(14px, 1.7vw, 22px) !important;
  font-size: 14px !important;
  color: #445971 !important;
  line-height: 1.9 !important;
}
.project-detail-page .project-rich-content h2,
.project-detail-page .project-section-heading h2 {
  margin: 0 0 12px !important;
  padding: 0 0 10px !important;
  color: #092e5e !important;
  font-size: clamp(18px, 1.6vw, 23px) !important;
  line-height: 1.5 !important;
  font-weight: 850 !important;
  border-bottom: 1px solid #e1eaf5 !important;
}
.project-detail-page .project-rich-content p,
.project-detail-page .project-rich-content li {
  line-height: 1.9 !important;
  font-size: 14px !important;
  color: #52677e !important;
}
.project-detail-page .project-rich-content img {
  display: block !important;
  margin: 14px auto !important;
  max-width: 100% !important;
  max-height: 500px !important;
  height: auto !important;
  width: auto !important;
  object-fit: contain !important;
  border-radius: 12px !important;
}

/* Project details are information, not a giant competing navy panel. */
.project-detail-page .official-detail-sidebar {
  width: 100% !important;
  margin: 0 !important;
}
.project-detail-page .official-detail-sidebar .widget {
  margin: 0 !important;
  padding: 19px 19px 13px !important;
  border: 1px solid #dce6f2 !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: 0 12px 36px rgba(9,40,83,.07) !important;
  overflow: visible !important;
}
.project-detail-page .official-detail-sidebar .widget h3 {
  display: block !important;
  width: 100% !important;
  margin: 0 0 8px !important;
  padding: 0 0 14px !important;
  color: #092e5e !important;
  background: transparent !important;
  font-size: clamp(17px, 1.35vw, 20px) !important;
  font-weight: 850 !important;
  border: 0 !important;
  border-bottom: 2px solid #e3edf7 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.project-detail-page .official-detail-sidebar .project-detail {
  display: grid !important;
  gap: 0 !important;
}
.project-detail-page .official-detail-sidebar .project-detail .item {
  display: block !important;
  margin: 0 !important;
  padding: 12px 1px !important;
  border: 0 !important;
  border-bottom: 1px solid #e8eef6 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.project-detail-page .official-detail-sidebar .project-detail .item:last-child {
  border-bottom: 0 !important;
}
.project-detail-page .official-detail-sidebar .project-detail .item h4 {
  margin: 0 0 5px !important;
  color: #507393 !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  line-height: 1.65 !important;
}
.project-detail-page .official-detail-sidebar .project-detail .item p {
  margin: 0 !important;
  color: #173a63 !important;
  font-size: 14px !important;
  line-height: 1.8 !important;
  font-weight: 650 !important;
  overflow-wrap: anywhere !important;
}

/* Existing gallery and video are kept, but no featured tile may dominate the page. */
.project-detail-page .project-gallery-section,
.project-detail-page .project-video-section {
  margin-top: 28px !important;
}
.project-detail-page .project-gallery-grid {
  gap: 12px !important;
}
.project-detail-page .project-gallery-card,
.project-detail-page .project-video-section .iframe-container {
  border-radius: 14px !important;
  box-shadow: 0 7px 22px rgba(8,43,91,.07) !important;
}
.project-detail-page .project-gallery-card img,
.project-detail-page .project-gallery-card--featured:nth-last-child(n+3) img {
  height: clamp(190px, 21vw, 255px) !important;
  object-fit: cover !important;
}
.project-detail-page .project-gallery-card--featured:nth-last-child(n+3) {
  grid-column: span 1 !important;
}

@media (max-width: 991.98px) {
  /* On phones and tablets, show the image first so paid traffic sees the property. */
  .project-detail-page .mh-project-detail-layout.row {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
  }
  .project-detail-page .mh-project-main-column {
    grid-column: 1 !important;
    grid-row: 1 !important;
    order: 1 !important;
  }
  .project-detail-page .mh-project-info-column {
    grid-column: 1 !important;
    grid-row: 2 !important;
    order: 2 !important;
    margin: 0 !important;
  }
  /* Turn the existing article into a clean vertical sequence without adding fields:
     image -> existing project facts -> description -> gallery -> video. */
  .project-detail-page .mh-project-main-column,
  .project-detail-page .single-project.official-detail-card {
    display: contents !important;
  }
  .project-detail-page .project-featured-media {
    grid-column: 1 !important;
    grid-row: 1 !important;
    border-radius: 17px !important;
  }
  .project-detail-page .project-rich-content.text {
    grid-column: 1 !important;
    grid-row: 3 !important;
    margin: 0 !important;
    padding: 17px 19px !important;
    background: #fff !important;
    border: 1px solid #dce6f2 !important;
    border-radius: 17px !important;
    box-shadow: 0 8px 24px rgba(9,40,83,.05) !important;
  }
  .project-detail-page .project-gallery-section {
    grid-column: 1 !important;
    grid-row: 4 !important;
    margin: 0 !important;
    padding: 17px 19px !important;
    background: #fff !important;
    border: 1px solid #dce6f2 !important;
    border-radius: 17px !important;
  }
  .project-detail-page .project-video-section {
    grid-column: 1 !important;
    grid-row: 5 !important;
    margin: 0 !important;
    padding: 17px 19px !important;
    background: #fff !important;
    border: 1px solid #dce6f2 !important;
    border-radius: 17px !important;
  }
  .project-detail-page .project-featured-media {
    height: clamp(280px, 49vw, 400px) !important;
  }
  .project-detail-page .official-detail-sidebar .widget {
    padding: 18px !important;
  }
}

@media (max-width: 575.98px) {
  .mh-project-page-banner.page-banner { min-height: 155px !important; }
  .mh-project-page-banner.page-banner .text { padding: 84px 10px 19px !important; }
  .mh-project-page-banner.page-banner .text h1 { font-size: 23px !important; }
  .project-detail-page.official-detail-page > .container,
  .project-detail-page .mh-mobile-project-toolbar {
    width: calc(100% - 24px) !important;
    max-width: none !important;
    margin-inline: auto !important;
  }
  .project-detail-page .single-project.official-detail-card {
    padding: 9px !important;
    border-radius: 17px !important;
  }
  .project-detail-page .project-featured-media {
    height: clamp(230px, 73vw, 335px) !important;
    padding: 7px !important;
    border-radius: 12px !important;
  }
  .project-detail-page .project-rich-content.text { padding: 5px 7px 8px !important; }
  .project-detail-page .official-detail-sidebar .widget { border-radius: 17px !important; }
  .project-detail-page .project-gallery-card img,
  .project-detail-page .project-gallery-card--featured:nth-last-child(n+3) img {
    height: clamp(145px, 42vw, 205px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.site-motion-ready [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* SOURCE: maal-brand-system-v24.css */
/* MAAL HOME / V32 refinement of V24 surfaces.
   Maintain original navy, blue borders, gradients and spacing.
   Diamond identity is reserved exclusively for subordinate descriptive items;
   never place a watermark in a card, heading or background.
 */
:root {
  --mh-navy: #082d61;
  --mh-navy-deep: #04234e;
  --mh-blue: #1478be;
  --mh-blue-light: #3c9ad5;
  --mh-edge: #cbdfee;
  --mh-ice: #eef6fd;
  --mh-shadow: 0 12px 32px rgba(5, 41, 86, .085);
}

/* Quiet card surfaces; preserve existing dimensions and styling. */
body .mh-brand-surface {
  background-color: #f8fbff !important;
  background-image: linear-gradient(140deg, #fff 0%, #f8fbff 56%, #eaf4fd 100%) !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border-color: var(--mh-edge) !important;
}

/* Do not decorate media or override image backgrounds. Surface elements only. */
body .mh-brand-surface:not(.mh-brand-no-ring) {
  box-shadow: inset 0 3px 0 rgba(31, 125, 195, .35), var(--mh-shadow) !important;
}

body .mh-brand-surface h2,
body .mh-brand-surface h3 { text-shadow: none !important; }

/* Keep project listing image-only area untouched; brand its content panel. */
body .project.project-parallax-jeddah.project-fixed-bg-section .project-card .project-card-body {
  background-color: #f8fbff !important;
  background-image: linear-gradient(148deg, #ffffff 0%, #f7fbff 64%, #edf6fd 100%) !important;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  border-top: 2px solid #a5cce9 !important;
  box-shadow: none !important;
}
body .project.project-parallax-jeddah.project-fixed-bg-section .project-card,
body .project.project-parallax-jeddah.project-fixed-bg-section .project-card:hover {
  border-color: #d1e4f2 !important;
}
body .project.project-parallax-jeddah.project-fixed-bg-section .project-card:hover {
  box-shadow: 0 16px 33px rgba(5, 41, 86, .14) !important;
}
body .project.project-parallax-jeddah.project-fixed-bg-section .project-card .project-card-body h3 a {
  color: #092e5e !important;
}
body .project.project-parallax-jeddah.project-fixed-bg-section .project-card .project-card-action a {
  border-color: #b9d9f1 !important;
  color: #0b5b9b !important;
  background: #eaf4fe !important;
}
body .project.project-parallax-jeddah.project-fixed-bg-section .project-card:hover .project-card-action a,
body .project.project-parallax-jeddah.project-fixed-bg-section .project-card:focus-within .project-card-action a {
  color: #fff !important;
  background: #0c5d9d !important;
}
/* Requested: no shadow on any text inside the projects section. */
body .project.project-parallax-jeddah.project-fixed-bg-section .heading,
body .project.project-parallax-jeddah.project-fixed-bg-section .heading *,
body .project.project-parallax-jeddah.project-fixed-bg-section .project-grid,
body .project.project-parallax-jeddah.project-fixed-bg-section .project-grid * {
  text-shadow: none !important;
}
body .project.project-parallax-jeddah.project-fixed-bg-section .heading h2::after {
  box-shadow: none !important;
}

/* Keep apartment-model surfaces consistent without any corner watermark. */
body .mh-models-scope.mh-models-marquee .mh-model-card .mh-model-card-content {
  background-color: #f8fbff !important;
  background-image: linear-gradient(145deg, #fff, #f7fbff 70%, #eaf4fd) !important;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  border-top: 2px solid #a5cce9 !important;
}
body .mh-models-scope.mh-models-marquee .mh-model-card-action {
  border-color: #bfd8ee;
  background: #eaf4fe;
}

/* Existing project-detail layout and fields — restore visual depth without
   returning to an oversized, flat navy sidebar. */
body .project-detail-page.official-detail-page {
  background:
    radial-gradient(ellipse at 91% 13%, rgba(40, 134, 203, .12), transparent 33%),
    radial-gradient(ellipse at 9% 84%, rgba(9, 51, 107, .065), transparent 35%),
    linear-gradient(180deg, #f1f7fc 0%, #fbfdff 55%, #eff6fc 100%) !important;
}
body .project-detail-page .single-project.official-detail-card {
  border: 1px solid #cbdfee !important;
  border-top: 3px solid #1d7cbd !important;
  background: linear-gradient(145deg, #fff, #f8fbff 76%, #eef6fd) !important;
  box-shadow: 0 15px 43px rgba(5, 41, 86, .10) !important;
  border-radius: 22px !important;
}
body .project-detail-page .project-featured-media {
  border: 1px solid #c6deef !important;
  background:
    linear-gradient(135deg, rgba(29, 118, 189, .05), rgba(4, 44, 100, .03)),
    #eef6fd !important;
}
body .project-detail-page .project-featured-media img {
  box-shadow: 0 10px 27px rgba(6, 49, 105, .11) !important;
}
body .project-detail-page .project-rich-content.text {
  padding: 15px 17px !important;
  border: 1px solid #d2e4f2 !important;
  border-inline-start: 3px solid #2782c3 !important;
  border-radius: 14px !important;
  background-image: linear-gradient(140deg, #fff, #f5faff 82%) !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center !important;
  color: #365474 !important;
  box-shadow: none !important;
}
body .project-detail-page .project-rich-content h2,
body .project-detail-page .project-section-heading h2 {
  color: #082e61 !important;
  text-shadow: none !important;
}
body .project-detail-page .official-detail-sidebar .widget {
  position: relative !important;
  isolation: isolate;
  padding: clamp(17px, 1.8vw, 23px) !important;
  overflow: hidden !important;
  border-radius: 22px !important;
  border: 1px solid #1e5591 !important;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(53, 144, 219, .29), transparent 49%),
    linear-gradient(157deg, #104c8d 0%, #082f69 46%, #062452 100%) !important;
  box-shadow: 0 15px 42px rgba(2, 34, 80, .21), inset 0 1px 0 rgba(255,255,255,.12) !important;
}
body .project-detail-page .official-detail-sidebar .widget::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 33%;
  height: 3px;
  border-radius: 0 20px 0 0;
  background: linear-gradient(270deg, #48a5e5, transparent);
  pointer-events: none;
}
body .project-detail-page .official-detail-sidebar .widget h3 {
  position: relative;
  color: #fff !important;
  font-size: clamp(17px, 1.5vw, 21px) !important;
  padding: 12px 15px 14px !important;
  margin: 0 0 13px !important;
  border: 1px solid rgba(165, 213, 247, .22) !important;
  border-bottom: 2px solid #3198e5 !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, .085) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08) !important;
  text-shadow: none !important;
  text-align: right !important;
}
body .project-detail-page .official-detail-sidebar .project-detail {
  gap: 10px !important;
}
body .project-detail-page .official-detail-sidebar .project-detail .item {
  position: relative !important;
  padding: 11px 14px !important;
  border: 1px solid rgba(171, 212, 247, .15) !important;
  border-radius: 12px !important;
  background: linear-gradient(120deg, rgba(255,255,255,.12), rgba(255,255,255,.045)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04) !important;
}
body .project-detail-page .official-detail-sidebar .project-detail .item:last-child {
  border-bottom: 1px solid rgba(171, 212, 247, .15) !important;
}
body .project-detail-page .official-detail-sidebar .project-detail .item h4 {
  color: #b5dcf9 !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
  text-shadow: none !important;
}
body .project-detail-page .official-detail-sidebar .project-detail .item p {
  color: #fff !important;
  font-size: 13.5px !important;
  line-height: 1.9 !important;
  text-shadow: none !important;
  overflow-wrap: anywhere;
}

/* Gallery and video frames have the same institutional blue edge. */
body .project-detail-page .project-gallery-section,
body .project-detail-page .project-video-section {
  border-color: #ccdfef !important;
  background-image: linear-gradient(145deg, #fff, #f6fbff) !important;
}
body .project-detail-page .project-gallery-card { border: 1px solid #cbdfee !important; }

/* Apartment details: turn flat white panels into quiet branded cards. */
body.apartment-model-details-page .details-panel:not(.details-image-card),
body.apartment-model-details-page .details-title-card,
body.apartment-model-details-page .gallery-shell {
  background-image: linear-gradient(145deg, #fff, #f4f9fe) !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center !important;
  border-color: #ccdfef !important;
}
body.apartment-model-details-page .details-topbar {
  border-top: 2px solid #1f7fc2 !important;
  background: #f9fcff !important;
}
body.apartment-model-details-page .meta-item {
  background: #f0f7fd !important;
  border-color: #d0e2f1 !important;
}

/* Generic public marketing panels: never cover images, and never darken text. */
body .maal-about-card.mh-brand-surface,
body .mh-service-info-card.mh-brand-surface,
body .official-contact-card.mh-brand-surface,
body .contact-form-card.mh-brand-surface,
body .team-item.mh-brand-surface,
body .news-item.mh-brand-surface,
body .blog-item.mh-brand-surface,
body .testimonial-item.mh-brand-surface,
body .feature-card.mh-brand-surface,
body .faq .panel.mh-brand-surface {
  border: 1px solid #d0e1f0 !important;
  border-radius: 17px !important;
}

/* Preserve responsive spacing. No background decorations. */
@media (max-width: 767.98px) {
  body .mh-brand-surface { background-size: cover !important; }
  body .project-detail-page .official-detail-sidebar .widget {
    padding: 15px !important;
    border-radius: 17px !important;
  }
  body .project-detail-page .official-detail-sidebar .project-detail .item { padding: 10px 12px !important; }
  body .project-detail-page .project-rich-content.text { padding: 14px 15px !important; }
}
@media (prefers-reduced-motion: reduce) {
  body .mh-brand-surface { transition: none !important; }
}

/* Remove the theme's plain white outer sidebar shell: navy panel itself is
   the card, so no extra blank white frame surrounds it. */
body .project-detail-page .sidebar.official-detail-sidebar {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 22px !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Branded project masthead, retaining the hosting-configured banner photo. */
body .mh-project-page-banner.page-banner {
  background-color: #092e61 !important;
}
body .mh-project-page-banner.page-banner .bg-page {
  background: linear-gradient(115deg, rgba(3,30,72,.91), rgba(11,86,156,.74) 56%, rgba(6,42,96,.84)) !important;
}
body .mh-project-page-banner.page-banner::after {
  background: radial-gradient(circle at 86% 10%, rgba(68,162,226,.22), transparent 44%) !important;
  pointer-events: none;
}
body .mh-project-page-banner.page-banner .text h1,
body .mh-project-page-banner.page-banner .text h1:hover {
  color: #ffffff !important;
  text-shadow: none !important;
}
body .mh-project-page-banner.page-banner .breadcrumb .breadcrumb-item,
body .mh-project-page-banner.page-banner .breadcrumb .breadcrumb-item.active {
  color: #dcefff !important;
  text-shadow: none !important;
}
body .mh-project-page-banner.page-banner .breadcrumb a { color: #aed9fb !important; }

/* Heading underline is the brand-blue accent, not a luminous text shadow. */
body .project.project-parallax-jeddah.project-fixed-bg-section .heading h2::after,
body .project.project-parallax-jeddah.project-fixed-bg-section .project-heading h2::after {
  box-shadow: none !important;
  background: linear-gradient(90deg, #2e9cdd, #93d4fb) !important;
}

/* Service pages + editorial articles: the same brand system across the site. */
body .mh-service-refined .official-service-detail {
  border: 1px solid #d0e2f0 !important;
  border-top: 3px solid #2a88c8 !important;
  border-radius: 19px !important;
  background-image: linear-gradient(145deg, #fff, #f4f9fe 88%) !important;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  box-shadow: var(--mh-shadow) !important;
}
body .mh-service-refined .mh-service-info-card.mh-brand-surface {
  border-color: #cee0ef !important;
  background-image: linear-gradient(135deg, #fff, #f3f9fe) !important;
}
body .mh-blog-reference .mh-reference-article.mh-brand-surface,
body .mh-blog-reference .mh-reference-widget.mh-brand-surface,
body .mh-news-article .mh-article-content.mh-brand-surface,
body .mh-article-comments .comment-form-card.mh-brand-surface {
  border: 1px solid #d1e2f0 !important;
  background-image: linear-gradient(140deg, #fff, #f4f9fe) !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  box-shadow: 0 7px 22px rgba(6, 44, 94, .065) !important;
}
body .mh-blog-reference .mh-reference-widget.mh-brand-surface,
body .mh-article-comments .comment-form-card.mh-brand-surface { border-radius: 13px !important; }
body .mh-blog-reference .mh-reference-article.mh-brand-surface:hover {
  border-color: #91c0e5 !important;
  box-shadow: 0 12px 27px rgba(6, 44, 94, .10) !important;
}
body .mh-blog-reference .mh-reference-heading h2,
body .mh-news-article .mh-article-content h2 { color: #092e61 !important; }


/* SOURCE: maal-motion-v24.css */
/* MAAL HOME V24 / AOS sequencing and no-external-library fallback. */
body.mh-aos-fallback .mh-motion-target[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
  transition-timing-function: cubic-bezier(.21,.72,.23,1);
  transition-duration: 1000ms;
}
body.mh-aos-fallback .mh-motion-target[data-aos="fade-up"] {transform: translate3d(0, 23px, 0);}
body.mh-aos-fallback .mh-motion-target[data-aos="fade-right"] {transform: translate3d(-20px,0,0);}
body.mh-aos-fallback .mh-motion-target[data-aos="fade-left"] {transform: translate3d(20px,0,0);}
body.mh-aos-fallback .mh-motion-target[data-aos].aos-animate {
  opacity: 1;
  transform: none;
}
/* Ensure the old About reveal engine cannot hide content after AOS is applied. */
body .maal-about-reveal {
  opacity: 1;
  transform: none;
}
body .maal-about-reveal[data-aos]:not(.aos-animate) {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
}
body .maal-about-reveal[data-aos].aos-animate {
  opacity: 1;
  transform: none;
}
/* AOS motion affects only opacity and gentle translation, never blurs/rotates. */
body.mh-motion-ready [data-aos][data-aos-duration] {
  transition-timing-function: cubic-bezier(.21,.72,.23,1) !important;
}
/* Prevent an old reveal transform from winning after the AOS timeline ends. */
body:not(.mh-motion-disabled) .project.project-parallax-jeddah .project-card[data-aos].aos-animate:hover {
  transform: translate3d(0,-4px,0) !important;
}
@media (max-width: 767.98px) {
  body.mh-aos-fallback .mh-motion-target[data-aos="fade-right"],
  body.mh-aos-fallback .mh-motion-target[data-aos="fade-left"] {
    transform: translate3d(0, 18px, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  body .mh-motion-target[data-aos],
  body .maal-about-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
/* Legacy card transitions used !important; allow opacity/transform to reveal
   over a full second rather than snapping to the visible state. */
body.mh-motion-ready .project.project-parallax-jeddah .project-card[data-aos],
body.mh-motion-ready .why-us-final-section .about-card[data-aos],
body.mh-motion-ready .maal-about-card[data-aos] {
  transition: opacity 1050ms cubic-bezier(.21,.72,.23,1),
              transform 1050ms cubic-bezier(.21,.72,.23,1),
              border-color 320ms ease, box-shadow 320ms ease !important;
}

/* Explicitly preserve the AOS stagger when an older !important transition
   shorthand on the project/why-us card would otherwise reset its delay. */
body.mh-motion-ready:not(.mh-aos-fallback) .project.project-parallax-jeddah .project-card[data-aos].aos-animate,
body.mh-motion-ready:not(.mh-aos-fallback) .why-us-final-section .about-card[data-aos].aos-animate,
body.mh-motion-ready:not(.mh-aos-fallback) .maal-about-card[data-aos].aos-animate {
  transition-delay: var(--mh-aos-delay, 0ms) !important;
}

