/* ==========================================================================
   Burj Al-Luqluq theme — layered on top of Bootstrap 5.3.8.
   Palette carried over from the old site's modern-polish.css so the rebuild
   keeps the same brand colours.
   ========================================================================== */

:root {
  --bl-blue: #4892da;
  --bl-blue-dark: #2f6fb0;
  --bl-navy: #002866;
  --bl-yellow: #ffee00;
  --bl-sand: #e4e1ca;
  --bl-paper: #f5f5f5;
  --bl-ink: #16202e;
  --bl-muted: #5c6b7e;
  --bl-line: #e3e8ef;

  /* Canonical site font (from public/res/css/custom.css). Single family for the
     whole frontend — Arabic and Latin — so typography is consistent everywhere. */
  --bl-font: 'Noto Kufi Arabic', 'Segoe UI', Tahoma, sans-serif;

  --bl-radius: 18px;
  --bl-shadow-1: 0 2px 8px rgba(16, 32, 56, .06);
  --bl-shadow-2: 0 10px 30px rgba(16, 32, 56, .10);
  --bl-shadow-3: 0 22px 55px rgba(16, 32, 56, .16);
  --bl-ease: cubic-bezier(.22, .68, .28, 1);

  /* map onto Bootstrap's theme so .btn-primary, links etc. inherit the brand */
  --bs-primary: var(--bl-blue);
  --bs-primary-rgb: 72, 146, 218;
  --bs-link-color: var(--bl-blue-dark);
  --bs-link-hover-color: var(--bl-navy);
  --bs-body-color: var(--bl-ink);
  --bs-border-radius: var(--bl-radius);
}

html { scroll-behavior: smooth; }

body.burj {
  font-family: var(--bl-font);
  color: var(--bl-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.4;
}

body.burj.rtl,
body.burj[dir="rtl"] { font-family: var(--bl-font); }

.burj h1, .burj h2, .burj h3, .burj h4 {
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--bl-navy);
}
.burj.rtl h1, .burj.rtl h2, .burj.rtl h3, .burj.rtl h4 { letter-spacing: 0; }

.skip-link {
  position: absolute; top: .5rem; inset-inline-start: .5rem; z-index: 2000;
  background: var(--bl-navy); color: #fff; padding: .6rem 1rem; border-radius: 10px;
}

:focus-visible { outline: 3px solid var(--bl-blue); outline-offset: 2px; }

/* ---------------------------------------------------------------- buttons */
.btn-donate {
  background: linear-gradient(120deg, var(--bl-blue), var(--bl-blue-dark)); color: #fff; border: none;
  border-radius: 999px; padding: .6rem 1.5rem; font-weight: 700;
  box-shadow: 0 6px 16px rgba(72, 146, 218, .35);
  transition: transform .25s var(--bl-ease), box-shadow .25s var(--bl-ease), filter .25s;
}
.btn-donate:hover, .btn-donate:focus {
  color: #fff; filter: brightness(1.06);
  transform: translateY(-2px); box-shadow: 0 10px 26px rgba(72, 146, 218, .45);
}
.btn-donate i { transition: transform .3s var(--bl-ease); }
.btn-donate:hover i { transform: scale(1.18); }

.btn-outline-burj {
  border: 2px solid var(--bl-blue); color: var(--bl-blue-dark);
  background: transparent; border-radius: 999px; padding: .55rem 1.5rem; font-weight: 700;
  transition: all .25s var(--bl-ease);
}
.btn-outline-burj:hover, .btn-outline-burj:focus {
  background: var(--bl-blue); color: #fff; transform: translateY(-3px); box-shadow: var(--bl-shadow-2);
}

