/* =========================================================
   Dr. Remon Zaky: personal website
   Bilingual (EN / AR · LTR / RTL) · light & dark themes
   Layout uses logical properties so RTL works without overrides.
   ========================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  color-scheme: light;

  --bg: #f6f3ec;
  --bg-soft: #efeadf;
  --surface: #ffffff;
  --surface-2: #faf8f3;
  --text: #13201f;
  --text-muted: #55625e;
  --text-faint: #8a948f;
  --border: #e3dccd;
  --border-strong: #cdc4b0;

  --primary: #0e5b57;
  --primary-hover: #0a4845;
  --primary-ink: #ffffff;
  --primary-soft: rgba(14, 91, 87, 0.09);
  --accent: #a8721f;
  --accent-soft: rgba(176, 122, 38, 0.12);
  --live: #178a57;
  --live-soft: rgba(23, 138, 87, 0.12);
  --danger: #b4410f;
  --ring: rgba(14, 91, 87, 0.28);

  --band-bg: #0c3633;
  --band-card: rgba(255, 255, 255, 0.04);
  --band-border: rgba(255, 255, 255, 0.12);
  --band-text: #eef4f2;
  --band-muted: rgba(238, 244, 242, 0.72);
  --band-accent: #e3b56a;

  --header-bg: rgba(246, 243, 236, 0.8);
  --glow-1: rgba(14, 91, 87, 0.16);
  --glow-2: rgba(176, 122, 38, 0.14);
  --monogram-from: #0f5f5a;
  --monogram-to: #093432;

  --shadow-sm: 0 1px 2px rgba(19, 32, 31, 0.06);
  --shadow: 0 1px 2px rgba(19, 32, 31, 0.04), 0 14px 34px -18px rgba(19, 32, 31, 0.24);
  --shadow-lg: 0 40px 70px -36px rgba(19, 32, 31, 0.45);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-latin-display: "Fraunces", Georgia, serif;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  /* Side spacing that also clears notches (the page uses viewport-fit=cover) */
  --edge: max(var(--gutter), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0a1211;
  --bg-soft: #0d1716;
  --surface: #111c1b;
  --surface-2: #0e1817;
  --text: #e6eeeb;
  --text-muted: #9fb0ab;
  --text-faint: #6c7f7a;
  --border: #1f2e2c;
  --border-strong: #2d403d;

  --primary: #5ec7b8;
  --primary-hover: #7ed7cb;
  --primary-ink: #04201c;
  --primary-soft: rgba(94, 199, 184, 0.12);
  --accent: #e3b56a;
  --accent-soft: rgba(227, 181, 106, 0.14);
  --live: #4fd39b;
  --live-soft: rgba(79, 211, 155, 0.14);
  --danger: #fb8a52;
  --ring: rgba(94, 199, 184, 0.35);

  --band-bg: #0e1f1e;
  --band-card: rgba(255, 255, 255, 0.03);
  --band-border: rgba(255, 255, 255, 0.08);

  --header-bg: rgba(10, 18, 17, 0.74);
  --glow-1: rgba(94, 199, 184, 0.13);
  --glow-2: rgba(227, 181, 106, 0.09);
  --monogram-from: #145752;
  --monogram-to: #092826;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px -22px rgba(0, 0, 0, 0.75);
  --shadow-lg: 0 40px 80px -40px rgba(0, 0, 0, 0.85);
}

html[lang="ar"] {
  --font-display: "Noto Kufi Arabic", "IBM Plex Sans Arabic", Tahoma, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Noto Kufi Arabic", Tahoma, sans-serif;
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(14, 91, 87, 0.12);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html[lang="ar"] body { line-height: 1.85; }
/* Letter-spacing breaks Arabic letter joining */
html[lang="ar"] * { letter-spacing: 0 !important; }

/* Hide the page briefly while Arabic is applied on load (auto-reveals if JS fails) */
.i18n-pending body { opacity: 0; animation: rz-reveal 0s 1.5s forwards; }
@keyframes rz-reveal { to { opacity: 1; } }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
html[lang="ar"] :is(h1, h2, h3, h4) { line-height: 1.45; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }

::selection { background: var(--primary); color: var(--primary-ink); }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[dir="rtl"] .icon-flip { transform: scaleX(-1); }

.container {
  width: min(100% - var(--edge) * 2, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -100px;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.scroll-progress {
  position: fixed;
  inset-inline-start: 0;
  top: 0;
  z-index: 70;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  pointer-events: none;
}
[dir="rtl"] .scroll-progress {
  background: linear-gradient(-90deg, var(--primary), var(--accent));
  transform-origin: right;
}

/* ---------- 3. Buttons, links, small pieces ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.btn .icon { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover .icon-flip { transform: translateX(3px); }
[dir="rtl"] .btn:hover .icon-flip { transform: scaleX(-1) translateX(3px); }

.btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 10px 24px -12px var(--primary); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.6; cursor: progress; transform: none; }
.btn.is-loading { opacity: 0.85; }
.btn.is-loading .icon { display: none; }
.btn.is-loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-inline-end-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn-ghost { border-color: var(--border-strong); background: color-mix(in srgb, var(--surface) 60%, transparent); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-gold { background: var(--band-accent); color: #1b1407; }
.btn-gold:hover { background: #ecc684; transform: translateY(-1px); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.3); color: #eef4f2; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.text-link:hover { border-bottom-color: currentColor; }
.text-link .icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.text-link:hover .icon { transform: translateY(-2px); }
.text-link:hover .icon-flip { transform: translateX(3px); }
[dir="rtl"] .text-link:hover .icon-flip { transform: scaleX(-1) translateX(3px); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 42px;
  height: 42px;
  padding: 0 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.icon-btn .icon { width: 19px; height: 19px; }

.tile {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  transition: background-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.tile-lg { width: 52px; height: 52px; border-radius: 14px; }
.tile-lg .icon { width: 24px; height: 24px; }
.tile-gold { background: var(--accent-soft); color: var(--accent); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
html[lang="ar"] .eyebrow { font-size: 0.92rem; font-weight: 700; }

.status-dot {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
}
.status-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--live);
  opacity: 0.35;
  animation: pulse 2.2s var(--ease) 2;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.5; }
  80%, 100% { transform: scale(1.8); opacity: 0; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge .icon { width: 14px; height: 14px; }
.badge-live { background: var(--live-soft); color: var(--live); }
.badge-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
html[lang="ar"] .badge { font-size: 0.82rem; font-weight: 700; }

.checks { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.checks li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.95rem; }
.checks .icon { width: 18px; height: 18px; margin-top: 0.2em; color: var(--primary); stroke-width: 2.25; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}
.tags li {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  view-transition-name: site-header;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.site-header.is-scrolled,
.site-header.menu-open {
  background: var(--header-bg);
  border-bottom-color: var(--border);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}
.site-header.menu-open { background: var(--bg); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
}
.brand-logo { flex: none; width: auto; height: 46px; }
/* Deepen the gold a little on the light background so the emblem keeps its contrast */
:root:not([data-theme="dark"]) .brand-logo { filter: brightness(0.8) saturate(1.35) drop-shadow(0 0 0.5px rgba(90, 60, 10, 0.6)); }

.nav ul {
  display: flex;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.93rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.nav a:hover { color: var(--text); background: var(--primary-soft); }
.nav a[aria-current="page"] { color: var(--primary); background: var(--primary-soft); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

.lang-label { font-size: 0.9rem; font-weight: 700; line-height: 1; }
.lang-label:lang(ar) { font-family: "IBM Plex Sans Arabic", var(--font-body); font-size: 0.95rem; }

.theme-toggle .icon { transition: transform 0.5s var(--ease), opacity 0.3s; }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.theme-toggle:hover .icon { transform: rotate(-20deg); }

.menu-toggle { display: none; padding: 0; width: 42px; }
.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.menu-bars { position: relative; }
.menu-bars::before,
.menu-bars::after { content: ""; position: absolute; inset-inline-start: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }
[aria-expanded="true"] .menu-bars { background: transparent; }
[aria-expanded="true"] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
[aria-expanded="true"] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1200px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    padding: 0.75rem var(--edge) 1.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav ul { flex-direction: column; gap: 0.25rem; }
  .nav a { padding: 0.85rem 1rem; border-radius: 12px; font-size: 1.05rem; }
}

.brand-name { white-space: nowrap; }

@media (max-width: 420px) {
  .lang-toggle .icon { display: none; }
  .brand { gap: 0.55rem; font-size: 0.95rem; }
}
/* On phones the header shows the logo alone; the name is in the page itself */
@media (max-width: 520px) {
  .site-header .brand-name { display: none; }
  .site-header .brand-logo { height: 38px; }
}

/* ---------- 5. Home hero ---------- */
.hero,
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
}
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 8vw, 6.5rem); }
.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% 0;
  z-index: -2;
  background:
    radial-gradient(38% 46% at 12% 22%, var(--glow-1), transparent 70%),
    radial-gradient(34% 42% at 88% 30%, var(--glow-2), transparent 70%);
  pointer-events: none;
}
.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(var(--border-strong) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  max-width: 100%;
  padding: 0.45rem 1rem 0.45rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}
