:root {
  --navy: #0d3856;
  --navy-deep: #07273d;
  --teal: #137f7a;
  --teal-dark: #0d6663;
  --mist: #eaf4f4;
  --sky: #edf6f9;
  --paper: #f8faf8;
  --ink: #133044;
  --muted: #526b78;
  --line: #cbdcdd;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --shell: min(1240px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body[dir="rtl"] { font-family: "Noto Sans Arabic", var(--sans); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 99; background: var(--paper); padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }
.utility { color: #d9eef0; background: var(--navy-deep); font-size: .72rem; letter-spacing: .03em; }
.utility-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; }
.utility span, .utility a { display: inline-flex; align-items: center; gap: .45rem; }
.utility-links { display: flex; gap: .65rem; }
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 94%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); backdrop-filter: blur(14px); }
.header-inner { min-height: 82px; display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 4.5rem); }
.brand { display: inline-flex; align-items: center; gap: .8rem; white-space: nowrap; color: var(--navy-deep); font-family: var(--serif); font-size: 1.18rem; font-weight: 600; letter-spacing: .08em; }
.brand em { color: var(--teal); font-size: .67em; font-style: normal; }
.brand-logo { width: 34px; height: 34px; flex: 0 0 auto; }
.brand-mark { position: relative; width: 29px; height: 29px; display: inline-block; transform: rotate(45deg); }
.brand-mark i, .brand-mark b { position: absolute; display: block; background: var(--teal); border-radius: 2px; }
.brand-mark i { width: 9px; height: 29px; left: 10px; top: 0; }
.brand-mark b { width: 29px; height: 9px; left: 0; top: 10px; }
.desktop-nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.1rem); margin-inline: auto; }
.desktop-nav a { position: relative; font-size: .82rem; font-weight: 500; }
.desktop-nav a::after { content: ""; position: absolute; inset: auto 0 -.55rem; height: 1px; background: var(--teal); transform: scaleX(0); transition: transform .25s ease; }
.desktop-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.language { position: relative; }
.language-button { display: flex; align-items: center; gap: .45rem; padding: .55rem .2rem; border: 0; background: none; color: var(--ink); font: inherit; font-size: .78rem; cursor: pointer; }
.chevron { transform: translateY(-2px); }
.language-menu { position: absolute; inset-block-start: calc(100% + 12px); inset-inline-end: 0; min-width: 150px; padding: .5rem; display: none; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 18px 45px #12384b1a; }
.language-menu.open { display: grid; }
.language-menu a { padding: .55rem .65rem; font-size: .78rem; }
.language-menu a:hover, .language-menu a[aria-current="page"] { color: var(--teal-dark); background: var(--mist); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 50px; padding: .8rem 1.3rem; color: #f7fbfa; background: var(--teal); border: 1px solid var(--teal); font-size: .82rem; font-weight: 600; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); background: var(--teal-dark); }
.button-small { min-height: 42px; padding: .6rem 1rem; font-size: .72rem; }
.menu-button { display: none; border: 0; background: none; font: inherit; color: var(--ink); }
.mobile-nav { display: none; }
.hero { position: relative; min-height: min(700px, calc(100vh - 116px)); overflow: hidden; background: #edf5f4; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-illustration { object-position: 70% center; }
.hero-wash { position: absolute; inset: 0; background: linear-gradient(90deg, #f5faf8 0%, #f5faf8ed 31%, #f5faf8a8 48%, transparent 70%); }
[dir="rtl"] .hero-wash { background: linear-gradient(270deg, #f5faf8 0%, #f5faf8ed 31%, #f5faf8a8 48%, transparent 70%); }
.hero-inner { position: relative; z-index: 2; min-height: inherit; display: flex; align-items: center; }
.hero-copy { width: min(650px, 55%); padding-block: 5rem; }
.eyebrow { margin: 0 0 1rem; color: var(--teal-dark); font-size: .71rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 { max-width: 700px; margin-bottom: 1.4rem; color: var(--navy-deep); font: 600 clamp(3rem, 5.2vw, 5.35rem)/.98 var(--serif); letter-spacing: -.035em; }
h2 { margin-bottom: 1.2rem; color: var(--navy-deep); font: 600 clamp(2.2rem, 3.9vw, 4rem)/1.05 var(--serif); letter-spacing: -.025em; }
h3 { color: var(--navy-deep); font: 600 1.45rem/1.15 var(--serif); }
.hero-text { max-width: 590px; color: #345463; font-size: clamp(1rem, 1.3vw, 1.18rem); }
.hero-actions { display: flex; align-items: center; gap: 1.5rem; margin-top: 2rem; }
.text-link { display: inline-flex; align-items: center; gap: .55rem; color: var(--navy); font-size: .83rem; font-weight: 600; }
.text-link svg { transition: transform .2s ease; }
.text-link:hover svg { transform: translateX(4px); }
[dir="rtl"] .text-link:hover svg { transform: translateX(-4px); }
.trust-row { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid #9cb7ba; }
.trust-row span { display: inline-flex; align-items: center; gap: .5rem; color: #315564; font-size: .74rem; font-weight: 500; }
.trust-row svg { color: var(--teal); }
.section { padding-block: clamp(5rem, 9vw, 9rem); }
.intro { background: var(--paper); }
.intro-grid { display: grid; grid-template-columns: 70px minmax(0, 1.15fr) minmax(280px, .7fr); gap: clamp(2rem, 5vw, 6rem); align-items: end; }
.section-index { align-self: start; color: var(--teal); font: 600 1rem var(--serif); }
.intro-grid h2 { margin-bottom: 0; }
.lead { margin-bottom: .4rem; color: var(--muted); font-size: 1.08rem; }
.programs { background: #eaf3f3; }
.section-heading { display: grid; grid-template-columns: 1fr .65fr; gap: 3rem; align-items: end; margin-bottom: 3.5rem; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 500px; color: var(--muted); }
.program-list { border-top: 1px solid #aec7c7; }
.program { display: grid; grid-template-columns: 70px 255px 1fr; gap: clamp(1.4rem, 4vw, 4rem); align-items: center; min-height: 230px; padding-block: 2rem; border-bottom: 1px solid #aec7c7; opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s cubic-bezier(.22,1,.36,1); }
.program.visible { opacity: 1; transform: none; }
.program-number { align-self: start; color: var(--teal-dark); font: 600 .92rem var(--serif); }
.program-visual { position: relative; height: 150px; overflow: hidden; background: var(--navy); }
.program-visual::before, .program-visual::after, .program-visual span { content: ""; position: absolute; display: block; }
.visual-1::before { inset: 26px 58px; border: 1px solid #8ed1cc; border-radius: 50%; box-shadow: 0 0 0 18px #8ed1cc22, 0 0 0 36px #8ed1cc0d; }
.visual-1::after { width: 100%; height: 1px; top: 50%; background: #8ed1cc; transform: rotate(-20deg); }
.visual-2 { background: #1e6173; }
.visual-2::before { width: 92px; height: 92px; border: 17px solid #c7e5e0; border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%,-50%); }
.visual-2::after { width: 150px; height: 1px; background: #c7e5e0; left: 50%; top: 50%; transform: translate(-50%,-50%) rotate(40deg); }
.visual-3 { background: #d6e7e3; }
.visual-3::before { width: 140px; height: 85px; left: 50%; bottom: 0; transform: translateX(-50%); border: 1px solid var(--teal-dark); background: repeating-linear-gradient(90deg, transparent 0 19px, #1b777222 20px 21px); }
.visual-3::after { width: 180px; height: 1px; left: 50%; bottom: 85px; transform: translateX(-50%); background: var(--teal-dark); }
.program-copy { display: grid; grid-template-columns: minmax(220px,.7fr) 1fr; gap: 1.5rem 3rem; align-items: start; }
.program-copy h3 { margin: 0; font-size: clamp(1.55rem, 2.4vw, 2.35rem); }
.program-copy p { color: var(--muted); }
.program-copy a { grid-column: 2; display: inline-flex; align-items: center; gap: .5rem; color: var(--teal-dark); font-size: .8rem; font-weight: 600; }
.process { background: var(--paper); }
.process-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(4rem, 10vw, 10rem); align-items: start; }
.process-intro { position: sticky; top: 145px; }
.process-intro > p:last-child { max-width: 470px; color: var(--muted); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 60px 1fr; gap: 1.6rem; padding-block: 2rem; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.steps li.visible { opacity: 1; transform: none; }
.steps li > span { color: var(--teal); font: 600 1rem var(--serif); }
.steps h3 { margin-bottom: .55rem; }
.steps p { max-width: 570px; margin-bottom: 0; color: var(--muted); }
.privacy { padding-block: 0; background: var(--paper); }
.privacy-panel { display: grid; grid-template-columns: 180px 1fr .8fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding: clamp(2.5rem, 6vw, 5rem); color: #e8f4f2; background: var(--navy-deep); opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.privacy-panel.visible { opacity: 1; transform: none; }
.privacy-emblem { width: 150px; height: 150px; display: grid; place-items: center; border: 1px solid #6fa4a1; border-radius: 50%; }
.privacy-emblem svg { width: 64px; height: 64px; color: #77c4bd; stroke-width: 1.2; }
.privacy-panel .eyebrow { color: #78c7c1; }
.privacy-panel h2 { color: #f2f8f7; }
.privacy-copy > p:not(.eyebrow) { color: #b9d1d2; }
.text-link.light { color: #a7ddda; }
.privacy-panel ul { margin: 0; padding: 0; list-style: none; }
.privacy-panel li { display: flex; align-items: center; gap: .7rem; padding: .8rem 0; border-bottom: 1px solid #315269; color: #d5e6e5; font-size: .84rem; }
.privacy-panel li svg { color: #77c4bd; }
.network { background: var(--paper); }
.network-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 5rem; align-items: center; opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.network-grid.visible { opacity: 1; transform: none; }
.network-grid > div:first-child > p:last-child { max-width: 500px; color: var(--muted); }
.map { padding: 2rem; background: #e9f2ef; }
.map svg { width: 100%; height: auto; color: var(--teal-dark); }
.map svg path:first-child { fill: #c7ded8; stroke: #6fa8a0; }
.map .route { fill: none; stroke: var(--teal); stroke-dasharray: 5 6; }
.map circle { fill: var(--teal-dark); stroke: #e9f2ef; stroke-width: 4; }
.city-list { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid #bdd3cf; color: #3f696d; font-size: .7rem; }
.assessment { color: #f1f7f6; background: var(--teal-dark); }
.assessment-inner { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; }
.assessment .eyebrow { color: #a9dcda; }
.assessment h2 { max-width: 800px; color: #f7fbfa; }
.assessment p { max-width: 680px; color: #cfe2df; }
.button-inverse { color: var(--navy-deep); background: #f2f8f6; border-color: #f2f8f6; }
.button-inverse:hover { color: #f7fbfa; background: var(--navy-deep); }
footer { padding-block: 5rem 2rem; color: #c5d8da; background: var(--navy-deep); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 4rem; }
.brand-footer { color: #f2f8f7; }
.footer-grid p { max-width: 360px; margin-top: 1.5rem; color: #9db7bd; font-size: .82rem; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: .65rem; }
.footer-grid strong { margin-bottom: .4rem; color: #f2f8f7; font: 600 1.1rem var(--serif); }
.footer-grid a { color: #aec5c8; font-size: .78rem; }
.footer-grid a:hover { color: #fff; }
.legal { margin-top: 4rem; padding-top: 1.4rem; display: flex; justify-content: space-between; gap: 2rem; border-top: 1px solid #294a5f; color: #7f9ea5; font-size: .67rem; }
.legal p { max-width: 760px; margin-bottom: 0; }

.content-main { min-height: 70vh; }
.content-hero { padding-block: clamp(4.5rem, 9vw, 8rem); background: linear-gradient(135deg, #eaf4f4, #f8faf8 65%); border-bottom: 1px solid var(--line); }
.content-hero .shell { max-width: 980px; }
.content-hero h1 { max-width: 900px; margin-bottom: 1.3rem; font-size: clamp(3rem, 6vw, 5.6rem); }
.content-hero > .shell > p:last-child { max-width: 760px; color: var(--muted); font-size: 1.08rem; }
.breadcrumb { display: inline-flex; margin-bottom: 3rem; color: var(--teal-dark); font-size: .75rem; font-weight: 600; }
.article-grid { display: grid; grid-template-columns: 210px minmax(0,760px); gap: clamp(3rem, 8vw, 8rem); justify-content: center; }
.article-grid aside { color: var(--muted); font-size: .72rem; }
.article-grid article h2 { margin: 2.4rem 0 .8rem; font-size: clamp(1.7rem,3vw,2.5rem); }
.article-grid article h2:first-child { margin-top: 0; }
.article-grid article p { color: var(--muted); font-size: 1rem; }
.form-section { background: var(--paper); }
.form-layout { display: grid; grid-template-columns: minmax(240px,.58fr) minmax(0,1.2fr); gap: clamp(3rem,8vw,8rem); align-items: start; }
.form-note { position: sticky; top: 130px; }
.form-note h2 { font-size: 2.2rem; }
.medical-note { padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.assessment-form { padding: clamp(1.5rem,4vw,3rem); background: #eaf3f3; border: 1px solid #c6dada; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.assessment-form label { display: grid; gap: .45rem; color: var(--navy-deep); font-size: .78rem; font-weight: 600; }
.assessment-form input, .assessment-form select, .assessment-form textarea {
  width: 100%; min-height: 48px; padding: .75rem .85rem; color: var(--ink); background: #f9fbf9;
  border: 1px solid #aac5c5; border-radius: 0; font: 400 .9rem var(--sans);
}
.assessment-form textarea { resize: vertical; }
.assessment-form input:focus, .assessment-form select:focus, .assessment-form textarea:focus { outline: 2px solid var(--teal); outline-offset: 2px; }
.assessment-form .full { grid-column: 1/-1; }
.honeypot { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent-box { margin-block: 1.8rem; padding-block: 1.3rem; display: grid; gap: 1rem; border-top: 1px solid #aac5c5; border-bottom: 1px solid #aac5c5; }
.consent-box label { display: grid; grid-template-columns: 20px 1fr; gap: .7rem; font-weight: 400; }
.consent-box input { width: 18px; min-height: 18px; margin-top: .2rem; }
.consent-box a { color: var(--teal-dark); text-decoration: underline; }
.form-status { margin: 1rem 0 0; color: var(--navy-deep); font-weight: 600; }
.form-status.success { padding: 1rem; background: #d3e9df; }
.form-status.error { padding: 1rem; color: #8a2929; background: #f2dddd; }

@media (max-width: 1050px) {
  .desktop-nav, .header-actions > .button-small { display: none; }
  .header-actions { margin-inline-start: auto; }
  .menu-button { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 5px; }
  .menu-button span { font-size: .68rem; }
  .menu-button i { width: 24px; height: 1px; background: currentColor; }
  .mobile-nav { padding: 1rem 24px 1.5rem; border-top: 1px solid var(--line); background: var(--paper); }
  .mobile-nav.open { display: grid; gap: .7rem; }
  .mobile-nav > a { padding: .45rem 0; font-family: var(--serif); font-size: 1.15rem; }
  .mobile-languages { display: flex; flex-wrap: wrap; gap: .6rem 1rem; padding-top: .9rem; border-top: 1px solid var(--line); font-size: .75rem; }
  .hero { min-height: 670px; }
  .hero-copy { width: min(650px, 68%); }
  .intro-grid { grid-template-columns: 50px 1fr; }
  .intro-grid .lead { grid-column: 2; }
  .program { grid-template-columns: 50px 200px 1fr; }
  .program-copy { grid-template-columns: 1fr; }
  .program-copy a { grid-column: 1; }
  .privacy-panel { grid-template-columns: 120px 1fr; }
  .privacy-emblem { width: 110px; height: 110px; }
  .privacy-panel ul { grid-column: 2; }
}

@media (max-width: 760px) {
  :root { --shell: min(100% - 32px, 1240px); }
  .utility-links span:first-child, .utility-links span[aria-hidden] { display: none; }
  .header-inner { min-height: 70px; }
  .brand { font-size: .96rem; letter-spacing: .05em; }
  .brand-mark { width: 24px; height: 24px; }
  .brand-mark i { height: 24px; width: 7px; left: 8.5px; }
  .brand-mark b { width: 24px; height: 7px; top: 8.5px; }
  .language-button span:not(.chevron) { display: none; }
  .hero { min-height: auto; padding-top: 0; display: flex; flex-direction: column; }
  .hero-image { position: relative; order: 2; width: 100%; height: 290px; object-position: 64% center; }
  .hero-illustration { object-position: 68% center; }
  .hero-wash { display: none; }
  .hero-inner { order: 1; min-height: auto; }
  .hero-copy { width: 100%; padding: 4rem 0 3rem; }
  h1 { font-size: clamp(2.8rem, 13vw, 4.2rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .trust-row { gap: .8rem 1.2rem; }
  .intro-grid, .section-heading, .process-grid, .network-grid, .assessment-inner { grid-template-columns: 1fr; }
  .section-index { display: none; }
  .intro-grid .lead { grid-column: auto; }
  .section-heading { gap: .8rem; }
  .program { grid-template-columns: 35px 1fr; gap: 1rem; padding-block: 1.6rem; }
  .program-visual { grid-column: 2; width: 100%; height: 180px; }
  .program-copy { grid-column: 2; }
  .process-intro { position: static; }
  .privacy-panel { grid-template-columns: 1fr; }
  .privacy-emblem { width: 90px; height: 90px; }
  .privacy-emblem svg { width: 40px; height: 40px; }
  .privacy-panel ul { grid-column: auto; }
  .network-grid { gap: 2rem; }
  .map { padding: 1rem; }
  .city-list { flex-wrap: wrap; justify-content: flex-start; }
  .assessment-inner { align-items: start; }
  .assessment-inner .button { justify-self: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem 2rem; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .legal { flex-direction: column; }
  .article-grid, .form-layout { grid-template-columns: 1fr; }
  .form-note { position: static; }
  .form-grid { grid-template-columns: 1fr; }
  .assessment-form .full { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