.btn-lang {
  border: 1px solid var(--bl-line); color: var(--bl-navy); background: var(--bl-paper);
  border-radius: 999px; padding: .5rem 1.1rem; font-weight: 600; white-space: nowrap;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.btn-lang:hover { background: #fff; border-color: var(--bl-blue); color: var(--bl-blue-dark); }

/* ----------------------------------------------------------------- header */
.burj-topbar {
  background: var(--bl-navy); color: #cfe0f5; font-size: .875rem; padding: .5rem 0;
}
.burj-topbar a { color: #cfe0f5; text-decoration: none; margin-inline-end: 1.25rem; }
.burj-topbar a:hover { color: #fff; }
/* Icons come from social_media.s_icon, which may hold either a Font Awesome
   <i> or raw inline SVG (X is stored as an <svg> with no width/height/fill).
   Unconstrained, that SVG expands to fill the bar — so the box is fixed here
   and the glyph sized inside it, whichever form it takes. */
.burj-topbar-social { display: inline-flex; align-items: center; gap: .25rem; }
.burj-topbar-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; margin: 0; border-radius: 50%;
  font-size: .95rem; line-height: 1; flex: 0 0 auto;
  transition: background .2s ease, color .2s ease;
}
.burj-topbar-social a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.burj-topbar-social svg { width: 14px; height: 14px; fill: currentColor; display: block; }
.burj-topbar-social i { font-size: .95rem; line-height: 1; }

.burj-nav {
  background: #fff; box-shadow: 0 2px 16px rgba(16, 32, 56, .07); padding-block: .6rem;
  border-bottom: 1px solid var(--bl-line);
}
.burj-brand { display: flex; align-items: center; gap: .75rem; }
.burj-brand img { height: 66px; width: auto; transition: transform .25s var(--bl-ease); }
.burj-brand:hover img { transform: scale(1.05); }
@media (max-width: 575.98px) { .burj-brand img { height: 52px; } }
/* legacy brand-text (kept for any template still emitting it) */
.burj-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.burj-brand-text strong { color: var(--bl-navy); font-size: 1.05rem; font-weight: 800; }
.burj-brand-text small { color: var(--bl-muted); font-size: .75rem; }

/* clean top-level menu: no dividers — hover/active get a sliding brand-yellow
   underline (the same accent the gradient page banners use). */
.burj-nav .navbar-nav { align-items: center; }
.burj-nav .navbar-nav > .nav-item { position: relative; }
.burj-nav .nav-link {
  color: var(--bl-navy); font-weight: 600; padding: .5rem .9rem; margin-inline: .06rem;
  white-space: nowrap; position: relative; letter-spacing: .005em;
  transition: color .2s ease;
}
/* the underline lives on ::before so it never collides with the Bootstrap
   dropdown-toggle caret (which uses ::after) */
.burj-nav .nav-link::before {
  content: ""; position: absolute; inset-inline: .9rem; bottom: .32rem; height: 3px;
  background: var(--bl-yellow); border-radius: 3px;
  transform: scaleX(0); transform-origin: center; opacity: 0;
  transition: transform .25s var(--bl-ease), opacity .2s ease;
}
.burj-nav .nav-link:hover,
.burj-nav .nav-link:focus { color: var(--bl-blue-dark); }
.burj-nav .nav-link:hover::before,
.burj-nav .nav-link:focus::before { transform: scaleX(1); opacity: 1; }
.burj-nav .nav-link.active { color: var(--bl-blue-dark); font-weight: 700; }
.burj-nav .nav-link.active::before { transform: scaleX(1); opacity: 1; }
.burj-nav .nav-link.dropdown-toggle::after { margin-inline-start: .35rem; opacity: .55; }
.burj-nav .dropdown-menu { border: none; box-shadow: var(--bl-shadow-2); border-radius: 14px; padding: .5rem; margin-top: 0; }
.burj-nav .dropdown-item { border-radius: 10px; font-weight: 500; padding: .5rem .9rem; transition: background .15s ease, color .15s ease; white-space: nowrap; }
.burj-nav .dropdown-item:hover, .burj-nav .dropdown-item:focus { background: var(--bl-paper); color: var(--bl-blue-dark); }
.burj-nav .dropdown-item.active { background: var(--bl-paper); color: var(--bl-blue-dark); font-weight: 700; }

/* CSS-driven dropdowns — the page's Popper is v1 but Bootstrap 5 needs v2, so the
   Bootstrap dropdown JS throws (createPopper). Show menus on hover (desktop) and
   via a small click handler (initNavDropdowns in burj.js) that toggles .show. */
.burj-nav .nav-item.dropdown { position: relative; }
.burj-nav .nav-item.dropdown > .dropdown-menu {
  display: none; position: absolute; top: calc(100% + .35rem); inset-inline-start: 0;
  min-width: 230px; z-index: 1050;
}
.burj-nav .nav-item.dropdown > .dropdown-menu.show { display: block; }
@media (min-width: 992px) {
  /* hover bridge closes the gap between the item and its menu */
  .burj-nav .nav-item.dropdown::after {
    content: ""; position: absolute; inset-inline: 0; top: 100%; height: .5rem;
  }
  .burj-nav .nav-item.dropdown:hover > .dropdown-menu { display: block; }
}
@media (max-width: 991.98px) {
  /* stacked mobile menu: dropdowns expand inline instead of floating */
  .burj-nav .nav-item.dropdown > .dropdown-menu {
    position: static; box-shadow: none; padding-inline-start: 1rem; min-width: 0;
    margin: 0 0 .25rem;
  }
}

.burj-nav-actions { flex-wrap: wrap; }

/* Own class names rather than .form-control/.btn: the alukas theme and
   shop-bundle.css both restyle those, which is what pushed the magnifier out of
   its field. Nothing else on the site targets .burj-search-*. */
.burj-search { position: relative; display: flex; align-items: center; }
.burj-search-input {
  height: 42px; min-width: 200px; width: 100%;
  padding: 0 2.75rem 0 1rem;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--bl-paper); color: var(--bl-ink); font: inherit; font-size: .9rem;
  appearance: none; -webkit-appearance: none; outline: none;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
[dir="rtl"] .burj-search-input { padding: 0 1rem 0 2.75rem; }
.burj-search-input::placeholder { color: var(--bl-muted); }
.burj-search-input:focus { background: #fff; border-color: var(--bl-blue); box-shadow: 0 0 0 4px rgba(72, 146, 218, .15); }
.burj-search-input::-webkit-search-cancel-button { display: none; }

.burj-search-btn {
  position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--bl-muted); font-size: .9rem; line-height: 1;
  cursor: pointer; transition: color .2s ease, background .2s ease;
}
.burj-search-btn:hover { color: #fff; background: var(--bl-blue); }
.burj-search-btn i { pointer-events: none; }

/* ------------------------------------------------------------------- hero */
.burj-hero { position: relative; }
.burj-hero-slide {
  position: relative; min-height: clamp(420px, 66vh, 640px);
  /* the inline style sets background-image; this colour shows through when that
     file 404s, so a not-yet-uploaded photo reads as a branded panel, not a blank band */
  background-color: var(--bl-navy);
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end;
}

/* swapped in by burj.js when a file 404s (uploads not copied across yet) */
img.is-placeholder { object-fit: contain !important; background: var(--bl-paper); padding: 12%; }
.burj-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 40, 102, .15) 0%, rgba(0, 40, 102, .35) 45%, rgba(0, 40, 102, .88) 100%);
}
.burj-hero .container { position: relative; z-index: 2; }
.burj-hero-body { max-width: 720px; color: #fff; padding-block: 3rem 4.5rem; }
.burj-hero-date {
  display: inline-block; background: rgba(255, 255, 255, .18); backdrop-filter: blur(6px);
  border-radius: 999px; padding: .25rem .85rem; font-size: .8rem; margin-bottom: .85rem;
}
.burj-hero-title { font-size: clamp(1.6rem, 3.4vw, 2.75rem); color: #fff; margin-bottom: .75rem; }
.burj-hero-title a { color: #fff; text-decoration: none; }
.burj-hero-title a:hover { text-decoration: underline; text-underline-offset: 5px; }
.burj-hero-text { color: rgba(255, 255, 255, .9); font-size: 1.05rem; margin-bottom: 1.25rem; }

.burj-hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 52px; height: 52px; border-radius: 50%; border: none;
  background: rgba(255, 255, 255, .18); backdrop-filter: blur(8px);
  color: #fff; font-size: 1.1rem; transition: background .25s var(--bl-ease);
}
.burj-hero-nav:hover { background: rgba(255, 255, 255, .35); }
.burj-hero-prev { inset-inline-start: 1.5rem; }
.burj-hero-next { inset-inline-end: 1.5rem; }
/* the chevrons are direction-agnostic once the buttons are mirrored by logical props */
[dir="rtl"] .burj-hero-prev i, [dir="rtl"] .burj-hero-next i { transform: scaleX(-1); }

.burj-hero .swiper-pagination { bottom: 1.25rem !important; }
.burj-hero .swiper-pagination-bullet {
  width: 11px; height: 11px; background: #fff; opacity: .5; transition: width .3s var(--bl-ease);
}
.burj-hero .swiper-pagination-bullet-active { opacity: 1; width: 32px; border-radius: 6px; }

/* -------------------------------------------------------------- sections */
.burj-section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.burj-section-head { margin-bottom: 2.25rem; }
.burj-section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); margin-bottom: .5rem; }
.burj-section-head p { color: var(--bl-muted); margin: 0; }

.burj-eyebrow {
  color: var(--bl-blue); font-size: .85rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: .35rem;
}
.burj.rtl .burj-eyebrow { letter-spacing: 0; }

/* ---------------------------------------------------------- get involved */
.burj-involved { background: var(--bl-paper); padding-block: 3rem; }
.burj-involved-title { font-size: clamp(1.35rem, 2.2vw, 1.9rem); margin: 0; }
.burj-action {
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
  text-align: center; text-decoration: none; padding: 1.25rem .75rem;
  border-radius: var(--bl-radius); background: #fff; height: 100%;
  box-shadow: var(--bl-shadow-1); transition: transform .3s var(--bl-ease), box-shadow .3s var(--bl-ease);
}
.burj-action:hover { transform: translateY(-6px); box-shadow: var(--bl-shadow-2); }
.burj-action-icon {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--bl-blue), var(--bl-navy)); color: #fff; font-size: 1.4rem;
}
.burj-action-label { color: var(--bl-navy); font-weight: 700; font-size: .95rem; }

/* ------------------------------------------------------------------ cards */
.burj-card {
  display: block; text-decoration: none; background: #fff; height: 100%;
  border-radius: var(--bl-radius); overflow: hidden; box-shadow: var(--bl-shadow-1);
  transition: transform .3s var(--bl-ease), box-shadow .3s var(--bl-ease);
}
.burj-card:hover { transform: translateY(-6px); box-shadow: var(--bl-shadow-2); }
.burj-card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bl-paper); }
.burj-card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s var(--bl-ease);
}
.burj-card:hover .burj-card-media img { transform: scale(1.07); }
.burj-card-body { padding: 1.1rem 1.25rem 1.4rem; }
.burj-card-title { font-size: 1.05rem; line-height: 1.4; margin: 0; color: var(--bl-navy); }
.burj-card-date { display: block; color: var(--bl-blue); font-size: .8rem; font-weight: 700; margin-bottom: .35rem; }
.burj-card-text { color: var(--bl-muted); font-size: .9rem; margin: .5rem 0 0; }

