/* ============================================================
   AL-HABIB REAL ESTATE — HOMEPAGE CSS (Arabic / RTL)
   Figma node: 998:17959  Homepage-Desktop-Ar
   Font: Cairo (Google Fonts) — loaded by _LayoutFrontend
   All sections use .mah-* BEM prefix to avoid collisions.
   ============================================================ */

/* ============================================================
   CSS CUSTOM PROPERTIES (Brand tokens)
   ============================================================ */
:root {
  /* Backgrounds */
  --mah-bg-hero:        #25323d;
  --mah-bg-about:       #103c55;
  --mah-bg-timeline:    #103c55;
  --mah-bg-projects:    #25323d;
  --mah-bg-news:        #f0f6f9;
  --mah-bg-partners:    #374955;
  --mah-bg-social:      #1f688f;
  --mah-bg-footer:      #0c3144;

  /* Gold accents */
  --mah-gold:           #b79e71;
  --mah-gold-light:     #99844b;
  --mah-gold-dark:      #7f6f33;
  --mah-gold-btn:       #b79e71;
  --mah-gold-btn-hover: #a08c60;

  /* Text on dark backgrounds */
  --mah-text-white:     #eaf0f3;
  --mah-text-mid:       #b4d2e1;
  --mah-text-blue:      #589ec1;

  /* Text on light backgrounds */
  --mah-text-dark:      #0c3144;
  --mah-text-news-head: #16506e;

  /* Component sizing */
  --mah-card-radius:    16px;
  --mah-card-radius-sm: 12px;
  --mah-section-py:     96px;
  --mah-section-py-md:  64px;
  --mah-section-py-sm:  48px;

  /* Transitions */
  --mah-transition:     0.25s ease;
  --mah-transition-md:  0.4s ease;
}

/* ============================================================
   GLOBAL RESETS FOR HOME PAGE
   ============================================================ */
.home-page {
  overflow-x: hidden;
  background: #0c3144;
}

/* ============================================================
   1. HERO SECTION
   ============================================================ */
.mah-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  max-height: 750px;
  background-color: var(--mah-bg-hero);
  overflow: hidden;
  z-index: 0; /* scoped stacking context — header z-index:1000 always wins */
  font-family: '29LT Zarid', system-ui, sans-serif;
}

/* Blurred ambient background — revealed as main video shrinks on scroll */
.mah-hero__bg-blur {
  position: absolute;
  top: 12.5%;
  bottom: 12.5%;
  left: 50%;
  transform: translateX(-50%);
  width: 93.33%;
  overflow: hidden;
  filter: blur(100px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

.mah-hero__bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
}

/* Main video wrap — JS animates inset + border-radius on scroll */
.mah-hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: 0;
  will-change: inset, border-radius;
}

.mah-hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
}

/* Overlay — full-section, sits above both video layers */
.mah-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 71.931%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.5) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Content — right side, Figma inset: 29.41% 6.67% — / 55.42% */
.mah-hero__content-wrap {
  position: absolute;
  right: 6.67%;
  left: 55.42%;
  top: 29.41%;
  z-index: 3;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 4.7vh, 48px);
}

.mah-hero__heading {
  font-family: 'Greta Arabic', sans-serif;
  font-size: clamp(38px, 5.3vw, 76px);
  color: #f4f4f4;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.033em;
}

.mah-hero__label {
  font-family: '29LT Zarid', sans-serif;
  font-size: clamp(22px, 2.8vw, 40px);
  font-weight: 500;
  color: rgba(244, 244, 244, 0.85);
  margin: 0;
  letter-spacing: 0;
  line-height: 1.5;
}


/* ScrollTrigger inserts a .pin-spacer wrapper around the pinned hero */
.pin-spacer:has(> .mah-hero) {
  background: var(--mah-bg-hero);
}

/* ============================================================
   2. ABOUT SECTION
   ============================================================ */
.mah-about {
  position: relative;
  background: var(--mah-bg-about);
  min-height: 622px;
  overflow-x: clip;    /* clips pattern bleed without creating scroll container */
  padding-bottom: 80px;
  overflow-y: visible; /* keeps image overlap above hero working */
  z-index: 1;
}

/* Decorative column pattern — positioned at Figma coords */
.mah-about__pattern {
  position: absolute;
  left: -176px;
  top: -11px;
  width: 485px;
  height: 627px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.mah-about__pattern img {
  display: block;
  width: 100%;
  height: 100%;
}

/* Top-to-bottom dark gradient */
.mah-about__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0) 55%);
  pointer-events: none;
  z-index: 1;
}

/* Image: absolutely positioned, overlaps hero by 70px */
.mah-about__image-wrap {
  position: absolute;
  right: 6.67%;
  top: -70px;
  width: min(33.4vw, 481px);
  z-index: 2;
}

.mah-about__image {
  display: block;
  width: 100%;
  height: min(49.8vw, 717px);
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  box-shadow: 0 16px 16px rgba(0, 0, 0, 0.2);
}

