/* About Al-Hilal page — V7 reference (inner-hero + editorial) */

.theme-about-brand {
  --aah-pad: clamp(24px, 5.5vw, 100px);
  --aah-blue: #001e7c;
  --aah-night: #000d29;
  display: block;
  width: 100%;
  background:
    radial-gradient(circle at 8% 12%, rgba(0, 40, 240, 0.06), transparent 40%),
    linear-gradient(180deg, #f4f8fc 0%, #ffffff 45%, #eef3f9 100%);
  color: #001852;
  font-family: var(--font-body) !important;
  -webkit-font-smoothing: antialiased;
}

.theme-about-brand.is-ltr {
  direction: ltr;
}

.theme-about-brand *,
.theme-about-brand *::before,
.theme-about-brand *::after {
  box-sizing: border-box;
}

/* —— Eyebrow —— */
.aah-eyebrow {
  display: block;
  margin: 0 0 21px;
  color: var(--aah-hero-eyebrow, #fff);
  font-size: var(--aah-eyebrow-size, 13px);
  font-weight: 700;
  line-height: 1.7;
  /* 0: Chrome does not paint letter-spacing on Arabic; Safari does, so 0 keeps the same shape */
  letter-spacing: 0;
}

.aah-eyebrow::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 2px;
  margin-inline-end: 12px;
  vertical-align: middle;
  background: currentColor;
  opacity: 0.7;
}

.aah-eyebrow--dark {
  color: var(--aah-ed-eyebrow, var(--aah-blue));
  margin-bottom: 16px;
}

/* —— Hero (inner-hero about) —— */
.aah-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  width: 100%;
  height: 56.25vw;
  min-height: 620px;
  max-height: 880px;
  padding: 70px var(--aah-pad);
  background: #001852;
  color: #fff;
}

.aah-hero.has-photo {
  display: block;
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 0;
}

