/* =========================================================
   Datamatix Group — Corporate Homepage
   Standalone build
   ========================================================= */

/* Brand typefaces: Emirates (headings and labels) and Montserrat (body
   copy, loaded from Google Fonts); see "Typography" at the end of this file.
   Bahij TheSansArabic is kept for Arabic text. */
@font-face {
  font-family: "Bahij TheSansArabic";
  src: url("../fonts/Bahij_TheSansArabic-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: emiratesFont;
  src: url("../fonts/EmiratesSM Regular.otf") format("opentype");
  font-weight: 400;
}
@font-face {
  font-family: emiratesFont;
  src: url("../fonts/Emirates Bold.ttf") format("truetype");
  font-weight: 700;
}
@font-face {
  font-family: emiratesBoldFont;
  src: url("../fonts/Emirates Bold.ttf") format("truetype");
  font-weight: 100 900;
}

:root {
  /* exact hex values pulled from the live site's src/css/style.css */
  --blue: #0171bb;
  --blue-dark: #0070b6;
  --blue-darker: #123b6e;
  --heading-blue: #09539f;
  --purple: #90278e;
  --orange: #f59d2f;
  --red: #ed1b24;
  --gold: #f59d2f;
  --gold-dark: #ee5a28;
  --gold-light: #f9ad41;
  --black: #000000;
  --ink: #14181f;
  --body: #4b5563;
  --grey-bg: #f2f2f2;
  --line: #e6e7e8;
  --page-gutter: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: emiratesFont, Arial, sans-serif;
  font-size: 16px;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: emiratesBoldFont, Arial, sans-serif;
  font-weight: bold;
  margin: 0;
  color: var(--ink);
}

p {
  margin: 0;
  line-height: 1.65;
  color: var(--body);
}

.shell {
  width: min(1440px, calc(100vw - (var(--page-gutter) * 2)));
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  padding: 0;
  font-family: emiratesBoldFont, Arial, sans-serif;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
}

.btn span:first-child {
  padding: 15px 26px;
}

.card__body .btn {
  font-size: 1.18rem;
  line-height: 1.3;
}

.card__body .btn span:first-child {
  padding: 5px 32px;
}

.card__body .btn__arrow {
  width: 40px;
  font-size: 0.8rem;
}

.card__body .btn--blue {
  background: #0b559f;
}

.card__body .btn--blue:hover {
  background: #094a8c;
}

.btn__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  align-self: stretch;
  font-size: 1.1rem;
}

.btn--blue {
  background: var(--blue);
  color: #ffffff;
}

.btn--blue .btn__arrow {
  background: #000000;
  color: #ffffff;
}

.btn--blue:hover {
  background: var(--blue-dark);
}

.btn--black {
  background: var(--black);
  color: #ffffff;
}

.btn--black .btn__arrow {
  background: #b07c2c;
  color: #ffffff;
}

.btn--black:hover {
  background: #1a1a1a;
}

.btn--gold {
  background: var(--gold-dark);
  color: #ffffff;
  padding: 14px 26px;
  border-radius: 4px;
}

.btn--gold:hover {
  background: var(--gold);
}

/* ---------- Masthead ---------- */
.masthead {
  border-bottom: 1px solid var(--line);
}

.masthead__utility {
  display: flex;
  justify-content: flex-end;
  padding: 10px var(--page-gutter) 0;
}

.masthead__main {
  padding: 8px 0 13px;
}

.masthead__main .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 1680px;
}

.masthead__logo img {
  height: 124px;
  width: auto;
}

.masthead__tagline {
  font-size: 1.35rem;
  color: var(--ink);
  font-weight: 400;
  flex: 1 1 260px;
  text-align: center;
}

.masthead__lang {
  font-size: 0.85rem;
  color: #555;
  background: #efefef;
  padding: 6px 12px;
  border-radius: 4px;
}

.masthead__badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: emiratesBoldFont, Arial, sans-serif;
  font-size: 1.15rem;
  line-height: 1;
  text-transform: uppercase;
  color: #224fa5;
}

.masthead__badge img {
  height: 74px;
  width: auto;
}

