:root {
  --blue: #428dd1;
  --blue-strong: #307bc3;
  --purple: #673888;
  --ink: #3d4650;
  --muted: #787878;
  --page-bg: #f2f7fc;
  --white: #fff;
  --shadow: 0 18px 45px rgba(46, 76, 112, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 128px; }
body.page-body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: "IBM Plex Sans Arabic", Arial, sans-serif;
  overflow-x: hidden;
}
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Shared responsive header: the same blue strip, logo, purple/blue palette and
   search treatment used by the Figma home frame. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--page-bg);
  box-shadow: 0 1px 0 rgba(43, 71, 104, .14);
}
.site-header .header-strip { height: clamp(10px, 1.932vw, 37.1px); background: var(--blue); }
.site-header .nav-shell {
  min-height: 90.9px;
  width: min(100%, 1920px);
  margin: 0 auto;
  padding: 0 clamp(18px, 3.95vw, 76px);
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 46px);
  direction: rtl;
  background: var(--page-bg);
}
.site-header .logo-link { display: block; width: 154px; height: 66px; flex: 0 0 auto; }
.site-header .logo { width: 154px; height: 66px; object-fit: contain; display: block; }
.site-header .nav {
  position: static;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(7px, 1.1vw, 22px);
  margin-inline: auto;
  direction: rtl;
}
.site-header .nav a {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 5px clamp(8px, .95vw, 18px);
  border-radius: 92px;
  color: var(--muted);
  font-size: clamp(16px, 1.44vw, 27.64px);
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
}
.site-header .nav a.active { color: var(--blue-strong); background: rgba(48,123,195,.15); }
.site-header .nav a { transition: color .2s ease, transform .2s ease; }
.site-header .nav a:hover, .site-header .nav a:focus-visible { color: var(--purple); transform: scale(1.05); }
.site-header .nav a:focus-visible { outline: 2px solid rgba(103,56,136,.5); outline-offset: -2px; }
.site-header .nav-tools { position: static; width: 40px; height: 40px; flex: 0 0 40px; }
.site-header .language-toggle { position: absolute; left: 2px; top: calc(clamp(10px, 1.932vw, 37.1px) + 28px); width: 52px; height: 34px; padding: 0 7px; border: 1px solid rgba(103,56,136,.35); border-radius: 999px; background: rgba(255,255,255,.7); color: var(--purple); font: 600 14px/1 Arial,sans-serif; direction: ltr; display: inline-flex; align-items: center; justify-content: center; gap: 4px; cursor: not-allowed; opacity: .82; }
.site-header .language-flag { display: block; width: 19px; height: 13px; flex: 0 0 auto; border-radius: 2px; }
.site-header .language-toggle:focus-visible { outline: 2px solid rgba(103,56,136,.5); outline-offset: 2px; }
.site-header .icon-btn { width: 40px; height: 40px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.site-header .search-btn img { width: 25px; height: 25px; display: block; margin: 7.5px; transform: rotate(180deg); }
.site-header .menu-toggle { display: none; }
.search-panel { position: fixed; top: 128px; left: 50%; z-index: 120; width: min(560px, calc(100vw - 32px)); transform: translateX(-50%); padding: 18px 20px 20px; border: 1px solid rgba(48,123,195,.2); border-radius: 16px; background: rgba(255,255,255,.98); box-shadow: 0 18px 42px rgba(43,71,104,.22); direction: rtl; }
.search-panel label { display: block; margin: 0 0 8px; color: var(--purple); font-size: 16px; font-weight: 700; }
.search-panel-row { display: flex; align-items: stretch; gap: 8px; }
.search-panel input, .results-search-form input { min-width: 0; flex: 1; height: 46px; padding: 8px 13px; border: 1px solid rgba(48,123,195,.35); border-radius: 9px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.search-panel button, .results-search-form button { min-width: 78px; height: 46px; padding: 8px 17px; border: 0; border-radius: 9px; background: var(--blue-strong); color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.search-panel button:hover, .results-search-form button:hover { background: var(--purple); }

.page-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(24px, 2.8vw, 46px) 20px clamp(18px, 2.4vw, 38px);
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, #e7f0fb 0%, var(--page-bg) 56%, #edf2f9 100%);
}
.page-hero::before, .page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 2px solid rgba(103,56,136,.08);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero::before { width: min(58vw, 800px); height: min(58vw, 800px); left: -16%; top: -72%; }
.page-hero::after { width: min(42vw, 580px); height: min(42vw, 580px); right: -12%; bottom: -72%; }
.page-hero h1, .page-hero h2 { margin: 0; color: var(--blue-strong); font-size: clamp(34px, 4.5vw, 64px); line-height: 1.25; font-weight: 700; }
.page-hero > p { max-width: 760px; margin: 4px auto 0; color: var(--muted); font-size: clamp(17px, 1.55vw, 28px); line-height: 1.7; }
.blog-hero { padding-bottom: clamp(12px, 1.4vw, 24px); }
.blog-hero > p { max-width: 640px; margin-top: 2px; line-height: 1.5; }
.page-heading-mark { position: relative; display: block; width: clamp(150px, 14vw, 250px); height: 14.31px; margin: 6px auto 0; overflow: visible; color: var(--purple); }
.page-heading-mark::before, .page-heading-mark::after { content: none; }
.page-heading-mark .heading-mark-svg { position: absolute; left: 0; right: 0; top: 1.56px; bottom: auto; width: 100%; height: 12.75px; display: block; overflow: visible; color: inherit; }
.page-heading-mark .heading-mark-svg use { color: inherit; }

.blog-list { padding: clamp(18px, 1.8vw, 28px) 20px clamp(60px, 6vw, 96px); background: var(--page-bg); }
.content-width { width: min(1160px, 100%); margin-inline: auto; }
.blog-grid-page { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.3vw, 32px); }
.article-card {
  min-height: 318px;
  display: grid;
  grid-template-columns: 45% 55%;
  direction: rtl;
  overflow: hidden;
  border: 1px solid rgba(48,123,195,.1);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease;
}
.article-card:hover, .article-card:focus-within { transform: translateY(-4px); box-shadow: 0 22px 52px rgba(46,76,112,.18); }
.article-card picture, .article-card picture img { display: block; width: 100%; height: 100%; }
.article-card picture img { object-fit: cover; }
.article-card-content { direction: rtl; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(22px, 2.1vw, 39px) clamp(20px, 2vw, 30px); text-align: right; }
.article-card-content .category { display: inline-flex; align-items: center; min-height: 42px; padding: 7px 15px; border-radius: 999px; background: rgba(103,56,136,.11); color: var(--purple); font-size: 14px; line-height: 1.4; }
.article-card h2 { margin: 14px 0 8px; color: var(--blue-strong); font-size: clamp(19px, 1.45vw, 27px); line-height: 1.5; }
.article-card p { margin: 0; color: var(--muted); font-size: clamp(15px, 1vw, 18px); line-height: 1.7; }
.article-card .read-more { display: inline-flex; align-items: center; justify-content: center; min-width: 132px; min-height: 39px; margin-top: auto; padding: 6px 20px; border-radius: 999px; background: var(--blue-strong); color: #fff; font-size: clamp(15px, 1.05vw, 20px); text-decoration: none; transition: background .2s ease, transform .2s ease; }
.article-card .read-more:hover { background: var(--purple); transform: translateY(-1px); }

.article-page { padding: clamp(26px, 3.5vw, 56px) 20px clamp(60px, 6vw, 96px); background: var(--page-bg); }
.article-layout { width: min(1280px, 100%); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(22px, 3vw, 32px); align-items: start; direction: rtl; }
.article-content, .related-panel { background: #fff; border: 1px solid rgba(48,123,195,.1); border-radius: 24px; box-shadow: var(--shadow); }
.article-content { overflow: hidden; }
.article-cover { width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; display: block; }
.article-inner { padding: clamp(24px, 3.4vw, 54px); }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; color: var(--muted); font-size: clamp(14px, 1vw, 18px); }
.article-meta .category { display: inline-flex; align-items: center; min-height: 36px; padding: 5px 14px; border: 1px solid rgba(103,56,136,.28); border-radius: 999px; background: rgba(103,56,136,.1); color: var(--purple); font-weight: 700; }
.article-inner h1 { margin: 16px 0 18px; color: var(--blue-strong); font-size: clamp(22px, 2.2vw, 36px); line-height: 1.3; white-space: normal; overflow-wrap: break-word; }
.article-lead { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 0 0 28px; color: var(--muted); font-size: clamp(18px, 1.4vw, 25px); line-height: 1.75; }
.article-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; width: max-content; max-width: 100%; margin: 0 0 26px; padding: 9px 14px; border: 1px solid rgba(103,56,136,.16); border-radius: 999px; background: rgba(242,247,252,.72); color: var(--purple); }
.article-share-label { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex: 0 0 auto; color: var(--purple); }
.article-share-label svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.article-share-link { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: clamp(34px, 2.6vw, 40px); height: clamp(34px, 2.6vw, 40px); padding: 0; border: 1px solid rgba(103,56,136,.24); border-radius: 50%; background: #fff; color: var(--purple); cursor: pointer; transition: background .2s ease, color .2s ease, transform .2s ease; }
.article-share-link svg { display: block; width: 46%; height: 46%; fill: currentColor; }
.article-share-link:hover, .article-share-link:focus-visible { background: var(--purple); color: #fff; transform: translateY(-1px); }
.article-share-copy.is-copied { background: #1f9d55; border-color: #1f9d55; color: #fff; }
.article-body { color: #5f6266; font-size: clamp(17px, 1.2vw, 22px); line-height: 2; }
.article-body h2 { margin: 34px 0 8px; color: var(--purple); font-size: clamp(22px, 1.8vw, 31px); line-height: 1.5; }
.article-body p { margin: 0 0 18px; }
.article-body ul { margin: 0 0 22px; padding-inline-start: 1.4em; }
.article-body li { margin: 5px 0; }
.appointment-cta { display: inline-flex; align-items: center; justify-content: center; margin-top: 18px; min-height: 52px; padding: 8px 28px; border-radius: 999px; background: var(--blue-strong); color: #fff; font-size: 20px; font-weight: 700; text-decoration: none; }
.related-panel { padding: 22px; }
.related-panel h2 { margin: 0 0 16px; color: var(--blue-strong); font-size: 25px; }
.related-item { display: grid; grid-template-columns: 116px minmax(0,1fr); gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid rgba(48,123,195,.14); color: var(--ink); font-size: 17px; line-height: 1.5; text-decoration: none; }
.related-item img { grid-column: 1; width: 116px; height: 82px; border-radius: 10px; object-fit: cover; }
.related-item > span { grid-column: 2; min-width: 0; display: block; }
.related-item strong, .related-item small { display: block; }
.related-item strong { color: var(--ink); font-size: 17px; line-height: 1.45; }
.related-item small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 5px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.related-item:hover { color: var(--purple); }
.related-item:hover strong { color: var(--purple); }
.related-item.related-all { display: block; padding: 13px 0 0; border-top: 0; color: var(--blue-strong); font-weight: 700; text-align: center; }

.article-hero h2 { font-size: clamp(29px, 3.5vw, 52px); }
.search-hero { padding-bottom: clamp(28px, 3.2vw, 50px); }
.results-search-form { width: min(560px, 100%); margin: 14px auto 0; }
.search-results-section { padding: clamp(20px, 2.6vw, 40px) 20px clamp(52px, 6vw, 88px); background: var(--page-bg); }
.search-results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.3vw, 32px); }
.search-result { overflow: hidden; border: 1px solid rgba(48,123,195,.1); border-radius: 22px; background: #fff; box-shadow: var(--shadow); transition: transform .22s ease, box-shadow .22s ease; }
.search-result:hover, .search-result:focus-within { transform: translateY(-4px); box-shadow: 0 22px 52px rgba(46,76,112,.18); }
.search-result[hidden] { display: none; }
.search-result > a { display: grid; grid-template-columns: 42% 58%; direction: rtl; min-height: 210px; text-decoration: none; }
.search-result img { width: 100%; height: 100%; object-fit: cover; }
.search-result > a > span { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 20px 20px; direction: rtl; text-align: right; }
.search-result .category { display: inline-flex; padding: 6px 12px; border-radius: 999px; background: rgba(103,56,136,.11); color: var(--purple); font-size: 14px; }
.search-result strong { color: var(--blue-strong); font-size: clamp(19px, 1.45vw, 27px); line-height: 1.45; }
.search-result small { color: var(--muted); font-size: clamp(15px, 1vw, 18px); line-height: 1.7; }
.search-empty { margin: 28px 0 0; color: var(--muted); font-size: 19px; text-align: center; }
.legal-page { padding: clamp(28px, 4vw, 64px) 20px clamp(64px, 7vw, 110px); background: var(--page-bg); }
.legal-card { width: min(980px, 100%); margin-inline: auto; padding: clamp(24px, 3.4vw, 52px); border: 1px solid rgba(48,123,195,.1); border-radius: 24px; background: var(--white); box-shadow: var(--shadow); direction: rtl; text-align: right; }
.legal-card h2 { margin: 0 0 18px; color: var(--purple); font-size: clamp(23px, 2vw, 32px); line-height: 1.45; }
.legal-card p { margin: 0 0 16px; color: #5f6266; font-size: clamp(16px, 1.2vw, 21px); line-height: 1.95; }
.legal-card ul { margin: 0 0 22px; padding-inline-start: 1.35em; color: #5f6266; font-size: clamp(16px, 1.2vw, 21px); line-height: 1.95; }
.legal-card li + li { margin-top: 8px; }
.not-found-page { min-height: min(620px, 65vh); display: grid; place-items: center; padding: clamp(50px, 8vw, 120px) 20px; background: var(--page-bg); }
.not-found { width: min(680px, 100%); padding: clamp(32px, 5vw, 64px); border: 1px solid rgba(48,123,195,.12); border-radius: 28px; background: #fff; box-shadow: var(--shadow); text-align: center; }
.not-found-code { color: var(--purple); font-family: Arial, sans-serif; font-size: clamp(76px, 12vw, 150px); font-weight: 700; line-height: .9; }
.not-found h1 { margin: 24px 0 12px; color: var(--blue-strong); font-size: clamp(28px, 4vw, 52px); line-height: 1.35; }
.not-found p { margin: 0 auto; max-width: 520px; color: var(--muted); font-size: clamp(17px, 1.45vw, 24px); line-height: 1.8; }
.not-found-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.not-found-actions a { display: inline-flex; align-items: center; justify-content: center; min-width: 150px; min-height: 48px; padding: 8px 20px; border-radius: 999px; font-size: 17px; font-weight: 700; text-decoration: none; }
.primary-btn { background: var(--blue-strong); color: #fff; }
.secondary-btn { border: 1px solid var(--purple); color: var(--purple); background: #fff; }

.site-footer { position: relative; overflow: hidden; padding: clamp(44px, 5vw, 72px) 20px 34px; background: var(--blue); color: #fff; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: url("../assets/images/footer-bg.jpg") center / cover; opacity: .1; pointer-events: none; }
.site-footer-inner { position: relative; z-index: 1; width: min(1160px, 100%); margin-inline: auto; display: grid; grid-template-columns: 1.55fr .8fr .95fr .9fr; gap: clamp(24px, 4vw, 64px); direction: rtl; }
.site-footer-brand img { display: block; width: min(240px, 100%); height: auto; margin-inline-start: auto; }
.site-footer-brand p { max-width: 320px; margin: 14px 0 0 auto; color: rgba(255,255,255,.82); font-size: 17px; line-height: 1.8; text-align: right; }
.site-footer h2 { margin: 0 0 13px; font-size: 24px; line-height: 1.5; }
.site-footer a { display: block; color: rgba(255,255,255,.9); font-size: 17px; line-height: 2.1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-social-links { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
/* One shared row component for both the contact column (phone/TikTok) and the
   social column (Snapchat/Instagram): same gap, same icon circle, same hit area. */
.footer-contact-row,
.footer-social-links a {
  position: relative;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  width: 100%;
  min-height: 52px;
  padding: 3px 0;
  color: #e5e4e4;
  font-family: Calibri, Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(16px, 1.15vw, 20px);
  line-height: 1.3;
  text-decoration: none;
}
.footer-contact-row span,
.footer-social-links a span {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: right;
}
.footer-contact-row i,
.footer-social-links a i {
  flex: 0 0 clamp(42px, 2.7vw, 52px);
  width: clamp(42px, 2.7vw, 52px);
  height: clamp(42px, 2.7vw, 52px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.6px solid #e5e4e4;
  border-radius: 50%;
}
.footer-contact-row i img,
.footer-social-links a i img,
.footer-social-links a i .instagram-outer { width: 55%; height: 55%; object-fit: contain; }
.footer-contact-row:hover,
.footer-social-links a:hover { color: #fff; text-decoration: none; }
.footer-contact-row:hover i,
.footer-social-links a:hover i { border-color: #fff; background: rgba(255,255,255,.1); }
.site-footer-bottom { position: relative; z-index: 1; width: min(1160px, 100%); margin: 36px auto 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.72); font-size: 14px; text-align: center; }

/* At the desktop artboard width these are the same layer coordinates as the
   homepage footer/header. The fluid rules below take over before the artboard
   reaches a tablet width. */
@media (min-width: 1600px) {
  .site-header { height: 128px; box-shadow: none; }
  .site-header .header-strip { height: 37.1px; }
  .site-header .nav-shell { position: absolute; left: 0; top: 37.1px; display: block; width: 1920px; height: 90.9px; min-height: 90.9px; max-width: none; margin: 0; padding: 0; }
  .site-header .logo-link { position: absolute; left: 1690px; top: 18.899px; width: 154px; height: 66px; }
  .site-header .logo-link .logo { position: static; width: 154px; height: 66px; }
  .site-header .nav { position: absolute; left: 0; top: 0; width: 1920px; height: 90.9px; display: block; margin: 0; direction: ltr; }
  .site-header .nav a { position: absolute; min-height: 0; padding: 0; margin: 0; height: 41px; line-height: 41px; font-size: 27.643px; border-radius: 92.35px; }
  .site-header .nav a:nth-child(1) { left: 1259.786px; top: 29.364px; width: 130.214px; height: 41.558px; line-height: 41.558px; font-size: 23.946px; }
  .site-header .nav a:nth-child(2) { left: 1152.817px; top: 22.899px; width: 85px; }
  .site-header .nav a:nth-child(3) { left: 1045.385px; top: 22.899px; width: 77px; }
  .site-header .nav a:nth-child(4) { left: 793px; top: 22.899px; width: 226px; }
  .site-header .nav a:nth-child(5) { left: 693px; top: 22.899px; width: 76px; }
  .site-header .nav a:nth-child(6) { left: 553px; top: 22.899px; width: 118px; }
  .site-header .nav a.active { height: 41.558px; line-height: 41.558px; padding-inline: 8px; box-shadow: 0 0 0 14px rgba(48,123,195,.15); }
  .site-header .nav-tools { position: absolute; left: 100px; top: 22.899px; width: 40px; height: 40px; display: block; }
  .site-header .language-toggle { left: 42px; top: 22.899px; width: 52px; height: 34px; }
  .site-header .nav-tools .icon-btn { position: absolute; left: 0; top: 0; width: 40px; height: 40px; }
  .site-header .search-btn img { position: absolute; left: 8.5px; top: 8.5px; width: 25px; height: 25px; margin: 0; }
}

@media (max-width: 1050px) {
  .site-header .nav-shell { min-height: 72px; }
  .site-header .nav a { font-size: clamp(14px, 1.7vw, 20px); }
  .site-header .logo-link { width: 124px; height: 54px; }
  .site-header .logo { width: 124px; height: 54px; }
  .site-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  html { scroll-padding-top: 82px; }
  .site-header .language-toggle { left: 130px; top: 17px; width: 54px; height: 34px; padding-inline: 6px; font-size: 13px; }
  .site-header .language-flag { width: 18px; height: 12px; }
  .site-header .nav-shell { min-height: 66px; padding-inline: 16px; }
  .site-header .logo-link { width: 120px; height: 50px; }
  .site-header .logo { width: 120px; height: 50px; }
  .site-header .nav { display: none; }
  .site-header .menu-toggle { display: grid; order: 2; width: 42px; height: 42px; margin-inline-start: auto; place-content: center; gap: 5px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
  .site-header .menu-toggle span { display: block; width: 24px; height: 2px; border-radius: 4px; background: var(--purple); transition: transform .2s ease, opacity .2s ease; }
  .site-header .nav-tools { order: 3; }
  body.nav-open .site-header .nav { position: fixed; inset: 82px 16px auto 16px; display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin: 0; padding: 12px; border-radius: 18px; background: rgba(255,255,255,.98); box-shadow: 0 14px 35px rgba(47,75,108,.2); }
  body.nav-open .site-header .nav a { width: 100%; padding: 11px 14px; font-size: 18px; justify-content: flex-start; }
  body.nav-open .site-header .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .site-header .menu-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .site-header .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .page-hero { padding-block: 34px 30px; }
  .blog-hero > p { max-width: 340px; }
  .blog-grid-page { grid-template-columns: 1fr; }
  .search-results-grid { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .related-panel { order: 2; }
  .article-cover { aspect-ratio: 16 / 9; }
  .search-panel { top: 76px; }
  .site-footer { padding: 46px 18px 22px; }
  .site-footer-inner { display: flex; flex-direction: column; align-items: center; gap: 27px; width: min(100%, 360px); text-align: center; direction: rtl; }
  .site-footer-brand, .site-footer-links, .site-footer-contact, .site-footer-social-column { position: static; width: 100%; max-width: 100%; text-align: center; }
  .site-footer-brand { display: flex; flex-direction: column; align-items: center; }
  .site-footer-brand img { width: min(280px, 85vw); margin: 0 auto; }
  .site-footer-brand p { width: min(320px, 100%); max-width: 100%; margin: 13px auto 0; text-align: center; font-size: 16px; line-height: 1.8; }
  .site-footer h2 { margin: 0 0 9px; text-align: center; font-size: 24px; }
  .site-footer-links a { width: 100%; margin: 0; text-align: center; font-size: 17px; line-height: 2; }
  .site-footer-contact { display: flex; flex-direction: column; align-items: center; }
  .footer-contact-row { width: min(270px, 100%); min-height: 44px; justify-content: center; font-size: 17px; }
  .site-footer-contact h2 + .footer-contact-row { margin-top: 4px; }
  .site-footer-social-column { display: flex; flex-direction: column; align-items: center; }
  .site-footer-social-column .footer-social-links { display: flex; flex-direction: column; width: min(270px, 100%); margin: 0; }
  .site-footer-social-column .footer-social-links a { width: 100%; min-height: 44px; justify-content: center; font-size: 15px; }
  .site-footer-bottom { width: 100%; margin: 27px auto 0; padding-top: 14px; font-size: 13px; text-align: center; }
}
@media (max-width: 520px) {
  body.nav-open .site-header .nav { inset-block-start: 76px; }
  .site-header .nav-shell { gap: 12px; }
  .site-header .logo-link { width: 108px; height: 50px; }
  .site-header .logo { width: 108px; }
  .site-header .nav-tools { width: 36px; flex-basis: 36px; }
  .site-header .icon-btn { width: 36px; height: 36px; }
  .site-header .search-btn img { margin: 6.5px; }
  .article-card { display: block; }
  .article-card picture { height: 210px; }
  .article-card-content { min-height: 270px; }
  .article-inner { padding: 23px 19px 29px; }
  .article-inner h1 { white-space: normal; font-size: clamp(24px, 7vw, 32px); }
  .related-item { grid-template-columns: 100px minmax(0, 1fr); gap: 10px; }
  .related-item img { width: 100px; height: 74px; }
  .related-item strong { font-size: 15px; }
  .related-item small { font-size: 13px; }
  .results-search-form { margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .article-card { transition: none; }
}

/* Compact editorial spacing and the article share row. */
.blog-hero { padding-top: clamp(18px, 2vw, 30px); padding-bottom: clamp(8px, 1vw, 16px); }
.blog-hero > p { max-width: 620px; margin-top: 0; line-height: 1.35; }
.blog-list { padding-top: clamp(12px, 1.3vw, 20px); }
.search-hero { padding-top: clamp(18px, 2vw, 30px); padding-bottom: clamp(10px, 1.2vw, 18px); }
.search-results-section { padding-top: clamp(12px, 1.5vw, 22px); }
.search-results-grid { gap: clamp(14px, 1.8vw, 24px); }
.search-result > a { min-height: 180px; }
.search-result > a > span { padding: 16px 18px; gap: 5px; }
.search-result strong { font-size: clamp(17px, 1.3vw, 24px); }
.search-result small { font-size: clamp(14px, .9vw, 17px); line-height: 1.55; }

@media (max-width: 780px) {
  .blog-hero > p { max-width: 340px; line-height: 1.45; }
  .blog-list { padding-top: 10px; }
  .search-results-section { padding-top: 10px; }
  .search-result > a { min-height: 0; }
  .article-share { justify-content: center; width: max-content; margin: 0 auto 20px; padding: 8px 12px; }
  .article-share-link { width: 34px; height: 34px; }
}

/* Keep the standalone pages on the exact proportional header/footer frame
   used by the home page between the artboard and mobile breakpoints. */
@media (min-width: 1200px) and (max-width: 1599px) {
  .site-header { height: 6.6666667vw; box-shadow: none; }
  .site-header .header-strip { height: 1.9323438vw; }
  .site-header .nav-shell { position: absolute; inset: 1.9323438vw auto auto 0; width: 100vw; height: 4.7343229vw; min-height: 0; max-width: none; margin: 0; padding: 0; display: block; }
  .site-header .logo-link { position: absolute; left: 88.0208333vw; right: auto; top: .9843229vw; width: 8.0208333vw; height: 3.4375vw; }
  .site-header .logo { position: static; width: 8.0208333vw; height: 3.4375vw; }
  .site-header .nav { position: absolute; left: 0; right: auto; top: 0; width: 100vw; height: 4.7343229vw; display: block; margin: 0; direction: ltr; }
  .site-header .nav a { position: absolute; min-height: 0; padding: 0; margin: 0; height: 2.135vw; line-height: 2.135vw; font-size: 1.439739vw; border-radius: 92.35px; }
  .site-header .nav a:nth-child(1) { left: 65.613854vw; top: 1.529375vw; width: 6.782vw; height: 2.1645vw; line-height: 2.1645vw; font-size: 1.2472vw; }
  .site-header .nav a:nth-child(2) { left: 60.04255vw; top: 1.192656vw; width: 4.4271vw; }
  .site-header .nav a:nth-child(3) { left: 54.44714vw; top: 1.192656vw; width: 4.0104vw; }
  .site-header .nav a:nth-child(4) { left: 41.3021vw; top: 1.192656vw; width: 11.7708vw; }
  .site-header .nav a:nth-child(5) { left: 36.09375vw; top: 1.192656vw; width: 3.9583vw; }
  .site-header .nav a:nth-child(6) { left: 28.8021vw; top: 1.192656vw; width: 6.1458vw; }
  .site-header .nav a.active { height: 2.1645vw; line-height: 2.135vw; padding-inline: .4167vw; box-shadow: 0 0 0 .729vw rgba(48,123,195,.15); }
  .site-header .nav-tools { position: absolute; left: 5.208333vw; right: auto; top: 1.192656vw; width: 2.0833vw; height: 2.0833vw; display: block; }
  .site-header .nav-tools .icon-btn { position: absolute; left: 0; top: 0; width: 2.0833vw; height: 2.0833vw; }
  .site-header .search-btn img { position: absolute; left: .3906vw; top: .3906vw; width: 1.3021vw; height: 1.3021vw; margin: 0; }
  .site-header .language-toggle { left: .8vw; top: 1.35vw; width: 4.1vw; height: 2.15vw; padding-inline: .55vw; font-size: 1vw; }
  .site-header .language-flag { width: 1.45vw; height: .98vw; }

  .blog-hero > p { max-width: 640px; }
}

/* Reflowed page header/footer mirrors the homepage's tablet layout. */
@media (max-width: 1199px) {
  .site-header { height: 82px; box-shadow: none; }
  .site-header .header-strip { height: 10px; }
  .site-header .nav-shell { position: relative; inset: auto; width: 100%; height: 72px; min-height: 72px; max-width: none; margin: 0; padding: 0; display: block; }
  .site-header .logo-link { position: absolute; left: auto; right: clamp(16px, 5vw, 76px); top: 11px; width: clamp(112px, 11vw, 154px); height: auto; }
  .site-header .logo { width: clamp(112px, 11vw, 154px); height: auto; }
  .site-header .nav { position: absolute; left: auto; right: clamp(180px, 19vw, 390px); top: 0; width: auto; height: 72px; display: flex; align-items: center; gap: clamp(2px, 1.2vw, 18px); direction: rtl; }
  .site-header .nav a, .site-header .nav a:nth-child(n) { position: relative; inset: auto; width: auto; height: auto; padding: 9px clamp(5px, .8vw, 14px); font-size: clamp(14px, 1.55vw, 23px); line-height: 1.35; }
  .site-header .nav-tools { position: absolute; left: 22px; right: auto; top: 15px; width: 42px; height: 42px; }
  .site-header .nav-tools .icon-btn { width: 42px; height: 42px; }
  .site-header .language-toggle { left: 76px; top: 17px; width: 54px; height: 38px; padding-inline: 6px; font-size: 13px; }
  .site-header .language-flag { width: 18px; height: 12px; }
  .site-header .search-btn img { width: 25px; height: 25px; margin: 8.5px; }
  .site-footer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; min-height: 390px; padding: 50px clamp(18px, 7vw, 120px) 54px; }
  .site-footer-inner { position: relative; width: 100%; max-width: none; margin: 0; display: contents; }
  .site-footer-brand, .site-footer-links, .site-footer-contact, .site-footer-social-column { position: relative; inset: auto; left: auto; right: auto; top: auto; width: 100%; max-width: none; }
  .site-footer-brand { grid-column: 1; }
  .site-footer-brand img { position: relative; width: min(100%, 280px); height: auto; margin: 0; }
  .site-footer-brand p { position: relative; width: 100%; max-width: none; margin: 16px 0 0; font-size: clamp(15px, 1.6vw, 21px); line-height: 1.55; }
  .site-footer-links { grid-column: 2; }
  .site-footer-contact { grid-column: 3; }
  .site-footer h2 { width: auto; margin: 0 0 16px; font-size: clamp(21px, 2.1vw, 30px); line-height: 1.4; text-align: right; }
  .site-footer-links a, .site-footer-contact a { width: 100%; margin: 0; font-size: clamp(16px, 1.6vw, 22px); }
  .site-footer-contact { height: auto; }
  .footer-contact-row + .footer-contact-row { margin-top: 4px; }
  .site-footer-social-column { grid-column: 1 / -1; display: grid; align-items: start; width: 100%; height: auto; }
  .site-footer-social-column .footer-social-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; width: 100%; margin: 0; }
  .site-footer-bottom { width: 100%; margin: 0; padding-top: 16px; font-size: 14px; text-align: center; }
}

@media (max-width: 1100px) {
  .site-header .nav { display: none; }
  .site-header .menu-toggle { position: absolute; left: 20px; top: 15px; display: grid; width: 44px; height: 44px; place-content: center; gap: 5px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; z-index: 3; }
  .site-header .menu-toggle span { display: block; width: 24px; height: 2px; border-radius: 3px; background: var(--purple); }
  body.nav-open .site-header .nav { position: fixed; inset: 82px 16px auto 16px; z-index: 50; display: flex; flex-direction: column; align-items: stretch; gap: 4px; width: auto; height: auto; padding: 14px; border-radius: 18px; background: rgba(255,255,255,.98); box-shadow: 0 14px 35px rgba(47,75,108,.2); }
  body.nav-open .site-header .nav a { width: 100%; padding: 12px 14px; font-size: 18px; text-align: right; }
}

@media (max-width: 800px) {
  .site-header { height: 76px; }
  .site-header .nav-shell { height: 66px; min-height: 66px; }
  .site-header .menu-toggle { left: 76px; top: 15px; }
  .site-header .language-toggle { left: 130px; top: 17px; }
  body.nav-open .site-header .nav { inset-block-start: 76px; }
  .site-header .logo-link { right: 16px; top: 10px; width: 120px; height: auto; }
  .site-header .logo { width: 120px; }
  .site-header .nav-tools { left: 76px; top: 12px; width: 42px; height: 42px; transform: scale(.9); transform-origin: left center; }
  .site-footer { display: flex; flex-direction: column; gap: 28px; min-height: 0; padding: 78px 22px 54px; }
  .site-footer-inner { display: contents; }
  .site-footer-brand, .site-footer-links, .site-footer-contact, .site-footer-social-column { width: min(100%, 360px); margin-inline: auto; text-align: center; }
  .site-footer-brand { display: flex; flex-direction: column; align-items: center; }
  .site-footer-brand img { width: min(100%, 280px); margin: 0 auto; }
  .site-footer-brand p { width: 100%; margin: 16px auto 0; text-align: center; font-size: 15px; line-height: 1.55; }
  .site-footer-links h2 { width: 100%; margin: 0; text-align: center; font-size: 29.683px; line-height: 42.24px; }
  .site-footer-contact h2 { width: 100%; margin: 0 0 16px; text-align: center; font-size: 21px; line-height: 52.4px; }
  .site-footer-links a { width: 100%; margin: 0; text-align: center; font-size: 16px; line-height: 45.45px; }
  .site-footer-contact { display: flex; flex-direction: column; align-items: center; height: auto; }
  .footer-contact-row { width: min(100%, 311px); justify-content: center; font-size: 17px; }
  .site-footer-social-column { display: flex; flex-direction: column; align-items: center; }
  .site-footer-social-column .footer-social-links { display: flex; flex-direction: column; width: 270px; margin: 0; }
  .site-footer-social-column .footer-social-links a { width: 270px; justify-content: center; font-size: 15px; }
  .site-footer-bottom { display: none; }
}

@media (max-width: 480px) {
  .site-header .nav-tools { left: 22px; top: 15px; transform: none; }
  .site-header .logo-link { width: 120px; }
}

/* Search results use a compact heading band so the query and first result
   stay visible without the oversized empty lead-in. */
.search-hero { padding-block: clamp(18px, 2vw, 30px) clamp(14px, 1.8vw, 24px); }
.search-hero h1 { font-size: clamp(24px, 2.7vw, 38px); line-height: 1.25; }
.search-hero .page-heading-mark { margin-top: 3px; }
.search-hero .results-search-form { margin-top: 8px; }
.search-hero #search-status { margin-top: 2px; }
.search-results-section { padding-top: clamp(14px, 1.8vw, 24px); }
@media (max-width: 780px) {
  .search-hero { padding-block: 22px 18px; }
  .search-hero h1 { font-size: 26px; }
  .search-hero .page-heading-mark { margin-top: 3px; }
  .search-hero .results-search-form { margin-top: 8px; }
}

/* Match the home active-link padding on every standalone page. */
@media (min-width: 1600px) {
  .site-header .nav a { padding-inline: 8px; }
}
@media (min-width: 1200px) and (max-width: 1599px) {
  .site-header .nav a { padding-inline: .4167vw; }
}
