/* =====================================================================
   YAAR — public site design system (2026 refresh)
   Brand blue kept. Lapis + saffron drawn from Afghan tilework.
   All spacing uses logical properties so RTL (Dari / Pashto) flips
   automatically.
   ===================================================================== */

:root {
  --ink: #0f2238;
  --ink-2: #33455c;
  --muted: #627389;
  --blue: #1b9ce3;
  --blue-600: #1386c9;
  --blue-700: #0f6ea6;
  --blue-50: #e8f5fd;
  --blue-100: #d4ecfb;
  --blue-25: #f3fafe;
  --lapis: #1d4f91;
  --lapis-900: #0c2a52;
  --lapis-950: #081d3a;
  --saffron: #e9a23b;
  --saffron-50: #fdf3e2;
  --paper: #f6f8f9;
  --line: #dde4ea;
  --white: #fff;
  --ok: #1f8a5b;
  --err: #c2412d;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;

  --shadow-1: 0 1px 2px rgba(15, 34, 56, .06), 0 2px 8px rgba(15, 34, 56, .05);
  --shadow-2: 0 12px 32px -8px rgba(12, 42, 82, .22);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --header-h: 84px;

  /* 8-point girih star tile, used as a quiet texture on dark bands */
  --girih: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Crect x='24' y='24' width='36' height='36'/%3E%3Crect x='24' y='24' width='36' height='36' transform='rotate(45 42 42)'/%3E%3Ccircle cx='42' cy='42' r='7'/%3E%3Cpath d='M0 0l17 17M84 0L67 17M0 84l17-17M84 84L67 67M42 0v9M42 84v-9M0 42h9M84 42h-9'/%3E%3C/g%3E%3C/svg%3E");
  --girih-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.13' stroke-width='1'%3E%3Crect x='24' y='24' width='36' height='36'/%3E%3Crect x='24' y='24' width='36' height='36' transform='rotate(45 42 42)'/%3E%3Ccircle cx='42' cy='42' r='7'/%3E%3Cpath d='M0 0l17 17M84 0L67 17M0 84l17-17M84 84L67 67M42 0v9M42 84v-9M0 42h9M84 42h-9'/%3E%3C/g%3E%3C/svg%3E");
  --girih-blue: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%231b9ce3' stroke-opacity='.22' stroke-width='1'%3E%3Crect x='24' y='24' width='36' height='36'/%3E%3Crect x='24' y='24' width='36' height='36' transform='rotate(45 42 42)'/%3E%3Ccircle cx='42' cy='42' r='7'/%3E%3Cpath d='M0 0l17 17M84 0L67 17M0 84l17-17M84 84L67 67M42 0v9M42 84v-9M0 42h9M84 42h-9'/%3E%3C/g%3E%3C/svg%3E");
}