[dir="rtl"] .status { padding: 0.45rem 0.85rem 0.45rem 1rem; }

.hero-title {
  margin-top: 1.4rem;
  font-size: clamp(3.2rem, 1.6rem + 6.4vw, 6.4rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.04em;
}
html[lang="ar"] .hero-title {
  font-size: clamp(2.8rem, 1.5rem + 5vw, 5.2rem);
  line-height: 1.25;
}
/* The "Dr." honorific sits small and raised before the name */
.hero-title small {
  margin-inline-end: 0.08em;
  color: var(--accent);
  font-size: 0.36em;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  vertical-align: 1.15em;
}
html[lang="ar"] .hero-title small { font-style: normal; font-size: 0.42em; vertical-align: 0.9em; }

.hero-role {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
html[lang="ar"] .hero-role { font-size: 1.1rem; font-weight: 700; }
@media (max-width: 480px) {
  .hero-role { gap: 0.6rem; font-size: 0.8rem; letter-spacing: 0.1em; }
}

.hero-tagline {
  max-width: 24ch;
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1rem + 1.5vw, 2.1rem);
  font-weight: 400;
  line-height: 1.25;
}
.hero-tagline em { color: var(--primary); font-style: italic; }
html[lang="ar"] .hero-tagline { font-size: clamp(1.25rem, 1rem + 1.1vw, 1.75rem); line-height: 1.6; font-weight: 500; }
html[lang="ar"] em { font-style: normal; }

.hero-lead {
  max-width: 56ch;
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 3rem 0 0;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
}
.stat { display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; }
.stat-num {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: var(--font-latin-display);
  font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat span { color: var(--text-muted); font-size: 0.86rem; line-height: 1.45; }

/* Portrait */
.hero-visual { position: relative; }
/* Narrower than its column so the floating chips stay on screen */
.portrait {
  position: relative;
  width: min(86%, 420px);
  margin-inline: auto;
}
.portrait-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  background: linear-gradient(160deg, var(--monogram-from), var(--monogram-to));
  box-shadow: var(--shadow-lg);
}
.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 24px);
}
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 2;
  border: 1px solid rgba(227, 181, 106, 0.5);
  border-radius: 999px 999px 18px 18px;
  pointer-events: none;
}
.portrait-frame img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 14%;
}

.chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.95rem 0.6rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  animation: float 4s ease-in-out 1;
}
[dir="rtl"] .chip { padding: 0.6rem 0.6rem 0.6rem 0.95rem; }
.chip-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
}
.chip-icon .icon { width: 18px; height: 18px; }
.chip-icon-gold { background: var(--accent-soft); color: var(--accent); }
.chip-text { display: grid; line-height: 1.25; }
.chip-text small { color: var(--text-muted); font-weight: 600; }

.chip-location { top: 10%; inset-inline-start: -9%; }
.chip-cert { bottom: 18%; inset-inline-end: -10%; animation-delay: 0.3s; }
.chip-available { bottom: -4%; inset-inline-start: 4%; padding: 0.7rem 1rem; animation-delay: 0.6s; }
[dir="rtl"] .chip-available { padding: 0.7rem 1rem; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .portrait { width: min(72%, 320px); }
  .chip { font-size: 0.8rem; }
  .chip-location { inset-inline-start: -16%; }
  .chip-cert { inset-inline-end: -18%; }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; }
  .chip-cert .chip-text small { display: none; }
  .chip-cert { bottom: 20%; inset-inline-end: -22%; }
  .chip-location { inset-inline-start: -20%; }
}

/* ---------- 6. Inner-page hero ---------- */
.page-hero {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--border);
}
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  align-items: end;
  gap: 2.5rem clamp(2.5rem, 6vw, 5rem);
}
.page-hero-grid > :only-child { grid-column: 1 / -1; }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  color: var(--text-faint);
  font-size: 0.88rem;
  font-weight: 600;
}
.breadcrumb li + li::before { content: "/"; margin-inline-end: 0.5rem; color: var(--border-strong); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb [aria-current="page"] { color: var(--accent); }

.page-title {
  max-width: 18ch;
  font-size: clamp(2.5rem, 1.4rem + 4.4vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
html[lang="ar"] .page-title { font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem); line-height: 1.35; }
.page-intro {
  max-width: 58ch;
  margin-top: 1.4rem;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
}

@media (max-width: 900px) {
  .page-hero-grid { grid-template-columns: 1fr; align-items: start; }
}

/* Arch-shaped portrait beside an inner-page heading */
.page-hero-photo {
  justify-self: end;
  width: min(100%, 320px);
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  background: linear-gradient(160deg, var(--monogram-from), var(--monogram-to));
  box-shadow: var(--shadow-lg);
  outline: 1px solid rgba(227, 181, 106, 0.55);
  outline-offset: 6px;
}
.page-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
@media (max-width: 900px) { .page-hero-photo { justify-self: start; width: min(62%, 240px); } }

/* ---------- 7. Sections ---------- */
.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.section-tight { padding-block: 0 clamp(4rem, 8vw, 6rem); }
.section-flush { padding-top: 0; }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--border); }