.burj-projects .burj-card-media { aspect-ratio: 4 / 3; }
.burj-projects .swiper { padding-bottom: .5rem; }
.burj-projects .swiper-button-prev,
.burj-projects .swiper-button-next { color: var(--bl-blue); }
.burj-projects .swiper-button-prev::after,
.burj-projects .swiper-button-next::after { font-size: 1.5rem; font-weight: 700; }

/* ---------------------------------------------------------------- about */
.burj-about { background: var(--bl-paper); }
.burj-about-title { font-size: clamp(1.4rem, 2.4vw, 2rem); margin-bottom: 1rem; }
.burj-about p { color: var(--bl-muted); line-height: 1.9; margin-bottom: 1.5rem; }

.burj-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.burj-gallery-item {
  position: relative; display: block; aspect-ratio: 1; overflow: hidden;
  border-radius: 14px; box-shadow: var(--bl-shadow-1);
}
.burj-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--bl-ease); }
.burj-gallery-item:hover img { transform: scale(1.1); }
.burj-gallery-overlay {
  position: absolute; inset: 0; display: grid; place-items: center; color: #fff;
  background: rgba(0, 40, 102, .55); opacity: 0; transition: opacity .3s var(--bl-ease);
}
.burj-gallery-item:hover .burj-gallery-overlay { opacity: 1; }
[dir="rtl"] .burj-gallery-overlay i { transform: scaleX(-1); }

/* ----------------------------------------------------------------- tiles */
.burj-tile {
  display: flex; flex-direction: column; justify-content: center; gap: .35rem;
  min-height: 300px; padding: clamp(2rem, 5vw, 4rem); text-decoration: none; color: #fff;
  transition: filter .3s var(--bl-ease);
}
.burj-tile:hover { filter: brightness(1.08); color: #fff; }
.burj-tile-blue { background: var(--bl-blue); }
.burj-tile-navy { background: var(--bl-navy); }
.burj-tile-eyebrow { font-size: .95rem; opacity: .85; }
.burj-tile h3 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.25rem); margin: 0 0 .75rem; }
.burj-tile-cta { font-weight: 700; }
[dir="rtl"] .burj-tile-cta i { transform: scaleX(-1); }