.aah-hero__picture {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.aah-hero__photo {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.aah-hero.has-photo::after {
  z-index: 1;
}

.aah-hero.has-photo .aah-hero__content {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: auto;
  right: var(--aah-pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.aah-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* Darkens the RIGHT (where copy sits in AR + EN) — same as reference */
  background: linear-gradient(270deg, #000d2970 0%, #000d2940 32%, transparent 65%);
}

.aah-hero__content {
  position: relative;
  width: 45%;
  max-width: 650px;
  /* Reference .banner-content — physical margin-left:auto keeps block on the RIGHT in AR + EN */
  margin-right: 0;
  margin-left: auto;
  text-align: right;
}

/* EN — same right-side block, left-aligned text (reference html[lang=en] .banner-content) */
.theme-about-brand.is-ltr .aah-hero__content,
html[lang="en"] .theme-about-brand .aah-hero__content {
  margin-right: 0 !important;
  margin-left: auto !important;
  text-align: left !important;
  direction: ltr !important;
}

.aah-hero__title {
  margin: 0;
  max-width: none;
  color: var(--aah-hero-title, #fff);
  font-family: var(--font-display);
  font-size: var(--aah-title-size, 68px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
}

.aah-hero__body {
  margin: 24px 0 0 auto;
  max-width: 450px;
  color: var(--aah-hero-body, rgba(255, 255, 255, 0.92));
  font-size: var(--aah-body-size, 13px) !important;
  font-weight: 400;
  line-height: 2.2;
}

html[lang="en"] .aah-hero__body,
.theme-about-brand.is-ltr .aah-hero__body {
  margin-left: 0;
  margin-right: auto;
}

.aah-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 32px;
}

.aah-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-width: 160px;
  min-height: 52px;
  padding: 13px 24px;
  border: 1px solid var(--aah-cta-bg, var(--theme-btn-bg, #0028f0));
  border-radius: var(--theme-btn-radius, 16px) !important;
  background: var(--aah-cta-bg, var(--theme-btn-bg, #0028f0));
  color: var(--aah-cta-fg, var(--theme-btn-fg, #ffffff)) !important;
  font-size: var(--aah-btn-size, 15px) !important;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.aah-btn:hover,
.aah-btn:focus-visible {
  background: var(--theme-btn-hover, #0021d6);
  border-color: var(--theme-btn-hover, #0021d6);
  color: var(--theme-btn-fg, #ffffff) !important;
  opacity: 1;
  text-decoration: none !important;
}

.aah-btn__arrow {
  font: 22px/1 Arial, sans-serif;
}

/* Reference EN: .arrow{transform:rotate(180deg)} — flips ← to → */
.theme-about-brand.is-ltr .aah-btn__arrow,
html[lang="en"] .aah-btn__arrow {
  transform: rotate(180deg);
}

/* —— Editorial / vision / mission — identical column for every block —— */
.aah-editorial {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(48px, 7vw, 88px) var(--aah-pad);
  text-align: start;
}

.aah-editorial + .aah-editorial {
  border-top: 1px solid rgba(0, 24, 82, 0.08);
  padding-top: clamp(48px, 7vw, 88px);
}

/* Alternating band only — same content column as odd blocks */
.aah-editorial:nth-of-type(even) {
  background: rgba(0, 24, 82, 0.03);
}

.aah-editorial__lead,
.aah-editorial__copy {
  width: min(720px, 100%);
  max-width: 720px;
  margin-inline: auto;
  text-align: start;
}

.aah-editorial__lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.aah-editorial__title {
  margin: 0;
  color: var(--aah-ed-title, #001852);
  font-family: var(--font-display);
  font-size: var(--aah-ed-title-size, 40px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  max-width: none;
  text-align: start;
  width: 100%;
}

.aah-editorial__copy {
  color: var(--aah-ed-text, #3d4f68);
  font-family: var(--font-body) !important;
  font-size: var(--aah-ed-copy-size, 15px) !important;
  font-weight: 400;
  line-height: 1.85;
}

.aah-editorial__copy p {
  margin: 0;
}

.aah-editorial__copy p + p {
  margin-top: 18px;
}

/* —— Mobile — reference .inner-hero @760 (extend to 960 with mobile chrome) —— */
@media (max-width: 960px) {
  .theme-about-brand {
    --aah-pad: 24px;
  }

  .aah-hero {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    background: var(--aah-blue);
    overflow: visible !important;
  }

  .aah-hero::after {
    display: none;
  }

  .aah-hero__photo {
    position: relative !important;
    inset: auto !important;
    z-index: 0;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .aah-hero.has-photo .aah-hero__content {
    position: relative !important;
    inset: auto !important;
    right: auto !important;
    display: block;
    width: 100%;
    max-width: none;
  }

  .aah-hero__content {
    width: 100%;
    max-width: none;
    margin: 0 !important;
    padding: 36px 24px 40px;
    background: var(--aah-blue);
    text-align: right;
  }

  .theme-about-brand.is-ltr .aah-hero__content,
  html[lang="en"] .theme-about-brand .aah-hero__content {
    text-align: left !important;
    margin: 0 !important;
  }

  .aah-eyebrow,
  html[lang="en"] .aah-eyebrow {
    font-size: var(--aah-eyebrow-size-m, 13px) !important;
    margin-bottom: 16px;
  }

  .aah-hero__title,
  html[lang="en"] .aah-hero__title {
    font-size: var(--aah-title-size-m, 32px) !important;
    line-height: 1.6;
    max-width: none !important;
    letter-spacing: 0 !important;
    white-space: nowrap;
  }

  .aah-hero__body,
  html[lang="en"] .aah-hero__body,
  .theme-about-brand.is-ltr .aah-hero__body {
    margin: 20px 0 0 !important;
    max-width: none;
    font-size: var(--aah-body-size-m, 11px) !important;
    line-height: 2.2;
  }

  .aah-hero__actions {
    margin-top: 25px;
    gap: 16px;
  }

  .aah-btn {
    min-width: 148px;
    min-height: 48px;
    padding: 12px 19px;
    font-size: var(--aah-btn-size-m, 14px) !important;
  }

  .aah-editorial {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    max-width: none;
    padding: 48px 24px;
    text-align: start;
  }

  .aah-editorial__lead,
  .aah-editorial__copy {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }

  .aah-editorial__title,
  html[lang="en"] .aah-editorial__title {
    font-size: var(--aah-ed-title-size-m, 28px) !important;
    margin-bottom: 0;
    max-width: none;
    letter-spacing: 0 !important;
    text-align: start;
  }

  .aah-editorial__copy,
  html[lang="en"] .aah-editorial__copy {
    font-size: var(--aah-ed-copy-size-m, 14px) !important;
    line-height: 1.8;
    text-align: start;
  }
}

/* EN — honor layout size settings (same CSS vars as AR) */
html[lang="en"] .aah-eyebrow {
  font-size: var(--aah-eyebrow-size, 13px) !important;
  letter-spacing: 0 !important;
  font-weight: 700 !important;
  white-space: nowrap;
}

html[lang="en"] .aah-hero__title {
  font-size: var(--aah-title-size, 68px) !important;
  line-height: 1.5 !important;
  max-width: none;
  letter-spacing: 0 !important;
  white-space: nowrap;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
}

html[lang="en"] .aah-editorial__title {
  font-size: var(--aah-ed-title-size, 40px) !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
}

html[lang="en"] .aah-hero__body {
  line-height: 1.9 !important;
  font-size: var(--aah-body-size, 13px) !important;
  font-family: var(--font-body) !important;
}

html[lang="en"] .aah-btn {
  font-size: var(--aah-btn-size, 15px) !important;
  letter-spacing: 0;
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
}

html[lang="en"] .aah-editorial__copy {
  font-family: var(--font-body) !important;
}

.aah-eyebrow--dark,
html[lang="en"] .aah-eyebrow--dark {
  font-size: var(--aah-ed-eyebrow-size, 13px) !important;
}

@media (max-width: 960px) {
  .aah-eyebrow,
  html[lang="en"] .aah-eyebrow {
    font-size: var(--aah-eyebrow-size-m, 13px) !important;
  }

  .aah-eyebrow--dark,
  html[lang="en"] .aah-eyebrow--dark {
    font-size: var(--aah-ed-eyebrow-size-m, 13px) !important;
  }

  .aah-hero__title,
  html[lang="en"] .aah-hero__title {
    font-size: var(--aah-title-size-m, 32px) !important;
    letter-spacing: 0 !important;
    max-width: none !important;
  }

  .aah-hero__body,
  html[lang="en"] .aah-hero__body {
    font-size: var(--aah-body-size-m, 11px) !important;
  }

  .aah-btn,
  html[lang="en"] .aah-btn {
    font-size: var(--aah-btn-size-m, 14px) !important;
  }

  .aah-editorial__title,
  html[lang="en"] .aah-editorial__title {
    font-size: var(--aah-ed-title-size-m, 29px) !important;
    letter-spacing: 0 !important;
  }

  html[lang="en"] .aah-editorial__title {
    letter-spacing: 0 !important;
  }

  .aah-editorial__copy,
  html[lang="en"] .aah-editorial__copy {
    font-size: var(--aah-ed-copy-size-m, 14px) !important;
  }
}