.section-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}
.section-head.split {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: 1.5rem 4rem;
}
.section-head.split > :last-child:is(.text-link, .btn) { justify-self: end; }

.section-title {
  margin-top: 1rem;
  font-size: clamp(2rem, 1.25rem + 2.8vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
html[lang="ar"] .section-title { font-size: clamp(1.75rem, 1.15rem + 2.2vw, 2.7rem); line-height: 1.45; }

.section-intro { color: var(--text-muted); font-size: 1.08rem; max-width: 52ch; }
.subhead { font-size: 1.3rem; }
.lead {
  color: var(--text) !important;
  font-size: clamp(1.2rem, 1rem + 0.6vw, 1.45rem);
  font-weight: 500;
  line-height: 1.55;
}

@media (max-width: 860px) {
  .section-head.split { grid-template-columns: 1fr; }
  .section-head.split > :last-child:is(.text-link, .btn) { justify-self: start; }
}

/* ---------- 8. Home ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.pillar:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); box-shadow: var(--shadow); }
.pillar:hover .tile { background: var(--primary); color: var(--primary-ink); }
.pillar-feature { background: linear-gradient(160deg, var(--monogram-from), var(--monogram-to)); border-color: transparent; color: #eef4f2; }
.pillar-feature p { color: rgba(238, 244, 242, 0.75) !important; }
.pillar-feature .tile { background: rgba(255, 255, 255, 0.1); color: var(--band-accent); }
.pillar-feature .pillar-link { color: var(--band-accent); }
.pillar-feature .pillar-num { color: rgba(227, 181, 106, 0.6); }
.pillar-feature:hover .tile { background: var(--band-accent); color: #1b1407; }
.pillar-num {
  position: absolute;
  top: 1.6rem;
  inset-inline-end: 1.8rem;
  color: var(--text-faint);
  font-family: var(--font-latin-display);
  font-style: italic;
}
.pillar h3 { margin-top: 1.5rem; font-size: 1.5rem; }
.pillar p { margin-top: 0.65rem; color: var(--text-muted); }
.pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 1.75rem;
  color: var(--primary);
  font-weight: 700;
}
.pillar-link .icon { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.pillar:hover .pillar-link .icon { transform: translateX(4px); }
[dir="rtl"] .pillar:hover .pillar-link .icon { transform: scaleX(-1) translateX(4px); }

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

.orgs {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem 2.5rem;
  padding: 1.6rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.orgs-label { max-width: 12ch; color: var(--text-muted); font-family: var(--font-body); font-size: 0.95rem; font-weight: 700; letter-spacing: 0; }
.org { display: flex; align-items: center; gap: 1rem; }
.org p { display: grid; line-height: 1.4; }
.org strong { font-size: 1.02rem; }
.org small { color: var(--text-muted); font-size: 0.85rem; }

@media (max-width: 960px) {
  .orgs { grid-template-columns: 1fr 1fr; }
  .orgs-label { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 600px) { .orgs { grid-template-columns: 1fr; padding: 1.4rem; } }

.reasons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border-strong);
}
.reason { padding: 2rem 2rem 0 0; }
.reason + .reason { padding-inline-start: 2rem; border-inline-start: 1px solid var(--border); }
[dir="rtl"] .reason { padding: 2rem 0 0 2rem; }
[dir="rtl"] .reason + .reason { padding-inline-start: 2rem; }
.reason h3 { margin-top: 1.25rem; font-size: 1.35rem; }
.reason p { margin-top: 0.5rem; color: var(--text-muted); }

@media (max-width: 860px) {
  .reasons { grid-template-columns: 1fr; }
  .reason,
  .reason + .reason,
  [dir="rtl"] .reason,
  [dir="rtl"] .reason + .reason { padding: 1.75rem 0; border-inline-start: 0; border-bottom: 1px solid var(--border); }
}

.quote-band {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(4.5rem, 10vw, 8rem);
  background: var(--band-bg);
  color: var(--band-text);
  text-align: center;
}
.quote-band figure { margin: 0; }
.quote-band .quote-mark { margin-inline: auto; }
.quote-band blockquote { margin: 1.5rem 0 0; }
.quote-band blockquote p {
  max-width: 22ch;
  margin-inline: auto;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.1rem + 3.2vw, 3.6rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.02em;
}
html[lang="ar"] .quote-band blockquote p { font-style: normal; font-weight: 600; line-height: 1.6; font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.quote-band figcaption { margin-top: 1.75rem; }
.quote-band figcaption a { color: var(--band-muted); text-decoration: none; font-weight: 600; }
.quote-band figcaption a:hover { color: #fff; text-decoration: underline; }
.quote-mark { width: 40px; height: 40px; color: var(--band-accent); fill: currentColor; stroke: none; }
[dir="rtl"] .quote-mark { transform: scaleX(-1); }

.post-teaser {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color 0.35s, box-shadow 0.35s;
}
.post-teaser:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); box-shadow: var(--shadow); }
.post-teaser-art {
  position: relative;
  min-height: 240px;
  background: linear-gradient(150deg, var(--monogram-from), var(--monogram-to));
}
.post-teaser-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.post-teaser:hover .post-teaser-art img { transform: scale(1.03); }
.post-teaser-body { display: flex; flex-direction: column; padding: clamp(1.5rem, 4vw, 2.5rem); }
.post-teaser .post-title { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }

@media (max-width: 760px) {
  .post-teaser { grid-template-columns: 1fr; }
  .post-teaser-art { min-height: 140px; }
}

/* ---------- 9. About ---------- */
.facts {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.facts-head { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.facts-photo {
  flex: none;
  width: 64px;
  height: 72px;
  border-radius: 999px 999px 14px 14px;
  object-fit: cover;
  object-position: center 15%;
  background: linear-gradient(160deg, var(--monogram-from), var(--monogram-to));
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px rgba(227, 181, 106, 0.6);
}
.facts-head h2 { font-family: var(--font-body); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.facts-head p { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.facts-head .facts-role { margin-top: 0.15rem; color: var(--primary); font-family: var(--font-body); font-size: 0.85rem; font-weight: 700; }
.facts dl { display: grid; gap: 0.85rem; margin: 1.25rem 0 0; }
.facts dl div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.93rem; }
.facts dt { color: var(--text-muted); }
.facts dd { margin: 0; font-weight: 700; text-align: end; }

.story {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.story-photo {
  width: min(100%, 340px);
  margin: 2.25rem 0 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #1a1a1a;
  box-shadow: var(--shadow-lg);
}
.story-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 6%; }
.story-body { display: grid; gap: 1.25rem; color: var(--text-muted); font-size: 1.08rem; }

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

.beliefs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.belief {
  padding: 2rem;
  border-top: 3px solid var(--primary);
  border-radius: 4px 4px var(--radius) var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.belief:nth-child(2) { border-top-color: var(--accent); }
.belief-num { color: var(--accent); font-family: var(--font-latin-display); font-size: 2.6rem; font-style: italic; line-height: 1; }
.belief h3 { margin-top: 1.25rem; font-size: 1.4rem; }
.belief p { margin-top: 0.6rem; color: var(--text-muted); }

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

.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.principles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.principle {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.3s;
}
.principle:hover { border-color: var(--primary); }
.principle h3 { margin-top: 1rem; font-family: var(--font-body); font-size: 1.05rem; font-weight: 800; letter-spacing: 0; }
.principle p { margin-top: 0.4rem; color: var(--text-muted); font-size: 0.93rem; line-height: 1.55; }

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

/* ---------- 10. Services ---------- */
.jump {
  display: grid;
  gap: 0.5rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.jump-title { padding: 0.25rem 0.5rem 0.5rem; color: var(--accent); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
html[lang="ar"] .jump-title { font-size: 0.9rem; }
.jump a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.2s;
}
.jump a:hover { background: var(--primary-soft); }
.jump a > .icon { margin-inline-start: auto; color: var(--primary); width: 18px; height: 18px; transform: rotate(90deg); }
.jump-num { color: var(--text-faint); font-family: var(--font-latin-display); font-style: italic; }
.jump-text { display: grid; line-height: 1.35; }
.jump-text small { color: var(--text-muted); font-size: 0.82rem; }

.group-head {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.group-num {
  color: var(--accent);
  font-family: var(--font-latin-display);
  font-size: clamp(3rem, 2rem + 4vw, 5.5rem);
  font-style: italic;
  line-height: 0.9;
}
.group-head .section-title { margin-top: 0.25rem; }
.group-head .section-intro { margin-top: 0.75rem; }

.svc-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.svc-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
  transition: border-color 0.35s, box-shadow 0.35s;
}
.svc-card:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); box-shadow: var(--shadow); }
.svc-card:target { border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); }
.svc-card-head { display: flex; align-items: flex-start; justify-content: space-between; }
.svc-num { color: var(--text-faint); font-family: var(--font-latin-display); font-style: italic; }
.svc-card h3 { margin-top: 1.25rem; font-size: 1.55rem; }
.svc-desc { margin-top: 0.6rem; color: var(--text-muted); }
.svc-label {
  margin: 1.5rem 0 0.75rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
html[lang="ar"] .svc-label { font-size: 0.88rem; }
.svc-for {
  display: grid;
  gap: 0.15rem;
  margin-top: auto;
  padding-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.svc-for strong { color: var(--text); font-size: 0.82rem; }
.svc-card .checks { padding-bottom: 1.5rem; border-bottom: 1px dashed var(--border-strong); }

@media (max-width: 860px) { .svc-list { grid-template-columns: 1fr; } }

.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.process-step { position: relative; }
.process-num {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-ink);
  font-family: var(--font-latin-display);
  font-size: 1.15rem;
  font-weight: 600;
  box-shadow: 0 0 0 8px var(--bg);
}
.process-step h3 { margin-top: 1.4rem; font-size: 1.3rem; }
.process-step p { margin-top: 0.5rem; color: var(--text-muted); font-size: 0.96rem; }

@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; gap: 2rem; }
  .process-step { padding-inline-start: 4.25rem; }
  .process-num { position: absolute; inset-inline-start: 0; top: 0; }
  .process-step h3 { margin-top: 0.4rem; }
}

.audience {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.audience-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.audience-card > .icon { width: 30px; height: 30px; color: var(--primary); stroke-width: 1.5; }
.audience-card h3 { margin-top: 1.25rem; font-size: 1.2rem; }
.audience-card p { margin-top: 0.45rem; color: var(--text-muted); font-size: 0.93rem; }

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

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.faq-head .section-intro { margin-top: 1.25rem; }
.faq { border-top: 1px solid var(--border-strong); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0;
  font-size: 1.08rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--primary); }
.faq summary .icon { color: var(--primary); transition: transform 0.3s var(--ease); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.4rem; color: var(--text-muted); max-width: 60ch; }
.faq details a { color: var(--primary); }

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

/* ---------- 11. Medical tourism ---------- */
.statement {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--monogram-from), var(--monogram-to));
  color: #eef4f2;
  box-shadow: var(--shadow-lg);
}
.statement::after {
  content: "";
  position: absolute;
  inset-block-start: -40%;
  inset-inline-end: -30%;
  width: 80%;
  aspect-ratio: 1;
  border: 1px solid rgba(227, 181, 106, 0.25);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(227, 181, 106, 0.05), 0 0 0 56px rgba(227, 181, 106, 0.03);
}
.statement-icon { width: 30px; height: 30px; color: var(--band-accent); }
.statement p {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.6rem);
  font-style: italic;
  line-height: 1.35;
}
html[lang="ar"] .statement p { font-style: normal; font-weight: 600; line-height: 1.7; font-size: 1.2rem; }

