/* ==========================================================
   Grand Applied Sciences — main stylesheet
   Uses CSS logical properties (margin-inline-start, etc.) so
   the same rules work for Arabic (RTL) and English (LTR).
   ========================================================== */

:root {
  /* Brand (sampled from the GAS logo) */
  --blue: #13639b;
  --blue-700: #0d4a76;
  --blue-50: #eaf2f8;
  --red: #b91f24;
  --red-50: #fbecec;
  --brown: #33220f;
  --brown-900: #22170a;

  /* Neutrals */
  --ink: #1f1b16;
  --muted: #625a51;
  --line: #e7e1d8;
  --bg: #ffffff;
  --tint: #f7f5f1;
  --sand: #f6efe4;
  --surface: #ffffff;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(51, 34, 15, 0.06), 0 2px 8px rgba(51, 34, 15, 0.05);
  --shadow: 0 2px 4px rgba(51, 34, 15, 0.05), 0 12px 32px rgba(51, 34, 15, 0.09);

  --font-body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-head: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;

  --header-h: 76px;
  --gutter: 16px;
  color-scheme: light;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
/* Arabic is set in Cairo, body and headings; English keeps the fonts above. */
html[lang="ar"] {
  --font-body: "Cairo", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-head: "Cairo", "Readex Pro", system-ui, sans-serif;
}
:lang(ar) body,
html[lang="ar"] body { line-height: 1.9; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.3;
  margin: 0;
  color: var(--brown);
  text-wrap: balance;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[dir="rtl"] .icon--dir { transform: scaleX(-1); }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 640px) { :root { --gutter: 28px; } }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--brown);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--blue) 55%, transparent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Shared bits ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--red);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue) 0 50%, var(--red) 50% 100%);
}

.section { padding-block: 72px; }
@media (min-width: 900px) { .section { padding-block: 104px; } }
.section--tint { background: var(--tint); }
.section--sand { background: var(--sand); }

.section-title {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 20px;
}
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-lead { color: var(--muted); font-size: 1.1rem; }

.prose { color: var(--muted); }
.prose p + p { margin-top: 1em; }

.chip {
  display: inline-block;
  padding: 3px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.7;
  color: var(--blue-700);
  background: var(--blue-50);
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 24px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-700); }
.btn--ghost { border-color: var(--line); color: var(--brown); background: var(--surface); }
.btn--ghost:hover { border-color: var(--brown); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
  color: var(--blue);
}
.link-arrow .icon { width: 1.05em; height: 1.05em; transition: transform 0.2s; }

/* "Website coming soon" — shown instead of a link when an institution has no site yet */
.soon {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--tint);
  border: 1px dashed var(--line);
  border-radius: 999px;
  cursor: default;
}
.link-arrow:hover { color: var(--blue-700); }
.link-arrow:hover .icon { transform: translate(2px, -2px); }
[dir="rtl"] .link-arrow:hover .icon { transform: scaleX(-1) translate(2px, -2px); }

/* Reveal on scroll — only when JS runs (html.js), so crawlers and no-JS readers see everything */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .link-arrow .icon { transition: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--brown);
  flex: none;
}
.brand__logo { width: auto; height: 52px; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.25;
  max-width: 11em;
}

.site-nav { margin-inline-start: auto; }
.site-nav__list { display: flex; gap: 4px; }
.site-nav a {
  display: block;
  padding: 8px 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.2s, background-color 0.2s;
}
.site-nav a:hover { background: var(--tint); }
.site-nav a.is-active,
.site-nav a[aria-current="page"] { color: var(--blue); background: var(--blue-50); }