/* ---------- Nav ---------- */
.main-nav {
  background: var(--blue-dark);
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.nav-list li {
  display: flex;
  align-items: center;
}

.nav-list li:not(:last-child)::after {
  content: "|";
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 300;
}

.nav-list a {
  text-decoration: none;
  display: inline-block;
  padding: 18px 4px;
  font-size: 18px;
  font-family: emiratesFont, Arial, sans-serif;
  font-weight: bold;
  color: #ffffff;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-list a:hover,
.nav-list a.is-current {
  color: var(--gold-light);
}

.nav-toggle {
  display: none;
}

.nav-toggle-btn {
  display: none;
}

@media (max-width: 1100px) {
  .main-nav .shell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    min-height: 48px;
  }

  .nav-toggle-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 14px 0;
    cursor: pointer;
    margin-left: auto;
  }

  .nav-toggle-btn span {
    display: block;
    width: 26px;
    height: 2px;
    background: #ffffff;
    transition:
      transform 0.2s ease,
      opacity 0.2s ease;
  }

  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-bottom: 12px;
    text-align: center;
  }

  .nav-toggle:checked ~ .nav-list {
    display: flex;
  }

  .nav-list li {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .nav-list li:not(:last-child)::after {
    content: none;
  }

  .nav-list a {
    width: 100%;
    padding: 12px 4px;
    font-size: 16.5px;
    white-space: normal;
    text-align: center;
  }
}

/* ---------- Internal menu ---------- */
.sub-nav {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.sub-nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 22px;
  min-height: 50px;
}

.sub-nav__list a {
  text-decoration: none;
  display: inline-block;
  padding: 12px 0;
  font-size: 18px;
  font-family: emiratesFont, Arial, sans-serif;
  color: #000000;
  transition: color 0.2s;
  white-space: nowrap;
}

.sub-nav__list a:hover,
.sub-nav__list a.is-current {
  color: var(--blue-dark);
}

@media (max-width: 1100px) {
  .sub-nav__list {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .sub-nav__list::-webkit-scrollbar {
    display: none;
  }

  .sub-nav__list a {
    font-size: 15px;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: #000000;
}

.hero__bg {
  width: 100%;
  height: clamp(320px, 46vw, 620px);
  object-fit: cover;
  object-position: center top;
  opacity: 0.92;
}

.hero__inner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px var(--page-gutter) 36px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.55) 55%,
    rgba(0, 0, 0, 0) 100%
  );
}

.hero__inner .shell {
  border-left: 5px solid var(--blue);
  padding-left: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 24px;
  align-items: end;
}

.hero__logo {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  height: clamp(100px, 10vw, 150px);
  width: auto;
}

@media (max-width: 640px) {
  .hero__logo {
    height: 64px;
  }
}

.hero__title {
  color: #ffffff;
  font-size: clamp(2.7rem, 3vw, 3.7rem);
  line-height: 1.25;
}

.hero__desc {
  color: #f1f1f1;
  margin-top: 0px;
  font-size: clamp(1.6rem, 2.4vw, 1.8rem);
}

/* ---------- Ticker ---------- */
.ticker {
  background: var(--blue);
  color: #ffffff;
}

.ticker .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px var(--page-gutter);
}

.ticker__text {
  font-size: 1rem;
  color: #ffffff;
}

.ticker__text strong {
  color: #ffffff;
  font-weight: 400;
  margin-left: 8px;
}

.ticker .btn--black {
  background: #1a1a1a;
  border: 1px solid #3a3a3a;
}

.ticker .btn--black span:first-child {
  padding: 10px 44px;
}

.ticker .btn--black {
  font-weight: 400;
}

/* ---------- Section heads ---------- */
.section {
  padding: 38px 0;
}