/* Dari & Pashto: Bahij Helvetica Neue (self-hosted, subset to Arabic script + basic Latin) */
@font-face { font-family: "Bahij Helvetica Neue"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/bahij/bahij-helvetica-neue-light.woff2") format("woff2"); }
@font-face { font-family: "Bahij Helvetica Neue"; font-weight: 400 500; font-style: normal; font-display: swap; src: url("../fonts/bahij/bahij-helvetica-neue-roman.woff2") format("woff2"); }
@font-face { font-family: "Bahij Helvetica Neue"; font-weight: 600 900; font-style: normal; font-display: swap; src: url("../fonts/bahij/bahij-helvetica-neue-bold.woff2") format("woff2"); }

:lang(fa), :lang(fa-AF), :lang(ps) {
  --font-display: "Bahij Helvetica Neue", "Segoe UI", Tahoma, sans-serif;
  --font-body: "Bahij Helvetica Neue", "Segoe UI", Tahoma, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; text-align: start; font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  color: var(--ink-2); background: var(--white); overflow-x: clip;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
:lang(fa) body, :lang(fa-AF) body, :lang(ps) body, [dir="rtl"] body { font-size: 17.5px; line-height: 1.9; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display); color: var(--ink); font-weight: 700;
  line-height: 1.18; letter-spacing: -.01em; margin: 0 0 .5em;
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { letter-spacing: 0; line-height: 1.5; }
p { margin: 0 0 1em; }
a { color: var(--blue-700); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue); }
img, video, iframe { max-width: 100%; }
img { height: auto; }
::selection { background: var(--blue); color: #fff; }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }

.y-icon { width: 1.25em; height: 1.25em; display: inline-block; vertical-align: -.22em; flex: none;
  stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.y-icon.is-fill { fill: currentColor; stroke: none; }
[dir="rtl"] .y-flip { transform: scaleX(-1); }

.y-skip {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 3000;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: var(--r-sm); font-weight: 700;
}
.y-skip:focus { top: 12px; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.container { max-width: 1240px; }
.y-measure { max-width: 68ch; }

/* ---------- Buttons ---------- */
.y-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 11px 24px; border-radius: var(--r-md);
  font-family: var(--font-body); font-weight: 700; font-size: 16px; line-height: 1.2;
  border: 2px solid transparent; cursor: pointer; text-decoration: none !important;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
  white-space: nowrap;
}
.y-btn:active { transform: translateY(1px); }
.y-btn-primary { background: var(--blue); color: #fff !important; }
.y-btn-primary:hover { background: var(--blue-700); }
.y-btn-saffron { background: var(--saffron); color: var(--lapis-950) !important; }
.y-btn-saffron:hover { background: #f0b257; }
.y-btn-ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.5); }
.y-btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.y-btn-outline { background: transparent; color: var(--blue-700) !important; border-color: var(--line); }
.y-btn-outline:hover { border-color: var(--blue); background: var(--blue-50); }
.y-btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.y-btn-block { width: 100%; }
.y-btn[disabled], .y-btn.is-loading { opacity: .7; pointer-events: none; }
.y-btn.is-loading::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-inline-end-color: transparent; animation: y-spin .7s linear infinite;
}
@keyframes y-spin { to { transform: rotate(360deg); } }

.y-link {
  display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--blue-700);
}
.y-link .y-icon { transition: transform .25s var(--ease); }
.y-link:hover .y-icon { transform: translateX(4px); }
[dir="rtl"] .y-link:hover .y-icon { transform: scaleX(-1) translateX(4px); }

/* ---------- Header ---------- */
.y-util {
  background: var(--blue-50); color: var(--ink-2); font-size: 14.5px; border-bottom: 1px solid var(--blue-100);
}
.y-util .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.y-util-contact { display: flex; gap: 22px; flex-wrap: wrap; }
.y-util a { color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.y-util a:hover { color: var(--blue-700); }
.y-util .y-icon { color: var(--blue); }
.y-util a[dir="ltr"] { unicode-bidi: isolate; }

.y-lang { display: inline-flex; border: 1px solid var(--blue-100); border-radius: var(--r-sm); overflow: hidden; background: #fff; }
.y-lang a { padding: 5px 12px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.y-lang a + a { border-inline-start: 1px solid var(--blue-100); }
.y-lang a[aria-current="true"] { background: var(--blue); color: #fff; }
.y-lang a:not([aria-current="true"]):hover { background: var(--blue-50); color: var(--blue-700); }

.y-header {
  position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.97);
  backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line); transition: box-shadow .25s;
}
.y-header.is-scrolled { box-shadow: 0 6px 24px -10px rgba(12, 42, 82, .25); }
.y-header .container { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); transition: min-height .25s; }
.y-header.is-scrolled .container { min-height: 70px; }

.y-brand { display: flex; align-items: center; gap: 12px; color: var(--ink) !important; flex: none; }
.y-brand img { width: 54px; height: 54px; object-fit: contain; transition: width .25s, height .25s; }
.y-header.is-scrolled .y-brand img { width: 46px; height: 46px; }
.y-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.y-brand-name { font-family: "Bricolage Grotesque", var(--font-display); font-size: 27px; font-weight: 800; color: var(--blue); letter-spacing: .04em; }
.y-brand-sub { font-size: 12px; color: var(--muted); max-width: 190px; line-height: 1.3; margin-top: 3px; }

.y-nav { margin-inline-start: auto; }
.y-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.y-nav-item { position: relative; }
.y-nav-link {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: var(--r-sm);
  font-weight: 600; font-size: 15.5px; color: var(--ink) !important; background: none; border: 0; cursor: pointer;
  font-family: var(--font-body); white-space: nowrap;
}
.y-nav-link .y-icon { width: 15px; height: 15px; transition: transform .2s; color: var(--muted); }
.y-nav-link:hover, .y-nav-item.is-open > .y-nav-link { background: var(--paper); color: var(--blue-700) !important; }
.y-nav-link[aria-current="page"] { color: var(--blue-700) !important; box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.y-nav-item.is-open > .y-nav-link .y-icon { transform: rotate(180deg); }

.y-submenu {
  position: absolute; top: calc(100% + 8px); inset-inline-start: 0; min-width: 250px; z-index: 20;
  list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-2);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s var(--ease), visibility .18s;
}
.y-submenu::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.y-nav-item.is-open > .y-submenu { opacity: 1; visibility: visible; transform: none; }
.y-submenu a {
  display: block; padding: 9px 12px; border-radius: var(--r-sm); color: var(--ink-2); font-weight: 600; font-size: 15.5px;
}
.y-submenu a:hover, .y-submenu a:focus-visible { background: var(--blue-50); color: var(--blue-700); }
.y-submenu .is-loading { color: var(--muted); padding: 9px 12px; font-size: 15px; }

.y-header-cta { flex: none; }
.y-burger {
  display: none; margin-inline-start: auto; width: 46px; height: 46px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: #fff; color: var(--ink); align-items: center; justify-content: center; cursor: pointer;
}

/* the header holds 9 menu items; give space back progressively */
@media (max-width: 1499.98px) { .y-brand-sub { display: none; } .y-header .container { gap: 14px; } }
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .y-nav-link { padding: 10px 8px; font-size: 15px; }
}
@media (max-width: 575.98px) { .y-header-cta { display: none; } }

/* Mobile drawer */
@media (max-width: 1199.98px) {
  :root { --header-h: 70px; }
  .y-burger { display: inline-flex; }
  .y-brand img { width: 46px; height: 46px; }
  .y-brand-sub { display: block; font-size: 11px; max-width: 170px; }
  .y-nav {
    position: fixed; inset-block: 0; inset-inline-end: 0; width: min(380px, 88vw); z-index: 1200;
    background: #fff; padding: 76px 18px 28px; overflow-y: auto;
    transform: translateX(100%); transition: transform .32s var(--ease); visibility: hidden;
    box-shadow: -20px 0 50px rgba(8, 29, 58, .25);
  }
  [dir="rtl"] .y-nav { transform: translateX(-100%); }
  body.nav-open .y-nav { transform: none; visibility: visible; }
  .y-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .y-nav-item { border-bottom: 1px solid var(--line); }
  .y-nav-link { width: 100%; justify-content: space-between; padding: 15px 6px; font-size: 17px; border-radius: 0; }
  .y-nav-link:hover, .y-nav-item.is-open > .y-nav-link { background: none; }
  .y-nav-link[aria-current="page"] { box-shadow: none; }
  .y-submenu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0;
    padding: 0 0 10px 0; display: none; min-width: 0; border-radius: 0;
  }
  .y-nav-item.is-open > .y-submenu { display: block; }
  .y-submenu a { padding-inline-start: 14px; }
  .y-nav-close {
    position: absolute; top: 16px; inset-inline-end: 16px; width: 44px; height: 44px; border-radius: var(--r-md);
    border: 1px solid var(--line); background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
  }
  .y-nav-extra { display: block !important; margin-top: 22px; }
  .y-scrim {
    position: fixed; inset: 0; background: rgba(8, 29, 58, .5); z-index: 1100; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  body.nav-open .y-scrim { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 1200px) {
  .y-nav-close, .y-nav-extra, .y-scrim { display: none !important; }
}
@media (max-width: 575.98px) {
  .y-util-contact a span { display: none; }
  .y-util-contact { gap: 14px; }
}

/* ---------- Page hero (inner pages) ---------- */
.y-pagehero {
  position: relative; background: linear-gradient(115deg, var(--blue-25) 0%, var(--blue-50) 45%, var(--blue-100) 100%); color: var(--ink); overflow: hidden;
  padding: 64px 0 58px;
}
.y-pagehero::before {
  content: ""; position: absolute; inset: 0; background-image: var(--girih-blue); background-size: 84px;
  opacity: 1; -webkit-mask-image: linear-gradient(to left, #000 10%, transparent 75%); mask-image: linear-gradient(to left, #000 10%, transparent 75%);
}
[dir="rtl"] .y-pagehero::before { -webkit-mask-image: linear-gradient(to right, #000 10%, transparent 75%); mask-image: linear-gradient(to right, #000 10%, transparent 75%); }
.y-pagehero::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--blue) 0 70%, var(--saffron) 70% 100%);
}
[dir="rtl"] .y-pagehero::after { background: linear-gradient(-90deg, var(--blue) 0 70%, var(--saffron) 70% 100%); }
.y-pagehero .container { position: relative; z-index: 1; }
.y-pagehero h1 { color: var(--ink); font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; margin: 0; max-width: 22ch; }
.y-crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 16px; font-size: 15px; color: var(--muted); }
.y-crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.y-crumbs li + li::before { content: "/"; opacity: .5; }
.y-crumbs a { color: var(--blue-700); font-weight: 600; }
.y-crumbs a:hover { color: var(--blue); }

/* ---------- Sections & headings ---------- */
.y-section { padding: 96px 0; }
.y-section-sm { padding: 64px 0; }
.y-paper { background: var(--paper); }
@media (max-width: 767.98px) { .y-section { padding: 64px 0; } .y-section-sm { padding: 48px 0; } }

.y-head { margin-bottom: 44px; max-width: 720px; }
.y-head.is-center { margin-inline: auto; text-align: center; }
.y-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.y-head-row .y-head { margin-bottom: 0; }
.y-title { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; margin-bottom: 14px; }
.y-lead { font-size: 19px; color: var(--muted); line-height: 1.6; margin: 0; }
.y-prose { font-size: 18px; line-height: 1.8; color: var(--ink-2); }
.y-prose p { margin-bottom: 1.15em; }
[dir="rtl"] .y-prose { line-height: 2.05; }
.y-justify { text-align: justify; hyphens: auto; }

/* rule with a saffron tick, used under section titles */
.y-rule { width: 64px; height: 4px; border-radius: 2px; margin: 18px 0 0; background: linear-gradient(90deg, var(--blue) 0 75%, var(--saffron) 75%); }
.y-head.is-center .y-rule { margin-inline: auto; }

/* ---------- Home hero slider ---------- */
.y-hero { position: relative; background: var(--blue-700); overflow: hidden; }
.y-hero .carousel-item { height: min(86vh, 760px); min-height: 520px; background: var(--blue-700); }
.y-hero .carousel-item img.y-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.y-hero .carousel-item.active img.y-hero-img { transform: scale(1); }
.y-hero .carousel-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(9,72,118,.86) 0%, rgba(15,110,166,.62) 42%, rgba(27,156,227,.12) 100%);
}
[dir="rtl"] .y-hero .carousel-item::after { background: linear-gradient(-90deg, rgba(9,72,118,.86) 0%, rgba(15,110,166,.62) 42%, rgba(27,156,227,.12) 100%); }
.y-hero-caption { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; }
.y-hero-caption .y-cap { max-width: 720px; }
.y-hero-caption h2 { color: #fff; font-size: clamp(34px, 5.4vw, 66px); font-weight: 800; line-height: 1.06; margin-bottom: 20px; letter-spacing: -.02em; }
[dir="rtl"] .y-hero-caption h2 { line-height: 1.45; letter-spacing: 0; }
.y-hero-caption p { color: rgba(255,255,255,.88); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.55; margin-bottom: 32px; max-width: 58ch; }
.y-hero-caption .y-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.y-hero-pattern {
  position: absolute; inset-block: 0; inset-inline-end: 0; width: 38%; z-index: 1; pointer-events: none;
  background-image: var(--girih); background-size: 84px; opacity: .12;
  -webkit-mask-image: linear-gradient(to left, #000, transparent); mask-image: linear-gradient(to left, #000, transparent);
}
[dir="rtl"] .y-hero-pattern { -webkit-mask-image: linear-gradient(to right, #000, transparent); mask-image: linear-gradient(to right, #000, transparent); }

/* hero entrance: one orchestrated moment */
.y-hero .carousel-item.active .y-cap > * { animation: y-rise .9s var(--ease) both; }
.y-hero .carousel-item.active .y-cap > *:nth-child(2) { animation-delay: .12s; }
.y-hero .carousel-item.active .y-cap > *:nth-child(3) { animation-delay: .24s; }
@keyframes y-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.y-hero-controls {
  position: absolute; z-index: 5; bottom: 34px; inset-inline: 0;
}
.y-hero-controls .container { display: flex; align-items: center; gap: 18px; }
.y-hero-dots { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; position: static; }
.y-hero-dots button {
  width: 42px; height: 4px; border: 0; padding: 0; border-radius: 2px; background: rgba(255,255,255,.3); cursor: pointer; position: relative; overflow: hidden;
}
.y-hero-dots button::after { content: ""; position: absolute; inset: 0; background: var(--saffron); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .y-hero-dots button::after { transform-origin: right; }
.y-hero-dots button.active::after { animation: y-progress 6s linear forwards; }
@keyframes y-progress { to { transform: scaleX(1); } }
.y-hero-arrows { display: flex; gap: 8px; margin-inline-start: auto; }
.y-hero.is-single .y-hero-arrows, .y-hero.is-single .y-hero-dots { display: none; }
.y-hero-arrows button {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.12);
  color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, border-color .2s;
}
.y-hero-arrows button:hover { background: var(--blue); border-color: var(--blue); }
.y-hero.is-empty .carousel-item { display: block; }

@media (max-width: 767.98px) {
  .y-hero .carousel-item { height: 78vh; min-height: 480px; }
  .y-hero .carousel-item::after { background: linear-gradient(0deg, rgba(9,72,118,.92) 10%, rgba(15,110,166,.55) 70%, rgba(27,156,227,.2)); }
  .y-hero-caption { align-items: flex-end; padding-bottom: 96px; }
  .y-hero-arrows { display: none; }
  .y-hero-pattern { display: none; }
}

/* ---------- Program cards ---------- */
.y-programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.y-prog {
  position: relative; display: flex; flex-direction: column; background: #fff; color: inherit !important;
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.y-prog:hover { transform: translateY(-6px); border-color: var(--blue-100); box-shadow: 0 22px 44px -18px rgba(27,156,227,.45); }

/* photo area: the program image, or a light-blue tiled panel when there is none */
.y-prog-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--blue-50) var(--girih-blue); background-size: 64px; }
.y-prog-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease); }
.y-prog:hover .y-prog-media img { transform: scale(1.07); }
.y-prog-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,156,227,0) 45%, rgba(27,156,227,.28) 100%); pointer-events: none; }
.y-prog-media.is-empty img { display: none; }
.y-prog-media.is-empty::after { display: none; }
.y-prog-media .y-prog-big { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; }
.y-prog-media.is-empty .y-prog-big { display: flex; }
.y-prog-media .y-prog-big img { display: block; width: 38%; height: auto; max-width: 120px; opacity: .9; object-fit: contain; transform: none !important; }