/* Photo with the statement card overlapping its lower edge */
.photo-stack { position: relative; justify-self: end; width: min(100%, 400px); }
.photo-stack-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 75%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.photo-stack .statement { margin: -5.5rem 1.25rem 0; padding: 1.5rem; }
@media (max-width: 900px) { .photo-stack { justify-self: start; } }

.journey {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--band-bg);
  color: var(--band-text);
}
.journey .eyebrow { color: var(--band-accent); }
.journey .section-intro { color: var(--band-muted); }
.journey-arc {
  position: absolute;
  top: 0;
  inset-inline: 0;
  z-index: -1;
  width: 100%;
  height: 240px;
  fill: none;
  stroke: var(--band-accent);
  stroke-width: 1.5;
  stroke-dasharray: 3 10;
  opacity: 0.35;
  animation: dash 4.5s ease-out 1;
}
@keyframes dash { to { stroke-dashoffset: -520; } }

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  position: relative;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--band-border);
  border-radius: var(--radius);
  background: var(--band-card);
  transition: border-color 0.3s, background-color 0.3s;
}
.step:hover { border-color: rgba(227, 181, 106, 0.45); background: rgba(255, 255, 255, 0.06); }
.step-num {
  display: block;
  color: var(--band-accent);
  font-family: var(--font-latin-display);
  font-size: 2.6rem;
  font-style: italic;
  line-height: 1;
}
.step-icon {
  position: absolute;
  top: 1.5rem;
  inset-inline-end: 1.5rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--band-text);
}
.step h3 { margin-top: 1.4rem; font-size: 1.2rem; }
.step p { margin-top: 0.5rem; color: var(--band-muted); font-size: 0.94rem; }