/* -------------------------------------------------------------- counters */
.burj-counters {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: linear-gradient(135deg, var(--bl-navy), var(--bl-blue-dark));
  color: #fff;
}
.burj-counters h2 { color: #fff; margin-bottom: 1rem; }
.burj-counter { text-align: center; }
.burj-counter i { font-size: 1.75rem; opacity: .75; margin-bottom: .5rem; display: block; }
.burj-counter-n { display: block; font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; line-height: 1; }
.burj-counter-label { display: block; margin-top: .35rem; opacity: .85; font-weight: 600; }

/* ------------------------------------------------------------------- CTA */
.burj-cta { background: var(--bl-sand); padding-block: clamp(3rem, 6vw, 5rem); }
.burj-cta p { color: #5b5540; max-width: 640px; margin: 0 auto 1.5rem; font-size: 1.05rem; }

/* ---------------------------------------------------------------- events */
.burj-event {
  display: block; text-decoration: none; background: #fff; height: 100%;
  border-radius: var(--bl-radius); overflow: hidden; box-shadow: var(--bl-shadow-1);
  transition: transform .3s var(--bl-ease), box-shadow .3s var(--bl-ease);
}
.burj-event:hover { transform: translateY(-5px); box-shadow: var(--bl-shadow-2); }
.burj-event-media { aspect-ratio: 16 / 9; overflow: hidden; }
.burj-event-media img { width: 100%; height: 100%; object-fit: cover; }
.burj-event-body { padding: 1rem 1.15rem 1.3rem; display: flex; gap: .9rem; align-items: flex-start; }
.burj-event-date {
  flex: 0 0 auto; text-align: center; background: var(--bl-blue); color: #fff;
  border-radius: 12px; padding: .4rem .6rem; font-size: .7rem; line-height: 1.2; min-width: 52px;
}
.burj-event-date strong { display: block; font-size: 1.25rem; font-weight: 800; }
.burj-event-body h3 { font-size: .98rem; line-height: 1.45; margin: 0; color: var(--bl-navy); }

.burj-newsletter-card {
  background: var(--bl-navy); color: #fff; border-radius: var(--bl-radius);
  padding: 2rem 1.75rem; height: 100%;
}
.burj-newsletter-card h2 { color: #fff; margin-bottom: .5rem; }
.burj-newsletter-card p { color: rgba(255, 255, 255, .8); font-size: .93rem; }
.burj-newsletter .form-control { border-radius: 12px; border: none; padding: .7rem 1rem; }
.burj-newsletter .form-control:focus { box-shadow: 0 0 0 4px rgba(72, 146, 218, .35); }
.burj-newsletter-msg { font-size: .875rem; margin-top: .6rem; min-height: 1.2em; }
.burj-newsletter-msg.ok { color: #7ee0a5; }
.burj-newsletter-msg.err { color: #ffb4b4; }

/* -------------------------------------------------------------- news/team */
.burj-news { background: var(--bl-paper); }
.burj-member { display: block; text-align: center; text-decoration: none; }
.burj-member-photo {
  aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin: 0 auto .85rem;
  max-width: 180px; box-shadow: var(--bl-shadow-1);
}
.burj-member-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--bl-ease); }
.burj-member:hover .burj-member-photo img { transform: scale(1.08); }
.burj-member h3 { font-size: 1rem; margin: 0; color: var(--bl-navy); }
.burj-member span { font-size: .85rem; color: var(--bl-muted); }

/* ----------------------------------------------------------- supporters */
.burj-supporters { background: var(--bl-sand); }
.burj-logo-card {
  background: #fff; border-radius: 14px; padding: 1rem; height: 110px;
  display: grid; place-items: center; box-shadow: var(--bl-shadow-1);
  transition: transform .3s var(--bl-ease), box-shadow .3s var(--bl-ease);
}
.burj-logo-card:hover { transform: translateY(-5px); box-shadow: var(--bl-shadow-2); }
.burj-logo-card img { max-width: 100%; max-height: 78px; object-fit: contain; }

/* --------------------------------------------------------- publication cards
   categories/filescols.blade.php — annual reports, books, newsletters.
   Covers vary in shape (portrait reports, square-ish books), so the frame is a
   fixed portrait box and the image is contained rather than cropped: cropping a
   book cover cuts the title off. Matches the card treatment used on the home
   page (rounded, soft shadow, lift on hover).
   -------------------------------------------------------------------------- */
.burj-pub-col { margin-bottom: 26px; }

.burj-pub {
  display: flex; flex-direction: column; height: 100%;
  text-decoration: none; background: #fff;
  border: 1px solid var(--bl-line); border-radius: var(--bl-radius);
  overflow: hidden; box-shadow: var(--bl-shadow-1);
  transition: transform .3s var(--bl-ease), box-shadow .3s var(--bl-ease), border-color .3s;
}
.burj-pub:hover, .burj-pub:focus-visible {
  transform: translateY(-6px); box-shadow: var(--bl-shadow-2); border-color: var(--bl-blue);
}

.burj-pub-cover {
  position: relative; display: block;
  aspect-ratio: 3 / 4; background: var(--bl-paper);
  padding: 14px; overflow: hidden;
}
.burj-pub-cover img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  transition: transform .45s var(--bl-ease);
}
.burj-pub:hover .burj-pub-cover img { transform: scale(1.04); }

/* the "opens in a new tab" affordance, revealed on hover */
.burj-pub-open {
  position: absolute; inset-inline-end: 12px; top: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bl-blue); color: #fff; font-size: .8rem;
  opacity: 0; transform: translateY(-6px);
  transition: opacity .25s var(--bl-ease), transform .25s var(--bl-ease);
}
.burj-pub:hover .burj-pub-open, .burj-pub:focus-visible .burj-pub-open { opacity: 1; transform: none; }
[dir="rtl"] .burj-pub-open i { transform: scaleX(-1); }

.burj-pub-body {
  display: block; padding: 14px 16px 18px;
  border-top: 1px solid var(--bl-line);
}
.burj-pub-date {
  display: block; margin-bottom: 6px;
  color: var(--bl-blue); font-size: .78rem; font-weight: 700;
}
.burj-pub-date i { margin-inline-end: 4px; }
.burj-pub-title {
  display: block; color: var(--bl-navy);
  font-size: .98rem; font-weight: 700; line-height: 1.45;
}
.burj-pub:hover .burj-pub-title { color: var(--bl-blue-dark); }

@media (max-width: 575.98px) {
  .burj-pub-body { padding: 12px 13px 15px; }
  .burj-pub-title { font-size: .9rem; }
}

/* -----------------------------------------------------------------  footer
   Values taken from the live site's Elementor footer template ("Footer Castor",
   post 7070): band #EAEAE7, headings Baloo 2 / 22px / 700 / uppercase / #333333,
   body copy Roboto justified, social icons 16px circles, bottom bar #333333 with
   centred 16px Open Sans.
   -------------------------------------------------------------------------- */
.burj-footer { background: #eaeae7; color: #6d6d6d; }
.burj-footer-row { padding-block: 70px 40px; }
.burj-foot-col { margin-bottom: 30px; }

.burj-foot-h {
  font-family: var(--bl-font);
  font-size: 22px; font-weight: 700; text-transform: uppercase;
  color: #333; letter-spacing: 0; margin: 0 0 22px;
}
.burj-footer.rtl .burj-foot-h, [dir="rtl"] .burj-foot-h { text-transform: none; }
/* the accent full stop the theme puts after every footer heading */
.burj-foot-h::after { content: "."; color: #333; font-size: 1.3em; line-height: 0; margin-inline-start: 4px; }
.burj-foot-h-certified { margin-top: 34px; }

.burj-foot-about {
  font-family: var(--bl-font); font-size: 15px; line-height: 1.9;
  color: #6d6d6d; text-align: justify; margin-bottom: 29px;
}

.burj-foot-logo { display: block; }
.burj-foot-logo img { width: 70%; max-width: 230px; height: auto; }

.burj-foot-contact { list-style: none; padding: 0; margin: 0; }
.burj-foot-contact li { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 10px; font-size: 15px; }
.burj-foot-contact i { color: var(--bl-blue); margin-top: 4px; flex: 0 0 auto; }
.burj-footer a { color: #6d6d6d; text-decoration: none; transition: color .2s ease; }
.burj-footer a:hover { color: var(--bl-blue); }

.burj-foot-iso img { width: 70%; max-width: 190px; height: auto; }

/* ---- news column (replaces the old be-posts widget) ---- */
.burj-foot-news { list-style: none; padding: 0; margin: 0; }
.burj-foot-news li { margin-bottom: 16px; }
.burj-foot-news a { display: flex; gap: 12px; align-items: flex-start; }
.burj-foot-news-thumb {
  flex: 0 0 64px; width: 64px; height: 64px; border-radius: 8px;
  overflow: hidden; background: #dedede;
}
.burj-foot-news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.burj-foot-news-body { display: block; }
.burj-foot-news-title { display: block; font-size: 14px; line-height: 1.5; color: #333; }
.burj-foot-news a:hover .burj-foot-news-title { color: var(--bl-blue); }
.burj-foot-news-date { display: block; font-size: 12px; color: #8b8b8b; margin-top: 3px; }

/* ---- social circles ---- */
.burj-foot-social { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 13px; }
.burj-soc {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff !important; font-size: 16px; background: #6d6d6d;
  transition: transform .2s ease, filter .2s ease;
}
.burj-soc:hover { transform: translateY(-3px); filter: brightness(1.1); color: #fff !important; }
.burj-soc svg { width: 16px; height: 16px; fill: currentColor; }
/* Brand colours apply only to the footer's circular buttons. The header topbar
   uses the same burj-soc-<network> keys for identification but renders plain
   icons on the navy bar, so these must not match there. */
.burj-soc.burj-soc-facebook  { background: #1877f2; }
.burj-soc.burj-soc-twitter,
.burj-soc.burj-soc-x         { background: #1da1f2; }
.burj-soc.burj-soc-youtube   { background: #ff0000; }
.burj-soc.burj-soc-instagram { background: #262626; }
.burj-soc.burj-soc-tiktok    { background: #6d6d70; }
.burj-soc.burj-soc-whatsapp  { background: #25d366; }
.burj-soc.burj-soc-linkedin  { background: #0a66c2; }
.burj-soc.burj-soc-telegram  { background: #229ed9; }
.burj-soc.burj-soc-snapchat  { background: #fffc00; color: #333 !important; }

/* ---- sub-brand apps carousel ---- */
.burj-foot-apps { padding: 6px 0 26px; border-top: 3px solid var(--bl-blue); }
.burj-foot-apps .swiper-slide { display: flex; align-items: center; justify-content: center; }
.burj-foot-apps .swiper-slide img {
  width: 100%; max-width: 92px; height: 78px; object-fit: contain;
  border: 1px solid #d8d8d2; border-radius: 4px; background: #fff; padding: 6px;
}
.burj-foot-apps-dots.swiper-pagination {
  position: static; margin-top: 10px; display: flex; gap: 7px; justify-content: center;
}
.burj-foot-apps-dots .swiper-pagination-bullet {
  width: 7px; height: 7px; margin: 0 !important; background: #333; opacity: .25;
}
.burj-foot-apps-dots .swiper-pagination-bullet-active { opacity: 1; }

/* ---- bottom bar ---- */
.burj-footer-bottom {
  background: #333; color: #fff; text-align: center;
  font-family: var(--bl-font); font-size: 16px; font-weight: 400;
  padding-block: 22px;
}
.burj-footer-bottom strong { font-weight: 700; }

/* ------------------------------------------------------------ responsive */
/* Desktop nav is a single row: the links + search + language + donate. Keep the
   action group on one line and tighten things as the row narrows so nothing
   wraps (nav-links are white-space:nowrap above). */
@media (min-width: 992px) {
  .burj-nav-actions { flex-wrap: nowrap; }
}
@media (min-width: 992px) and (max-width: 1599.98px) {
  .burj-nav .nav-link { padding-inline: .58rem; margin-inline: .04rem; }
  .burj-nav .nav-link::before { inset-inline: .58rem; }
  .burj-nav-actions { gap: .4rem !important; }
  .burj-search-input { min-width: 130px; }
}
@media (min-width: 992px) and (max-width: 1299.98px) {
  .burj-nav .nav-link { padding-inline: .45rem; }
  .burj-nav .nav-link::before { inset-inline: .45rem; }
  .burj-search-input { min-width: 110px; }
}

@media (max-width: 991.98px) {
  .burj-nav-actions { width: 100%; padding-top: .75rem; }
  .burj-search { flex: 1 1 auto; }
  .burj-search .form-control { width: 100%; }
  .burj-nav .nav-link::after { display: none; }
  /* stacked mobile menu: swap the sliding underline for a soft pill */
  .burj-nav .nav-link { border-radius: 9px; }
  .burj-nav .nav-link::before { display: none; }
  .burj-nav .nav-link:hover,
  .burj-nav .nav-link:focus,
  .burj-nav .nav-link.active { background: var(--bl-paper); }
  .burj-gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 575.98px) {
  .burj-hero-slide { min-height: 58vh; }
  .burj-hero-nav { width: 42px; height: 42px; }
  .burj-gallery { grid-template-columns: repeat(2, 1fr); }
  .burj-footer-bottom { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .burj *, .burj *::before, .burj *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ==========================================================================
   Site-wide font unification.

   The frontend layers several stylesheets that each pin their own font:
     - alukas theme (assets/theme/css/custom.css)  → var(--default-font) = Manrope
     - assets/theme/css/custom2.css                → 'TheSansArabic' via :lang(ar)
     - Bootstrap / Elementor blocks                → Roboto / Baloo / Open Sans
   burj.css loads last, so this block makes the whole public site render in the
   canonical res/css font (Noto Kufi Arabic).

   Icon fonts are deliberately excluded (Font Awesome <i>, [class*="fa-"], and
   generic .icon carriers) so glyph rendering is never broken.
   ========================================================================== */

/* 1) Neutralise the alukas font variables so every var()-based rule follows. */
:root {
  --default-font: var(--bl-font);
  --accent-font:  var(--bl-font);
  --heading-font: var(--bl-font);
}

/* 2) Beat custom2.css's :lang(ar) TheSansArabic rules (same/greater specificity). */
body.burj:lang(ar),
body.burj[dir="rtl"],
body.burj:lang(ar) h1, body.burj:lang(ar) h2, body.burj:lang(ar) h3,
body.burj:lang(ar) h4, body.burj:lang(ar) h5, body.burj:lang(ar) h6 {
  font-family: var(--bl-font) !important;
}

/* 3) Safety net: force the family on text elements across the frontend while
      leaving icon fonts alone. */
body.burj,
body.burj *:not(i):not(.fa):not([class*="fa-"]):not([class*="icon"]):not(.material-icons):not(svg):not(svg *) {
  font-family: var(--bl-font) !important;
}

/* ==========================================================================
   Internal / article pages  (articles.index + the shared content templates)

   These render with the legacy class contract (.internal_div, .page-header2,
   .title, #all_body, .social_share_div, .internal_page_thumb, .tags_div, …).
   shared.css only gives them a bare skeleton — a grey header box, a translucent
   panel, min-height:1000px and NO body typography — so CMS content came out
   raw. burj.css loads after shared.css, so this section restyles them to match
   the rest of the site.
   ========================================================================== */

/* --- drop legacy artefacts: huge min-height + translucent content panel --- */
.burj .internal_div { min-height: 0; padding-bottom: 48px; }
.burj #all_body { background: transparent; padding: 0; min-height: 0; }

/* --- page header: brand gradient banner (Option 2) ------------------- */
.burj .page-header2 {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--bl-navy) 0%, var(--bl-blue-dark) 62%, var(--bl-blue) 100%);
  border: 0; border-radius: var(--bl-radius);
  padding: 40px 34px; margin: 0 0 34px; color: #fff; font-size: 1rem;
}
/* soft decorative circles — brand flourish, non-interactive */
.burj .page-header2::before {
  content: ""; position: absolute; inset-inline-start: -50px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.07);
}
.burj .page-header2::after {
  content: ""; position: absolute; inset-inline-start: 90px; bottom: -70px;
  width: 160px; height: 160px; border-radius: 50%; background: rgba(255,238,0,.10);
}
.burj .page-header2 .container { padding-inline: 0; position: relative; z-index: 1; }
.burj .page-header2 .ip-breadcrumb {
  color: rgba(255,255,255,.85) !important; font-size: .9rem; margin: 0 0 10px;
}
.burj .page-header2 .ip-breadcrumb a { color: rgba(255,255,255,.85) !important; text-decoration: none; margin-inline-end: 4px; }
.burj .page-header2 .ip-breadcrumb a:hover { color: #fff !important; }

/* title on one side, share + date on the other, aligned on a single baseline */
.burj .page-header2 .ip-title-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
/* banner titles are ALWAYS on the dark gradient — force white so no body rule
   (e.g. .internal_div .title = navy) can override them. */
.burj .page-header2 .title,
.burj .page-header .page-title {
  color: #fff !important; font-weight: 800; line-height: 1.25;
  font-size: clamp(26px, 3vw, 38px); margin: 0; position: relative; padding-bottom: 14px;
}
.burj .page-header2 .title::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: 0;
  width: 70px; height: 5px; border-radius: 4px; background: var(--bl-yellow);
}
/* OLD-style body .title (opinion, some category layouts) stays navy; it can't
   affect the banner title above because that is forced white with !important. */
.burj .internal_div .title { color: var(--bl-navy); font-weight: 800; }

/* share + date group (sits on the gradient) */
.burj .page-header2 .options_div {
  float: none !important; display: flex; align-items: center; gap: 14px;
}
.burj .page-header2 .show_date_div { color: rgba(255,255,255,.85); font-size: .85rem; white-space: nowrap; }
.burj .social_share_div, .burj .a2a_kit { display: inline-flex; align-items: center; gap: 2px; }
/* Legacy .page-header (used by several category + article templates, e.g. News,
   Team, contact). Render it as the SAME gradient banner as .page-header2 so every
   page shares one banner design. The section becomes a transparent wrapper and its
   inner .container is styled as the contained, rounded gradient banner. */
.burj .page-header {
  position: static; background: transparent !important; background-image: none !important;
  padding: 22px 0 0; margin: 0 0 34px;
}
.burj .page-header::before { display: none; }
.burj .page-header > .container {
  position: relative; overflow: hidden; z-index: auto;
  background: linear-gradient(120deg, var(--bl-navy) 0%, var(--bl-blue-dark) 62%, var(--bl-blue) 100%);
  border-radius: var(--bl-radius); padding: 40px 34px; color: #fff;
}
.burj .page-header > .container::before {
  content: ""; position: absolute; inset-inline-start: -50px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.07); z-index: 0;
}
.burj .page-header > .container::after {
  content: ""; position: absolute; inset-inline-start: 90px; bottom: -70px;
  width: 160px; height: 160px; border-radius: 50%; background: rgba(255,238,0,.10); z-index: 0;
}
.burj .page-header .breadcrumb-nav,
.burj .page-header .breadcrumb-nav a {
  color: rgba(255,255,255,.8); text-decoration: none; font-size: .9rem;
  position: relative; z-index: 1; margin-bottom: 8px;
}
.burj .page-header .page-title {
  color: #fff; font-weight: 800; line-height: 1.25; font-size: clamp(26px, 3vw, 38px);
  margin: 0; position: relative; z-index: 1; padding-bottom: 14px;
}
.burj .page-header .page-title::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: 0;
  width: 70px; height: 5px; border-radius: 4px; background: var(--bl-yellow);
}

/* --- social share row: keep it tidy, not floating over the content ---- */
.burj .social_share_div { display: inline-flex; align-items: center; gap: 6px; }
.burj .options_div { float: none !important; display: flex; align-items: center; gap: 14px; justify-content: flex-end; }
.burj .show_date_div { color: var(--bl-muted); font-size: .85rem; }

/* --- lead / subtitle -------------------------------------------------- */
.burj .sm-title {
  color: var(--bl-muted); font-size: 1.15rem; font-weight: 600;
  line-height: 1.7; margin: 0 0 18px;
}

/* --- featured thumbnail ---------------------------------------------- */
.burj .internal_page_thumb { margin: 0 0 26px; }
.burj .internal_page_thumb img {
  width: 100%; height: auto; border-radius: var(--bl-radius);
  box-shadow: var(--bl-shadow-2);
}
.burj .intimg-cap { color: var(--bl-muted); font-size: .9rem; text-align: center; padding: 8px; background: transparent; }

/* --- logo grid (project / partner logos that ship as stacked <figure>s) --- */
.burj #all_body .ip-logo-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin: 20px 0 30px;
}
.burj #all_body .ip-logo-grid figure {
  flex: 0 0 auto; width: 190px; height: 120px; margin: 0; padding: 14px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--bl-line); border-radius: 14px;
  box-shadow: var(--bl-shadow-1); transition: transform .25s var(--bl-ease), box-shadow .25s var(--bl-ease);
}
.burj #all_body .ip-logo-grid figure:hover { transform: translateY(-4px); box-shadow: var(--bl-shadow-2); }
.burj #all_body .ip-logo-grid figure img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; margin: 0; border-radius: 0;
}

/* --- publications grid (annual reports / books / newsletters) -------- */
.burj .bl-pub-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 26px; margin: 16px 0 42px;
}
.burj .bl-pub-item {
  position: relative; margin: 0; display: block; text-decoration: none;
  aspect-ratio: 3 / 4; padding: 20px; overflow: hidden;
  background: linear-gradient(158deg, #ffffff 0%, #eef3fb 100%);
  border: 1px solid var(--bl-line); border-radius: 18px;
  box-shadow: var(--bl-shadow-1);
  transition: transform .3s var(--bl-ease), box-shadow .3s var(--bl-ease), border-color .2s ease;
}
/* soft brand glow in the top corner so the mount doesn't read as flat white */
.burj .bl-pub-item::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(115% 75% at 100% 0%, rgba(72,146,218,.12), transparent 60%);
}
.burj .bl-pub-item img {
  position: relative; z-index: 1; display: block;
  width: 100%; height: 100%; object-fit: contain; border-radius: 4px;
  filter: drop-shadow(0 12px 20px rgba(0,40,102,.20));
  transition: transform .35s var(--bl-ease);
}
.burj .bl-pub-item:hover { transform: translateY(-8px); box-shadow: var(--bl-shadow-3); border-color: var(--bl-blue); }
.burj .bl-pub-item:hover img { transform: scale(1.045); }
.burj .bl-pub-item img.is-placeholder { filter: none; opacity: .55; }
/* "view" affordance shown on hover */
.burj .bl-pub-view {
  position: absolute; z-index: 2; inset-inline-end: 14px; inset-block-end: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px;
  background: var(--bl-navy); color: #fff;
  box-shadow: 0 8px 18px rgba(0,40,102,.35);
  opacity: 0; transform: translateY(10px) scale(.9);
  transition: opacity .25s ease, transform .25s var(--bl-ease);
}
.burj .bl-pub-item:hover .bl-pub-view { opacity: 1; transform: translateY(0) scale(1); }
@media (max-width: 575.98px) {
  .burj .bl-pub-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
  .burj .bl-pub-item { padding: 14px; border-radius: 14px; }
}

/* --- Projects page: skyline intro + "Get Involved" CTA ---------------- */
/* Rebuilt (in the burj theme) from the old site's Programmes & Projects page. */
.burj .bl-proj-intro { text-align: center; margin: 4px 0 26px; }
.burj .bl-proj-skyline {
  display: block; width: 100%; max-width: 880px; height: auto; margin: 0 auto 16px;
}
.burj .bl-proj-lead {
  max-width: 820px; margin: 0 auto; color: var(--bl-muted);
  font-size: 1.12rem; line-height: 1.95;
}

.burj .bl-getinvolved {
  position: relative; overflow: hidden; border-radius: var(--bl-radius);
  background-size: cover; background-position: center;
  margin: 36px 0 6px; padding: 58px 20px 62px; box-shadow: var(--bl-shadow-2);
}
.burj .bl-getinvolved-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,40,102,.92) 0%, rgba(47,111,176,.80) 100%);
}
.burj .bl-getinvolved-inner { position: relative; z-index: 1; text-align: center; color: #fff; }
.burj .bl-gi-eyebrow {
  display: inline-block; color: var(--bl-yellow); font-weight: 800;
  letter-spacing: .04em; font-size: 1rem; margin-bottom: 6px;
}
.burj .bl-gi-title {
  color: #fff; font-weight: 800; line-height: 1.2; margin: 0 0 28px;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
}
.burj .bl-gi-circles {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 22px; margin-bottom: 32px;
}
.burj .bl-gi-circle {
  width: 168px; height: 168px; border-radius: 50%; overflow: hidden; margin: 0;
  border: 3px solid rgba(255,255,255,.85); box-shadow: var(--bl-shadow-2);
  transition: transform .3s var(--bl-ease), border-color .2s ease;
}
.burj .bl-gi-circle img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; border-radius: 0; }
.burj .bl-gi-circle:hover { transform: translateY(-5px); border-color: var(--bl-yellow); }
.burj .bl-gi-btn {
  display: inline-block; background: var(--bl-yellow); color: var(--bl-navy);
  font-weight: 800; text-decoration: none; padding: 13px 32px; border-radius: 999px;
  box-shadow: 0 10px 22px rgba(0,0,0,.22);
  transition: transform .2s var(--bl-ease), box-shadow .2s ease, background .2s ease;
}
.burj .bl-gi-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 26px rgba(0,0,0,.30); background: #fff35c; }
@media (max-width: 575.98px) {
  .burj .bl-getinvolved { padding: 40px 14px 46px; }
  .burj .bl-gi-circle { width: 116px; height: 116px; }
  .burj .bl-gi-circles { gap: 14px; }
}

/* --- Contact page (CMS body with an embedded map) -------------------- */
.burj #all_body.bl-contact-body { text-align: center; }
.burj #all_body.bl-contact-body h2 {
  color: var(--bl-navy); margin: .2em 0 .3em; font-size: clamp(1.5rem, 3vw, 2.1rem);
}
.burj #all_body.bl-contact-body > p,
.burj #all_body.bl-contact-body .bl-contact-info > p { color: var(--bl-muted); margin: 0 0 1em; }
.burj #all_body.bl-contact-body h3 { color: var(--bl-navy); font-size: 1.1rem; margin: .3em 0 .1em; }
.burj #all_body.bl-contact-body a { color: var(--bl-blue-dark); font-weight: 700; text-decoration: none; }
.burj #all_body.bl-contact-body a:hover { color: var(--bl-navy); text-decoration: underline; }
/* the leftover CMS "icon" glyphs — tint them to brand blue and keep them small */
.burj #all_body.bl-contact-body svg {
  width: 30px; height: 30px; max-width: 30px; max-height: 30px; opacity: 1;
  color: var(--bl-blue); fill: var(--bl-blue); margin: 10px 0 2px;
}
.burj #all_body.bl-contact-body svg [fill]:not([fill="none"]) { fill: var(--bl-blue); }

/* two-column reflow: contact details | map */
.burj #all_body.bl-contact-body .bl-contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 34px;
  align-items: center; text-align: start; margin: 6px 0 4px;
}
.burj #all_body.bl-contact-body .bl-contact-info h2,
.burj #all_body.bl-contact-body .bl-contact-info > p { text-align: start; }
.burj #all_body.bl-contact-body .bl-contact-info svg { display: block; margin-inline: 0; }
.burj #all_body.bl-contact-body .bl-contact-map { height: 100%; }
.burj #all_body.bl-contact-body .bl-contact-map iframe {
  width: 100%; height: 100%; min-height: 430px; border: 0; display: block; margin: 0;
  border-radius: var(--bl-radius); box-shadow: var(--bl-shadow-2);
}
.burj #all_body.bl-contact-body .bl-contact-after { text-align: center; margin-top: 34px; }
/* map when the body isn't reflowed (fallback) */
.burj #all_body.bl-contact-body > iframe {
  width: 100%; height: 430px; border: 0; display: block;
  border-radius: var(--bl-radius); box-shadow: var(--bl-shadow-2); margin: 26px 0 8px;
}
@media (max-width: 767.98px) {
  .burj #all_body.bl-contact-body .bl-contact-grid { grid-template-columns: 1fr; gap: 18px; text-align: center; }
  .burj #all_body.bl-contact-body .bl-contact-info h2,
  .burj #all_body.bl-contact-body .bl-contact-info > p { text-align: center; }
  .burj #all_body.bl-contact-body .bl-contact-info svg { margin-inline: auto; }
  .burj #all_body.bl-contact-body .bl-contact-map iframe { min-height: 300px; }
}