/* round icon that sits on the edge between photo and text */
.y-prog-icon {
  position: relative; z-index: 2; width: 72px; height: 72px; margin: -36px 0 0; margin-inline-start: 24px;
  border-radius: 50%; background: #fff; border: 4px solid #fff; box-shadow: 0 8px 22px -6px rgba(27,156,227,.45);
  display: flex; align-items: center; justify-content: center; transition: background-color .35s, transform .35s var(--ease);
}
.y-prog-icon img { width: 52px; height: 52px; object-fit: contain; transition: filter .35s; }
.y-prog:hover .y-prog-icon { background: var(--blue); transform: rotate(-8deg); }
.y-prog:hover .y-prog-icon img { filter: brightness(0) invert(1); }

.y-prog-body { display: flex; flex-direction: column; flex: 1; padding: 16px 26px 22px; }
.y-prog-body h3 { font-size: 22px; margin-bottom: 10px; transition: color .25s; }
.y-prog:hover .y-prog-body h3 { color: var(--blue-700); }
.y-prog-body p { color: var(--muted); font-size: 16px; margin-bottom: 18px; flex: 1; }
.y-prog-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 16px; border-top: 1px dashed var(--blue-100); font-weight: 700; color: var(--blue-700);
}
.y-prog-arrow {
  width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--blue-50); color: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; transition: background-color .3s, color .3s, transform .35s var(--ease);
}
.y-prog:hover .y-prog-arrow { background: var(--blue); color: #fff; transform: rotate(-45deg); }
[dir="rtl"] .y-prog:hover .y-prog-arrow { transform: rotate(45deg); }

@media (max-width: 991.98px) { .y-programs { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
@media (max-width: 575.98px) {
  .y-programs { grid-template-columns: 1fr; }
  .y-prog-media { aspect-ratio: 16 / 9; }
  .y-prog-body { padding: 14px 20px 20px; }
}

/* ---------- Split / about ---------- */
.y-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.y-split.is-reverse > :first-child { order: 2; }
@media (max-width: 991.98px) { .y-split { grid-template-columns: 1fr; gap: 40px; } .y-split.is-reverse > :first-child { order: 0; } }
.y-figure { position: relative; margin: 0; }
.y-figure img { position: relative; z-index: 1; width: 100%; border-radius: var(--r-xl); display: block; aspect-ratio: 4 / 3.2; object-fit: cover; }
.y-figure::before {
  content: ""; position: absolute; z-index: 0; inset-block: 32px -24px; inset-inline: -24px 40px;
  border-radius: var(--r-xl); background: var(--blue-50) var(--girih-blue); background-size: 60px;
}
.y-figure.is-logo img { object-fit: contain; background: #fff; padding: 48px; border: 1px solid var(--line); }
@media (max-width: 575.98px) { .y-figure::before { inset-block: 20px -14px; inset-inline: -10px 24px; } }

/* ---------- Stats band ---------- */
.y-band { position: relative; background: var(--blue-50); color: var(--ink); overflow: hidden; border-block: 1px solid var(--blue-100); }
.y-band::before { content: ""; position: absolute; inset: 0; background-image: var(--girih-blue); background-size: 84px; opacity: .7; }
.y-band > .container { position: relative; z-index: 1; }
.y-stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.y-stat { padding: 10px 28px; border-inline-start: 1px solid var(--blue-100); }
.y-stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.y-stat strong { display: block; font-family: "Bricolage Grotesque", var(--font-display); font-size: clamp(40px, 4.4vw, 60px); font-weight: 800; line-height: 1; color: var(--blue); font-variant-numeric: tabular-nums; }
.y-stat strong::after { content: "+"; color: var(--saffron); margin-inline-start: 2px; }
.y-stat span { display: block; margin-top: 12px; color: var(--ink-2); font-size: 16px; font-weight: 600; }
@media (max-width: 991.98px) {
  .y-stats { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .y-stat:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
}
@media (max-width: 575.98px) { .y-stat { padding: 4px 16px; } .y-stat strong { font-size: 34px; } .y-stat span { font-size: 14.5px; margin-top: 8px; } }

/* ---------- Vision / mission ---------- */
.y-vm { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.y-vm-item { padding: 40px; border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line); position: relative; }
.y-vm-item.is-dark { background: var(--blue-50); border-color: var(--blue-100); }
.y-vm-item::before { content: ""; position: absolute; inset-block: 32px; inset-inline-start: -1px; width: 4px; border-radius: 2px; background: var(--blue); }
.y-vm-item h2 { font-size: 26px; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.y-vm-item h2 .y-icon { width: 30px; height: 30px; color: var(--blue); }
.y-vm-item p { font-size: 19px; line-height: 1.65; margin: 0; color: var(--ink-2); }
@media (max-width: 767.98px) { .y-vm { grid-template-columns: 1fr; } .y-vm-item { padding: 30px 26px; } }

/* ---------- Cards (news / projects) ---------- */
.y-card {
  display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--r-lg);
  border: 1px solid var(--line); overflow: hidden; color: inherit !important;
  transition: border-color .25s, box-shadow .3s var(--ease), transform .3s var(--ease);
}
a.y-card:hover { border-color: transparent; box-shadow: var(--shadow-2); transform: translateY(-4px); }
.y-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper); }
.y-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); display: block; }
a.y-card:hover .y-card-media img { transform: scale(1.05); }
.y-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.y-card-body h3 { font-size: 20px; line-height: 1.3; margin-bottom: 10px; }
[dir="rtl"] .y-card-body h3 { line-height: 1.6; }
.y-card-body p { color: var(--muted); font-size: 16px; flex: 1; margin-bottom: 16px; }
.y-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14.5px; color: var(--muted); margin-bottom: 10px; }
.y-meta span { display: inline-flex; align-items: center; gap: 6px; }
.y-tag {
  position: absolute; top: 14px; inset-inline-start: 14px; z-index: 1; padding: 5px 11px; border-radius: var(--r-sm);
  background: rgba(15,110,166,.92); color: #fff; font-size: 13.5px; font-weight: 700; backdrop-filter: blur(4px);
}
.y-tag.is-open { background: var(--saffron); color: var(--lapis-950); }
.y-tag.is-end { inset-inline-start: auto; inset-inline-end: 14px; background: rgba(255,255,255,.92); color: var(--ink); }
.y-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.y-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.y-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.y-grid.is-2 { grid-template-columns: repeat(2, 1fr); }
.y-grid.is-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 991.98px) { .y-grid, .y-grid.is-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .y-grid, .y-grid.is-2, .y-grid.is-4 { grid-template-columns: 1fr; } }