.section--grey {
  background: var(--grey-bg);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.section-head__title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-head__title .arrow {
  color: var(--blue);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.section-head h2 {
  font-size: clamp(1.4rem, 2vw, 1.9rem);
}

/* Exact match for old site's plain page headings (e.g. "Who We Are", "Datamatix Welcome Message") */
.legacy-heading {
  font-family: emiratesFont, Arial, sans-serif;
  font-weight: 500;
  color: var(--heading-blue);
  font-size: 26px;
}

.legacy-copy {
  font-size: 24px;
  line-height: 1.5;
  text-align: justify;
  color: #212529;
}

.section-head__link {
  background: var(--grey-bg);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-family: emiratesBoldFont, Arial, sans-serif;
  font-weight: 900;
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 1.1rem;
  white-space: nowrap;
  /* margin-right: 108px; */
}

.section-head__link:hover {
  background: #ececec;
}

.section-intro {
  /* max-width: 1100px; */
  margin-bottom: 28px;
  font-size: 1.1rem;
  text-align: justify;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 30px 0;
}

.stat {
  padding: 0 20px;
  border-right: 2px solid #c7cdd4;
  text-align: center;
}

.stat:last-child {
  border-right: none;
}

.stat__icon {
  display: block;
  width: auto;
  height: 30px;
  object-fit: contain;
  margin: 0 auto 10px;
}

.stat__num {
  font-family: emiratesBoldFont, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 2.6vw, 3rem);
  color: var(--blue);
  line-height: 1.1;
}

.stat__label {
  font-weight: 400;
  color: var(--ink);
  margin-top: 6px;
  font-size: 1.2rem;
  -webkit-text-stroke: 0.35px currentColor;
  text-stroke: 0.35px currentColor;
}

.stat__sub {
  color: var(--body);
  font-size: 0.9rem;
  margin-top: 0px;
  line-height: 0.8;
}

@media (max-width: 900px) {
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 24px;
  }

  .stat:nth-child(3) {
    border-right: none;
  }
}

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

  .stat:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .stat:nth-child(even) {
    border-right: none;
  }
}

/* ---------- Colorgraph divider (exact match: old .welcome-page .colorgraph) ---------- */
.colorgraph {
  height: 5px;
  opacity: 0.5;
  border: 0;
  background: var(--blue);
  border-radius: 5px;
  margin: 14px 0 34px;
}

/* ---------- Welcome / video split (exact match: old .welcome-video) ---------- */
.welcome {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
  gap: 40px;
  align-items: center;
}

.welcome__tag {
  display: block;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: -20px;
  margin-bottom: 16px;
}

.welcome__copy h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  line-height: 1.2;
  margin-bottom: 18px;
}

.welcome__copy p {
  font-size: 1.02rem;
}

.welcome__copy a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.welcome__copy a:hover {
  text-decoration: underline;
}

.welcome__media {
  position: relative;
  background-color: transparent;
  padding: 0;
}

.welcome__media img {
  display: block;
  width: 100%;
  height: auto;
}

.welcome__media video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  border-radius: 24px;
}

.welcome__quote {
  font-size: 25px;
  line-height: 37px;
  text-align: justify;
  font-family: emiratesBoldFont, Arial, sans-serif;
  font-weight: bold;
  font-style: normal;
  color: var(--ink);
}

@media (max-width: 900px) {
  .welcome {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---------- Card grids (conferences / institute) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 644 / 340;
  object-fit: cover;
}

.card__body {
  padding: 23px 24px 38px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__body h3 {
  font-size: 1.6rem;
  line-height: 1.2;
  margin-bottom: 10px;
}

/* Keeps the description rows level when a title is shorter than three lines */
.card-grid--aligned .card__body h3 {
  min-height: 3.6em;
}

.card__body p {
  font-size: 0.9rem;
  line-height: 1.4;
  flex: 1;
}

.card__body p a {
  color: var(--gold-dark);
  font-weight: 700;
  text-decoration: none;
}

.card__body p a.card__more {
  color: var(--blue);
  font-weight: 600;
  white-space: nowrap;
}

.card__body p a.card__more:hover {
  text-decoration: underline;
}

.card__body .card__date {
  flex: none;
  font-size: 0.91rem;
  color: var(--ink);
  font-weight: 500;
  margin: 16px 0 20px;
}

@media (max-width: 980px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .card-grid--aligned .card__body h3 {
    min-height: 0;
  }

  .card__body {
    padding: 22px 24px 28px;
  }
}

/* ---------- Milestones intro ---------- */
.milestones-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.milestones-intro h2 {
  font-size: clamp(1.5rem, 2.3vw, 2.15rem);
}
.milestones-intro > div:first-child {
  flex: 1;
  min-width: 0;
}

.milestones-intro .section-head__title {
  gap: 34px;
}

.milestones-intro .section-head__title .arrow {
  flex: 0 0 28px;
  color: #224fa5;
  font-size: 28px;
}

.milestones-intro .section-intro {
  margin: 10px 0 0 62px;
  max-width: 34em;
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  line-height: 1.25;
  color: #000;
}

.milestones-intro__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: emiratesBoldFont, Arial, sans-serif;
  font-size: 1.15rem;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  color: #224fa5;
}

.milestones-intro__badge img {
  height: 58px;
  width: auto;
}

/* ---------- Gallery mosaic ---------- */
.section:has(.gallery) {
  padding: 44px 0 18px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  align-items: stretch;
  gap: 28px;
}

.gallery__item {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--line);
  border: 0;
  border-radius: 26px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
}