/* --- article body typography ----------------------------------------- */
.burj #all_body { color: var(--bl-ink); font-size: 1.05rem; line-height: 1.95; }
.burj #all_body h1, .burj #all_body h2, .burj #all_body h3,
.burj #all_body h4, .burj #all_body h5, .burj #all_body h6 {
  color: var(--bl-navy); font-weight: 800; line-height: 1.3;
  margin: 1.6em 0 .6em;
}
.burj #all_body h1, .burj #all_body h2 { font-size: clamp(22px, 2.4vw, 30px); }
.burj #all_body h3 { font-size: clamp(19px, 2vw, 24px); }
.burj #all_body h4 { font-size: 1.15rem; }
.burj #all_body > :first-child { margin-top: 0; }
.burj #all_body p { margin: 0 0 1.15em; }
.burj #all_body a { color: var(--bl-blue-dark); text-decoration: underline; text-underline-offset: 3px; }
.burj #all_body a:hover { color: var(--bl-navy); }
.burj #all_body ul, .burj #all_body ol { margin: 0 0 1.15em; padding-inline-start: 1.4em; }
.burj #all_body li { margin-bottom: .5em; }
.burj #all_body img { max-width: 100%; height: auto; border-radius: 12px; margin: 8px 0; }
/* a broken image swapped to the theme placeholder must never dominate the page */
.burj #all_body img.is-placeholder { max-width: 280px; max-height: 210px; padding: 8%; }