/* Content: normal flow, padded right to leave space for absolute image */
.mah-about__inner {
  position: relative;
  z-index: 3;
  padding: 159px calc(6.67% + min(33.4vw, 481px) + clamp(32px, 4vw, 64px)) 96px 15%;
}

.mah-about__content {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.mah-about__label {
  font-family: '29LT Zarid', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #99844b;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 20px;
}

.mah-about__heading {
  font-family: '29LT Zarid', sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 4.5vw, 56px);
  color: #eaf0f3;
  line-height: 1.04;
  margin: 0 0 32px;
  letter-spacing: -0.03em;
}

.mah-about__body {
  font-family: '29LT Zarid', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #eaf0f3;
  line-height: 1.6;
  margin: 0 0 32px;
  max-width: 400px;
}

/* Navigation Pill — Figma: no border, 8px radius, 16px pad, 16px gap */
.mah-about .mah-pill-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #99844b;
  font-family: '29LT Zarid', sans-serif;
  font-size: 18px;
  font-weight: 400;
  text-decoration: none;
  transition: background 0.25s ease;
}

.mah-about .mah-pill-link:hover {
  background: rgba(153, 132, 75, 0.1);
  color: #99844b;
}

.mah-about .mah-pill-link svg {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.mah-about .mah-pill-link:hover svg {
  transform: translateX(-4px);
}

/* ── About responsive ── */
@media (max-width: 1100px) {
  .mah-about__image-wrap { right: 4%; }
  .mah-about__inner { padding-right: calc(4% + min(33.4vw, 481px) + 3vw); }
}

@media (max-width: 900px) {
  /* section padding-top clears the absolutely-positioned image */
  .mah-about {
    overflow-x: clip;
    min-height: auto;
    padding-top: calc(min(72vw, 320px) * 1.49 - 70px);
    padding-bottom: 40px;
  }
  /* image stays absolute and overlaps hero, centred horizontally */
  .mah-about__image-wrap {
    left: 0;
    right: 0;
    margin: 0 auto;
    top: -70px;
    width: 72%;
    max-width: 320px;
  }
  .mah-about__image {
    height: auto;
    aspect-ratio: 291 / 434;
  }
  .mah-about__inner { padding: 40px 24px 64px; }
  .mah-about__heading { font-size: 36px; }
  .mah-about__body { font-size: 16px; max-width: 100%; }
  .mah-about .mah-pill-link { font-size: 15px; }
}

@media (max-width: 576px) {
  .mah-about__inner { padding: 32px 16px 48px; }
}

/* ============================================================
   SHARED: PILL LINK (used in multiple sections)
   ============================================================ */
.mah-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid rgba(183, 158, 113, 0.5);
  border-radius: 9999px;
  color: var(--mah-gold);
  font-family: '29LT Zarid', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--mah-transition), border-color var(--mah-transition), color var(--mah-transition);
}

.mah-pill-link:hover {
  background: rgba(183, 158, 113, 0.12);
  border-color: var(--mah-gold);
  color: var(--mah-gold);
}

.mah-pill-link svg {
  flex-shrink: 0;
  transition: transform var(--mah-transition);
}

.mah-pill-link:hover svg {
  transform: translateX(-4px); /* RTL: moves right visually */
}

/* Light variant — for dark section backgrounds */
.mah-pill-link--light {
  color: rgba(234, 240, 243, 0.8);
  border-color: rgba(234, 240, 243, 0.3);
}

.mah-pill-link--light:hover {
  color: #ffffff;
  border-color: rgba(234, 240, 243, 0.7);
  background: rgba(255, 255, 255, 0.08);
}

/* Gold variant — for light section backgrounds */
.mah-pill-link--gold {
  color: var(--mah-gold-dark);
  border-color: rgba(127, 111, 51, 0.4);
}

.mah-pill-link--gold:hover {
  background: rgba(127, 111, 51, 0.1);
  border-color: var(--mah-gold-dark);
  color: var(--mah-gold-dark);
}

/* ============================================================
   3. TIMELINE SECTION (AR / RTL — Figma node 1747-2825)
   ============================================================ */
.mah-timeline {
  position: relative;
  background: #103c55;
  height: 560px;
  overflow: clip;
}