/* Regular images grow to fill row height set by the tallest card */
.gallery__item img {
  width: 100%;
  flex: 1;
  height: 0;
  min-height: 220px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* These delegate photos are near-square portraits stretched into a very
   wide row — cover+top was cropping straight through people's heads.
   Show the full photo instead (letterboxed on white) rather than crop it. */
.gallery__item img.gallery__item-full-photo {
  object-fit: contain;
  background: #ffffff;
}

.gallery__cap {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  height: 68px;
  padding: 0 20px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.gallery__item .gallery__cap {
  padding: 12px 14px;
}

.gallery__cap .arrow {
  color: var(--blue);
  font-size: 1.1rem;
}

.gallery__item--wide {
  grid-column: span 2;
}

.gallery__item--full {
  grid-column: span 3;
  /* Round the top of the photo and the bottom of the white caption strip. */
  border-radius: 26px 26px 26px 26px;
  overflow: visible;
}

/* Full item: shows at its natural aspect ratio across the full row width.
   Square (unrounded) bottom edge — the photo sits above the caption, not
   at the card's own bottom edge. */
.gallery__item--full img {
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
  width: 100%;
  object-fit: unset;
  border-radius: 0 !important;
}

/* Wide image shows at natural full height — drives the row height */
.gallery__item--wide img {
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
  width: 100%;
  display: block;
  object-fit: unset;
}

@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery__item--wide,
  .gallery__item--full {
    grid-column: span 2;
  }
}

@media (max-width: 620px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery__item--wide,
  .gallery__item--full {
    grid-column: span 1;
  }

  .gallery__item img {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    min-height: 0;
    object-fit: unset;
  }
}

/* ---------- Leaders gallery grid (World Leaders at Past Datamatix Events) ---------- */
.leaders-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.leader {
  text-align: center;
}

.leader img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 8px;
}

.leader small {
  font-size: 0.85rem;
  color: var(--ink);
  display: block;
}

