/* =========================================================
   NEWS CARDS + HOMEPAGE NEWS TICKER
   ========================================================= */

/* ---------- grid ---------- */
#news-grid.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-top: 2.5rem;
}

.nc {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(16, 37, 66, .08);
  box-shadow: 0 6px 24px rgba(16, 37, 66, .06);
  cursor: pointer;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
  text-align: start;
  outline: none;
}
.nc:hover, .nc:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(16, 37, 66, .14);
}
.nc:focus-visible { box-shadow: 0 0 0 3px var(--lavender, #b4b7de), 0 18px 40px rgba(16, 37, 66, .14); }

.nc-img {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1a365d, #0a162b);
  overflow: hidden;
}
.nc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s cubic-bezier(.2, .8, .2, 1);
}
.nc:hover .nc-img img { transform: scale(1.05); }

.nc-badge {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  background: rgba(255, 255, 255, .95);
  color: var(--navy, #102542);
  font-size: .72rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

.nc-body {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: 1.3rem 1.4rem 1.4rem;
  flex: 1;
}

.nc-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 700;
  color: #6b7390;
}
.nc-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--lavender, #b4b7de); }
.nc-date { color: var(--teal, #0e6e6d); }

.nc-title {
  margin: 0;
  color: var(--navy, #102542);
  font-weight: 800;
  font-size: 1.12rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nc-excerpt {
  margin: 0;
  color: #4d5570;
  font-size: .92rem;
  line-height: 1.85;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nc-more {
  margin-top: auto;
  padding-top: .4rem;
  color: var(--navy, #102542);
  font-weight: 800;
  font-size: .88rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.nc-more i { font-style: normal; transition: transform .3s ease; }
.nc:hover .nc-more i { transform: translateX(-4px); }
body.en .nc-more i { transform: scaleX(-1); }
body.en .nc:hover .nc-more i { transform: scaleX(-1) translateX(-4px); }

/* featured (newest) card: wide, image beside text */
.nc.nc-feat {
  grid-column: 1 / -1;
  flex-direction: row;
}
.nc.nc-feat .nc-img { flex: 0 0 56%; aspect-ratio: auto; min-height: 340px; }
.nc.nc-feat .nc-body { padding: 2rem 2.2rem; justify-content: center; gap: .8rem; }
.nc.nc-feat .nc-title { font-size: 1.55rem; line-height: 1.55; -webkit-line-clamp: 4; }
.nc.nc-feat .nc-excerpt { font-size: 1rem; -webkit-line-clamp: 4; }

@media (max-width: 960px) {
  #news-grid.news-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .nc.nc-feat { flex-direction: column; }
  .nc.nc-feat .nc-img { flex: none; min-height: 0; aspect-ratio: 16 / 9; }
  .nc.nc-feat .nc-body { padding: 1.4rem 1.5rem; }
  .nc.nc-feat .nc-title { font-size: 1.3rem; }
}

/* ---------- phone: one big story, then an easy-to-scan list ---------- */
@media (max-width: 640px) {
  #news-grid.news-grid { grid-template-columns: 1fr; gap: .85rem; margin-top: 1.6rem; }

  .nc { border-radius: 16px; }
  .nc:hover { transform: none; }

  .nc.nc-feat .nc-body { padding: 1.1rem 1.15rem 1.2rem; gap: .5rem; }
  .nc.nc-feat .nc-title { font-size: 1.18rem; -webkit-line-clamp: 3; }
  .nc.nc-feat .nc-excerpt { font-size: .9rem; -webkit-line-clamp: 3; }

  .nc:not(.nc-feat) {
    flex-direction: row;
    align-items: stretch;
    min-height: 118px;
  }
  .nc:not(.nc-feat) .nc-img {
    flex: 0 0 34%;
    aspect-ratio: auto;
  }
  .nc:not(.nc-feat) .nc-body { padding: .8rem .9rem; gap: .3rem; }
  .nc:not(.nc-feat) .nc-meta { font-size: .72rem; gap: .35rem; }
  .nc:not(.nc-feat) .nc-title { font-size: .95rem; line-height: 1.6; -webkit-line-clamp: 3; }
  .nc:not(.nc-feat) .nc-excerpt { display: none; }
  .nc:not(.nc-feat) .nc-more { display: none; }
  .nc:not(.nc-feat) .nc-badge { top: 8px; inset-inline-start: 8px; font-size: .62rem; padding: 3px 8px; }
}

/* ---------- article page on phones ---------- */
@media (max-width: 640px) {
  #single-news-view { padding: 1.4rem 1.1rem !important; border-radius: 14px !important; }
  #sn-title { font-size: 1.35rem !important; line-height: 1.6 !important; margin-bottom: 1.2rem !important; }
  #sn-content { font-size: 1.02rem !important; }
}

/* =========================================================
   HOMEPAGE: LATEST NEWS SECTION (before partners)
   ========================================================= */
#home-news {
  background: #fff;
  padding: 5rem 1.5rem 4.5rem;
  border-top: 1px solid rgba(16, 37, 66, .08);
}
#home-news[hidden] { display: none; }
.hn-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.hn-head .title { margin: .3rem 0 0; }
.hn-all {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .7rem 1.3rem;
  border-radius: 999px;
  border: 1.5px solid var(--navy, #102542);
  color: var(--navy, #102542);
  font-weight: 800;
  font-size: .9rem;
  text-decoration: none;
  transition: background .3s ease, color .3s ease;
}
.hn-all:hover { background: var(--navy, #102542); color: #fff; }
.hn-all i { font-style: normal; }
body.en .hn-all i { transform: scaleX(-1); }
.hn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
@media (max-width: 960px) {
  .hn-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .hn-grid .nc:nth-child(3) { display: none; }
}
@media (max-width: 640px) {
  #home-news { padding: 3.2rem 1rem 3rem; }
  .hn-head { align-items: center; margin-bottom: 1.3rem; }
  .hn-all { padding: .5rem 1rem; font-size: .82rem; }
  .hn-grid { grid-template-columns: 1fr; gap: .85rem; }
  .hn-grid .nc:nth-child(3) { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .nc, .nc-img img { transition: none !important; }
}

/* =========================================================
   PHONE: BOTTOM TAB BAR (replaces the top-corner menu)
   ========================================================= */
.tabbar { display: none; }

@media (max-width: 680px) {
  .mobile-menu-btn { display: none !important; }

  .tabbar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 9000;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding: 0 4px env(safe-area-inset-bottom, 0px);
    background: rgba(13, 29, 54, .94);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-top: 1px solid rgba(180, 183, 222, .18);
    box-shadow: 0 -8px 24px rgba(5, 12, 25, .25);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  }
  .tabbar.hide { transform: translateY(110%); }

  .tab {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    color: rgba(255, 255, 255, .58);
    text-decoration: none;
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.2;
    -webkit-tap-highlight-color: transparent;
    transition: color .25s ease;
  }
  .tab svg { width: 23px; height: 23px; transition: transform .25s ease; }
  .tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .tab:active svg { transform: scale(.9); }

  .tab.on { color: var(--lavender, #b4b7de); }
  .tab.on::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 28px;
    height: 3px;
    margin-left: -14px;
    border-radius: 0 0 3px 3px;
    background: var(--lavender, #b4b7de);
  }

  .tab .badge-dot {
    position: absolute;
    top: 11px;
    left: 50%;
    margin-left: 7px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 2px rgba(13, 29, 54, .94);
  }

  /* keep page content and bottom banners clear of the bar */
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  #cookie-banner { bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important; }
}

@media (max-width: 680px) and (prefers-reduced-motion: reduce) {
  .tabbar, .tab, .tab svg { transition: none; }
}

/* =========================================================
   BRAND SHAPES: Qusayr Amra drawing + black iris
   Always faint, partly cropped, behind the content.
   ========================================================= */
.deco {
  position: absolute;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  z-index: -1;
}

/* Qusayr Amra: a horizon along the bottom of the footer */
#footer { isolation: isolate; }
.deco-qusayr {
  left: 50%;
  bottom: -6px;
  width: min(980px, 92%);
  aspect-ratio: 728 / 201;
  transform: translateX(-50%);
  background-image: url('../images/brand/qusayr-amra-white.webp');
  background-position: center bottom;
  opacity: .07;
}

/* Iris behind the Royal Letter of Designation quote */
.deco-iris-quote {
  left: -70px;
  bottom: -90px;
  width: 440px;
  aspect-ratio: 597 / 635;
  background-image: url('../images/brand/iris-white.webp');
  opacity: .07;
  z-index: 1;
  transform: rotate(-8deg);
}
body.en .deco-iris-quote { left: auto; right: -70px; transform: scaleX(-1) rotate(-8deg); }

/* Small iris in the corner of the homepage news section */
#home-news { position: relative; isolation: isolate; overflow: hidden; }
.deco-iris-news {
  top: -50px;
  inset-inline-end: -70px;
  width: 300px;
  aspect-ratio: 597 / 635;
  background-image: url('../images/brand/iris-navy.webp');
  opacity: .06;
}

@media (max-width: 680px) {
  .deco-qusayr { width: 120%; opacity: .08; }
  .deco-iris-quote { width: 240px; left: -60px; bottom: -50px; opacity: .06; }
  body.en .deco-iris-quote { right: -60px; }
  .deco-iris-news { width: 170px; top: -30px; inset-inline-end: -50px; }
}

/* =========================================================
   SMOOTH PAGE TRANSITIONS
   ========================================================= */
#nav { view-transition-name: site-nav; }
.tabbar { view-transition-name: tabbar; }

::view-transition-old(root) { animation: vtOut .26s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vtIn .45s cubic-bezier(0, 0, .2, 1) .05s both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(16px); } }

/* fallback for browsers without View Transitions: a quick fade */
html.vt-fx body > section,
html.vt-fx body > footer { transition: opacity .2s ease; }
html.vt-out body > section,
html.vt-out body > footer { opacity: 0 !important; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}

/* =========================================================
   HEADER: slimmer, transparent over the hero, solid on scroll
   ========================================================= */
#nav {
  height: 66px !important;
  padding: 0 5% !important;
  background: linear-gradient(to bottom, rgba(6, 14, 31, .55) 0%, rgba(6, 14, 31, .18) 70%, rgba(6, 14, 31, 0) 100%) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 0 !important;
  transition: height .35s ease, background-color .35s ease, background .35s ease, box-shadow .35s ease !important;
}
#nav.scrolled,
body.news-view #nav,
body.board-view #nav,
body.about-view #nav,
body.careers-view #nav {
  height: 58px !important;
  background: rgba(13, 29, 54, .9) !important;
  backdrop-filter: blur(14px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(140%) !important;
  box-shadow: 0 1px 0 rgba(180, 183, 222, .14), 0 8px 24px rgba(5, 12, 25, .18) !important;
}

#nav .nav-logo-img { height: 36px !important; transition: height .35s ease; }
#nav.scrolled .nav-logo-img,
body.news-view #nav .nav-logo-img,
body.board-view #nav .nav-logo-img,
body.about-view #nav .nav-logo-img { height: 31px !important; }

#nav .nav-links a { color: rgba(255, 255, 255, .82); }
#nav .nav-links a:hover { color: #fff; }

#nav .lang-btn {
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  color: #fff;
  padding: 5px 16px;
  font-size: .74rem;
  background: rgba(255, 255, 255, .04);
}
#nav .lang-btn:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .6); }

#scroll-progress { height: 2px !important; }

@media (max-width: 680px) {
  #nav { height: 58px !important; padding: 0 4.5% !important; }
  #nav.scrolled,
  body.news-view #nav,
  body.board-view #nav,
  body.about-view #nav { height: 54px !important; }
  #nav .nav-logo-img { height: 30px !important; }
  #nav.scrolled .nav-logo-img,
  body.news-view #nav .nav-logo-img,
  body.board-view #nav .nav-logo-img,
  body.about-view #nav .nav-logo-img { height: 27px !important; }
  #nav .lang-btn { padding: 4px 13px !important; font-size: .7rem !important; }
}

/* two-image crossfade used by project panels */
@keyframes crossFade {
  0%, 20% { opacity: 1; }
  80%, 100% { opacity: 0; }
}

/* =========================================================
   POLISH: text selection, scrollbar, keyboard focus
   ========================================================= */
::selection { background: rgba(180, 183, 222, .6); color: #102542; }
::-moz-selection { background: rgba(180, 183, 222, .6); color: #102542; }

html { scrollbar-width: thin; scrollbar-color: #8b8fc4 #e9ebf5; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #e9ebf5; }
::-webkit-scrollbar-thumb {
  background: #8b8fc4;
  border-radius: 10px;
  border: 3px solid #e9ebf5;
}
::-webkit-scrollbar-thumb:hover { background: #102542; }

a:focus-visible, button:focus-visible, [role="link"]:focus-visible, [tabindex]:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2.5px solid #8b8fc4 !important;
  outline-offset: 3px !important;
  border-radius: 6px;
}
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }

/* =========================================================
   FOOTER: four clear columns
   ========================================================= */
#footer .footer-grid.ft4 {
  grid-template-columns: 1.5fr 1fr 1.3fr 1fr;
  gap: 3rem;
  align-items: start;
}
.ft-about .ft-logo-img { height: 46px; }
.ft-blurb {
  color: rgba(255, 255, 255, .58);
  font-size: .9rem;
  line-height: 1.95;
  margin: 1.3rem 0 1.5rem;
  max-width: 360px;
}
body.en .ft-blurb { font-size: .85rem; line-height: 1.75; }

#footer .socials { display: flex; gap: .6rem; }
#footer .soc {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .75);
  background: rgba(255, 255, 255, .03);
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
#footer .soc:hover {
  background: var(--lavender, #b4b7de);
  border-color: var(--lavender, #b4b7de);
  color: #102542;
  transform: translateY(-2px);
}

#footer .ft-col-title { margin-bottom: 1.1rem; }
#footer .ft-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .75rem; }
#footer .ft-links a,
#footer .ft-contact span {
  color: rgba(255, 255, 255, .62);
  font-size: .9rem;
  line-height: 1.6;
  text-decoration: none;
  transition: color .2s ease;
}
#footer .ft-links a:hover { color: #fff; }
#footer .ft-contact a[dir="ltr"] { unicode-bidi: plaintext; }
#footer .ft-cta {
  display: inline-flex !important;
  align-items: center;
  gap: .45rem;
  margin-top: .3rem;
  padding: .5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(180, 183, 222, .45);
  color: var(--lavender, #b4b7de) !important;
  font-weight: 700;
  font-size: .85rem !important;
  line-height: 1 !important;
  min-height: 40px;
}
#footer .ft-cta:hover { background: rgba(180, 183, 222, .12); color: #fff !important; }
#footer .ft-cta i { font-style: normal; }
body.en #footer .ft-cta i { transform: scaleX(-1); }

@media (max-width: 960px) {
  #footer .footer-grid.ft4 { grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; }
  .ft-about { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  #footer .footer-grid.ft4 { grid-template-columns: 1fr 1fr !important; gap: 2rem 1.2rem !important; }
  #footer .ft-contact-col, #footer .ft-about { grid-column: 1 / -1; }
  #footer .ft-links { gap: 0; }                     /* links keep a 44px tap height on phones */
  #footer .ft-links a, #footer .ft-contact span { font-size: .86rem !important; line-height: 1.45; }
  #footer .ft-contact span { display: inline-block; min-height: 32px; }
  #footer .socials { justify-content: flex-start !important; }
  #footer .ft-blurb { margin: 1rem 0 1.2rem; font-size: .86rem; }
  #footer .ft-col-title { margin-bottom: .4rem !important; }
}

/* =========================================================
   HERO: cinematic project slideshow + glass numbers bar
   ========================================================= */
#hero .hs {
  background-size: cover;
  background-position: center;
  filter: brightness(.74) saturate(1.05) !important;
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 1.6s ease, transform 0s linear 1.6s;
  will-change: opacity, transform;
}
#hero .hs.active {
  opacity: 1;
  transform: scale(1);
  transition: opacity 1.6s ease, transform 9s cubic-bezier(.2, .6, .3, 1);
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .6rem; }
.hbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .75rem 1.6rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: .95rem;
  text-decoration: none;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.hbtn:hover { transform: translateY(-2px); }
.hbtn-solid { background: #fff; color: #102542; border: 1px solid #fff; }
.hbtn-solid:hover { background: var(--lavender, #b4b7de); border-color: var(--lavender, #b4b7de); color: #102542; }
.hbtn-ghost { background: rgba(255, 255, 255, .06); color: #fff; border: 1px solid rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.hbtn-ghost:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }

.hero-caption {
  position: absolute;
  z-index: 6;
  bottom: 120px;
  inset-inline-end: 5%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .35rem;
  color: #fff;
  text-align: end;
  max-width: 46%;
}
.hc-label { font-size: .72rem; font-weight: 700; color: var(--lavender, #b4b7de); letter-spacing: .3px; }
.hc-name {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}
.hc-name.in { animation: hcIn .7s ease both; }
@keyframes hcIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hc-name:hover { text-decoration: underline; text-underline-offset: 4px; }
.hc-dots { display: flex; gap: 6px; margin-top: .35rem; }
.hc-dots button {
  width: 8px; height: 8px; padding: 0;
  border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .4);
  cursor: pointer;
  transition: width .35s ease, background .35s ease;
}
.hc-dots button.on { width: 26px; background: #fff; }
.hc-dots button:hover { background: rgba(255, 255, 255, .75); }

/* glass numbers bar */
#hero .stats-bar {
  background: rgba(10, 22, 43, .32) !important;
  backdrop-filter: blur(18px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(150%) !important;
  border-top: 1px solid rgba(255, 255, 255, .16) !important;
  box-shadow: 0 -10px 40px rgba(5, 12, 25, .18);
}
#hero .stat { border-color: rgba(255, 255, 255, .12) !important; }

@media (max-width: 680px) {
  .hero-ctas { gap: .6rem; }
  .hbtn { min-height: 44px; padding: .6rem 1.2rem; font-size: .88rem; }
  .hero-caption { inset-inline-end: 5%; inset-inline-start: 5%; max-width: none; align-items: flex-start; text-align: start; }
  .hc-name { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  #hero .hs, #hero .hs.active { transform: none !important; transition: opacity .6s ease !important; }
}

/* faster hero reveal: the headline appears almost immediately */
.hero-content { animation-duration: .6s !important; animation-delay: 0s !important; }

/* contact page title on its dark header (the light style only covered h2) */
h1.title.light { color: #fff !important; }

/* small heading above a news title (e.g. "On the sidelines of ...") */
.nc-kicker { font-size: .8rem; font-weight: 700; color: var(--teal, #0e6e6d); line-height: 1.6; margin-bottom: -.2rem; }
#sn-kicker { font-size: 1.05rem; font-weight: 700; color: var(--teal, #0e6e6d); margin-bottom: .5rem; line-height: 1.6; }
@media (max-width: 640px) { #sn-kicker { font-size: .95rem; } .nc:not(.nc-feat) .nc-kicker { display: none; } }

/* =========================================================
   BOARD: two leadership cards on top (chairman + CEO), then three members (2-3)
   ========================================================= */
@media (min-width: 961px) {
  #board .board-grid:has(> .bcard-ceo) { grid-template-columns: repeat(12, 1fr); max-width: 1140px; margin-inline: auto; gap: 2rem 1.6rem; }
  #board .board-grid:has(> .bcard-ceo) > .bcard { grid-column: span 4; }
  #board .board-grid:has(> .bcard-ceo) > .bcard-lead:nth-child(1) { grid-column: 2 / 7; }
  #board .board-grid:has(> .bcard-ceo) > .bcard-lead:nth-child(2) { grid-column: 7 / 12; }
  #board .bcard-lead .bcard-photo { width: 180px !important; height: 180px !important; }
}
@media (min-width: 561px) and (max-width: 960px) {
  #board .board-grid:has(> .bcard-ceo) { grid-template-columns: repeat(4, 1fr); }
  #board .board-grid:has(> .bcard-ceo) > .bcard { grid-column: span 2; }
  #board .board-grid:has(> .bcard-ceo) > .bcard:last-child { grid-column: 2 / 4; }
}
/* leadership row: a touch larger */
#board .bcard-lead .bcard-name { font-size: 1.22rem; }
body.en #board .bcard-lead .bcard-name { font-size: 1.02rem; }
#board .board-grid > .bcard:first-child { box-shadow: 0 0 0 1.5px rgba(180, 183, 222, .55), 0 18px 40px rgba(16, 37, 66, .18); }

/* CEO card: deep indigo, glowing lavender edge and a title badge */
#board .bcard-ceo {
  position: relative; isolation: isolate;
  background: radial-gradient(120% 80% at 50% 0%, #3a3f86 0%, #1d2559 45%, #0d1a38 100%);
  box-shadow: 0 0 0 1.5px rgba(180, 183, 222, .9), 0 0 38px rgba(139, 143, 196, .45), 0 22px 50px rgba(16, 37, 66, .3);
}
#board .bcard-ceo::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .09) 45%, transparent 60%);
  background-size: 250% 100%; animation: ceoSheen 6s ease-in-out infinite;
}
@keyframes ceoSheen { 0%, 100% { background-position: 120% 0; } 50% { background-position: -20% 0; } }
#board .bcard-ceo .bcard-photo { border-color: #b4b7de !important; box-shadow: 0 0 0 6px rgba(180, 183, 222, .18), 0 12px 30px rgba(0, 0, 0, .3) !important; }
#board .bcard-ceo .bcard-name { color: #fff; }
#board .bcard-ceo .bcard-role { color: rgba(255, 255, 255, .7); }
#board .bcard-ceo:hover { box-shadow: 0 0 0 1.5px #b4b7de, 0 0 48px rgba(139, 143, 196, .6), 0 26px 60px rgba(16, 37, 66, .35); }
.ceo-badge {
  display: inline-flex; align-items: center; gap: .45rem; margin: 0 auto .7rem;
  padding: .38rem .95rem; border-radius: 999px;
  background: linear-gradient(90deg, #b4b7de, #d9dbf3); color: #102542;
  font-size: .78rem; font-weight: 800; letter-spacing: .2px; box-shadow: 0 6px 18px rgba(180, 183, 222, .35);
}
.ceo-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #102542; opacity: .75; }
body.en .ceo-badge { font-size: .72rem; letter-spacing: .6px; text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) { #board .bcard-ceo::before { animation: none; } }

/* =========================================================
   CAREERS
   ========================================================= */
body.careers-view section#careers-page { padding: 7rem 1.5rem 5rem; }
body.careers-view #home-news { display: none !important; }
.cr-intro { max-width: 640px; margin: 1.2rem auto 0; color: var(--mid, #5a607a); line-height: 1.9; font-size: 1rem; }
.cr-h { max-width: 960px; margin: 2.6rem auto 1rem; font-size: 1.25rem; font-weight: 800; color: var(--navy, #102542); display: flex; align-items: baseline; gap: .4rem; }
.cr-h-archive { margin-top: 3.4rem; }
.cr-count { font-size: .95rem; color: #8a93a3; font-weight: 700; }
.cr-note { max-width: 960px; margin: -.5rem auto 1rem; color: #8a93a3; font-size: .9rem; }
.cr-list { max-width: 960px; margin: 0 auto; display: grid; gap: 1rem; }
.cr-card { padding: 1.6rem 1.8rem !important; }
.cr-top { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.cr-badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 800; padding: .3rem .75rem; border-radius: 999px; }
.cr-open-badge { background: rgba(14, 110, 109, .1); color: var(--teal, #0e6e6d); }
.cr-open-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.cr-soon { font-size: .78rem; font-weight: 800; color: #b45309; background: rgba(245, 158, 11, .12); padding: .3rem .7rem; border-radius: 999px; }
.cr-closed-badge { background: rgba(16, 37, 66, .06); color: #6b7390; }
.cr-card .job-card-date { color: var(--navy, #102542); }
.cr-apply { min-height: 44px; padding: .6rem 1.4rem; background: var(--navy, #102542) !important; color: #fff !important; border-color: var(--navy, #102542) !important; cursor: pointer; font-family: inherit; }
.cr-apply:hover { background: #1b3a66 !important; }
.cr-empty { background: #fff; border: 1px dashed rgba(16, 37, 66, .18); border-radius: 12px; padding: 1.6rem; text-align: center; color: var(--mid, #5a607a); line-height: 1.8; }
.cr-archive { gap: 0; background: #fff; border-radius: 12px; border: 1px solid rgba(16, 37, 66, .07); overflow: hidden; }
.cr-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.4rem; border-bottom: 1px solid rgba(16, 37, 66, .06); }
.cr-row:last-child { border-bottom: 0; }
.cr-row-title { font-weight: 700; color: #4d5570; }

/* application dialog */
.cr-modal { position: fixed; inset: 0; z-index: 10050; background: rgba(6, 14, 31, .62); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.cr-modal[hidden] { display: none; }
.cr-dialog { position: relative; width: min(720px, 100%); max-height: 92vh; overflow: auto; background: #fff; border-radius: 18px; padding: 2rem 2rem 1.6rem; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.cr-close { position: absolute; top: .8rem; inset-inline-end: .9rem; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #f1f3f8; color: var(--navy, #102542); font-size: 1.5rem; cursor: pointer; }
.cr-kicker { color: var(--teal, #0e6e6d); font-weight: 700; font-size: .85rem; }
.cr-dialog-head h3 { margin: .2rem 0 1.4rem; color: var(--navy, #102542); font-size: 1.45rem; font-weight: 800; padding-inline-end: 2.5rem; }
.cr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; }
.cr-grid label, .cr-check { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; font-weight: 700; color: var(--navy, #102542); }
.cr-wide { grid-column: 1 / -1; }
.cr-grid input, .cr-grid select, .cr-grid textarea {
  font: inherit; font-weight: 400; font-size: 1rem; color: #1f2937;
  border: 1px solid rgba(16, 37, 66, .18); border-radius: 10px; padding: .7rem .85rem; background: #fff; min-height: 46px;
}
.cr-grid input:focus, .cr-grid select:focus, .cr-grid textarea:focus { border-color: #8b8fc4; outline: none; box-shadow: 0 0 0 3px rgba(180, 183, 222, .45); }
.cr-cv { margin: 1.2rem 0 .9rem; padding: 1rem 1.1rem; border-radius: 12px; background: #f6f7fb; border: 1px solid rgba(16, 37, 66, .06); }
.cr-cv strong { color: var(--navy, #102542); }
.cr-cv p { margin: .35rem 0 0; color: #4d5570; line-height: 1.8; font-size: .9rem; }
.cr-check { flex-direction: row; align-items: flex-start; gap: .55rem; font-weight: 600; line-height: 1.7; }
.cr-check input { width: 18px; height: 18px; margin-top: .25rem; flex: none; }
.cr-error { margin-top: .8rem; padding: .7rem .9rem; border-radius: 10px; background: #fef2f2; color: #b91c1c; font-size: .88rem; font-weight: 700; }
.cr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin-top: 1.2rem; }
.cr-submit { background: var(--navy, #102542) !important; color: #fff !important; border-color: var(--navy, #102542) !important; cursor: pointer; font-family: inherit; }
.cr-alt { color: #4d5570; font-size: .88rem; text-decoration: none; }
.cr-alt b { color: var(--navy, #102542); }
.cr-ghost { background: #f1f3f8; color: var(--navy, #102542); border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.cr-done { text-align: center; padding: .5rem 0; }
.cr-done-ico { width: 56px; height: 56px; margin: 0 auto .8rem; border-radius: 50%; background: rgba(14, 110, 109, .12); color: var(--teal, #0e6e6d); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 800; }
.cr-done h4 { color: var(--navy, #102542); font-size: 1.25rem; margin: 0 0 .5rem; }
.cr-done p { color: #4d5570; line-height: 1.9; max-width: 520px; margin: 0 auto; }
.cr-done .cr-actions { justify-content: center; }

@media (max-width: 640px) {
  body.careers-view section#careers-page { padding: 5.5rem 1rem 4rem; }
  .cr-card { padding: 1.2rem 1.1rem !important; }
  .cr-card .job-card-footer { flex-direction: column; align-items: stretch; }
  .cr-apply { width: 100%; }
  .cr-modal { align-items: flex-end; padding: 0; }
  .cr-dialog { border-radius: 18px 18px 0 0; max-height: 94vh; padding: 1.5rem 1.1rem 1.2rem; }
  .cr-grid { grid-template-columns: 1fr; }
  .cr-submit { width: 100%; }
}

/* ---------- careers: status badges ---------- */
.cr-state { display: inline-flex; align-items: center; gap: .5rem; padding: .38rem .9rem .38rem .75rem; border-radius: 999px; font-size: .8rem; font-weight: 800; line-height: 1; }
.cr-state svg { width: 20px; height: 20px; flex: none; overflow: visible; }

.cr-state-open { color: #0b5f5e; background: linear-gradient(120deg, rgba(14,110,109,.10), rgba(180,183,222,.28)); box-shadow: inset 0 0 0 1px rgba(14,110,109,.18); }
.cr-door-frame { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cr-door-light { fill: #fde68a; opacity: .9; animation: crGlow 2.8s ease-in-out infinite; }
.cr-door-leaf { fill: #fff; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; transform-origin: 7px 12px; animation: crSwing 2.8s ease-in-out infinite; }
.cr-door-knob { fill: currentColor; transform-origin: 7px 12px; animation: crSwing 2.8s ease-in-out infinite; }
@keyframes crSwing { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.72); } }
@keyframes crGlow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.cr-card:hover .cr-door-leaf, .cr-card:hover .cr-door-knob { animation-duration: 1.2s; }
body.en .cr-door { transform: scaleX(-1); }

.cr-state-closed { color: #6b7390; background: repeating-linear-gradient(-45deg, #f4f5f9 0 6px, #eceef5 6px 12px); box-shadow: inset 0 0 0 1px rgba(16,37,66,.08); }
.cr-lock-body { fill: #fff; stroke: currentColor; stroke-width: 1.7; }
.cr-lock-hole { stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.cr-lock-shackle { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; transform: translateY(-2.5px); transition: transform .35s cubic-bezier(.5, 1.8, .5, 1); }
.cr-row:hover .cr-lock-shackle { transform: translateY(0); }
.cr-row { transition: background .25s; }
.cr-row:hover { background: #fafbfd; }

.cr-timer { display: inline-flex; align-items: center; gap: .55rem; padding: .3rem .85rem .3rem .45rem; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px rgba(16,37,66,.1); color: var(--navy, #102542); }
.cr-timer svg { width: 26px; height: 26px; transform: rotate(-90deg); flex: none; }
.cr-ring-bg { fill: none; stroke: rgba(16,37,66,.08); stroke-width: 2.6; }
.cr-ring { fill: none; stroke: #8b8fc4; stroke-width: 2.6; stroke-linecap: round; transition: stroke-dashoffset 1s; }
.cr-timer.is-urgent .cr-ring { stroke: #e07a3f; animation: crTick 1.6s ease-in-out infinite; }
@keyframes crTick { 50% { opacity: .45; } }
.cr-timer-txt { display: flex; flex-direction: column; gap: .12rem; line-height: 1.15; }
.cr-timer-txt b { font-size: .8rem; font-weight: 800; }
.cr-timer-txt small { font-size: .7rem; color: #7a8299; font-weight: 600; }
body.en .cr-timer { padding: .3rem .85rem .3rem .45rem; }

@media (prefers-reduced-motion: reduce) {
  .cr-door-leaf, .cr-door-knob, .cr-door-light, .cr-timer.is-urgent .cr-ring { animation: none; }
}

/* careers dialog: scrolling */
.cr-dialog { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; scrollbar-width: thin; scrollbar-color: #b4b7de transparent; }
.cr-dialog::-webkit-scrollbar { width: 8px; }
.cr-dialog::-webkit-scrollbar-thumb { background: #b4b7de; border-radius: 8px; border: 2px solid #fff; }
.cr-dialog::-webkit-scrollbar-track { background: transparent; }
.cr-modal { overscroll-behavior: contain; }

/* careers dialog: scrolling */
.cr-dialog { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; scrollbar-width: thin; scrollbar-color: #b4b7de transparent; }
.cr-dialog::-webkit-scrollbar { width: 8px; }
.cr-dialog::-webkit-scrollbar-thumb { background: #b4b7de; border-radius: 8px; border: 2px solid #fff; }
.cr-dialog::-webkit-scrollbar-track { background: transparent; }
.cr-modal { overscroll-behavior: contain; }

/* careers dialog: scrolling */
.cr-dialog { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; scrollbar-width: thin; scrollbar-color: #b4b7de transparent; }
.cr-dialog::-webkit-scrollbar { width: 8px; }
.cr-dialog::-webkit-scrollbar-thumb { background: #b4b7de; border-radius: 8px; border: 2px solid #fff; }
.cr-dialog::-webkit-scrollbar-track { background: transparent; }
.cr-modal { overscroll-behavior: contain; }

/* arrows: inline elements ignore transforms, so make them inline-block before flipping for English */
.nc-more i, .hn-all i, #footer .ft-cta i, .bk-arrow { display: inline-block; font-style: normal; }
body.en .bk-arrow { transform: scaleX(-1); }

/* Jordan Investment Fund text mark: Arabic-led in Arabic, English-only in English */
.jif-mark { text-align: center; line-height: 1.3; color: var(--navy); }
.jif-mark .jif-ar { display: block; font-size: 1.1rem; font-weight: 900; }
.jif-mark .jif-en { display: block; font-size: .65rem; letter-spacing: 1px; color: var(--mid); font-weight: 700; }
body.en .jif-mark .jif-ar { display: none; }
body.en .jif-mark .jif-en { font-size: 1.05rem; letter-spacing: 0; color: var(--navy); font-weight: 800; }
.unit-note { text-transform: none; letter-spacing: 0; opacity: .75; font-weight: 600; white-space: nowrap; }