.site-header__actions { display: flex; align-items: center; gap: 8px; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 14px;
  font: 600 0.92rem var(--font-body);
  color: var(--brown);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.lang-switch:hover { border-color: var(--brown); }
a.lang-switch { text-decoration: none; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  place-content: center;
  gap: 5px;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.menu-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--brown);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.menu-open .menu-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle__bar:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1099px) {
  .site-header__actions { margin-inline-start: auto; }
  .menu-toggle { display: grid; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 12px var(--gutter) 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0s 0.2s;
  }
  .menu-open .site-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.2s, transform 0.2s;
  }
  .site-nav__list { flex-direction: column; }
  .site-nav a { padding: 12px 14px; font-size: 1.05rem; }
}
@media (max-width: 479px) {
  :root { --header-h: 68px; }
  .brand__logo { height: 46px; }
  .brand__name { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 56px 72px;
  background:
    radial-gradient(60% 70% at 100% 0%, var(--blue-50) 0%, transparent 70%),
    radial-gradient(50% 60% at 0% 100%, var(--red-50) 0%, transparent 70%),
    #fff;
}
@media (min-width: 900px) { .hero { padding-block: 88px 104px; } }

.hero__circuit {
  position: absolute;
  inset-inline-end: -60px;
  top: 0;
  width: min(720px, 90vw);
  height: auto;
  pointer-events: none;
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[dir="ltr"] .hero__circuit { transform: scaleX(-1); }
.hero__circuit circle { stroke-width: 3; }
.hero__circuit-blue { stroke: var(--blue); opacity: 0.13; }
.hero__circuit-red { stroke: var(--red); opacity: 0.11; }

.hero__inner {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 1.05fr 1fr; gap: 56px; }
}

.hero__title {
  font-size: clamp(2.2rem, 1.4rem + 3.6vw, 3.9rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero__lead {
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.25rem);
  color: var(--muted);
  max-width: 34em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Group structure diagram */
.org {
  --connector: #d5ccbf;
  position: relative;
  padding: 28px 20px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.org__root {
  position: relative;
  width: min(300px, 90%);
  margin: 0 auto 44px;
}
.org__root::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 2px;
  height: 22px;
  margin-top: 4px;
  background: var(--connector);
  transform: translateX(-50%);
}
.org__branches {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.org__branches::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--connector);
}
.org__node { position: relative; }
.org__node::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 2px;
  height: 18px;
  background: var(--connector);
  transform: translateX(-50%);
}
.org__node a,
.org__node .org__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 10px 6px 12px;
  text-align: center;
  text-decoration: none;
  color: var(--brown);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.org__node a:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.org__node img { width: 100%; max-width: 120px; aspect-ratio: 4 / 3; object-fit: contain; }

@media (max-width: 559px) {
  .org__branches { grid-template-columns: repeat(2, 1fr); }
  .org__branches::before,
  .org__node::before,
  .org__root::after { display: none; }
  .org__root { margin-bottom: 20px; }
}

/* ---------- Split layout (text + side panel) ---------- */
.split {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1.1fr 1fr; gap: 64px; }
}

/* ---------- Oman facts ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.fact__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  color: var(--red);
  background: var(--red-50);
  border-radius: 10px;
}
.fact:nth-child(even) .fact__icon { color: var(--blue); background: var(--blue-50); }
.fact__label { font-size: 0.88rem; color: var(--muted); }
.fact__value { font-family: var(--font-head); font-size: 1.08rem; font-weight: 600; color: var(--brown); line-height: 1.4; }

/* ---------- Chairman ---------- */
.chairman {
  display: grid;
  gap: 40px;
  align-items: start;
}
@media (min-width: 900px) {
  .chairman { grid-template-columns: minmax(260px, 380px) 1fr; gap: 72px; }
  .chairman__figure { position: sticky; top: calc(var(--header-h) + 24px); }
}
.chairman__figure { margin: 0; width: 100%; max-width: 380px; }
@media (max-width: 899px) { .chairman__figure { max-width: 300px; } }
.chairman__photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--tint);
  box-shadow: var(--shadow);
}
.chairman__photo::after {
  /* brand accent bar */
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--blue) 0 50%, var(--red) 50% 100%);
}
.chairman__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.chairman__figure figcaption { margin-top: 16px; display: flex; flex-direction: column; }
.chairman__figure figcaption strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--brown); }
.chairman__figure figcaption span { color: var(--muted); font-size: 0.95rem; }