@media (max-width: 900px) {
  .leaders-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

/* ---------- Events Management card ---------- */
/* Positions and type are measured from the 2026 layout PDF, in container
   units (cqw) so they scale with the artwork. */
.events-card {
  position: relative;
  container-type: inline-size;
  border-radius: 28px;
  overflow: hidden;
}

.events-card__bg {
  display: block;
  width: 100%;
  height: auto;
}

.events-card__head {
  position: absolute;
  top: 2.4cqw;
  left: 5.35cqw;
}

.events-card__logo {
  width: 13.5cqw;
  height: auto;
  margin-left: -0.65cqw;
}

.events-card__head h2 {
  margin-top: 1.7cqw;
  font-family: emiratesBoldFont, Arial, sans-serif;
  font-size: max(3.6cqw, 14px);
  line-height: 1.15;
  text-transform: uppercase;
  color: #000;
}

.events-card__foot {
  position: absolute;
  top: 90.5%;
  left: 5.35cqw;
  right: 4.3cqw;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2cqw;
}

.events-card__foot p {
  min-width: 0;
  font-size: max(1.85cqw, 10px);
  line-height: 1.2;
  text-transform: uppercase;
  color: #000;
}

.events-card__foot .btn {
  flex: 0 0 auto;
  background: #000;
  border-radius: 4px;
  font-size: max(1cqw, 10px);
  padding: max(0.5cqw, 5px) max(2.3cqw, 10px);
  white-space: nowrap;
}

.section:has(.overlay-banner) .section-head__title h2 {
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 800;
}

.section:has(.strength-grid) .section-head__title h2 {
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 800;
}

/* ---------- Overlay banner (Journey / Passion) ---------- */
/* Full-bleed; the fade to black is part of the artwork. Measured from the
   2026 layout PDF, in container units (cqw). */
.overlay-banner {
  position: relative;
  container-type: inline-size;
  width: 100vw;
  margin: 18px 0 0 calc(50% - 50vw);
  overflow: hidden;
}

.overlay-banner__bg {
  display: block;
  width: 100%;
  height: auto;
}

.overlay-banner__text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2.5cqw;
  /* Same left/right edge as .shell, so the copy lines up with the heading above */
  --shell-edge: calc(
    (100cqw - min(1440px, 100cqw - (var(--page-gutter) * 2))) / 2
  );
  padding: 0 var(--shell-edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2cqw;
}

.overlay-banner__copy {
  min-width: 0;
  padding-left: 2.75cqw;
  border-left: max(0.5cqw, 3px) solid var(--blue);
}

.overlay-banner__text h3 {
  font-family: emiratesFont, Arial, sans-serif;
  font-weight: 400;
  font-size: max(3.05cqw, 15px);
  line-height: 1.12;
  text-transform: uppercase;
  color: #ffffff;
}

.overlay-banner__text p {
  margin-top: 0.6cqw;
  font-size: max(1.5cqw, 11px);
  color: #c9c9c9;
}

.overlay-banner__badge {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 1cqw;
  font-family: emiratesBoldFont, Arial, sans-serif;
  font-size: max(1.3cqw, 8px);
  line-height: 1.2;
  text-transform: uppercase;
  color: #ffffff;
}

.overlay-banner__badge img {
  width: max(9cqw, 44px);
  height: auto;
}

@media (max-width: 480px) {
  .overlay-banner__badge span {
    display: none;
  }
}

/* ---------- Strength ---------- */
.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

@media (max-width: 900px) {
  .strength-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .strength-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Vision banner ---------- */
.vision-banner img {
  width: 100%;
  border-radius: 9px;
  display: block;
  object-fit: cover;
}

.vision-banner__tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  margin-bottom: 4px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}

.vision-banner__tag .arrow {
  color: var(--blue);
  font-size: 1.1rem;
}

.strength-intro,
.section:has(.overlay-banner) .section-intro {
  font-weight: 600;
}

.section:has(.overlay-banner) .section-intro {
  line-height: 1.27;
}

/* .strength-intro {
  max-width: 1300px;
} */

/* ---------- Awards institute ---------- */
.institute {
  display: grid;
  /* grid-template-columns: 210px minmax(0, 1fr); */
  gap: 18px;
  align-items: center;
}

.institute__badge img {
  width: 200px;
  height: auto;
}

.institute__media img {
  width: 100%;
  aspect-ratio: 21 / 6;
  object-fit: contain;
  background: #ffffff;
  border-radius: 9px;
}

.institute__foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.institute__foot .btn--gold {
  background: #b07c2c;
  padding: 9px 22px;
  font-size: 0.92rem;
}

.institute__foot .btn--gold:hover {
  background: #c98f33;
}

.institute__foot-text p:first-child {
  font-size: 1.4rem;
  font-family: "Bahij TheSansArabic", emiratesFont, Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 0;
  line-height: 1.2;
}

.institute__foot-text p:last-child {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .institute {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .institute__badge {
    justify-self: center;
  }

  .institute__foot {
    grid-column: 1;
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- Prestigious banner ---------- */
/* Desktop matches the 1600x812 design; type sized in container units (cqw) so it scales with the card. */
.prestige {
  position: relative;
  container-type: inline-size;
  width: 100%;
  aspect-ratio: 1600 / 812;
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  font-family: emiratesFont, Arial, sans-serif;
}

.prestige__copy {
  position: relative;
  z-index: 1;
  width: 70%;
  padding: 3.7cqw 0 0 1.25cqw;
}

.prestige__title {
  font-family: inherit;
  font-weight: 700;
  font-size: 3.3cqw;
  line-height: 1.29;
  text-transform: uppercase;
  color: #000;
  letter-spacing: 0;
}

.prestige__eyebrow {
  margin-top: -0.35cqw;
  padding-bottom: 2.5cqw;
  max-width: 62.8cqw;
  border-bottom: 1px solid #c9b58d;
  font-weight: 500;
  font-size: 1.65cqw;
  text-transform: uppercase;
  color: #000;
}

.prestige__subtitle {
  margin: 1.6cqw 0 1.8cqw;
  font-family: inherit;
  font-weight: 600;
  font-size: 2.8cqw;
  line-height: 1.2;
  color: #000;
}

.prestige__copy p:not(.prestige__eyebrow) {
  max-width: 55.5cqw;
  font-size: 1.4cqw;
  line-height: 1.47;
  color: #555;
}

.prestige__copy p:not(.prestige__eyebrow) + p {
  margin-top: 2.06cqw;
}

.prestige__more {
  color: #d3202a;
}

/* The whole section links to meawards.com. */
.prestige-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.prestige-link:hover .prestige__more {
  text-decoration: underline;
}

.prestige-link:focus-visible {
  outline: none;
}

.prestige-link:focus-visible .prestige {
  outline: 3px solid #b07c2c;
  outline-offset: 4px;
}

/* Linked artwork filling the card behind the copy. Scaled to cover by
   height (no distortion); the plain white left side is what gets cropped. */
.prestige__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}

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

/* Narrow screens: text no longer fits inside the artwork, so let the card
   grow with its content and keep the trophy to the right as a backdrop. */
@media (max-width: 900px) {
  .prestige {
    aspect-ratio: auto;
  }

  .prestige__copy {
    width: 100%;
    padding: 28px 24px 32px;
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.96) 60%,
      rgba(255, 255, 255, 0.75)
    );
  }

  .prestige__title {
    font-size: 1.5rem;
  }

  .prestige__eyebrow {
    margin-top: 6px;
    padding-bottom: 14px;
    font-size: 0.85rem;
  }

  .prestige__subtitle {
    margin: 14px 0;
    font-size: 1.25rem;
  }

  .prestige__copy p:not(.prestige__eyebrow) {
    max-width: none;
    font-size: 1rem;
  }

  .prestige__copy p:not(.prestige__eyebrow) + p {
    margin-top: 14px;
  }
}

/* ---------- Footer ---------- */
/* Desktop values are measured from the 1600px footer design. */
.site-footer {
  --footer-blue: #0d4a87;
  --footer-bar: #0352ad;
  --footer-text: #1a1a1a;
  --footer-line: #e8ebec;
  background: #f8fbfc;
  border-top: 10px solid #0b53a0;
}

/* Same 20px inset as the Benchmarks counters, so footer columns line up
   with page content above. */
.site-footer > .shell {
  padding: 0 20px;
}

.footer-top {
  display: grid;
  grid-template-columns: 288fr 392fr 349fr 408fr;
  grid-auto-rows: 234px;
  row-gap: 39px;
  padding-top: 62px;
}

.footer-col {
  padding-top: 23px;
  border-left: 1px solid var(--footer-line);
}

.footer-col:nth-child(4n + 1) {
  border-left: 0;
}

.footer-col:nth-child(4n + 2) {
  padding-left: 44px;
}

.footer-col:nth-child(4n + 3) {
  padding-left: 36px;
}

.footer-col:nth-child(4n + 4) {
  padding-left: 46px;
}

.footer-col strong {
  display: block;
  margin-bottom: 26px;
  font-family: emiratesBoldFont, Arial, sans-serif;
  font-weight: 400;
  font-size: 22.3px;
  line-height: 22px;
  color: var(--footer-blue);
}

.footer-col a {
  display: block;
  font-family: emiratesFont, Arial, sans-serif;
  font-size: 19px;
  line-height: 30.7px;
  color: var(--footer-text);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--footer-blue);
}