/* ---------- Segmented tabs ---------- */
.y-tabs { display: inline-flex; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); gap: 4px; flex-wrap: wrap; }
.y-tabs button {
  border: 0; background: none; padding: 10px 18px; border-radius: var(--r-sm); font-family: var(--font-body);
  font-weight: 700; font-size: 15.5px; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; min-height: 42px;
}
.y-tabs button[aria-selected="true"] { background: var(--blue); color: #fff; }
.y-tabs button:not([aria-selected="true"]):hover { color: var(--ink); background: var(--paper); }
.y-tabpanel[hidden] { display: none; }
.y-tabpanel .y-lead { margin-bottom: 28px; }

/* ---------- Owl carousel polish ---------- */
.owl-carousel .owl-stage { display: flex; }
.owl-carousel .owl-item { display: flex; }
.owl-carousel .owl-item > .item { width: 100%; padding: 4px 2px 10px; }
.y-carousel-nav { display: flex; gap: 8px; }
.y-carousel-nav button {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s;
}
.y-carousel-nav button:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.owl-carousel .owl-dots { display: flex; justify-content: center; gap: 6px; margin-top: 22px; }
.owl-carousel .owl-dots .owl-dot span { display: block; width: 8px; height: 8px; border-radius: 4px; background: var(--line); margin: 0; transition: all .25s; }
.owl-carousel .owl-dots .owl-dot.active span { width: 24px; background: var(--blue); }
.owl-carousel .owl-nav.disabled, .owl-carousel .owl-nav { display: none; }

/* ---------- Partners marquee ---------- */
.y-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.y-marquee-track { display: flex; gap: 22px; width: max-content; animation: y-marquee 40s linear infinite; }
[dir="rtl"] .y-marquee-track { animation-name: y-marquee-rtl; }
.y-marquee:hover .y-marquee-track, .y-marquee:focus-within .y-marquee-track { animation-play-state: paused; }
@keyframes y-marquee { to { transform: translateX(-50%); } }
@keyframes y-marquee-rtl { to { transform: translateX(50%); } }
.y-logo {
  flex: none; width: 200px; height: 112px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center; padding: 18px; transition: border-color .2s, box-shadow .2s;
}
.y-logo img { max-height: 72px; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.y-logo:hover { border-color: var(--blue); box-shadow: var(--shadow-1); }
.y-logo:hover img { filter: none; opacity: 1; }
.y-logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; }
.y-logo-grid .y-logo { width: auto; }

/* ---------- Document / notice list ---------- */
.y-list { display: flex; flex-direction: column; gap: 14px; }
.y-row {
  display: flex; align-items: center; gap: 20px; padding: 20px 22px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); color: inherit !important; transition: border-color .2s, box-shadow .25s, transform .25s var(--ease);
}
a.y-row:hover, .y-row:hover { border-color: var(--blue); box-shadow: var(--shadow-1); }
.y-row-icon { width: 54px; height: 54px; flex: none; border-radius: var(--r-md); background: var(--blue-50); color: var(--blue-700); display: flex; align-items: center; justify-content: center; }
.y-row-icon .y-icon { width: 26px; height: 26px; }
.y-row-main { flex: 1; min-width: 0; }
.y-row-main h3 { font-size: 19px; margin-bottom: 6px; }
.y-row-main p { margin: 0 0 8px; color: var(--muted); font-size: 15.5px; }
.y-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.y-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); }
.y-chip.is-blue { background: var(--blue-50); border-color: transparent; color: var(--blue-700); }
.y-chip.is-saffron { background: var(--saffron-50); border-color: transparent; color: #8a5a10; }
.y-row-action { flex: none; }
@media (max-width: 575.98px) {
  .y-row { flex-wrap: wrap; padding: 18px; gap: 14px; }
  .y-row-icon { width: 46px; height: 46px; }
  .y-row-action { width: 100%; }
  .y-row-action .y-btn { width: 100%; }
}

/* ---------- Article / detail ---------- */
.y-article { max-width: 860px; margin-inline: auto; }
.y-article-media { border-radius: var(--r-xl); overflow: hidden; margin-bottom: 34px; background: var(--paper); }
.y-article-media img { width: 100%; max-height: 520px; object-fit: cover; display: block; }
.y-article h1, .y-article .y-article-title { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; margin-bottom: 18px; }
.y-article h2.y-sub-h { font-size: 22px; margin: 34px 0 10px; }
.y-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin: 26px 0 34px; }
.y-fact { padding: 18px 20px; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: -1px; }
.y-fact dt { font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.y-fact dd { margin: 0; font-weight: 700; color: var(--ink); font-size: 16.5px; }
.y-layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.y-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.y-aside-box { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; background: #fff; }
.y-aside-box h2 { font-size: 18px; margin-bottom: 14px; }
@media (max-width: 991.98px) { .y-layout-aside { grid-template-columns: 1fr; } .y-aside { position: static; } }

/* ---------- Photo grids & lightbox ---------- */
.y-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.y-photos.is-small { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.y-photo {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden;
  background: var(--paper); border: 0; padding: 0; cursor: zoom-in;
}
.y-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); display: block; }
.y-photo:hover img { transform: scale(1.06); }
.y-photo .y-photo-count {
  position: absolute; inset-inline-end: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-sm); background: rgba(15,110,166,.9); color: #fff; font-size: 14px; font-weight: 700;
}
.y-photo-cap { display: block; margin-top: 8px; font-weight: 600; color: var(--ink); font-size: 15.5px; }