.quote {
  position: relative;
  margin: 8px 0 0;
  padding-inline-start: 28px;
  border-inline-start: 3px solid var(--line);
}
.quote .prose { font-size: 1.1rem; color: var(--ink); }
.quote .prose p { text-align: justify; }

/* ---------- About ---------- */
.checklist {
  display: grid;
  gap: 12px;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 500;
}
.checklist .icon {
  width: 28px;
  height: 28px;
  padding: 5px;
  margin-top: 1px;
  color: #fff;
  background: var(--blue);
  border-radius: 50%;
  stroke-width: 2.4;
}

.vm {
  display: grid;
  gap: 20px;
  margin-top: 56px;
}
@media (min-width: 760px) { .vm { grid-template-columns: 1fr 1fr; } }
.vm__card {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  color: #fff;
  overflow: hidden;
}
.vm__card::after {
  /* soft decorative ring */
  content: "";
  position: absolute;
  inset-inline-end: -60px;
  top: -60px;
  width: 180px;
  height: 180px;
  border: 26px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}
.vm__card--vision { background: linear-gradient(145deg, var(--blue) 0%, var(--blue-700) 100%); }
.vm__card--mission { background: linear-gradient(145deg, #c42a2f 0%, #8f171b 100%); }
.vm__card h3 { color: #fff; font-size: 1.5rem; margin-bottom: 10px; }
.vm__card p { color: rgba(255, 255, 255, 0.9); font-size: 1.05rem; }
.vm__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 12px;
}
.vm__icon .icon { width: 26px; height: 26px; }

/* ---------- Institutions ---------- */
.institutions {
  display: grid;
  gap: 20px;
}
@media (min-width: 640px) { .institutions { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .institutions { grid-template-columns: repeat(4, 1fr); } }

.inst {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.inst:hover { box-shadow: var(--shadow); border-color: transparent; }
.inst__logo {
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--tint);
  border-bottom: 1px solid var(--line);
}
.inst__logo img { width: 100%; max-width: 190px; aspect-ratio: 4 / 3; object-fit: contain; }
.inst__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  padding: 22px 22px 24px;
}
.inst__body h3 { font-size: 1.15rem; }
.inst__body p { color: var(--muted); font-size: 0.98rem; flex: 1; }

/* ---------- Research ---------- */
.research {
  display: grid;
  gap: 20px;
}
@media (min-width: 800px) { .research { grid-template-columns: repeat(2, 1fr); } }
/* A single paper spans the row instead of leaving an empty half */
.research > .paper:only-child { grid-column: 1 / -1; }
.paper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--blue);
  border-radius: var(--radius);
}
.paper:nth-child(even) { border-inline-start-color: var(--red); }
.paper__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.paper__year { font-family: var(--font-head); font-weight: 600; color: var(--muted); font-size: 0.95rem; }
.paper__side { display: inline-flex; align-items: center; gap: 12px; }
.paper__logo { height: 34px; width: auto; max-width: 120px; object-fit: contain; }
.paper h3 { font-size: 1.15rem; line-height: 1.5; }
.paper__authors,
.paper__venue {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}
.paper__authors .icon,
.paper__venue .icon { width: 1.05em; height: 1.05em; }
.paper .link-arrow { margin-top: 6px; }
/* A paper with a poster: the text keeps the first column, the poster stands beside it */
.paper--poster {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  grid-template-rows: repeat(4, auto) 1fr;
  column-gap: 24px;
  justify-items: start;
}
.paper--poster > * { grid-column: 1; }
.paper--poster .paper__logo { height: 48px; }
.paper__poster {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: start;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.paper__poster img { display: block; width: 100%; height: auto; }
.paper__poster:hover,
.paper__poster:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(31, 27, 22, 0.14); }
@media (max-width: 479px) {
  .paper--poster { grid-template-columns: minmax(0, 1fr) 96px; column-gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .paper__poster { transition: none; }
  .paper__poster:hover,
  .paper__poster:focus-visible { transform: none; }
}

/* ---------- Advisors ---------- */
.advisors {
  display: grid;
  gap: 20px;
}
@media (min-width: 800px) { .advisors { grid-template-columns: repeat(2, 1fr); } }
/* Cards keep their own height — a profile without a bio stays compact */
.advisors { align-items: start; }
.advisor {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.advisor__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  color: var(--blue);
  background: var(--blue-50);
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--blue-50);
}
.advisor__avatar .icon { width: 46px; height: 46px; stroke-width: 1.4; }
.advisor__avatar img { width: 100%; height: 100%; object-fit: cover; }
.advisor h3 { font-size: 1.2rem; }
.advisor__role { color: var(--red); font-weight: 600; font-size: 0.95rem; margin-bottom: 8px; }
.advisor__body > p:last-child { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 479px) {
  .advisor { flex-direction: column; padding: 22px; }
  .advisor__avatar { width: 80px; height: 80px; }
}