/* Subscribe row */
.footer-subscribe {
  display: flex;
  align-items: center;
  margin-top: 55px;
  padding: 0 21px 0 8px;
}

.footer-subscribe label {
  flex: none;
  font-family: emiratesFont, Arial, sans-serif;
  font-size: 22.3px;
  color: var(--footer-blue);
  white-space: nowrap;
}

.footer-subscribe input {
  flex: 1;
  min-width: 0;
  height: 54px;
  margin-left: 43px;
  padding: 0 38px;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  background: #f0f0f0;
  font-family: emiratesFont, Arial, sans-serif;
  font-size: 17px;
  color: var(--footer-text);
}

.footer-subscribe input::placeholder {
  color: #7b7b7b;
}

.footer-subscribe button {
  flex: none;
  width: 137px;
  height: 54px;
  margin-left: 28px;
  border: 0;
  border-radius: 10px;
  background: var(--footer-bar);
  color: #fff;
  font-family: emiratesFont, Arial, sans-serif;
  font-weight: 600;
  font-size: 17.5px;
  cursor: pointer;
}

.footer-subscribe button:hover {
  background: #02468f;
}

/* 38-year history row */
.footer-history {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-top: 35px;
}

.footer-history__text h3 {
  margin: 0;
  padding: 12px 0 0 7px;
  font-family: emiratesBoldFont, Arial, sans-serif;
  font-weight: 400;
  font-size: 25.7px;
  line-height: 1;
  color: #000;
}