@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step::after { display: none; }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.destinations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.destination {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.destination > :not(.destination-art) { padding-inline: 1.75rem; }
.destination-art {
  display: grid;
  place-items: center;
  height: 150px;
  margin-bottom: 1.5rem;
  background:
    repeating-radial-gradient(circle at 50% 130%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 20px),
    linear-gradient(150deg, var(--monogram-from), var(--monogram-to));
  color: var(--band-accent);
}
.destination-gold .destination-art {
  background:
    repeating-radial-gradient(circle at 50% 130%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 20px),
    linear-gradient(150deg, #c99448, #8a5d1c);
  color: #fff6e3;
}
.destination-art .icon { width: 52px; height: 52px; stroke-width: 1.3; }
.destination-place { color: var(--accent); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
html[lang="ar"] .destination-place { font-size: 0.9rem; }
.destination h3 { margin-top: 0.4rem; font-size: 1.35rem; }
.destination p:last-child { margin-top: 0.5rem; padding-bottom: 1.75rem; color: var(--text-muted); font-size: 0.95rem; }

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

.banner-figure { max-width: 800px; margin: 2.5rem auto 0; }
.banner-figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.banner-figure figcaption { margin-top: 0.85rem; color: var(--text-faint); font-size: 0.85rem; text-align: center; }

.partners {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.partner-card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.partner-card h3 { margin: 1.25rem 0 1rem; font-size: 1.5rem; }

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

/* ---------- 12. Experience ---------- */
.timeline {
  position: relative;
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.timeline::before {
  content: "";
  position: absolute;
  inset-block: 1.5rem;
  inset-inline-start: 11px;
  width: 2px;
  background: linear-gradient(var(--primary), var(--border));
  border-radius: 2px;
}
.tl-item { position: relative; padding-inline-start: 3rem; }
.tl-dot {
  position: absolute;
  top: 2.1rem;
  inset-inline-start: 4px;
  width: 16px;
  height: 16px;
  border: 3px solid var(--primary);
  border-radius: 50%;
  background: var(--bg);
}
.tl-item.is-current .tl-dot { background: var(--primary); box-shadow: 0 0 0 6px var(--primary-soft); }

.tl-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 1.5rem 2rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.tl-card:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); box-shadow: var(--shadow); }
.tl-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.tl-logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--monogram-from), var(--monogram-to));
  color: #f1d9a8;
  font-family: var(--font-latin-display);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 600;
}
.tl-logo-muted { background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted); }
.tl-loc { display: flex; align-items: center; gap: 0.4rem; color: var(--text-muted); font-size: 0.88rem; }
.tl-loc .icon { width: 16px; height: 16px; }
.tl-role { font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem); }
.tl-org { margin-top: 0.3rem; color: var(--primary); font-weight: 700; }
.tl-desc { margin-top: 0.85rem; color: var(--text-muted); max-width: 62ch; }
.timeline-more { margin-top: 2rem; margin-inline-start: 3rem; }

