/* AOU public site — header, home hero slider, footer (professional redesign, 2026-10-03).
   Loaded after rayan.css. Colours: AOU navy #022a40, lighter navy #045881, green #eaba6a, mint #f3d9a8 (accent on navy),
   cream #fcfaf0. The header is always in the page flow, so the inner-page heroes lose the top padding that used to
   clear Rayan's transparent overlay header. */
:root {
  --aou-navy: #022a40;
  --aou-navy-2: #045881;
  --aou-ink: #0f1f33;
  --aou-muted: #56657a;
  --aou-green: #eaba6a;
  --aou-mint: #f3d9a8;
  --aou-cream: #fcfaf0;
  --aou-line: #e4e6dd;
  --aou-line-navy: rgba(255, 255, 255, .16);
}

/* ---------- buttons ---------- */
.aou-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding-inline: 22px;
  border-radius: 10px; border: 1.5px solid transparent; font: 600 15px/1.2 var(--ry-font); cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s; }
.aou-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.aou-btn--primary { background: var(--aou-navy); color: #fff; }
.aou-btn--primary:hover { background: var(--aou-navy-2); color: #fff; }
.aou-btn--ghost { background: #fff; color: var(--aou-navy); border-color: var(--aou-line); }
.aou-btn--ghost:hover { border-color: var(--aou-navy); color: var(--aou-navy); }
.aou-btn--light { background: #fff; color: var(--aou-navy); min-height: 50px; padding-inline: 26px; }
.aou-btn--light:hover { background: var(--aou-cream); color: var(--aou-navy); }
.aou-btn--outline-light { border-color: rgba(255, 255, 255, .45); color: #fff; min-height: 50px; padding-inline: 26px; }
.aou-btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .06); color: #fff; }
.aou-btn--block { width: 100%; }

/* ---------- utility bar: light official-site strip (as on uqu.edu.sa) ---------- */
.aou-util { background: #f3f4f6; color: #111827; font-size: 13.5px; font-weight: 500; }
.aou-util__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 36px; padding-block: 4px; flex-wrap: wrap; }
.aou-util__stamp { display: flex; align-items: center; gap: 10px; margin: 0; }
.aou-util__stamp img { flex: none; width: 20px; height: 14px; border-radius: 2px; }
.aou-util__links { display: flex; align-items: center; gap: 4px; }
.aou-util__links a { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding-inline: 10px; border-radius: 4px; color: #111827; }
.aou-util__links a:hover { color: var(--aou-navy-2); background: rgba(2, 42, 64, .06); }
.aou-util__links svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }

/* ---------- header ---------- */
.aou-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--aou-line); }
.aou-header__bar { display: flex; align-items: center; gap: 28px; min-height: 86px; }
.aou-header__logo img { display: block; height: 64px; width: auto; }
.aou-nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.aou-nav a { padding: 8px 13px; border-radius: 8px; color: var(--aou-ink); font-size: 15px; font-weight: 500; }
.aou-nav a:hover { background: var(--aou-cream); color: var(--aou-navy); }
.aou-nav a.is-active { color: var(--aou-navy); font-weight: 700; }
.aou-header__actions { display: flex; align-items: center; gap: 10px; }
.aou-burger { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--aou-line); background: #fff;
  align-items: center; justify-content: center; color: var(--aou-navy); cursor: pointer; }
.aou-burger svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.aou-drawer .ry-drawer__top img { width: 170px; background: none; padding: 0; border-radius: 0; }
.aou-drawer .ry-drawer__actions form { margin: 0; }

/* ---------- home hero ---------- */
.aou-hero { position: relative; overflow: hidden; background: var(--aou-navy); color: #fff; }
.aou-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% 35%; }
.aou-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to left, rgba(2, 29, 44, .95) 0%, rgba(2, 42, 64, .86) 36%, rgba(2, 42, 64, .35) 68%, rgba(2, 42, 64, .1) 100%),
              linear-gradient(to top, rgba(2, 29, 44, .55), rgba(2, 29, 44, 0) 40%); }