.y-lightbox {
  position: fixed; inset: 0; z-index: 5000; background: rgba(5, 15, 30, .94); display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.y-lightbox.is-open { opacity: 1; visibility: visible; }
.y-lb-stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 64px 72px 12px; min-height: 0; }
.y-lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r-md); box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: y-fade .3s ease; }
@keyframes y-fade { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
.y-lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08);
  color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s;
}
.y-lb-btn:hover { background: var(--blue); border-color: var(--blue); }
.y-lb-close { top: 14px; inset-inline-end: 14px; }
.y-lb-prev { inset-inline-start: 14px; top: 50%; transform: translateY(-50%); }
.y-lb-next { inset-inline-end: 14px; top: 50%; transform: translateY(-50%); }
.y-lb-bar { display: flex; align-items: center; gap: 14px; padding: 10px 20px 18px; color: rgba(255,255,255,.8); font-size: 15px; }
.y-lb-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; flex: 1; }
.y-lb-thumbs button { flex: none; width: 72px; height: 54px; border-radius: var(--r-sm); overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; opacity: .55; background: none; }
.y-lb-thumbs button.is-current { border-color: var(--saffron); opacity: 1; }
.y-lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767.98px) {
  .y-lb-stage { padding: 64px 10px 10px; }
  .y-lb-prev, .y-lb-next { top: auto; bottom: 86px; transform: none; }
}