/* ── Images layer (z-index 1) ── */
.mah-timeline__imgs {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.mah-timeline__img-wrap {
  position: absolute;
  top: 23px;
  height: 450px; /* Figma: 450px image, 87px gap below for controls */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.mah-timeline__img-wrap--active {
  opacity: 1;
  transform: translateY(0);
}

/* AR: past (slide 0) = visual RIGHT (reading start in RTL) */
.mah-timeline__img-wrap[data-slide="0"] {
  right: 6.1%;
  width: 48.8%;
}

/* present (slide 1) = centered */
.mah-timeline__img-wrap[data-slide="1"] {
  left: 25.1%;
  width: 49.9%;
}

/* future (slide 2) = visual LEFT */
.mah-timeline__img-wrap[data-slide="2"] {
  left: 7.2%;
  width: 48.8%;
}

.mah-timeline__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.mah-timeline__img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

/* ── Events layer: 3 equal columns (z-index 3) ── */
.mah-timeline__events {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  padding: 0 6.67%;
  pointer-events: none;
}

.mah-timeline__col {
  flex: 1;
  height: 271px;
  position: relative;
  cursor: pointer;
  pointer-events: auto;
}

/* Era title — top of column, hidden unless active */
.mah-timeline__era {
  position: absolute;
  inset: 0 0 auto;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: '29LT Zarid', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: #eaf0f3;
  text-align: center;
  letter-spacing: -0.0375em; /* -1.5px at 40px */
  line-height: 1.25;
  margin: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.mah-timeline__col--active .mah-timeline__era {
  opacity: 1;
}

/* Horizontal line row with dot at the center of each column */
.mah-timeline__line-row {
  position: absolute;
  top: 82px;
  left: 0;
  right: 0;
  height: 13px;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.mah-timeline__line-seg {
  flex: 1;
  height: 1px;
  background: rgba(234, 240, 243, 0.2);
  transition: background 0.45s ease;
}

.mah-timeline__col--active .mah-timeline__line-seg {
  background: rgba(234, 240, 243, 0.55);
}

/* Fade outer segments at section edges (AR: past=first-child on right, future=last-child on left) */
.mah-timeline__col:first-child .mah-timeline__line-seg:first-child {
  background: linear-gradient(to right, rgba(234, 240, 243, 0.2), transparent);
}

.mah-timeline__col:last-child .mah-timeline__line-seg:last-child {
  background: linear-gradient(to left, rgba(234, 240, 243, 0.2), transparent);
}

.mah-timeline__col-dot {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid rgba(234, 240, 243, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.45s ease, box-shadow 0.45s ease;
}

.mah-timeline__col-dot span {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(234, 240, 243, 0.3);
  transition: background 0.45s ease, transform 0.3s ease;
}

.mah-timeline__col--active .mah-timeline__col-dot {
  border-color: rgba(234, 240, 243, 0.9);
  box-shadow: 0 0 0 3px rgba(234, 240, 243, 0.12);
}

.mah-timeline__col--active .mah-timeline__col-dot span {
  background: #eaf0f3;
  transform: scale(1.1);
}

/* Body text — below the line, hidden unless active */
.mah-timeline__body {
  position: absolute;
  top: 127px;
  left: 0;
  right: 0;
  padding: 0 32px;
  font-family: '29LT Zarid', sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: #eaf0f3;
  text-align: center;
  line-height: 1.5;
  letter-spacing: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.mah-timeline__col--active .mah-timeline__body {
  opacity: 1;
}

/* ── Controls — dot navigation (z-index 2) ── */
.mah-timeline__controls {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #0c3144;
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(35, 47, 55, 0.12), 0 1px 2px rgba(35, 47, 55, 0.1);
}

.mah-timeline__ctrl {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(234, 240, 243, 0.25);
  transition: background 0.3s ease, transform 0.3s ease;
}

.mah-timeline__ctrl--active {
  background: #eaf0f3;
  transform: scale(1.2);
}

.mah-timeline__ctrl:hover:not(.mah-timeline__ctrl--active) {
  background: rgba(234, 240, 243, 0.45);
}

/* ============================================================
   4. FEATURED PROJECTS SECTION
   ============================================================ */
.mah-projects {
  background: var(--mah-bg-projects);
  padding: var(--mah-section-py) 0;
}

/* Section header shared utility */
.mah-projects__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 52px;
}

.mah-section__label {
  font-family: '29LT Zarid', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--mah-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.mah-section__label--gold {
  color: var(--mah-gold-dark);
}

.mah-section__heading {
  font-family: '29LT Zarid', sans-serif;
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.28;
  margin: 0;
  letter-spacing: -0.015em;
}

.mah-section__heading--dark {
  color: var(--mah-text-dark);
}

/* ── Carousel ── */
.mah-projects__carousel-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--mah-card-radius);
}

.mah-projects__track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  cursor: grab;
  user-select: none;
}

.mah-projects__track:active {
  cursor: grabbing;
}

.mah-projects__card {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 0;
  border-radius: var(--mah-card-radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform var(--mah-transition), border-color var(--mah-transition), box-shadow var(--mah-transition);
}

.mah-projects__card:hover {
  transform: translateY(-6px);
  border-color: rgba(183, 158, 113, 0.3);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.mah-projects__img-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.mah-projects__img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  transition: transform 0.5s ease;
}

.mah-projects__card:hover .mah-projects__img-placeholder {
  transform: scale(1.04);
}

.mah-projects__card-body {
  padding: 20px 20px 24px;
  text-align: right;
}

.mah-projects__status {
  display: inline-block;
  font-family: '29LT Zarid', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #3da16b;
  background: rgba(61, 161, 107, 0.15);
  border: 1px solid rgba(61, 161, 107, 0.3);
  border-radius: 9999px;
  padding: 3px 12px;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.mah-projects__status--sold {
  color: #e07044;
  background: rgba(224, 112, 68, 0.15);
  border-color: rgba(224, 112, 68, 0.3);
}

.mah-projects__name {
  font-family: '29LT Zarid', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.mah-projects__location {
  font-family: '29LT Zarid', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--mah-text-mid);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.mah-projects__location svg {
  flex-shrink: 0;
  color: var(--mah-gold);
}

/* ── Carousel nav buttons ── */
.mah-projects__nav {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  justify-content: center;
}

.mah-projects__nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background var(--mah-transition),
    border-color var(--mah-transition),
    transform var(--mah-transition);
  padding: 0;
  flex-shrink: 0;
}

.mah-projects__nav-btn:hover {
  background: rgba(183, 158, 113, 0.2);
  border-color: rgba(183, 158, 113, 0.5);
  transform: scale(1.08);
}

.mah-projects__nav-btn:active {
  transform: scale(0.96);
}

.mah-projects__nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

/* ── Carousel dots ── */
.mah-projects__dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

.mah-projects__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--mah-transition), transform var(--mah-transition);
}

.mah-projects__dot--active {
  background: var(--mah-gold);
  transform: scale(1.3);
}

/* ── Stats ── */
.mah-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 72px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 56px;
}

.mah-stats__item {
  text-align: center;
  padding: 0 24px;
  position: relative;
}

.mah-stats__item + .mah-stats__item::before {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.mah-stats__value {
  display: block;
  font-family: '29LT Zarid', sans-serif;
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 700;
  color: var(--mah-gold);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.mah-stats__label {
  display: block;
  font-family: '29LT Zarid', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--mah-text-mid);
  line-height: 1.5;
}

/* ============================================================
   5. NEWS & INSIGHTS SECTION
   ============================================================ */
.mah-news {
  background: var(--mah-bg-news);
  padding: var(--mah-section-py) 0;
}

/* Desktop grid: header col-1, viewall col-2 (same row), cards span full width */
.mah-news .container-xl {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 40px;
  row-gap: 40px;
  align-items: end;
}

.mah-news__header {
  /* grid-column: 1; grid-row: 1 — auto-placed */
}

.mah-news .row {
  grid-column: 1 / -1;
}

.mah-news__titles {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mah-news__label {
  font-family: '29LT Zarid', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #7f6f33;
  margin: 0;
  line-height: 1.25;
}

.mah-news__heading {
  font-family: '29LT Zarid', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--mah-text-dark);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.02em;
}

.mah-news__viewall {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: '29LT Zarid', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #0c3144;
  text-decoration: none;
  white-space: nowrap;
  padding: 12px 16px;
  border-radius: 8px;
  grid-column: 2;
  grid-row: 1;
  transition: color var(--mah-transition);
}

.mah-news__viewall:hover {
  color: #1f688f;
}

/* News card */
.mah-news-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.mah-news-card__img-wrap {
  width: 100%;
  height: 256px;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 8px;
}

.mah-news-card__img-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
  object-fit: cover;
  background: linear-gradient(135deg, #0c3144 0%, #1f5878 100%);
}

.mah-news-card__img-placeholder--2 { background: linear-gradient(135deg, #103c55 0%, #1a6080 100%); }
.mah-news-card__img-placeholder--3 { background: linear-gradient(135deg, #0e4060 0%, #22688c 100%); }

.mah-news-card:hover .mah-news-card__img-placeholder {
  transform: scale(1.04);
}

.mah-news-card__body {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
  text-align: right;
}

.mah-news-card__title-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.mah-news-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  color: #1f688f;
}

.mah-news-card__readtime {
  font-family: '29LT Zarid', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #9A9A9A;
}

.mah-news-card__readtime strong {
  font-weight: 700;
}

.mah-news-card__source-group {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.mah-news-card__source {
  font-family: '29LT Zarid', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #9A9A9A;
}

.mah-news-card__date {
  font-family: '29LT Zarid', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #9A9A9A;
}

.mah-news-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.mah-news-card:hover .mah-news-card__img {
  transform: scale(1.04);
}

.mah-news-card__title {
  font-family: '29LT Zarid', sans-serif;
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 700;
  color: #16506e;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.03em;
  width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mah-news-card__excerpt {
  font-family: '29LT Zarid', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #0c3144;
  line-height: 1.6;
  margin: 0;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.mah-news-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  flex-shrink: 0;
}

.mah-news-card__tag {
  display: inline-flex;
  align-items: center;
  font-family: '29LT Zarid', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #606060;
  background: #e2e8f0;
  border-radius: 9999px;
  padding: 2px 10px;
  height: 24px;
  transition: background var(--mah-transition);
}

.mah-news-card__tag:hover {
  background: #cdd6e0;
}

/* ── News responsive ── */
@media (max-width: 768px) {
  .mah-news {
    padding: var(--mah-section-py-sm) 0;
  }

  .mah-news .container-xl {
    display: flex;
    flex-direction: column;
    align-items: unset;
  }

  .mah-news__header {
    order: 1;
  }

  .mah-news .row {
    order: 2;
  }

  .mah-news__viewall {
    order: 3;
    justify-content: center;
    width: 100%;
    margin-top: 8px;
    grid-column: unset;
    grid-row: unset;
  }

  .mah-news__heading {
    font-size: clamp(24px, 6vw, 32px);
  }

  .mah-news-card__body {
    padding: 0 8px;
    gap: 16px;
  }

  .mah-news-card__title {
    font-size: 20px;
  }
}

/* ============================================================
   6. PARTNERS SECTION
   ============================================================ */
.mah-partners {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.mah-partners__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.mah-partners__bg-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.mah-partners__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(183, 158, 113, 0.35) 5%, rgba(12, 49, 68, 0.25) 60%);
  pointer-events: none;
}

.mah-partners .container-xl {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 640px;
  padding-top: 64px;
  padding-bottom: 64px;
}

.mah-partners__card {
  background: #374955;
  border-radius: 16px;
  padding: 64px;
  width: 381px;
  flex-shrink: 0;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
  text-align: right;
}

.mah-partners__title {
  font-family: '29LT Zarid', sans-serif;
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.02em;
}

.mah-partners__body {
  font-family: '29LT Zarid', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin: 0;
}

/* Gold CTA button */
.mah-btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  background: #b79e71;
  color: #ffffff;
  font-family: '29LT Zarid', sans-serif;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
  box-shadow: 0 1px 2px rgba(35, 47, 55, 0.05);
  white-space: nowrap;
  align-self: flex-start;
}

.mah-btn-gold:hover {
  background: #a08c60;
  box-shadow: 0 4px 12px rgba(183, 158, 113, 0.35);
  transform: translateY(-2px);
  color: #ffffff;
}

.mah-btn-gold:active {
  transform: translateY(0);
}

/* ============================================================
   7. SOCIAL MEDIA BAR
   ============================================================ */
.mah-social-bar {
  background: var(--mah-bg-social);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 22px 24px;
  flex-wrap: wrap;
}

.mah-social-bar__label {
  font-family: '29LT Zarid', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: rgba(234, 240, 243, 0.85);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.mah-social-bar__icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mah-social-bar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(234, 240, 243, 0.85);
  text-decoration: none;
  transition:
    background var(--mah-transition),
    color var(--mah-transition),
    transform var(--mah-transition);
  flex-shrink: 0;
}

.mah-social-bar__icon:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transform: translateY(-3px) scale(1.08);
}

.mah-social-bar__icon:active {
  transform: scale(0.95);
}

/* ============================================================
   ANIMATION INITIAL STATES
   (Elements hidden before GSAP runs — set via JS)
   ============================================================ */
.mah-hero__label,
.mah-hero__heading {
  will-change: opacity, transform;
}

/* ============================================================
   RESPONSIVE — 1200px (Large laptops)
   ============================================================ */
@media (max-width: 1200px) {
  .mah-hero__content-wrap {
    right: 6.67%;
    left: 53.33%;
  }

  .mah-hero__heading {
    font-size: clamp(34px, 4.8vw, 66px);
  }

  .mah-section__heading {
    font-size: clamp(24px, 3vw, 38px);
  }

  .mah-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .mah-projects__card {
    flex: 0 0 calc(40% - 12px);
  }
}

/* ============================================================
   RESPONSIVE — 992px (Tablets landscape)
   ============================================================ */
@media (max-width: 992px) {
  :root {
    --mah-section-py: var(--mah-section-py-md);
  }

  .mah-hero__content-wrap {
    right: 6.67%;
    left: 50%;
  }

  .mah-hero__heading {
    font-size: clamp(30px, 4.2vw, 56px);
  }

  .mah-hero__label {
    font-size: clamp(18px, 2.4vw, 32px);
  }

  .mah-projects__card {
    flex: 0 0 calc(50% - 12px);
  }

  .mah-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .mah-stats__item + .mah-stats__item::before {
    display: none;
  }

  .mah-stats__item {
    padding: 24px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--mah-card-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.07);
  }

  .mah-partners__card {
    padding: 40px 36px;
    width: 340px;
  }
}

/* ============================================================
   RESPONSIVE — 768px (Tablets portrait)
   ============================================================ */
@media (max-width: 768px) {
  .mah-hero {
    height: 80vh;
    height: 80svh;
    max-height: none;
  }

  /* Bottom gradient so text stays readable over the video */
  .mah-hero__overlay {
    background:
      linear-gradient(to top, rgba(0, 0, 0, 0.80) 0%, rgba(0, 0, 0, 0.20) 50%, rgba(0, 0, 0, 0) 100%),
      linear-gradient(rgba(0, 0, 0, 0.30) 0%, rgba(0, 0, 0, 0) 50%);
  }

  /* Blurred bg layer not needed at small sizes */
  .mah-hero__bg-blur {
    display: none;
  }

  /* Content: full width, vertically positioned per Figma (heading ~30% from top) */
  .mah-hero__content-wrap {
    right: 0;
    left: 0;
    top: 30%;
    bottom: auto;
    max-width: 100%;
    padding: 0 24px;
    gap: clamp(28px, 6svh, 56px);
    overflow: hidden; /* clips heading during horizontal slide-in */
  }

  .mah-hero__heading {
    font-size: clamp(26px, 6.5vw, 44px);
  }

  .mah-hero__label {
    font-size: clamp(16px, 3.5vw, 22px);
  }

  .mah-projects__header {
    flex-direction: row;
    align-items: flex-end;
    gap: 16px;
  }

  .mah-projects__card {
    flex: 0 0 calc(80% - 12px);
  }

  .mah-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .mah-partners {
    min-height: auto;
    padding: 64px 0;
  }

  .mah-partners .container-xl {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .mah-partners__card {
    width: 100%;
    margin-left: 0;
    padding: 36px 28px;
    gap: 32px;
  }

  .mah-social-bar {
    flex-direction: column;
    gap: 16px;
    padding: 28px 24px;
  }

  .mah-social-bar__icons {
    gap: 12px;
  }
}

/* ============================================================
   RESPONSIVE — 576px (Mobile)
   ============================================================ */
@media (max-width: 576px) {
  :root {
    --mah-section-py: var(--mah-section-py-sm);
  }

  .mah-hero {
    height: 75vh;
    height: 75svh;
  }

  .mah-hero__content-wrap {
    padding: 0 20px;
    gap: clamp(24px, 5svh, 44px);
  }

  .mah-hero__heading {
    font-size: clamp(28px, 9vw, 42px);
  }

  .mah-hero__label {
    font-size: clamp(16px, 5.5vw, 24px);
  }

  .mah-hero__scroll-indicator {
    display: none;
  }

  .mah-about__body {
    font-size: 16px;
  }

  .mah-projects__card {
    flex: 0 0 calc(90% - 12px);
  }

  .mah-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .mah-stats__value {
    font-size: 40px;
  }

  .mah-stats__label {
    font-size: 14px;
  }

  .mah-news-card__title {
    font-size: 20px;
  }

  .mah-section__heading {
    font-size: 26px;
  }

  .mah-about__heading {
    font-size: 32px;
  }

  .mah-partners__title {
    font-size: 24px;
  }

  .mah-news-card__body {
    padding: 20px;
  }

  .mah-partners__card {
    padding: 28px 20px;
    gap: 28px;
  }

  .mah-social-bar__label {
    font-size: 15px;
  }

  .mah-social-bar__icon {
    width: 40px;
    height: 40px;
  }

  .mah-pill-link {
    font-size: 15px;
    padding: 10px 20px;
  }
}

/* ============================================================
   RESPONSIVE — 400px (Very small screens)
   ============================================================ */
@media (max-width: 400px) {
  .mah-hero__content-wrap {
    padding: 0 16px;
  }

  .mah-hero__heading {
    font-size: clamp(26px, 10vw, 36px);
  }

  .mah-hero__label {
    font-size: clamp(16px, 6vw, 22px);
  }

  .mah-stats {
    grid-template-columns: 1fr 1fr;
  }

  .mah-stats__value {
    font-size: 34px;
  }

  .mah-projects__card {
    flex: 0 0 calc(95% - 12px);
  }
}

/* ============================================================
   RTL AWARENESS
   (html dir="rtl" is set by _LayoutFrontend for Arabic pages)
   All layouts are designed RTL-first — overrides only where needed.
   ============================================================ */

/* Stats separator: in RTL the border should appear on the LEFT side
   of each item (which is visually on the right) */
[dir="rtl"] .mah-stats__item + .mah-stats__item::before {
  right: auto;
  left: 0;
}

/* Pill link arrow flip in RTL — arrow already points left (←) which is
   "forward" in Arabic reading direction */
[dir="rtl"] .mah-pill-link svg {
  transform: scaleX(1); /* already RTL-correct — no flip needed */
}

[dir="rtl"] .mah-pill-link:hover svg {
  transform: translateX(4px); /* moves toward start in RTL = visually left */
}

/* ============================================================
   TIMELINE RESPONSIVE (AR)
   ============================================================ */

/* ── 900px: reduce section height a bit ── */
@media (max-width: 900px) {
  .mah-timeline { height: 480px; }
  .mah-timeline__img-wrap { height: 380px; }
  .mah-timeline__era { font-size: 30px; height: 68px; }
  .mah-timeline__line-row { top: 68px; }
  .mah-timeline__body { top: 110px; font-size: 18px; }
  .mah-timeline__col { height: 230px; }
}

/* ── 768px: mobile card layout ── */
@media (max-width: 768px) {
  .mah-timeline {
    height: auto;
    min-height: 460px;
    padding-bottom: 64px; /* space for controls at bottom */
    margin-bottom: 32px;
  }

  /* All images cover the full section (card style with margins) */
  .mah-timeline__img-wrap,
  .mah-timeline__img-wrap[data-slide="0"],
  .mah-timeline__img-wrap[data-slide="1"],
  .mah-timeline__img-wrap[data-slide="2"] {
    inset: 16px 16px 72px;
    width: auto;
    left: 16px;
    right: 16px;
  }

  /* Events: full overlay, only active column shows */
  .mah-timeline__events {
    position: absolute;
    inset: 16px 16px 72px;
    padding: 0;
    align-items: stretch;
  }

  .mah-timeline__col {
    display: none;
    flex: none;
    width: 100%;
    height: 100%;
    cursor: default;
  }

  .mah-timeline__col--active {
    display: block;
    position: relative;
  }

  /* Reposition content to look good over the mobile card */
  .mah-timeline__era {
    height: auto;
    top: 18%;
    opacity: 1 !important; /* always visible on mobile (only active col shows) */
    font-size: clamp(28px, 8vw, 42px);
  }

  .mah-timeline__line-row {
    top: 50%;
    left: 24px;
    right: 24px;
    transform: translateY(-50%);
  }

  .mah-timeline__body {
    top: auto;
    bottom: 16%;
    opacity: 1 !important;
    font-size: clamp(14px, 4vw, 18px);
    padding: 0 24px;
  }

  /* Controls at bottom of section */
  .mah-timeline__controls {
    bottom: 20px;
  }
}

/* ── 480px: minor font adjustments ── */
@media (max-width: 480px) {
  .mah-timeline { min-height: 400px; }
  .mah-timeline__era { font-size: 28px; }
  .mah-timeline__body { font-size: 16px; padding: 0 16px; }
}

/* ============================================================
   FEATURED PROJECTS SECTION (AR / RTL)
   Figma node: 838-43253
   ============================================================ */

/* ── Section shell ── */
.mah-feat {
  position: relative;
  width: 100%;
  height: 800px;
  background: #0c3144;
  overflow: hidden;
}

/* ── Background image layer ── */
.mah-feat__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.mah-feat__bg-img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.75s ease;
}

.mah-feat__bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mah-feat__bg-img--active {
  opacity: 1;
}

/* ── Dark gradient overlay ── */
.mah-feat__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(270deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.3) 100%),
    linear-gradient(rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.3) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.6) 100%);
}