[dir="ltr"] .aou-hero::after {
  background: linear-gradient(to right, rgba(2, 29, 44, .95) 0%, rgba(2, 42, 64, .86) 36%, rgba(2, 42, 64, .35) 68%, rgba(2, 42, 64, .1) 100%),
              linear-gradient(to top, rgba(2, 29, 44, .55), rgba(2, 29, 44, 0) 40%); }
/* hero slider: stacked slides crossfade; the active one drifts from 106% to 100% (slow zoom) */
.aou-hero__slides { position: absolute; inset: 0; overflow: hidden; }
.aou-hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06);
  transition: opacity 1.4s ease, transform 8s ease-out; will-change: opacity, transform; }
.aou-hero__slide.is-active { opacity: 1; transform: scale(1); }
.aou-hero__dots { display: flex; gap: 10px; margin-top: 40px; }
.aou-hero__dots button { width: 44px; height: 20px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; align-items: center; }
.aou-hero__dots i { display: block; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .3); overflow: hidden; position: relative; }
.aou-hero__dots i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: right; }
[dir="ltr"] .aou-hero__dots i::after { transform-origin: left; }
.aou-hero__dots button.is-active i::after { animation: aou-dot 6.5s linear forwards; }
.aou-hero__dots button:hover i { background: rgba(255, 255, 255, .55); }
.aou-hero__dots button:focus-visible { outline: 2px solid var(--aou-mint); outline-offset: 2px; border-radius: 4px; }
@keyframes aou-dot { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .aou-hero__slide { transition: opacity .3s; transform: none; }
  .aou-hero__dots button.is-active i::after { animation: none; transform: scaleX(1); }
}
.aou-hero__inner { position: relative; z-index: 1; padding-block: 120px 112px; }
.aou-hero__copy { max-width: 600px; }
[dir="ltr"] .aou-hero__copy { max-width: 700px; }
.aou-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--aou-mint); }
.aou-eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.aou-hero__title { margin: 18px 0 20px; font-size: clamp(36px, 4.8vw, 60px); font-weight: 700; line-height: 1.3; letter-spacing: -.3px; text-wrap: balance; color: #fff; }
.aou-hero__title span { color: var(--aou-mint); }
.aou-hero__text { max-width: 52ch; font-size: 18px; line-height: 1.75; color: #d3deea; }
.aou-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* ---------- footer ---------- */
.aou-footer { background: #021d2c; color: #b4c3d4; font-size: 14.5px; line-height: 1.75; }
.aou-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-block: 64px 48px; }
.aou-footer__grid > div { min-width: 0; }
.aou-footer__brand img { display: block; height: 64px; width: auto; margin-bottom: 20px; }
.aou-footer__brand p { max-width: 40ch; }
.aou-footer h3 { margin: 0 0 16px; color: #fff; font-size: 15px; font-weight: 700; }
.aou-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.aou-footer a { color: inherit; }
.aou-footer a:hover { color: #fff; }
.aou-footer__contact li { display: flex; align-items: flex-start; gap: 10px; }
.aou-footer__contact svg { flex: none; width: 16px; height: 16px; margin-top: 5px; fill: none; stroke: var(--aou-mint); stroke-width: 2; }
.aou-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.aou-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--aou-line-navy); }
.aou-social a:hover { background: rgba(255, 255, 255, .08); }
.aou-social svg { width: 16px; height: 16px; fill: currentColor; }
.aou-footer__acc { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 24px; }
.aou-footer__acc span { display: block; }
.aou-footer__acc img { display: block; height: 52px; width: auto; }
.aou-footer__bottom { border-top: 1px solid var(--aou-line-navy); }
.aou-footer__bottom .ry-container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 20px; font-size: 13px; }
.aou-footer__bottom p { margin: 0; }
.aou-footer__bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- inner pages: the header no longer overlays their heroes ---------- */
.ry-phero__inner { padding-top: 104px; }
.ry-phero--sm .ry-phero__inner { padding-top: 96px; min-height: 360px; }
.ry-dhero .ry-phero__inner { padding-top: 72px; min-height: 572px; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
  .aou-nav a { padding-inline: 9px; font-size: 14.5px; }
  .aou-hide-lg { display: none; }
}
@media (max-width: 1060px) {
  .aou-nav { display: none; }
  .aou-burger { display: inline-flex; }
  .aou-header__actions { margin-inline-start: auto; }
  .aou-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 991px) {
  .ry-phero__inner { padding-top: 72px; }
  .ry-phero--sm .ry-phero__inner { padding-top: 64px; }
  .ry-dhero .ry-phero__inner { padding-top: 56px; min-height: 0; }
}
@media (max-width: 860px) {
  .aou-util__stamp span { font-size: 12.5px; }
  .aou-util__links { display: none; }   /* phones: flag line only (language + LMS live in the menu), as on uqu.edu.sa */
}
@media (max-width: 760px) {
  .aou-hero::after, [dir="ltr"] .aou-hero::after { background: linear-gradient(to top, rgba(2, 29, 44, .96) 0%, rgba(2, 42, 64, .85) 55%, rgba(2, 42, 64, .45) 100%); }
  .aou-hero__inner { padding-block: 160px 72px; }
  .aou-hero__text { font-size: 16.5px; }
}
@media (max-width: 560px) {
  .aou-header__bar { min-height: 72px; gap: 12px; }
  .aou-header__logo img { height: 48px; }
  .aou-hide-sm { display: none; }
  .aou-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .aou-footer__bottom .ry-container { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .aou-btn, .aou-nav a { transition: none; } }

/* ---------- login / register brand panel: the campus building behind a navy shade ---------- */
.aou-auth-panel::before { display: none; }
/* the photo + shade stay pinned to the viewport while the (taller) form column scrolls */
.aou-auth-panel__media { position: sticky; top: 0; flex: none; height: 100vh; margin-inline: -56px; margin-bottom: -100vh; overflow: hidden; }
[dir="rtl"] .aou-auth-panel__media, [dir="ltr"] .aou-auth-panel__media { margin-inline: -56px; }
.aou-auth-panel__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.aou-auth-panel__media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2, 29, 44, .1) 0%, rgba(2, 42, 64, .3) 36%, rgba(2, 42, 64, .88) 64%, #021d2c 100%); }
.aou-auth-panel .ry-auth__panel-copy { justify-content: flex-end; padding-bottom: 8px; }
.aou-auth-panel .ry-auth__panel-copy, .aou-auth-panel .ry-auth__acc { z-index: 1; }
.aou-auth-panel .ry-auth__panel-copy { max-width: 420px; }
.aou-auth-panel h2 { font-size: 44px; text-wrap: balance; }
.aou-auth-panel h2 span { color: var(--aou-mint); }
.aou-auth-panel p { color: rgba(255, 255, 255, .78); font-size: 16.5px; line-height: 1.7; }
.aou-auth-panel .ry-auth__acc { padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .16); }
.aou-auth-panel .ry-auth__acc span { color: rgba(255, 255, 255, .8); font-size: 14px; }
.ry-auth__logo img { width: auto; height: 64px; }
@media (max-width: 1100px) { .aou-auth-panel h2 { font-size: 36px; } .aou-auth-panel__media, [dir="rtl"] .aou-auth-panel__media, [dir="ltr"] .aou-auth-panel__media { margin-inline: -40px; } }