@media (max-width: 760px) {
  .tl-card { grid-template-columns: 1fr; padding: 1.4rem; }
  .tl-meta { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .tl-logo { width: 44px; height: 44px; font-size: 1.25rem; }
  .tl-item { padding-inline-start: 2.25rem; }
  .timeline-more { margin-inline-start: 2.25rem; }
}

.markets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.market {
  position: relative;
  overflow: hidden;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.market-code {
  position: absolute;
  top: -0.15em;
  inset-inline-end: 0.15em;
  color: var(--primary-soft);
  font-family: var(--font-latin-display);
  font-size: 9rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}
.market h3 { position: relative; font-size: 1.9rem; }
.market-cities { position: relative; display: flex; align-items: center; gap: 0.4rem; margin-top: 0.4rem; color: var(--primary); font-weight: 700; }
.market-cities .icon { width: 17px; height: 17px; }
.market > p:last-child { position: relative; margin-top: 1rem; max-width: 40ch; color: var(--text-muted); }

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

.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.edu-card {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.edu-type {
  margin-top: 1.4rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
html[lang="ar"] .edu-type { font-size: 0.9rem; font-weight: 700; }
.edu-card h3 { margin-top: 0.5rem; font-size: clamp(1.4rem, 1.2rem + 0.7vw, 1.75rem); }
.edu-org { margin-top: 0.4rem; color: var(--primary); font-weight: 700; }
.edu-desc { margin-top: 0.85rem; color: var(--text-muted); font-size: 0.96rem; }
.edu-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin: 1.25rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.edu-facts li { display: flex; align-items: center; gap: 0.45rem; }
.edu-facts .icon { width: 17px; height: 17px; color: var(--text-faint); }

@media (max-width: 760px) {
  .edu-grid { grid-template-columns: 1fr; }
  .edu-card { padding: 1.5rem; }
}

.skills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.skill-group {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.skill-group h3 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.25rem; }
.skill-group h3 .icon { color: var(--primary); }
.skill-group .tags li { font-size: 0.85rem; }

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

/* ---------- 13. Insights ---------- */
.posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.posts-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.post:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); box-shadow: var(--shadow); }
/* Post image: bleeds to the card edges; graphics are shown whole over a blurred copy of themselves */
.post-media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin: -1.75rem -1.75rem 1.4rem;
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.post-media img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.post-media .post-media-bg {
  position: absolute;
  inset: -24px;
  z-index: -1;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  object-fit: cover;
  filter: blur(22px) saturate(1.15);
  opacity: 0.6;
}
.post-media-cover img { object-fit: cover; transition: transform 0.6s var(--ease); }
.post:hover .post-media-cover img { transform: scale(1.03); }
.post-media-art {
  display: grid;
  place-items: center;
  background:
    repeating-radial-gradient(circle at 50% 130%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 22px),
    linear-gradient(150deg, #c99448, #8a5d1c);
  color: #fff6e3;
}
.post-media-art .icon { width: 64px; height: 64px; stroke-width: 1.25; }

.post-meta { display: flex; align-items: center; gap: 0.45rem; color: var(--text-faint); font-size: 0.85rem; font-weight: 600; }
.post-meta .icon { width: 16px; height: 16px; }
.post-title { margin-top: 1rem; font-size: 1.35rem; }
.post-title a { text-decoration: none; }
.post-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post-title a:focus-visible { outline: none; }
:is(.post, .post-teaser):has(.post-title a:focus-visible) { outline: 2px solid var(--primary); outline-offset: 3px; }
@supports not selector(:has(*)) {
  .post-title a:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
}
.post > p:not(.post-meta),
.post-teaser-body > p:not(.post-meta) { margin-top: 0.7rem; color: var(--text-muted); font-size: 0.95rem; }

.hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
}
.hashtags li { direction: ltr; unicode-bidi: isolate; }

.post-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1.5rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}
.post-link .icon { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
:is(.post, .post-teaser):hover .post-link .icon { transform: translate(2px, -2px); }
[dir="rtl"] :is(.post, .post-teaser):hover .post-link .icon { transform: scaleX(-1) translate(2px, -2px); }

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

.post-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.post-featured-main { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; padding: clamp(1.75rem, 4vw, 3rem); }
.post-featured-title { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem); line-height: 1.1; }
html[lang="ar"] .post-featured-title { line-height: 1.45; }
.post-featured-main > p:not(.post-meta) { color: var(--text-muted); font-size: 1.05rem; max-width: 56ch; }
.post-featured-main .btn { margin-top: 0.5rem; }
.post-featured-media {
  width: 100%;
  margin: 0 0 0.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.post-featured-media img { width: 100%; height: auto; }
.post-featured-aside {
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--band-bg);
  color: var(--band-text);
}
.post-featured-aside h3 { color: var(--band-accent); font-family: var(--font-body); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
html[lang="ar"] .post-featured-aside h3 { font-size: 0.92rem; }
.post-featured-aside .hashtags { margin-top: 1.75rem; color: var(--band-accent); }
.takeaways { display: grid; gap: 1.25rem; margin: 1.25rem 0 0; padding: 0; list-style: none; counter-reset: k; }
.takeaways li {
  position: relative;
  padding-inline-start: 2.6rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.45;
  counter-increment: k;
}
.takeaways li::before {
  content: counter(k);
  position: absolute;
  inset-inline-start: 0;
  top: 0.05em;
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border: 1px solid rgba(227, 181, 106, 0.5);
  border-radius: 50%;
  color: var(--band-accent);
  font-family: var(--font-latin-display);
  font-size: 0.9rem;
  font-style: italic;
}

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

.topics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.topics li {
  padding: 0.6rem 1.15rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 700;
}
.topics li:nth-child(3n + 1) { border-color: color-mix(in srgb, var(--primary) 40%, transparent); color: var(--primary); }
.follow-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.follow-card h3 { margin-top: 1.25rem; font-size: 1.45rem; }
.follow-card p { margin: 0.5rem 0 1.5rem; color: var(--text-muted); }

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

/* ---------- 14. Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.contact-item { display: flex; align-items: center; gap: 0.9rem; min-width: 0; font-weight: 600; }
.contact-item > :last-child { min-width: 0; overflow-wrap: anywhere; }
.contact-item a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border-strong); transition: color 0.2s, border-color 0.2s; }
.contact-item a:hover { color: var(--primary); border-color: currentColor; }

.tips {
  margin-top: 2.5rem;
  padding: 1.75rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}
.tips ol { display: grid; gap: 0.85rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.tips li { display: flex; align-items: flex-start; gap: 0.8rem; color: var(--text-muted); }
.tips-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.form-card {
  container-type: inline-size;
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.form-title { font-size: 1.6rem; margin-bottom: 0.25rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }

.field { display: grid; gap: 0.45rem; }
.field label { font-size: 0.9rem; font-weight: 700; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--ring);
}
html[lang="ar"] .field input[type="email"] { text-align: right; }
.field select {
  appearance: none;
  padding-inline-end: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a948f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}
[dir="rtl"] .field select { background-position: left 1rem center; }

.field.has-error input,
.field.has-error textarea { border-color: var(--danger); }
.field.has-error input:focus,
.field.has-error textarea:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 22%, transparent); }
.field-error { color: var(--danger); font-size: 0.82rem; font-weight: 600; }
.field-error:empty { display: none; }

.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 0.25rem; }
.form-note { color: var(--text-faint); font-size: 0.85rem; }

.form-status {
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 0.93rem;
  font-weight: 600;
}
.form-status a { color: var(--primary); }
/* "Sending…" is shown on the button; keep the status line for screen readers only */
.form-status[data-type="pending"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-status[data-type="success"] { border-color: color-mix(in srgb, var(--live) 40%, transparent); background: var(--live-soft); color: var(--live); }
.form-status[data-type="error"] { border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); }
.form-status[data-type="info"] { border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: var(--accent-soft); color: var(--text); }

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

/* ---------- 15. Call to action ---------- */
.cta-section { padding-block: clamp(4rem, 8vw, 6rem); }
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto;
  align-items: center;
  gap: 2rem 3rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--monogram-from), var(--monogram-to));
  color: #eef4f2;
  box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 26px);
}
[dir="rtl"] .cta-band::before { background: repeating-radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 26px); }
.cta-band .eyebrow { color: var(--band-accent); }
.cta-title { margin-top: 0.9rem; font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.8rem); }
html[lang="ar"] .cta-title { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); }
.cta-text { margin-top: 0.85rem; max-width: 52ch; color: rgba(238, 244, 242, 0.78); }
.cta-actions { display: flex; flex-direction: column; gap: 0.75rem; }