/* ── Header (top of section) ── */
.mah-feat__header {
  position: absolute;
  top: 64px;
  right: 96px;
  left: 96px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: flex-start; /* RTL column: flex-start = cross-start = inline-start = RIGHT */
}

.mah-feat__header-row {
  display: flex;
  flex-direction: row;
  width: 100%;
  justify-content: space-between;
  align-items: center;
}

/* ── Section label ── */
.mah-feat__label {
  font-family: '29LT Zarid', serif;
  color: #e6ce9b;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}

/* ── View-all link ── */
.mah-feat__view-all {
  font-family: '29LT Zarid', sans-serif;
  color: rgba(234, 240, 243, 0.7);
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Section heading ── */
.mah-feat__heading {
  font-family: '29LT Zarid', serif;
  color: #f4f4f4;
  font-size: 60px;
  font-weight: 700;
  letter-spacing: -0.033em;
  line-height: 1.25;
  max-width: 728px;
  text-align: right;
}

/* ── Projects list ── */
.mah-feat__projects {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: row;
  padding: 0 96px;
  pointer-events: none;
  align-items: stretch;
}

/* ── Individual project column ── */
.mah-feat__project {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 24px 48px;
  cursor: pointer;
  pointer-events: auto;
}

/* ── Project name ── */
.mah-feat__project-name {
  font-family: '29LT Zarid', serif;
  color: #f4f4f4;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03125em;
  line-height: 1.25;
  text-align: right;
  margin: 0 0 16px;
  opacity: 0.5;
  transition: opacity 0.45s ease;
}

.mah-feat__project--active .mah-feat__project-name {
  opacity: 1;
}

/* ── Separator line ── */
.mah-feat__project-line {
  display: block;
  width: 100%;
  height: 1px;
  background: #16506e;
  flex-shrink: 0;
}

/* ── Project detail (body + link) ── */
.mah-feat__project-detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.55s ease, opacity 0.4s ease, padding-top 0.45s ease;
  padding-top: 0;
}

.mah-feat__project--active .mah-feat__project-detail {
  max-height: 240px;
  opacity: 1;
  padding-top: 24px;
}

/* ── Project body text ── */
.mah-feat__project-body {
  font-family: '29LT Zarid', serif;
  color: #f4f4f4;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  text-align: right;
}

/* ── Project link ── */
.mah-feat__project-link {
  font-family: '29LT Zarid', serif;
  color: #dfc694;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start; /* RTL column: flex-start = cross-start = inline-start = RIGHT */
}

/* ── Responsive: ≤1100px ── */
@media (max-width: 1100px) {
  .mah-feat__heading {
    font-size: 48px;
  }

  .mah-feat__header {
    right: 40px;
    left: 40px;
  }

  .mah-feat__projects {
    padding: 0 40px;
  }

  .mah-feat__project-name {
    font-size: 26px;
  }
}

/* ── Nav: full-section overlay on desktop, one arrow each side centered ── */
.mah-feat__nav {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.mah-feat__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(212, 225, 233, 0.35);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #d4e1e9;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.mah-feat__arrow[data-feat-arrow="left"]  { left:  24px; }
.mah-feat__arrow[data-feat-arrow="right"] { right: 24px; }

.mah-feat__arrow:hover,
.mah-feat__arrow:focus-visible {
  border-color: rgba(212, 225, 233, 0.65);
  background: rgba(0, 0, 0, 0.2);
  outline: none;
}

/* Nav info hidden on desktop */
.mah-feat__nav-info { display: none; }

/* ── Responsive: ≤768px (mobile) ── */
@media (max-width: 768px) {
  .mah-feat {
    height: 680px;
  }

  .mah-feat__header {
    position: absolute;
    top: 48px;
    right: 24px;
    left: 24px;
    padding: 0;
    gap: 20px;
  }

  .mah-feat__heading {
    font-size: clamp(28px, 7vw, 40px);
    max-width: 100%;
  }

  .mah-feat__projects {
    display: none;
  }

  /* Nav spans full width: arrows at bottom-left, name at bottom-right */
  .mah-feat__nav {
    inset: auto;
    bottom: 32px;
    left: 24px;
    right: 24px;
    pointer-events: auto;
    display: flex;
    flex-direction: row;
    direction: ltr; /* override master.css * { direction: rtl } so flex flows left → right */
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(22, 80, 110, 0.7);
  }

  .mah-feat__arrow {
    position: static;
    top: auto;
    transform: none;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
  }

  .mah-feat__nav-info {
    display: flex;
    flex-direction: column;
    margin-left: auto;
  }

  .mah-feat__nav-name {
    font-family: '29LT Zarid', serif;
    color: #f4f4f4;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 0;
    text-align: right;
    white-space: nowrap;
  }

  /* Line handled by border-bottom on nav — hide the inline element */
  .mah-feat__nav-line {
    display: none;
  }
}

/* ── Responsive: ≤480px ── */
@media (max-width: 480px) {
  .mah-feat {
    height: 580px;
  }

  .mah-feat__heading {
    font-size: clamp(24px, 7vw, 32px);
  }

  .mah-feat__header {
    top: 40px;
    right: 16px;
    left: 16px;
  }

  .mah-feat__nav {
    bottom: 28px;
    left: 16px;
    right: 16px;
  }

  .mah-feat__arrow {
    width: 48px;
    height: 48px;
  }

  .mah-feat__nav-name {
    font-size: 22px;
  }
}

/* ============================================================
   BY THE NUMBERS SECTION (AR / RTL)
   Figma node: 101-3424
   ============================================================ */

.mah-bynum {
  position: relative;
  width: 100%;
  height: 720px;
  background: #0c3144;
  overflow: hidden;
}

.mah-bynum__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(270deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.25) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 35%);
}