/* CMS image galleries: WordPress exports drop a run of <a><img></a> thumbnails
   (or bare <img>s) into a single <p>. At their native sizes they wrap unevenly.
   A paragraph holding 3+ such images is treated as a gallery and laid out as a
   uniform tile grid (equal-size, cover-cropped; the link still opens full size). */
.burj #all_body p:has(> a:nth-of-type(3) > img),
.burj #all_body p:has(> img:nth-of-type(3)) {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px; margin: 20px 0 26px;
}
/* <br> tags between thumbnails would otherwise become empty grid cells */
.burj #all_body p:has(> a:nth-of-type(3) > img) br,
.burj #all_body p:has(> img:nth-of-type(3)) br { display: none; }
.burj #all_body p:has(> a:nth-of-type(3) > img) > a { display: block; margin: 0; line-height: 0; }
.burj #all_body p:has(> a:nth-of-type(3) > img) > a > img,
.burj #all_body p:has(> img:nth-of-type(3)) > img {
  width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 12px; margin: 0; box-shadow: var(--bl-shadow-1);
  transition: transform .3s var(--bl-ease), box-shadow .3s var(--bl-ease);
}
.burj #all_body p:has(> a:nth-of-type(3) > img) > a:hover > img,
.burj #all_body p:has(> img:nth-of-type(3)) > img:hover {
  transform: translateY(-3px) scale(1.02); box-shadow: var(--bl-shadow-2);
}
@media (max-width: 575.98px) {
  .burj #all_body p:has(> a:nth-of-type(3) > img),
  .burj #all_body p:has(> img:nth-of-type(3)) {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px;
  }
}