.footer-history__text p {
  max-width: 1160px;
  margin: 23px 0 0;
  padding-left: 6px;
  font-family: emiratesFont, Arial, sans-serif;
  font-size: 17.7px;
  line-height: 24px;
  color: var(--footer-text);
}

.footer-years {
  flex: none;
  width: 202px;
  margin-right: 9px;
  text-align: center;
  font-family: emiratesFont, Arial, sans-serif;
  font-weight: 800;
  font-size: 17.7px;
  line-height: 20px;
  text-transform: uppercase;
  color: var(--footer-blue);
}

.footer-years img {
  display: block;
  height: 59px;
  width: auto;
  margin: 0 auto 7px;
}

.footer-years span {
  display: block;
  white-space: nowrap;
}

/* Logo / tagline / social row */
/* Equal side columns keep the tagline on the page centre, above the copyright */
.footer-brand {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 24px;
  padding: 8px 0 21px;
  border-top: 1px solid var(--footer-line);
}

.footer-brand__logo {
  flex: none;
  display: block;
  justify-self: start;
}

/* The PNG has transparent padding; 290px gives the design's 283px mark. */
.footer-brand__logo img {
  display: block;
  width: 290px;
  height: auto;
}

.footer-brand__tagline {
  margin: 18px 0 0;
  text-align: center;
  font-family: emiratesFont, Arial, sans-serif;
  font-size: 17.7px;
  color: var(--footer-text);
}

.footer-social {
  display: flex;
  gap: 9px;
  justify-self: end;
  margin: 19px 0 0;
}

.footer-social a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.footer-social .whatsapp {
  background: #25d366;
}

.footer-social .facebook {
  background: #3b5998;
}

.footer-social .twitter {
  background: #1da1f2;
}

.footer-social .instagram {
  background: #e4405f;
}

.footer-social .linkedin {
  background: #0077b5;
}

.footer-social .youtube {
  background: #cd201f;
}

.footer-bottom {
  height: 50px;
  background: var(--footer-bar);
  color: #fff;
  font-family: emiratesFont, Arial, sans-serif;
  font-size: 17.7px;
  line-height: 50px;
  text-align: center;
}

@media (max-width: 1100px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    row-gap: 32px;
  }

  .footer-col,
  .footer-col:nth-child(n) {
    padding-left: 32px;
    border-left: 1px solid var(--footer-line);
  }

  .footer-col:nth-child(2n + 1) {
    padding-left: 0;
    border-left: 0;
  }

  .footer-history {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
  }

  .footer-history__text h3,
  .footer-history__text p {
    padding-left: 0;
  }

  .footer-years {
    order: -1;
    margin-right: 0;
  }

  .footer-brand {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 32px;
    text-align: center;
  }

  .footer-brand__tagline,
  .footer-social {
    margin: 0;
  }
}

@media (max-width: 620px) {
  .footer-top {
    grid-template-columns: 1fr;
    padding-top: 36px;
    row-gap: 26px;
  }

  .footer-col,
  .footer-col:nth-child(n) {
    padding: 0;
    border-left: 0;
  }

  .footer-col strong {
    margin-bottom: 12px;
    font-size: 20px;
  }

  .footer-col a {
    font-size: 18px;
    line-height: 28px;
  }

  .footer-subscribe {
    flex-wrap: wrap;
    gap: 12px;
    padding: 0;
  }

  .footer-subscribe label {
    flex-basis: 100%;
  }

  .footer-subscribe input,
  .footer-subscribe button {
    margin-left: 0;
  }

  .footer-subscribe input {
    flex-basis: 100%;
    padding: 0 18px;
  }

  .footer-subscribe button {
    width: 100%;
  }

  .footer-history__text h3 {
    font-size: 21px;
    line-height: 1.25;
  }

  .footer-brand__logo img {
    width: 220px;
  }

  .footer-bottom {
    height: auto;
    padding: 12px 16px;
    font-size: 15px;
    line-height: 1.4;
  }
}