@media (max-width: 860px) {
  .cta-band { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
}

/* ---------- 16. Footer ---------- */
.site-footer { padding-block: 3.5rem calc(2rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--border); background: var(--bg-soft); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand p { margin: 1rem 0 1.25rem; max-width: 32ch; color: var(--text-muted); font-size: 0.93rem; }
.footer-title {
  margin-bottom: 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
html[lang="ar"] .footer-title { font-size: 0.92rem; }
.footer-col ul { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.footer-col a { color: var(--text-muted); font-size: 0.94rem; font-weight: 600; text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--primary); }
.footer-contact li { display: flex; align-items: center; gap: 0.55rem; color: var(--text-muted); font-size: 0.94rem; font-weight: 600; }
.footer-contact .icon { width: 17px; height: 17px; color: var(--primary); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  color: var(--text-faint);
  font-size: 0.88rem;
}

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

.to-top {
  position: fixed;
  inset-block-end: calc(20px + env(safe-area-inset-bottom, 0px));
  inset-inline-end: calc(20px + max(env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-ink);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s var(--ease), background-color 0.2s;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--primary-hover); }

/* ---------- 17. Motion ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Smooth cross-fade between pages (supporting browsers) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

/* Circular reveal when switching theme */
html.theme-vt .site-header { view-transition-name: none; }
html.theme-vt::view-transition-old(root),
html.theme-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 18. Print ---------- */
@media print {
  .site-header, .scroll-progress, .to-top, .hero-visual, .form-card, .journey-arc, .cta-section,
  .hero::before, .hero::after, .page-hero::before, .page-hero::after { display: none !important; }
  body { background: #fff; color: #000; }
  .section, .hero, .page-hero { padding-block: 1.5rem; }
  .js .reveal { opacity: 1; transform: none; }
  .section-alt, .journey, .quote-band { background: none; color: #000; border: 0; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.75em; word-break: break-all; }
}

/* =========================================================
   19. Medical investment, partner hospitals, socials
   (added November 2026 from Dr. Remon's WhatsApp brief)
   ========================================================= */

/* Social links in the footer */
.social { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }

/* Floating WhatsApp button; back-to-top sits above it */
.wa-float {
  position: fixed;
  inset-block-end: calc(20px + env(safe-area-inset-bottom, 0px));
  inset-inline-end: calc(20px + max(env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)));
  z-index: 41;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1fa855;
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(20, 120, 60, 0.6);
  transition: transform 0.25s var(--ease), background-color 0.2s;
}
.wa-float:hover { background: #178a45; transform: translateY(-2px); }
.wa-float .icon { width: 28px; height: 28px; stroke-width: 1.9; }
.to-top { inset-block-end: calc(88px + env(safe-area-inset-bottom, 0px)); inset-inline-end: calc(25px + max(env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px))); }

/* Partner logos sit on a white chip in both themes (the logo files have white or transparent backgrounds) */
.logo-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 92px;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}
.logo-chip img { width: auto; max-width: 100%; height: auto; max-height: 100%; object-fit: contain; }

.area {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
}
.area .icon { width: 15px; height: 15px; }

/* ---- Partner hospitals (medical tourism) ---- */
.country {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.country-flag {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #ce1126 0 33.3%, #fff 33.3% 66.6%, #111 66.6%);
  box-shadow: inset 0 0 0 1px var(--border);
}
.country-flag span { width: 9px; height: 9px; border-radius: 50%; background: #c09300; }
.country h3 { font-size: 1.6rem; }
.country p { color: var(--text-muted); font-size: 0.95rem; }
.country > div { display: grid; }

.hospitals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.hospital {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.hospital-cover { display: block; width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; object-position: center 35%; background: var(--surface-2); }
.hospital-body { display: flex; flex-direction: column; gap: 1.1rem; padding: 0 clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 1.75rem); }
.hospital-body > .logo-chip { position: relative; align-self: flex-start; width: min(100%, 240px); margin-top: -3rem; box-shadow: var(--shadow); }
.hospital-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.hospital-head h4 { font-family: var(--font-display); font-size: 1.4rem; }
.hospital .logo-chip { height: 96px; }
.hospital-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.hospital-photos-1 { grid-template-columns: 1fr; }
.hospital-photos figure { margin: 0; }
.hospital-photos img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: var(--surface-2);
}
.hospital-photos-1 img { aspect-ratio: 16 / 9; object-position: center 20%; }
.hospital-photos figcaption { margin-top: 0.3rem; color: var(--text-faint); font-size: 0.78rem; }
.hospital .checks li { font-size: 0.93rem; }
.hospital-more {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.75rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}
.hospital-more h4 { font-size: 1.25rem; }
.hospital-more p { color: var(--text-muted); font-size: 0.95rem; }
.on-site {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
  margin: 2rem 0 0;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--monogram-from), var(--monogram-to));
  color: var(--band-text);
}
.on-site img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 20%; border-radius: var(--radius); }
.on-site blockquote { margin: 0; }
.on-site p { font-family: var(--font-display); font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); line-height: 1.4; }
.on-site figcaption { margin-top: 0.75rem; color: var(--band-muted); font-size: 0.85rem; }
@media (max-width: 860px) { .hospitals { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .on-site { grid-template-columns: 1fr; }
  .on-site img { max-width: 220px; }
  .hospital-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hospital-photos li:nth-child(3) { grid-column: 1 / -1; }
  .hospital-photos li:nth-child(3) img { aspect-ratio: 16 / 9; }
}

/* ---- Medova feature (medical investment page and home) ---- */
.medova {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: #0b1322;
  color: #eef2f7;
}
.medova-bg {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  z-index: -1;
  width: min(68%, 980px);
  height: min(760px, 100%);
  object-fit: cover;
  opacity: 0.6;
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 72% 30%, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 85% at 72% 30%, #000 25%, transparent 72%);
}
[dir="rtl"] .medova-bg {
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 28% 30%, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 85% at 28% 30%, #000 25%, transparent 72%);
}
@media (max-width: 760px) { .medova-bg { width: 100%; height: 520px; opacity: 0.35; } }
.medova .eyebrow { color: #e3b56a; }
.medova .section-intro { color: rgba(238, 242, 247, 0.75); }
.medova-mark { width: min(280px, 70%); height: auto; }
.medova-head { display: grid; gap: 1.25rem; justify-items: start; max-width: 60ch; }
.medova-tagline { font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem); line-height: 1.2; }
.medova-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}
.medova-facts > div { padding: 1.4rem 1.5rem; background: rgba(11, 19, 34, 0.86); }
.medova-facts dt { color: rgba(238, 242, 247, 0.62); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
html[lang="ar"] .medova-facts dt { font-size: 0.88rem; letter-spacing: 0; }
.medova-facts dd { margin: 0.4rem 0 0; font-family: var(--font-display); font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem); font-weight: 600; line-height: 1.2; }
.medova-facts dd small { display: block; margin-top: 0.3rem; color: rgba(238, 242, 247, 0.62); font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; }
@media (max-width: 900px) { .medova-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .medova-facts { grid-template-columns: 1fr; } }