/* ---------- Video ---------- */
.y-video { border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); height: 100%; display: flex; flex-direction: column; }
.y-video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--blue-50); }
.y-video-frame iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.y-video-body { padding: 20px 22px 22px; }
.y-video-body h3 { font-size: 19px; margin-bottom: 8px; }
.y-video-body p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ---------- Team ---------- */
.y-person { text-align: center; padding: 30px 22px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); height: 100%; display: flex; flex-direction: column; align-items: center; transition: box-shadow .25s, border-color .25s; }
.y-person:hover { box-shadow: var(--shadow-1); border-color: var(--blue); }
.y-person-photo { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; margin-bottom: 18px; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--blue-50), var(--shadow-1); background: var(--paper); }
.y-person h3 { font-size: 20px; margin-bottom: 4px; }
.y-person h3 button { all: unset; cursor: pointer; }
.y-person h3 button:hover { color: var(--blue-700); }
.y-person h3 button:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }
.y-person-role { color: var(--muted); font-size: 15.5px; margin-bottom: 16px; }
.y-person .y-btn { margin-top: auto; }
.y-socials { display: flex; gap: 8px; list-style: none; margin: 0 0 16px; padding: 0; justify-content: center; }
.y-socials a { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); color: var(--ink-2); transition: all .2s; }
.y-socials a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.y-socials .y-icon { width: 17px; height: 17px; }