.mah-bynum__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 64px 96px 0;
}

.mah-bynum__label {
  font-family: '29LT Zarid', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #836b40;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1;
  margin: 0;
  text-align: right;
}

.mah-bynum__grid {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  padding-bottom: 80px;
}

.mah-bynum__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 24px;
}

.mah-bynum__number {
  font-family: '29LT Zarid', sans-serif;
  font-size: 60px;
  font-weight: 700;
  color: #eaf0f3;
  line-height: 1.25;
  letter-spacing: -0.033em;
  margin: 0 0 -4px;
  text-align: right;
  white-space: nowrap;
}

.mah-bynum__body {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 32px;
}

.mah-bynum__subtitle {
  font-family: '29LT Zarid', sans-serif;
  font-size: 32px;
  font-weight: 500;
  color: #eaf0f3;
  line-height: 1.5;
  letter-spacing: 0;
  margin: 0;
  text-align: right;
}

.mah-bynum__divider {
  display: block;
  width: 100%;
  height: 1px;
  background: #9e8658;
  flex-shrink: 0;
}

.mah-bynum__desc {
  font-family: '29LT Zarid', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #c9d8e1;
  line-height: 1.5;
  letter-spacing: 0;
  margin: 0;
  opacity: 0.8;
  text-align: right;
}