/* cover galleries wrapped server-side into .bl-gallery (runs of <a><img></a>
   dropped straight into the body — e.g. the yearly newsletter cover lists).
   Framed portrait cards on a soft mount, matching the Publications pages. */
.burj #all_body .bl-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px; margin: 22px 0 30px;
}
.burj #all_body .bl-gallery > a {
  display: flex; align-items: center; justify-content: center; margin: 0;
  aspect-ratio: 3 / 4; padding: 16px; overflow: hidden; position: relative;
  background: linear-gradient(158deg, #ffffff 0%, #eef3fb 100%);
  border: 1px solid var(--bl-line); border-radius: 16px; box-shadow: var(--bl-shadow-1);
  transition: transform .3s var(--bl-ease), box-shadow .3s var(--bl-ease), border-color .2s ease;
}
.burj #all_body .bl-gallery > a > img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; margin: 0;
  object-fit: contain; border-radius: 4px;
  filter: drop-shadow(0 10px 18px rgba(0,40,102,.18));
  transition: transform .35s var(--bl-ease);
}
.burj #all_body .bl-gallery > a:hover { transform: translateY(-6px); box-shadow: var(--bl-shadow-3); border-color: var(--bl-blue); }
.burj #all_body .bl-gallery > a:hover > img { transform: scale(1.04); }
@media (max-width: 575.98px) {
  .burj #all_body .bl-gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .burj #all_body .bl-gallery > a { padding: 12px; border-radius: 14px; }
}
/* stray inline SVG icons left in the CMS body (a leftover "no image" graphic was
   rendering full-width) — keep them to a small, muted inline size */
.burj #all_body svg { max-width: 84px; max-height: 84px; height: auto; display: inline-block; opacity: .5; }

/* team / board-member cards embedded in CMS content (WordPress "team" export:
   <article><a><img></a><h3>name</h3>position</article>). Turn the stacked 300px
   squares into a tidy grid of circular avatars. */