/* ---------- Modal ---------- */
.y-modal { position: fixed; inset: 0; z-index: 4500; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(15,34,56,.45); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.y-modal.is-open { opacity: 1; visibility: visible; }
.y-modal-dialog { position: relative; background: #fff; border-radius: var(--r-xl); padding: 60px 34px 34px; width: 100%; max-width: 620px; max-height: 88vh; overflow-y: auto; transform: translateY(16px); transition: transform .3s var(--ease); }
.y-modal.is-open .y-modal-dialog { transform: none; }
.y-modal-close { position: absolute; top: 12px; inset-inline-end: 12px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.y-modal-close:hover { background: var(--paper); }

/* ---------- Forms ---------- */
.y-form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 40px; }
@media (max-width: 575.98px) { .y-form { padding: 26px 20px; } }
.y-field { margin-bottom: 20px; }
.y-label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 7px; font-size: 15.5px; }
.y-label .y-req { color: var(--err); margin-inline-start: 2px; }
.y-input {
  display: block; width: 100%; min-height: 50px; padding: 11px 15px; font: inherit; font-size: 16.5px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-md); transition: border-color .2s, box-shadow .2s;
}
textarea.y-input { min-height: 150px; resize: vertical; }
.y-input:hover { border-color: #c4cfd9; }
.y-input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(27,156,227,.15); outline: none; }
.y-input[disabled], .y-input[readonly] { background: var(--paper); color: var(--ink-2); }
.y-input[aria-invalid="true"] { border-color: var(--err); }
.y-input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(194,65,45,.15); }
.y-err { display: none; color: var(--err); font-size: 14.5px; margin-top: 6px; font-weight: 600; }
.y-err.is-shown { display: block; }
.y-hint { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.y-file { position: relative; }
.y-file input[type=file] { padding: 10px 12px; }
.y-file input[type=file]::file-selector-button { border: 0; background: var(--blue-50); color: var(--blue-700); font-weight: 700; padding: 8px 14px; border-radius: var(--r-sm); margin-inline-end: 12px; cursor: pointer; font-family: inherit; }
.y-choice { display: flex; gap: 10px; flex-wrap: wrap; border: 0; padding: 0; margin: 0 0 24px; }
.y-choice legend { font-weight: 700; color: var(--ink); font-size: 15.5px; margin-bottom: 8px; width: 100%; }
.y-choice label { position: relative; margin: 0; }
.y-choice input { position: absolute; opacity: 0; inset: 0; }
.y-choice span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--r-md); border: 1.5px solid var(--line); font-weight: 700; cursor: pointer; transition: all .2s; min-height: 46px; }
.y-choice span::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); transition: all .2s; }
.y-choice input:checked + span { border-color: var(--blue); background: var(--blue-50); color: var(--blue-700); }
.y-choice input:checked + span::before { border: 5px solid var(--blue); }
.y-choice input:focus-visible + span { outline: 3px solid var(--saffron); outline-offset: 2px; }
.y-status { display: none; margin-top: 18px; padding: 14px 16px; border-radius: var(--r-md); font-weight: 600; align-items: flex-start; gap: 10px; }
.y-status.is-shown { display: flex; }
.y-status.is-ok { background: #e7f5ee; color: var(--ok); }
.y-status.is-err { background: #fbece9; color: var(--err); }

/* ---------- Contact ---------- */
.y-contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 26px; }
.y-contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.y-contact-list .y-row-icon { width: 50px; height: 50px; }
.y-contact-list h3 { font-size: 17px; margin-bottom: 4px; }
.y-contact-list p, .y-contact-list a { margin: 0; color: var(--ink-2); }
.y-contact-list a:hover { color: var(--blue-700); }
.y-map { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); line-height: 0; }
.y-map iframe { width: 100%; height: 420px; border: 0; filter: saturate(.85); }
[dir="rtl"] .y-ltr, .y-ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- Empty / error / skeleton ---------- */
.y-empty { grid-column: 1 / -1; text-align: center; padding: 56px 24px; border: 1.5px dashed var(--line); border-radius: var(--r-lg); color: var(--muted); background: #fff; }
.y-empty .y-icon { width: 40px; height: 40px; color: #b5c2cf; display: block; margin: 0 auto 12px; }
.y-empty p { margin: 0; font-size: 17px; }
.y-skel { position: relative; overflow: hidden; background: #eef2f5; border-radius: var(--r-md); }
.y-skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); animation: y-shimmer 1.3s infinite; }
@keyframes y-shimmer { to { transform: translateX(100%); } }
.y-skel-card { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.y-skel-card .y-skel { border-radius: 0; }
.y-skel-line { height: 14px; margin: 0 22px 10px; }

/* ---------- Footer ---------- */
.y-footer { position: relative; background: var(--blue-25); color: var(--ink-2); padding-top: 80px; overflow: hidden; border-top: 1px solid var(--blue-100); }
.y-footer::before { content: ""; position: absolute; inset: 0; background-image: var(--girih-blue); background-size: 84px; opacity: .45; }
.y-footer > * { position: relative; }
.y-footer h2 { color: var(--ink); font-size: 18px; margin-bottom: 20px; }
.y-footer p { color: var(--muted); }
.y-footer a { color: var(--ink-2); }
.y-footer a:hover { color: var(--blue-700); }
.y-foot-grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr .9fr; gap: 48px; padding-bottom: 56px; }
@media (max-width: 991.98px) { .y-foot-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 575.98px) { .y-foot-grid { grid-template-columns: 1fr; } }
.y-foot-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.y-foot-brand img { width: 52px; height: 52px; object-fit: contain; }
.y-foot-brand span { font-family: "Bricolage Grotesque", var(--font-display); font-size: 26px; font-weight: 800; color: var(--blue); letter-spacing: .04em; }
.y-foot-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.y-foot-links a { display: inline-block; padding: 2px 0; }
.y-foot-contact { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.y-foot-contact li { display: flex; gap: 12px; align-items: flex-start; }
.y-foot-contact .y-icon { color: var(--blue); margin-top: 3px; }
.y-foot-contact strong { display: block; color: var(--ink); font-weight: 700; }
.y-foot-social { display: flex; gap: 10px; list-style: none; padding: 0; margin: 0 0 22px; }
.y-foot-social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--blue-100); background: #fff; color: var(--blue-700); display: inline-flex; align-items: center; justify-content: center; transition: all .2s; }
.y-foot-social a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.y-foot-bottom { border-top: 1px solid var(--blue-100); padding: 22px 0; font-size: 14.5px; background: var(--blue-50); color: var(--muted); }
.y-foot-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.y-totop {
  position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 900; width: 48px; height: 48px; border-radius: 50%;
  background: var(--blue); color: #fff; border: 0; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-2); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease);
}
.y-totop.is-shown { opacity: 1; visibility: visible; transform: none; }
.y-totop:hover { background: var(--blue-700); }

/* ---------- Toast ---------- */
.y-toast { position: fixed; bottom: 24px; inset-inline-start: 50%; transform: translate(-50%, 20px); z-index: 6000; background: var(--ink); color: #fff; padding: 13px 20px; border-radius: var(--r-md); font-weight: 600; box-shadow: var(--shadow-2); opacity: 0; transition: all .3s var(--ease); pointer-events: none; max-width: calc(100vw - 32px); }
[dir="rtl"] .y-toast { transform: translate(50%, 20px); }
.y-toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
[dir="rtl"] .y-toast.is-shown { transform: translate(50%, 0); }

/* ---------- Scroll reveal (subtle) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .y-marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .y-marquee { -webkit-mask-image: none; mask-image: none; }
  .y-marquee-track [aria-hidden="true"] { display: none; }
}

/* ---------- Utilities ---------- */
.y-mt-0 { margin-top: 0 !important; } .y-mb-0 { margin-bottom: 0 !important; }
.y-mt-24 { margin-top: 24px; } .y-mt-40 { margin-top: 40px; }
.y-center { text-align: center; }
.y-cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 44px; border-radius: var(--r-xl); background: var(--girih-soft), linear-gradient(120deg, #1179b4 0%, var(--blue) 55%, #3fb6f2 100%); background-size: 84px, auto; color: #fff; }
.y-cta-band h2 { color: #fff; margin: 0; font-size: clamp(24px, 2.6vw, 32px); max-width: 30ch; }
@media (max-width: 575.98px) { .y-cta-band { padding: 30px 24px; } }

@media print {
  .y-util, .y-header, .y-footer, .y-totop { display: none !important; }
  .y-pagehero { background: none; color: #000; padding: 0 0 20px; }
  .y-pagehero h1 { color: #000; }
}

/* submenus near the end of the bar open toward the start so they stay on screen */
@media (min-width: 1200px) {
  .y-nav > ul > li:nth-last-child(-n+4) > .y-submenu { inset-inline-start: auto; inset-inline-end: 0; }
}
@media (min-width: 576px) and (max-width: 1199.98px) {
  .y-header-cta { margin-inline-start: auto; }
  .y-burger { margin-inline-start: 0; }
}

/* CMS content can be typed in English, Dari or Pashto regardless of the page language:
   let each paragraph take its own direction so punctuation lands on the right side. */
.y-card-body h3, .y-card-body p, .y-program h3, .y-program p, .y-hero-caption h2, .y-hero-caption p,
.y-row-main h3, .y-row-main p, .y-prose, .y-prose p, .y-prose li, .y-article-title, .y-video-body h3, .y-video-body p,
.y-person h3, .y-person-role, .y-photo-cap, .y-meta, #proj-hero-title, #sectitlehero, #job-hero-title, .y-title#sectitle, .y-facts dd {
  unicode-bidi: plaintext;
  text-align: start;
}

/* The mobile drawer lives inside the sticky header: lift the header above the scrim while open,
   and drop backdrop-filter (it would make the fixed drawer size itself to the header). */
@media (max-width: 1199.98px) {
  .y-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  body.nav-open .y-header { z-index: 1150; }
}
[dir="rtl"] input[dir="ltr"]::placeholder { direction: rtl; text-align: right; }