/* Videos */
.videos {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 1rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}
.video { margin: 0; }
.videos .video:first-child { grid-row: span 2; }
.video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: #000;
  object-fit: cover;
}
.video figcaption { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.6rem; color: rgba(238, 242, 247, 0.75); font-size: 0.88rem; }
.video figcaption .icon { width: 15px; height: 15px; color: #e3b56a; }
.video figcaption .video-time { margin-inline-start: auto; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .videos { grid-template-columns: 1fr; }
  .videos .video:first-child { grid-row: auto; }
}

/* Floor-by-floor zoning drawn as a building section */
.floors-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.floors { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.floor {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.floor-level { color: var(--accent); font-family: var(--font-latin-display); font-size: 1.1rem; font-style: italic; font-weight: 600; line-height: 1.15; }
html[lang="ar"] .floor-level { font-family: var(--font-body); font-style: normal; font-size: 0.95rem; }
.floor h3 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 800; }
.floor p { margin-top: 0.2rem; color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }
.floor > .icon { width: 22px; height: 22px; color: var(--primary); }
.floor-gold { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.floors-photo { margin: 0; }
.floors-photo img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.floors-photo figcaption { margin-top: 0.75rem; color: var(--text-faint); font-size: 0.85rem; }
@media (max-width: 900px) { .floors-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .floor { grid-template-columns: 3.75rem minmax(0, 1fr); } .floor > .icon { display: none; } }

/* Investment units */
.units { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.unit {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.unit h3 { margin-top: 0.75rem; font-size: 1.2rem; }
.unit p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.55; }
.unit-for { margin-top: auto; padding-top: 0.85rem; border-top: 1px dashed var(--border-strong); font-size: 0.9rem; font-weight: 700; }
.unit-for span { display: block; }
.unit-for span:first-child { color: var(--text-faint); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
html[lang="ar"] .unit-for span:first-child { font-size: 0.82rem; letter-spacing: 0; }
@media (max-width: 1000px) { .units { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .units { grid-template-columns: 1fr; } }

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

/* Brochure download */
.download {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem 1.75rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.download-cover { width: 148px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow); }
.download h3 { font-size: 1.4rem; }
.download p { margin-top: 0.3rem; color: var(--text-muted); font-size: 0.95rem; }
.download-meta { margin-top: 0.5rem; color: var(--text-faint); font-size: 0.85rem; font-weight: 600; }
.download-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
@media (max-width: 860px) { .download { grid-template-columns: 1fr; } }

/* Manufacturing partners: logo cards that open to show what each factory makes */
.factories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.factory { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.factory summary {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  cursor: pointer;
  list-style: none;
}
.factory summary::-webkit-details-marker { display: none; }
.factory summary:focus-visible { outline: 3px solid var(--ring); outline-offset: -3px; }
.factory .logo-chip { height: 84px; padding: 0.6rem; }
.factory-text { display: grid; gap: 0.25rem; }
.factory-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; line-height: 1.2; }
.factory-desc { color: var(--text-muted); font-size: 0.92rem; line-height: 1.5; }
.factory-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--primary);
  transition: transform 0.3s var(--ease), border-color 0.2s;
}
.factory-toggle .icon { width: 18px; height: 18px; }
.factory[open] .factory-toggle { transform: rotate(180deg); border-color: var(--primary); }
.factory-body { display: grid; gap: 1rem; padding: 0 1.25rem 1.5rem; }
.factory-body h4 { color: var(--accent); font-family: var(--font-body); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
html[lang="ar"] .factory-body h4 { font-size: 0.9rem; letter-spacing: 0; }
.factory-body .tags { margin-top: 0.5rem; }
@media (max-width: 960px) { .factories { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .factory summary { grid-template-columns: minmax(0, 1fr) auto; }
  .factory .logo-chip { grid-column: 1 / -1; justify-self: start; width: 160px; }
}

/* Home: featured Medova block */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.feature .video video { border: 1px solid rgba(255, 255, 255, 0.12); }
.feature-copy { display: grid; gap: 1.1rem; justify-items: start; }
.feature-copy .medova-mark { width: min(220px, 60%); }
.feature-copy p { color: rgba(238, 242, 247, 0.78); }
.feature-stats { display: flex; flex-wrap: wrap; gap: 1.5rem 2.25rem; margin: 0.25rem 0 0; }
.feature-stats div { display: flex; flex-direction: column-reverse; }
.feature-stats dt { color: rgba(238, 242, 247, 0.62); font-size: 0.85rem; }
.feature-stats dd { margin: 0; font-family: var(--font-latin-display); font-size: 1.9rem; font-weight: 600; line-height: 1.1; }
.feature-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } }

/* About: photo gallery */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.gallery figcaption { margin-top: 0.6rem; color: var(--text-muted); font-size: 0.88rem; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Contact: quick actions under the contact list */
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.ltr-num { direction: ltr; unicode-bidi: isolate; }

@media print { .wa-float, .videos, .feature .video { display: none !important; } }
.on-site .on-site-more { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.15); color: var(--band-muted); font-family: var(--font-body); font-size: 0.95rem; line-height: 1.6; }
.on-site-more a { color: var(--band-accent); font-weight: 700; }
.gallery-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) { .gallery-3 { grid-template-columns: 1fr; max-width: 420px; } }
.medova:has(.feature) .medova-bg { opacity: 0.28; }

/* Medova reels hosted on Facebook: thumbnail cards that open the video there */
.fb-videos { margin-top: clamp(2rem, 5vw, 3rem); }
.fb-videos-title { display: flex; align-items: center; gap: 0.55rem; color: rgba(238, 242, 247, 0.85); font-family: var(--font-body); font-size: 0.95rem; font-weight: 800; }
.fb-videos-title .icon { width: 18px; height: 18px; color: #e3b56a; }
.fb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.fb-card {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  align-items: center;
  gap: 1rem 1.25rem;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: #eef2f7;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}
.fb-card:hover { border-color: rgba(227, 181, 106, 0.5); background: rgba(255, 255, 255, 0.07); }
.fb-card:focus-visible { outline: 3px solid #e3b56a; outline-offset: 3px; }
.fb-thumb { position: relative; display: block; overflow: hidden; border-radius: 12px; background: #000; }
.fb-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.5s var(--ease); }
.fb-card:hover .fb-thumb img { transform: scale(1.04); }
.fb-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: auto;
  border-radius: 50%;
  background: rgba(11, 19, 34, 0.72);
  color: #fff;
  transition: background-color 0.2s;
}
.fb-card:hover .fb-play { background: #1877f2; }
.fb-play .icon { width: 20px; height: 20px; margin-left: 3px; fill: currentColor; }
.fb-dur { position: absolute; inset-block-end: 0.45rem; inset-inline-end: 0.45rem; padding: 0.1rem 0.45rem; border-radius: 6px; background: rgba(0, 0, 0, 0.72); font-size: 0.75rem; font-weight: 700; direction: ltr; }
.fb-text { display: grid; gap: 0.35rem; }
.fb-text strong { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; line-height: 1.3; }
.fb-text small { display: inline-flex; align-items: center; gap: 0.35rem; color: #e3b56a; font-size: 0.85rem; font-weight: 700; }
.fb-text small .icon { width: 15px; height: 15px; }
@media (max-width: 900px) { .fb-grid { grid-template-columns: 1fr; } }
@media (max-width: 440px) { .fb-card { grid-template-columns: 1fr; } }

/* Partner cards: 3 across on wide screens */
.hospitals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .hospitals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .hospitals { grid-template-columns: 1fr; } }

/* Site credit in the footer */
.footer-credit a { color: var(--text-muted); font-weight: 700; text-decoration: none; transition: color 0.2s; }
.footer-credit a:hover { color: var(--primary); }