/* ---------- compact inner-page banners (programs, about, contact, faqs): content height, not the home-hero height ---------- */
.ry-phero:not(.ry-phero--sm):not(.ry-dhero) .ry-phero__inner { min-height: 0; padding-block: 88px 84px; }
@media (max-width: 991px) { .ry-phero:not(.ry-phero--sm):not(.ry-dhero) .ry-phero__inner { padding-block: 56px 56px; } }

/* ---------- about: shared values (five in one row, icon + name + meaning) ---------- */
.aou-values { margin-top: 40px; padding: 44px 48px 48px; background: #fff; border: 1px solid #dde3ef; border-radius: 24px; }
.aou-values__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap;
  padding-bottom: 28px; margin-bottom: 32px; border-bottom: 1px solid #e8ecf3; }
.aou-values__eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--aou-green); font-size: 14px; font-weight: 600; }
.aou-values__eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.aou-values__head h3 { margin-top: 8px; color: var(--aou-navy); font-size: 30px; font-weight: 700; line-height: 1.3; }
.aou-values__head p { max-width: 46ch; color: var(--aou-muted); font-size: 15.5px; line-height: 1.75; }
.aou-values__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.aou-value { display: flex; flex-direction: column; gap: 10px; padding: 24px 20px; border-radius: 16px; background: var(--aou-cream);
  border: 1px solid #eee9d6; transition: transform .2s, box-shadow .2s, border-color .2s, background .2s; }
.aou-value:hover { transform: translateY(-3px); background: #fff; border-color: #cfe0db; box-shadow: 0 18px 40px -26px rgba(2, 42, 64, .45); }
.aou-value i { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 6px; border-radius: 14px; background: #e3efeb; color: var(--aou-green); }
.aou-value i svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.aou-value:hover i { background: var(--aou-green); color: #fff; }
.aou-value h4 { margin: 0; color: var(--aou-navy); font-size: 19px; font-weight: 700; line-height: 1.35; }
.aou-value p { margin: 0; color: var(--aou-muted); font-size: 14px; line-height: 1.7; }
@media (max-width: 1199px) {
  .aou-values__list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .aou-value { grid-column: span 2; }
  .aou-value:nth-child(4) { grid-column: 2 / span 2; }   /* 3 + 2, second row centred */
}
@media (max-width: 760px) {
  .aou-values { padding: 28px 20px; }
  .aou-values__head h3 { font-size: 24px; }
  .aou-values__list { grid-template-columns: 1fr 1fr; }
  .aou-value, .aou-value:nth-child(4) { grid-column: auto; }
  .aou-value:last-child { grid-column: 1 / -1; }
}
@media (max-width: 440px) { .aou-values__list { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .aou-value { transition: none; } .aou-value:hover { transform: none; } }

/* ---------- FAQ (home + /faqs): wider list and «لم تجد إجابة» box (was 816px), roomier rows ---------- */
.ry-faq__list, .ry-faq__more, .ry-faq .ry-head { max-width: 1040px; }
.ry-faq__item summary { padding: 22px 28px; font-size: 17px; }
.ry-faq__answer { margin: 0 28px 26px; max-width: 90ch; }
.ry-faq__more { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding: 28px 32px; }
.ry-faq__more p { margin: 0; font-size: 17px; font-weight: 600; color: var(--aou-navy); }
@media (max-width: 600px) {
  .ry-faq__item summary { padding: 18px 18px; font-size: 16px; }
  .ry-faq__answer { margin: 0 18px 20px; }
  .ry-faq__more { justify-content: center; text-align: center; padding: 24px 20px; }
}
/* values: icon, name and meaning centred in each card */
.aou-value { align-items: center; text-align: center; padding: 28px 20px 26px; }
.aou-value i { width: 56px; height: 56px; border-radius: 50%; margin-bottom: 8px; }
.aou-value i svg { width: 26px; height: 26px; }

/* ---------- inner-page banners: navy gradient with a soft top glow + a staircase of AOU arch marks opposite the text ---------- */
.ry-phero {
  background:
    radial-gradient(ellipse 70% 95% at 50% -20%, rgba(255, 255, 255, .17) 0%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(180deg, #045881 0%, #022a40 58%, #022a40 100%);
}
.ry-phero::after { content: ""; position: absolute; bottom: 0; left: 0; z-index: 0; pointer-events: none;
  width: min(680px, 50%); aspect-ratio: 816 / 326; opacity: .1;
  background: url(../images/rayan/upm-arch-pattern.png) left bottom / contain no-repeat; }
[dir="ltr"] .ry-phero::after { left: auto; right: 0; background-image: url(../images/rayan/upm-arch-pattern-ltr.png); background-position: right bottom; }
.ry-phero .ry-phero__inner { z-index: 1; }
@media (max-width: 760px) {
  .ry-phero::after { width: 88%; opacity: .07; }
}

/* ---------- home: partnerships & accreditations (navy band, white logo tiles) ---------- */
.aou-partners__grid { position: relative; z-index: 1; list-style: none; margin: 48px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.aou-partner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 18px 14px 20px;
  border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  transition: background .2s, transform .2s, border-color .2s; }
.aou-partner:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); transform: translateY(-3px); }
.aou-partner__logo { display: grid; place-items: center; width: 100%; height: 112px; margin-bottom: 12px; padding: 14px; border-radius: 12px; background: #fff; }
.aou-partner__logo img { max-width: 100%; max-height: 80px; width: auto; height: auto; object-fit: contain; }
.aou-partner__role { color: var(--aou-mint); font-size: 13px; font-weight: 600; }
.aou-partner__name { color: #fff; font-size: 14.5px; font-weight: 600; line-height: 1.5; }
@media (max-width: 1100px) { .aou-partners__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .aou-partners__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }
  .aou-partner__logo { height: 96px; }
}
@media (prefers-reduced-motion: reduce) { .aou-partner { transition: none; } .aou-partner:hover { transform: none; } }
/* program page banner: the price box + facts bar sit over the pattern — boxes go solid (no blur smudges),
   the staircase starts 24px in from the edge and fades out toward the content */
.ry-dhero .ry-pricebox, .ry-dhero .ry-facts { background: rgba(7, 44, 82, .94); border-color: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 22px 44px -28px rgba(0, 12, 28, .7); }
.ry-dhero::after { left: 24px; width: min(620px, 46%); opacity: .1;
  -webkit-mask-image: radial-gradient(ellipse 105% 105% at 0% 100%, #000 38%, transparent 78%);
          mask-image: radial-gradient(ellipse 105% 105% at 0% 100%, #000 38%, transparent 78%); }
[dir="ltr"] .ry-dhero::after { left: auto; right: 24px;
  -webkit-mask-image: radial-gradient(ellipse 105% 105% at 100% 100%, #000 38%, transparent 78%);
          mask-image: radial-gradient(ellipse 105% 105% at 100% 100%, #000 38%, transparent 78%); }
@media (max-width: 760px) { .ry-dhero::after { left: 0; width: 92%; opacity: .07; } [dir="ltr"] .ry-dhero::after { right: 0; } }
/* all inner-page banners: same treatment as the program page — staircase inset 24px from the edge, whole arches,
   fading out toward the content */
.ry-phero::after { left: 24px;
  -webkit-mask-image: radial-gradient(ellipse 105% 105% at 0% 100%, #000 38%, transparent 78%);
          mask-image: radial-gradient(ellipse 105% 105% at 0% 100%, #000 38%, transparent 78%); }
[dir="ltr"] .ry-phero::after { left: auto; right: 24px;
  -webkit-mask-image: radial-gradient(ellipse 105% 105% at 100% 100%, #000 38%, transparent 78%);
          mask-image: radial-gradient(ellipse 105% 105% at 100% 100%, #000 38%, transparent 78%); }
@media (max-width: 760px) { .ry-phero::after { left: 0; } [dir="ltr"] .ry-phero::after { right: 0; } }

/* ---------- home «الشراكات والاعتمادات»: same navy gradient + AOU arch staircase, mirrored in both bottom corners
   (centred section), faded toward the middle; tiles go solid so no mark shows through them ---------- */
.aou-partners {
  background:
    radial-gradient(ellipse 70% 95% at 50% -20%, rgba(255, 255, 255, .17) 0%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(180deg, #045881 0%, #022a40 58%, #022a40 100%);
}
.aou-partners::before, .aou-partners::after { content: ""; position: absolute; bottom: 0; z-index: 0; pointer-events: none;
  width: min(560px, 40%); aspect-ratio: 816 / 326; opacity: .1; background-size: contain; background-repeat: no-repeat; }
.aou-partners::before { left: 24px; background-image: url(../images/rayan/upm-arch-pattern.png); background-position: left bottom;
  -webkit-mask-image: radial-gradient(ellipse 105% 105% at 0% 100%, #000 38%, transparent 78%);
          mask-image: radial-gradient(ellipse 105% 105% at 0% 100%, #000 38%, transparent 78%); }
.aou-partners::after { right: 24px; background-image: url(../images/rayan/upm-arch-pattern-ltr.png); background-position: right bottom;
  -webkit-mask-image: radial-gradient(ellipse 105% 105% at 100% 100%, #000 38%, transparent 78%);
          mask-image: radial-gradient(ellipse 105% 105% at 100% 100%, #000 38%, transparent 78%); }
.aou-partners .ry-container { position: relative; z-index: 1; }
.aou-partner { background: #0d3a66; border-color: rgba(255, 255, 255, .14); box-shadow: 0 20px 40px -28px rgba(0, 12, 28, .7); }
.aou-partner:hover { background: #124576; }
@media (max-width: 760px) { .aou-partners::before, .aou-partners::after { width: 70%; opacity: .06; left: 0; right: auto; } .aou-partners::after { display: none; } }

/* ---------- floating actions (back-to-top + WhatsApp) and cookie bar — cecd4's behaviour in AOU colours ---------- */
/* stack pinned bottom-right in both languages; rides just above the cookie bar while it is open (--aou-cookie-h set by JS) */
.aou-floats { position: fixed; right: 22px; bottom: calc(22px + var(--aou-cookie-h, 0px)); z-index: 1100;
  display: flex; flex-direction: column; align-items: center; gap: 12px; transition: bottom .25s ease; }
.aou-float { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 0; color: #fff;
  box-shadow: 0 10px 24px -8px rgba(2, 29, 44, .45); cursor: pointer; transition: transform .2s ease, background .2s ease; }
.aou-float svg { width: 30px; height: 30px; fill: currentColor; }
.aou-float:hover { transform: scale(1.08); color: #fff; }
.aou-float--wa { background: #25d366; }
.aou-float--wa::after { content: ""; position: absolute; inset: 0; border-radius: 50%; animation: aou-pulse 2.4s infinite; }
@keyframes aou-pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .45); } 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
.aou-float--top { width: 46px; height: 46px; background: #fff; color: var(--aou-navy); border: 1px solid var(--aou-line);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.85); transition: opacity .3s ease, transform .3s ease, visibility .3s, background .2s; }
.aou-float--top svg { width: 24px; height: 24px; }
.aou-float--top.is-visible { opacity: 1; visibility: visible; transform: none; }
.aou-float--top.is-visible:hover { transform: scale(1.08); background: var(--aou-cream); color: var(--aou-navy); }
.aou-float:focus-visible { outline: 3px solid var(--aou-mint); outline-offset: 3px; }

.aou-cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1090; padding-block: 14px;
  background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-top: 1px solid var(--aou-line); box-shadow: 0 -8px 24px rgba(16, 24, 40, .08); }
.aou-cookie.is-hidden { display: none; }
.aou-cookie__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.aou-cookie p { flex: 1 1 420px; min-width: 0; margin: 0; color: var(--aou-ink); font-size: 14.5px; line-height: 1.7; }
.aou-cookie p a { color: var(--aou-navy-2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.aou-cookie .aou-btn { flex: none; min-width: 120px; }
@media (max-width: 768px) {
  .aou-floats { right: 14px; bottom: calc(16px + var(--aou-cookie-h, 0px)); }
  body:has(.aou-cookie:not(.is-hidden)) .aou-floats { display: none; }   /* phones: buttons wait until consent, as on cecd4 */
  .aou-float { width: 50px; height: 50px; }
  .aou-float svg { width: 26px; height: 26px; }
  .aou-float--top { width: 42px; height: 42px; }
  .aou-cookie__inner { flex-direction: column; align-items: stretch; }
  .aou-cookie p { flex-basis: auto; }
  .aou-cookie .aou-btn { align-self: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .aou-float--wa::after { animation: none; } .aou-float, .aou-floats { transition: none; } }

/* ---------- footer: official identity strip (AOU · Year of AI 2026 · Vision 2030), as on cecd4 ---------- */
.aou-footer__official { display: flex; align-items: center; justify-content: center; gap: 34px; padding-block: 28px; border-top: 1px solid var(--aou-line-navy); }
.aou-footer__official img { display: block; width: auto; opacity: .92; transition: opacity .2s ease; }
.aou-footer__official img:hover { opacity: 1; }
.aou-footer__official .fo-aou { height: 58px; }
.aou-footer__official .fo-ai { height: 50px; }
.aou-footer__official .fo-vision { height: 56px; }
.aou-footer__official .fo-sep { flex: none; width: 1px; height: 46px; background: var(--aou-line-navy); }
@media (max-width: 560px) {
  .aou-footer__official { gap: 22px; flex-wrap: wrap; padding-block: 22px; }
  .aou-footer__official .fo-sep { display: none; }
  .aou-footer__official .fo-aou { height: 48px; }
  .aou-footer__official .fo-ai { height: 40px; }
  .aou-footer__official .fo-vision { height: 46px; }
}

/* footer accreditation row: Ministry of Education | NELC, side by side with a hairline divider */
.aou-footer__acc { align-items: center; gap: 18px; }
.aou-footer__acc img { height: 48px; }
.aou-footer__acc .fo-moe { height: 60px; }
.aou-footer__acc .fo-sep { flex: none; width: 1px; height: 40px; background: var(--aou-line-navy); }

/* UPM: gold buttons carry dark navy text (white on #eaba6a is too faint) */
.ry-btn--gold, .ry-btn--gold:hover { color: #022a40; }
/* why-badge: navy text on the gold plate */
.ry-why__badge, .ry-why__badge span, .ry-why__badge b { color: #022a40; }

/* ---------- UPM home «لماذا نحن»: sits on the shared home background; points as white cards ---------- */
.home-flow .ry-why { background: transparent; padding-block: 72px 88px; }
.home-flow .ry-why__items { gap: 16px; }
.home-flow .ry-why__item { padding: 22px 22px 20px; background: #fff; border: 1px solid #e3ebf2; border-radius: 16px;
  box-shadow: 0 10px 28px -20px rgba(2, 42, 64, .35); transition: transform .2s, box-shadow .2s, border-color .2s; }
.home-flow .ry-why__item:hover { transform: translateY(-3px); border-color: #c9dcec; box-shadow: 0 18px 36px -22px rgba(2, 42, 64, .45); }
.home-flow .ry-why__item h3 i { background: #eaf4f9; color: #045881; border-radius: 10px; }
.home-flow .ry-why__num { color: #dbe8f2; }
.home-flow .ry-why__media img.ry-why__people { border-radius: 24px; box-shadow: 0 30px 60px -30px rgba(2, 42, 64, .55); }
@media (prefers-reduced-motion: reduce) { .home-flow .ry-why__item { transition: none; } .home-flow .ry-why__item:hover { transform: none; } }