/* ---------- Clients ---------- */
.clients {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 640px) { .clients { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .clients { grid-template-columns: repeat(4, 1fr); } }
.client__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  min-height: 120px;
  padding: 18px;
  text-align: center;
  color: var(--muted);
  text-decoration: none;
  background: #fff;
  border: 1px dashed #d8d0c4;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
}
.client__inner .icon { width: 30px; height: 30px; color: #b4a998; }
.client__inner img { max-height: 64px; width: auto; object-fit: contain; }
a.client__inner:hover { border-color: var(--blue); }

/* ---------- Footer ---------- */
.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: var(--brown-900);
  padding-top: 64px;
}
.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.site-footer__links span { color: rgba(255, 255, 255, 0.6); }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid {
  display: grid;
  gap: 36px;
  padding-bottom: 48px;
}
@media (min-width: 700px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1.3fr 1.2fr; gap: 48px; } }

.site-footer__logo {
  display: inline-block;
  padding: 8px 14px;
  margin-bottom: 16px;
  background: #fff;
  border-radius: var(--radius);
}
.site-footer__logo img { height: 64px; width: auto; }
.site-footer__brand p { max-width: 26em; font-size: 0.97rem; }

.site-footer__title {
  margin-bottom: 16px;
  font-size: 1.05rem;
  color: #fff;
}
.site-footer__links { display: grid; gap: 8px; font-size: 0.97rem; }
.site-footer__contact { display: grid; gap: 12px; font-size: 0.97rem; }
.site-footer__contact li { display: flex; align-items: center; gap: 10px; }
.site-footer__contact .icon { color: #fff; opacity: 0.7; }
[dir="rtl"] .site-footer__contact a { text-align: right; }

.site-footer__bottom {
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}


/* ---------- Footer pages (quiet: linked from the footer only) ---------- */
.site-footer__pages { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
.site-footer__pages:empty { display: none; }
.site-footer__pages-title { color: rgba(255, 255, 255, 0.45); }

.page { padding-top: 40px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.9rem; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page__head { max-width: 760px; margin-bottom: 36px; }
.page__head .section-title { margin-block: 6px 12px; }
.page__subtitle { font-size: 1.3rem; margin: 40px 0 14px; }

.contact-card { display: grid; gap: 12px; margin: 0; max-width: 640px; }
.contact-card__row {
  display: grid; grid-template-columns: auto 9rem 1fr; gap: 12px; align-items: center;
  padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.contact-card__row .icon { color: var(--blue); }
.contact-card dt { font-weight: 600; color: var(--brown); }
.contact-card dd { margin: 0; }
@media (max-width: 559px) {
  .contact-card__row { grid-template-columns: auto 1fr; }
  .contact-card__row dd { grid-column: 2; }
}

.page__list { display: grid; gap: 10px; max-width: 760px; }
.page__list li {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.page__list li > span:not(.soon) { color: var(--muted); font-size: 0.95rem; }
.page__list li > :last-child { margin-inline-start: auto; }

.faq { display: grid; gap: 14px; max-width: 820px; }
.faq__item { padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq__q { font-size: 1.15rem; margin-bottom: 8px; }
.faq__a p + p { margin-top: 10px; }
.faq__pending { color: var(--muted); font-style: italic; font-size: 0.95rem; }

.inst-page { display: grid; gap: 28px; align-items: start; }
@media (min-width: 760px) { .inst-page { grid-template-columns: 260px 1fr; } }
.inst-page__logo { background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.inst-page__logo img { width: 100%; max-width: 220px; margin-inline: auto; }
.inst-page__details { display: grid; gap: 14px; margin: 16px 0 0; }
.inst-page__details dt { font-weight: 600; color: var(--brown); }
.inst-page__details dd { margin: 2px 0 0; color: var(--ink); }


/* ---------- About page (/about/) — its own layout ---------- */
.about-more { margin-top: 18px; }

.about-hero {
  position: relative;
  overflow: hidden;
  padding-block: 40px 64px;
  background:
    radial-gradient(60% 80% at 100% 0%, var(--blue-50) 0%, transparent 70%),
    radial-gradient(45% 70% at 0% 100%, var(--red-50) 0%, transparent 70%),
    #fff;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) { .about-hero { padding-block: 48px 96px; } }
.about-hero__inner { position: relative; max-width: 820px; }
.about-hero__title {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.25;
  margin-block: 8px 18px;
}
.about-hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }

.about-story { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .about-story { grid-template-columns: 1.4fr 1fr; gap: 64px; } }
.about-facts {
  position: relative;
  overflow: hidden;
  padding: 30px 26px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.about-facts::before { /* brand strip along the top */
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--red) 0 50%, var(--blue) 50% 100%);
}
.about-facts h3 { font-size: 1.15rem; margin-bottom: 14px; }
.about-facts dl { margin: 0; }
.about-facts__row {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "icon label" "icon value";
  column-gap: 14px;
  padding-block: 12px;
  border-top: 1px solid var(--line);
}
.about-facts__icon {
  grid-area: icon;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  color: var(--blue);
  background: var(--blue-50);
}
.about-facts__row:nth-child(even) .about-facts__icon { color: var(--red); background: var(--red-50); }
.about-facts dt { grid-area: label; font-size: 0.88rem; color: var(--muted); }
.about-facts dd { grid-area: value; margin: 0; font-weight: 600; color: var(--brown); }

.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
@media (min-width: 640px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pillars { grid-template-columns: repeat(4, 1fr); } }
.pillar {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, transform 0.2s;
}
.pillar:hover { border-color: var(--blue); transform: translateY(-2px); }
.pillar__icon {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 14px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, var(--blue), var(--blue-700));
}
.pillar:nth-child(even) .pillar__icon { background: linear-gradient(145deg, #c42a2f, #8f171b); }
.pillar h3 { font-size: 1.1rem; margin-bottom: 6px; }
.pillar p { color: var(--muted); font-size: 0.97rem; }

.about-cta {
  padding-block: 56px;
  color: #fff;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(19, 99, 155, 0.55) 0%, transparent 70%),
    radial-gradient(50% 120% at 0% 100%, rgba(185, 31, 36, 0.45) 0%, transparent 70%),
    var(--brown-900);
}
.about-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.about-cta h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 6px; }
.about-cta p { color: rgba(255, 255, 255, 0.8); max-width: 560px; }
.about-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--light { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn--light:hover { background: rgba(255, 255, 255, 0.18); border-color: #fff; }
.btn--light .icon { width: 1.1em; height: 1.1em; }