/* ── ≤1100px ── */
@media (max-width: 1100px) {
  .mah-bynum__inner { padding: 64px 40px 0; }
  .mah-bynum__number { font-size: 48px; }
  .mah-bynum__subtitle { font-size: 26px; }
}

/* ── ≤768px: stack vertically ── */
@media (max-width: 768px) {
  .mah-bynum {
    height: auto;
  }

  .mah-bynum__inner {
    height: auto;
    padding: 48px 24px 56px;
    gap: 40px;
  }

  .mah-bynum__grid {
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 0;
    gap: 0;
  }

  .mah-bynum__item {
    padding: 32px 0;
    justify-content: flex-start;
  }

  .mah-bynum__item:last-child {
    padding-bottom: 0;
  }

  .mah-bynum__number { font-size: clamp(40px, 10vw, 56px); }
  .mah-bynum__subtitle { font-size: clamp(22px, 5vw, 28px); }
  .mah-bynum__body { gap: 24px; padding-bottom: 0; }
}

/* ── ≤480px ── */
@media (max-width: 480px) {
  .mah-bynum__inner { padding: 40px 16px 48px; }
  .mah-bynum__number { font-size: clamp(36px, 9vw, 48px); }
  .mah-bynum__subtitle { font-size: clamp(20px, 5vw, 26px); }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .mah-hero { height: auto; padding: 40px 0; }
  .mah-hero__overlay,
  .mah-hero__video-wrap { display: none; }
  .mah-hero__content-wrap {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
  }
  .mah-social-bar { display: none; }
}