.burj #all_body .ip-team-grid {
  display: flex; flex-wrap: wrap; justify-content: flex-start;
  gap: 10px 8px; margin: 18px 0 26px;
}
.burj #all_body article {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  width: 175px; margin: 10px 0 12px; gap: 2px;
}
.burj #all_body article img {
  width: 128px; height: 128px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--bl-blue); margin: 0 0 8px;
  transition: border-color .2s ease, transform .25s var(--bl-ease);
}
.burj #all_body article:hover img { border-color: var(--bl-navy); transform: translateY(-3px); }
/* On desktop keep the whole board on ONE line: no wrapping, equal-width columns,
   and let the avatars scale down to fit however many members there are. Mobile
   keeps wrapping so the avatars never get too small. */
@media (min-width: 768px) {
  .burj #all_body .ip-team-grid { flex-wrap: nowrap; justify-content: space-between; gap: 8px; }
  .burj #all_body .ip-team-grid article { flex: 1 1 0; min-width: 0; width: auto; margin: 10px 0 12px; }
  .burj #all_body .ip-team-grid article img {
    width: 100%; max-width: 118px; height: auto; aspect-ratio: 1 / 1;
  }
}
.burj #all_body article h3 { font-size: 1.05rem; margin: 0; line-height: 1.3; }
.burj #all_body article h3 a { color: var(--bl-navy); text-decoration: none; }
.burj #all_body article h3 a:hover { color: var(--bl-blue); }
.burj #all_body blockquote {
  margin: 1.4em 0; padding: 12px 20px; color: var(--bl-muted);
  border-inline-start: 4px solid var(--bl-blue); background: var(--bl-paper); border-radius: 8px;
}
.burj #all_body table { width: 100%; border-collapse: collapse; margin: 1.2em 0; }
.burj #all_body th, .burj #all_body td { border: 1px solid var(--bl-line); padding: 10px 12px; }
.burj #all_body th { background: var(--bl-paper); }
/* responsive embeds (YouTube/Vimeo iframes pasted into the CMS body) */
.burj #all_body iframe {
  display: block; width: 100%; max-width: 900px; aspect-ratio: 16 / 9; height: auto;
  margin: 18px auto; border: 0; border-radius: 12px;
}

/* --- category / projects grid cards ---------------------------------- */
.burj .bl-cat-col { margin-bottom: 26px; }
.burj .bl-cat-card {
  display: flex; flex-direction: column; height: 100%; text-decoration: none;
  background: #fff; border: 2px solid var(--bl-blue); border-radius: var(--bl-radius);
  overflow: hidden; box-shadow: var(--bl-shadow-1);
  transition: transform .25s var(--bl-ease), box-shadow .25s var(--bl-ease), border-color .2s ease;
}
.burj .bl-cat-card:hover {
  transform: translateY(-6px); box-shadow: var(--bl-shadow-2); border-color: var(--bl-navy);
}
/* image spans the full card width AND a uniform height (fixed aspect ratio).
   The fixed box also reserves space so images load without layout shift. */
.burj .bl-cat-card-media {
  width: 100%; aspect-ratio: 3 / 2; margin: 0; overflow: hidden;
  background: var(--bl-paper); display: block;
}
.burj .bl-cat-card-media img {
  width: 100%; height: 100%; display: block; object-fit: contain;
  transition: transform .4s var(--bl-ease);
}
/* fallback when the item + its category both have no photo: a soft branded panel
   with the Burj emblem, so the card reads as intentional rather than a broken box */
.burj .bl-cat-card-media:has(> img.bl-cat-card-ph) {
  background: linear-gradient(150deg, #eef4fc 0%, #d6e4f6 100%);
}
.burj .bl-cat-card-media img.bl-cat-card-ph { object-fit: contain; padding: 16% 22%; opacity: .82; }
.burj .bl-cat-card:hover .bl-cat-card-media img { transform: scale(1.05); }
.burj .bl-cat-card-title {
  margin-top: auto; text-align: center; color: var(--bl-navy);
  font-weight: 700; font-size: 1rem; line-height: 1.4; padding: 14px 16px;
}
.burj .bl-cat-card:hover .bl-cat-card-title { color: var(--bl-blue-dark); }

/* --- news list cards (categories/line: image + title + summary) ------ */
.burj .bl-news-card {
  display: block; text-decoration: none; background: #fff;
  border: 1px solid var(--bl-line); border-radius: 14px; padding: 14px;
  box-shadow: var(--bl-shadow-1);
  transition: transform .25s var(--bl-ease), box-shadow .25s var(--bl-ease), border-color .2s ease;
}
.burj .bl-news-card:hover { transform: translateY(-3px); box-shadow: var(--bl-shadow-2); border-color: var(--bl-blue); }
.burj .bl-news-card-media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: var(--bl-paper); }
.burj .bl-news-card-media img { width: 100%; height: 100%; object-fit: cover; }
.burj .bl-news-card .category-title {
  color: var(--bl-navy); font-size: 1.3rem; font-weight: 700; line-height: 1.4; margin: 0 0 10px;
}
.burj .bl-news-card:hover .category-title { color: var(--bl-blue-dark); }
.burj .bl-news-card .bl-news-summary { color: var(--bl-muted); line-height: 1.9; font-size: 1rem; }

/* --- right-side widget (latest articles) ----------------------------- */
.burj .right_side_header {
  background: linear-gradient(120deg, var(--bl-navy), var(--bl-blue-dark)) !important;
  color: #fff !important;
  border-radius: 12px; padding: 14px 18px; margin: 0 0 8px;
  font-weight: 800; font-size: 1.15rem;
}
.burj .internal_page_right_side a { color: var(--bl-navy); text-decoration: none; transition: color .2s ease; }
.burj .internal_page_right_side a:hover { color: var(--bl-blue); }

/* --- tags ------------------------------------------------------------- */
.burj .tags_div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 28px 0 0; }
.burj .tags_div .title2 { font-weight: 700; color: var(--bl-navy); margin-inline-end: 4px; }
.burj .tag_div a {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: var(--bl-paper); color: var(--bl-navy); font-size: .85rem;
  text-decoration: none; border: 1px solid var(--bl-line); transition: all .2s var(--bl-ease);
}
.burj .tag_div a:hover { background: var(--bl-blue); color: #fff; border-color: var(--bl-blue); }

/* --- related topics --------------------------------------------------- */
.burj .related_pages { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--bl-line); }
.burj .related_pages .sections-title a { color: var(--bl-navy); font-weight: 800; text-decoration: none; }
.burj .related_pages .hourly-event { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--bl-shadow-1); transition: transform .3s ease, box-shadow .3s ease; }
.burj .related_pages .hourly-event:hover { transform: translateY(-4px); box-shadow: var(--bl-shadow-2); }
.burj .related_pages .small_news_img { aspect-ratio: 4 / 3; overflow: hidden; }
.burj .related_pages .small_news_img img { width: 100%; height: 100%; object-fit: cover; }
.burj .related_pages .fast-news-item { padding: 12px 14px 16px; }
.burj .related_pages .bslider_title { color: var(--bl-navy); font-weight: 700; font-size: 1rem; }
.burj .related_pages .fast-news-item small { color: var(--bl-muted); }
.burj .related_pages a { text-decoration: none; }