/* ---------- Contact form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: bold;
  font-family: emiratesBoldFont, Arial, sans-serif;
  color: var(--ink);
}

.form-field input,
.form-field select,
.form-field textarea {
  height: 46px;
  border-radius: 6px;
  border: 1px solid var(--line);
  padding: 0 14px;
  font-size: 0.95rem;
  font-family: emiratesFont, Arial, sans-serif;
  color: var(--ink);
  background: #ffffff;
}

.form-field textarea {
  height: auto;
  padding: 12px 14px;
  resize: vertical;
}

.contact-info-card {
  background: var(--grey-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}

.contact-info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.contact-info-card p {
  margin-bottom: 22px;
}

.contact-info-card p:last-child {
  margin-bottom: 0;
}

/* ---------- Responsive: section paddings ---------- */
@media (max-width: 640px) {
  .section {
    padding: 40px 0;
  }

  .masthead__tagline {
    order: 3;
    flex-basis: 100%;
  }

  .masthead__main .shell {
    justify-content: center;
  }

  .masthead__logo img {
    height: 46px;
  }

  .masthead__badge {
    font-size: 0.8rem;
  }

  .masthead__badge img {
    height: 44px;
  }
}

/* =========================================================
   Additional responsive breakpoints
   ========================================================= */

/* --- Tablet tweaks (≤ 900px) --- */
@media (max-width: 900px) {
  .section-intro {
    font-size: 1rem;
  }
}

/* --- Milestones intro: stack on tablets / mobile --- */
@media (max-width: 768px) {
  .milestones-intro {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .milestones-intro > div:first-child {
    width: 100%;
  }

  .milestones-intro__badge img {
    height: 48px;
  }

  .milestones-intro .section-intro {
    margin-left: 0 !important;
    max-width: 100% !important;
  }
}

/* --- Mobile (≤ 640px) --- */
@media (max-width: 640px) {
  /* Heading sizes — scale down on mobile */
  .section:has(.overlay-banner) .section-head__title h2,
  .section:has(.strength-grid) .section-head__title h2 {
    font-size: 1.15rem;
  }

  /* Section head arrow on small screens */
  .section-head__title .arrow {
    font-size: 1.2rem;
  }

  /* Ticker — stack text + button vertically */
  .ticker .shell {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px var(--page-gutter);
  }

  .ticker .btn--black {
    align-self: flex-start;
  }

  /* Gallery images on mobile — revert to fixed heights (no flex-stretch needed in single column) */
  .gallery__item img {
    flex: none;
    height: 220px;
    min-height: 0;
  }

  .gallery__item--full img,
  .gallery__item--wide img {
    height: auto;
  }

  /* Welcome section heading */
  .welcome__copy h2 {
    font-size: 1.6rem;
  }

  /* Institute footer — center on mobile */
  .institute__foot-text {
    text-align: center;
  }

  .institute__foot-text p:first-child {
    font-size: 1.1rem;
  }

  .institute__foot-text p:last-child {
    font-size: 1rem;
  }

  /* Section head link — full width on mobile */
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-head__link {
    align-self: flex-start;
  }
}

/* --- Very small screens (≤ 400px) --- */
@media (max-width: 400px) {
  .masthead__tagline {
    font-size: 0.9rem;
  }

  .hero__title {
    font-size: 1.3rem;
  }

  .stat__num {
    font-size: 1.4rem;
  }

  .stat__label {
    font-size: 0.85rem;
  }

  .gallery__item img {
    flex: none;
    height: auto;
    min-height: 0;
  }

  .gallery__item--full img {
    height: auto;
  }
}

/* ---------- Typography ---------- */
/* Fonts per text type, read from the 2026 layout PDF: Emirates Bold for
   headings and stats, EmiratesSM for labels and buttons, Montserrat Medium
   for body copy. */
.btn,
.section-head__link,
.footer-subscribe button,
.milestones-intro .section-intro {
  font-family: emiratesFont, Arial, sans-serif;
  font-weight: 400;
}

.welcome__tag {
  font-weight: 400;
}

.footer-subscribe label {
  font-family: emiratesBoldFont, Arial, sans-serif;
}

.masthead__lang,
.section-intro,
.strength-intro,
.section:has(.overlay-banner) .section-intro,
.welcome__copy p,
.card__body p,
.card__date,
.prestige__copy p:not(.prestige__eyebrow),
.footer-subscribe input,
.events-card__foot .btn {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 500;
}

.milestones-intro .section-intro {
  font-family: emiratesFont, Arial, sans-serif;
  font-weight: 400;
}
